usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / libexif / configure
blob52aa236ae645f3e0361c3ccc46f0a9fd8ea5e5d7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for EXIF library 0.6.19.
5 # Report bugs to <libexif-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: libexif-devel@lists.sourceforge.net about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
534 case X$lt_ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 esac
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
561 _LT_EOF
562 exit 0
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
579 done
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
603 done
604 IFS="$lt_save_ifs"
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
652 prev="$cmd"
653 done
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687 # Initializations.
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
698 # Identity of this package.
699 PACKAGE_NAME='EXIF library'
700 PACKAGE_TARNAME='libexif'
701 PACKAGE_VERSION='0.6.19'
702 PACKAGE_STRING='EXIF library 0.6.19'
703 PACKAGE_BUGREPORT='libexif-devel@lists.sourceforge.net'
704 PACKAGE_URL=''
706 ac_unique_file="libexif/exif-data.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 AM_LDFLAGS
748 AM_CPPFLAGS
749 POSUB
750 LTLIBINTL
751 LIBINTL
752 INTLLIBS
753 LTLIBICONV
754 LIBICONV
755 GETTEXT_PACKAGE
756 MSGMERGE
757 XGETTEXT
758 GMSGFMT
759 MSGFMT
760 USE_NLS
761 MKINSTALLDIRS
762 ENABLE_INTERNAL_DOCS_FALSE
763 ENABLE_INTERNAL_DOCS_TRUE
764 HTML_APIDOC_INTERNALS_DIR
765 DOXYGEN_OUTPUT_DIR
766 HTML_APIDOC_DIR
767 HAVE_DOT
768 HAVE_DOT_FALSE
769 HAVE_DOT_TRUE
770 HAVE_DOXYGEN_FALSE
771 HAVE_DOXYGEN_TRUE
772 DOXYGEN
774 BUILD_DOCS_FALSE
775 BUILD_DOCS_TRUE
776 SHIP_BINARIES_FALSE
777 SHIP_BINARIES_TRUE
779 OTOOL64
780 OTOOL
781 LIPO
782 NMEDIT
783 DSYMUTIL
784 lt_ECHO
785 RANLIB
787 OBJDUMP
788 LN_S
790 ac_ct_DUMPBIN
791 DUMPBIN
793 FGREP
794 EGREP
795 GREP
797 host_os
798 host_vendor
799 host_cpu
800 host
801 build_os
802 build_vendor
803 build_cpu
804 build
805 LIBTOOL
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
822 LIBEXIF_VERSION_INFO
823 LIBEXIF_CURRENT_MIN
824 LIBEXIF_CURRENT
825 LIBEXIF_REVISION
826 LIBEXIF_AGE
827 MAINT
828 MAINTAINER_MODE_FALSE
829 MAINTAINER_MODE_TRUE
830 am__untar
831 am__tar
832 AMTAR
833 am__leading_dot
834 SET_MAKE
836 mkdir_p
837 MKDIR_P
838 INSTALL_STRIP_PROGRAM
839 STRIP
840 install_sh
841 MAKEINFO
842 AUTOHEADER
843 AUTOMAKE
844 AUTOCONF
845 ACLOCAL
846 VERSION
847 PACKAGE
848 CYGPATH_W
849 am__isrc
850 INSTALL_DATA
851 INSTALL_SCRIPT
852 INSTALL_PROGRAM
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_maintainer_mode
895 enable_dependency_tracking
896 enable_shared
897 enable_static
898 with_pic
899 enable_fast_install
900 with_gnu_ld
901 enable_libtool_lock
902 enable_ship_binaries
903 enable_docs
904 with_doc_dir
905 enable_internal_docs
906 enable_nls
907 enable_rpath
908 with_libiconv_prefix
909 with_libintl_prefix
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP'
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
970 ac_prev=
971 ac_dashdash=
972 for ac_option
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
990 ac_dashdash=yes ;;
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1254 -with-* | --with-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) as_fn_error "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information."
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314 esac
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326 esac
1327 done
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error "missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
1337 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error "working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error "pwd does not report name of working directory"
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404 $as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1413 /^X\(\/\/\)$/{
1414 s//\1/
1417 /^X\(\/\).*/{
1418 s//\1/
1421 s/.*/./; q'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1426 else
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436 pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures EXIF library 0.6.19 to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/libexif]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1516 cat <<\_ACEOF
1518 Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 _ACEOF
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of EXIF library 0.6.19:";;
1532 esac
1533 cat <<\_ACEOF
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-maintainer-mode enable make rules and dependencies not useful
1540 (and sometimes confusing) to the casual installer
1541 --disable-dependency-tracking speeds up one-time build
1542 --enable-dependency-tracking do not reject slow dependency extractors
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --enable-ship-binaries Whether to ship binaries in the tarball [default=no]
1549 --disable-docs whether to create any documentation
1550 --enable-internal-docs Build internal code docs if doxygen available
1551 --disable-nls do not use Native Language Support
1552 --disable-rpath do not hardcode runtime library paths
1554 Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1557 --with-pic try to use only PIC/non-PIC objects [default=use
1558 both]
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-doc-dir=PATH Where to install docs [default=autodetect]
1561 --with-gnu-ld assume the C compiler uses GNU ld default=no
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1565 --without-libintl-prefix don't search for libintl in includedir and libdir
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CPP C preprocessor
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 Report bugs to <libexif-devel@lists.sourceforge.net>.
1581 _ACEOF
1582 ac_status=$?
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1633 else
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 EXIF library configure 0.6.19
1644 generated by GNU Autoconf 2.64
1646 Copyright (C) 2009 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=1
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1693 } # ac_fn_c_try_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 $as_test_x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=1
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 } # ac_fn_c_check_header_compile
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_cpp ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } >/dev/null && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1807 } # ac_fn_c_try_cpp
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=$ac_status
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1849 } # ac_fn_c_try_run
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1873 #ifdef __STDC__
1874 # include <limits.h>
1875 #else
1876 # include <assert.h>
1877 #endif
1879 #undef $2
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 ();
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1896 main ()
1898 return $2 ();
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 } # ac_fn_c_check_func
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1921 It was created by EXIF library $as_me 0.6.19, which was
1922 generated by GNU Autoconf 2.64. Invocation command line was
1924 $ $0 $@
1926 _ACEOF
1927 exec 5>>config.log
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951 _ASUNAME
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1962 } >&5
1964 cat >&5 <<_ACEOF
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1971 _ACEOF
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1985 for ac_arg
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2014 as_fn_append ac_configure_args " '$ac_arg'"
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2030 echo
2032 cat <<\_ASBOX
2033 ## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##
2036 _ASBOX
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 esac |
2066 sort
2068 echo
2070 cat <<\_ASBOX
2071 ## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##
2074 _ASBOX
2075 echo
2076 for ac_var in $ac_subst_vars
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2086 if test -n "$ac_subst_files"; then
2087 cat <<\_ASBOX
2088 ## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_files
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2104 if test -s confdefs.h; then
2105 cat <<\_ASBOX
2106 ## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##
2109 _ASBOX
2110 echo
2111 cat confdefs.h
2112 echo
2114 test "$ac_signal" != 0 &&
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
2117 } >&5
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120 exit $exit_status
2122 for ac_signal in 1 2 13 15; do
2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 done
2125 ac_signal=0
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2130 $as_echo "/* confdefs.h */" > confdefs.h
2132 # Predefined preprocessor variables.
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 _ACEOF
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 _ACEOF
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2156 _ACEOF
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2161 ac_site_file1=NONE
2162 ac_site_file2=NONE
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_file1=$CONFIG_SITE
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174 test "x$ac_site_file" = xNONE && continue
2175 if test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file"
2181 done
2183 if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special
2185 # files actually), so we avoid doing that.
2186 if test -f "$cache_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 case $cache_file in
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
2192 esac
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196 $as_echo "$as_me: creating cache $cache_file" >&6;}
2197 >$cache_file
2200 # Check that the precious variables saved in the cache have kept the same
2201 # value.
2202 ac_cache_corrupted=false
2203 for ac_var in $ac_precious_vars; do
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
2208 case $ac_old_set,$ac_new_set in
2209 set,)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212 ac_cache_corrupted=: ;;
2213 ,set)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,);;
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247 esac
2249 done
2250 if $ac_cache_corrupted; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 ## -------------------- ##
2258 ## Main body of script. ##
2259 ## -------------------- ##
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 ac_config_headers="$ac_config_headers config.h"
2272 am__api_version='1.11'
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297 # Find a good install program. We prefer a C program (faster),
2298 # so one script is as good as another. But avoid the broken or
2299 # incompatible versions:
2300 # SysV /etc/install, /usr/sbin/install
2301 # SunOS /usr/etc/install
2302 # IRIX /sbin/install
2303 # AIX /bin/install
2304 # AmigaOS /C/install, which installs bootblocks on floppy discs
2305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2308 # OS/2's system install, which has a completely different semantic
2309 # ./install, which can be erroneously created by make from ./install.sh.
2310 # Reject install programs that cannot install multiple files.
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2312 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2313 if test -z "$INSTALL"; then
2314 if test "${ac_cv_path_install+set}" = set; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 # Account for people who put trailing slashes in PATH elements.
2323 case $as_dir/ in #((
2324 ./ | .// | /[cC]/* | \
2325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2326 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2327 /usr/ucb/* ) ;;
2329 # OSF1 and SCO ODT 3.0 have their own names for install.
2330 # Don't use installbsd from OSF since it installs stuff as root
2331 # by default.
2332 for ac_prog in ginstall scoinst install; do
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2335 if test $ac_prog = install &&
2336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # AIX install. It has an incompatible calling convention.
2339 elif test $ac_prog = install &&
2340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # program-specific install script used by HP pwplus--don't use.
2343 else
2344 rm -rf conftest.one conftest.two conftest.dir
2345 echo one > conftest.one
2346 echo two > conftest.two
2347 mkdir conftest.dir
2348 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2349 test -s conftest.one && test -s conftest.two &&
2350 test -s conftest.dir/conftest.one &&
2351 test -s conftest.dir/conftest.two
2352 then
2353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354 break 3
2358 done
2359 done
2361 esac
2363 done
2364 IFS=$as_save_IFS
2366 rm -rf conftest.one conftest.two conftest.dir
2369 if test "${ac_cv_path_install+set}" = set; then
2370 INSTALL=$ac_cv_path_install
2371 else
2372 # As a last resort, use the slow shell script. Don't cache a
2373 # value for INSTALL within a source directory, because that will
2374 # break other packages using the cache if that directory is
2375 # removed, or if the value is a relative name.
2376 INSTALL=$ac_install_sh
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2380 $as_echo "$INSTALL" >&6; }
2382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2383 # It thinks the first close brace ends the variable substitution.
2384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2391 $as_echo_n "checking whether build environment is sane... " >&6; }
2392 # Just in case
2393 sleep 1
2394 echo timestamp > conftest.file
2395 # Reject unsafe characters in $srcdir or the absolute working directory
2396 # name. Accept space and tab only in the latter.
2397 am_lf='
2399 case `pwd` in
2400 *[\\\"\#\$\&\'\`$am_lf]*)
2401 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2402 esac
2403 case $srcdir in
2404 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2405 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2406 esac
2408 # Do `set' in a subshell so we don't clobber the current shell's
2409 # arguments. Must try -L first in case configure is actually a
2410 # symlink; some systems play weird games with the mod time of symlinks
2411 # (eg FreeBSD returns the mod time of the symlink's containing
2412 # directory).
2413 if (
2414 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2415 if test "$*" = "X"; then
2416 # -L didn't work.
2417 set X `ls -t "$srcdir/configure" conftest.file`
2419 rm -f conftest.file
2420 if test "$*" != "X $srcdir/configure conftest.file" \
2421 && test "$*" != "X conftest.file $srcdir/configure"; then
2423 # If neither matched, then we have a broken ls. This can happen
2424 # if, for instance, CONFIG_SHELL is bash and it inherits a
2425 # broken ls alias from the environment. This has actually
2426 # happened. Such a system could not be considered "sane".
2427 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2428 alias in your environment" "$LINENO" 5
2431 test "$2" = conftest.file
2433 then
2434 # Ok.
2436 else
2437 as_fn_error "newly created file is older than distributed files!
2438 Check your system clock" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 test "$program_prefix" != NONE &&
2443 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2444 # Use a double $ so make ignores it.
2445 test "$program_suffix" != NONE &&
2446 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2447 # Double any \ or $.
2448 # By default was `s,x,x', remove it if useless.
2449 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2450 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2452 # expand $ac_aux_dir to an absolute path
2453 am_aux_dir=`cd $ac_aux_dir && pwd`
2455 if test x"${MISSING+set}" != xset; then
2456 case $am_aux_dir in
2457 *\ * | *\ *)
2458 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2460 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2461 esac
2463 # Use eval to expand $SHELL
2464 if eval "$MISSING --run true"; then
2465 am_missing_run="$MISSING --run "
2466 else
2467 am_missing_run=
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2469 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2472 if test x"${install_sh}" != xset; then
2473 case $am_aux_dir in
2474 *\ * | *\ *)
2475 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2477 install_sh="\${SHELL} $am_aux_dir/install-sh"
2478 esac
2481 # Installed binaries are usually stripped using `strip' when the user
2482 # run `make install-strip'. However `strip' might not be the right
2483 # tool to use in cross-compilation environments, therefore Automake
2484 # will honor the `STRIP' environment variable to overrule this program.
2485 if test "$cross_compiling" != no; then
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}strip; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_STRIP+set}" = set; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$STRIP"; then
2495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2508 done
2509 done
2510 IFS=$as_save_IFS
2514 STRIP=$ac_cv_prog_STRIP
2515 if test -n "$STRIP"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2517 $as_echo "$STRIP" >&6; }
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2525 if test -z "$ac_cv_prog_STRIP"; then
2526 ac_ct_STRIP=$STRIP
2527 # Extract the first word of "strip", so it can be a program name with args.
2528 set dummy strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$ac_ct_STRIP"; then
2535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_ac_ct_STRIP="strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2554 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2555 if test -n "$ac_ct_STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2557 $as_echo "$ac_ct_STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2563 if test "x$ac_ct_STRIP" = x; then
2564 STRIP=":"
2565 else
2566 case $cross_compiling:$ac_tool_warned in
2567 yes:)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572 STRIP=$ac_ct_STRIP
2574 else
2575 STRIP="$ac_cv_prog_STRIP"
2579 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2582 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2583 if test -z "$MKDIR_P"; then
2584 if test "${ac_cv_path_mkdir+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_prog in mkdir gmkdir; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2595 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2596 'mkdir (GNU coreutils) '* | \
2597 'mkdir (coreutils) '* | \
2598 'mkdir (fileutils) '4.1*)
2599 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2600 break 3;;
2601 esac
2602 done
2603 done
2604 done
2605 IFS=$as_save_IFS
2609 if test "${ac_cv_path_mkdir+set}" = set; then
2610 MKDIR_P="$ac_cv_path_mkdir -p"
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for MKDIR_P within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 test -d ./--version && rmdir ./--version
2617 MKDIR_P="$ac_install_sh -d"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2621 $as_echo "$MKDIR_P" >&6; }
2623 mkdir_p="$MKDIR_P"
2624 case $mkdir_p in
2625 [\\/$]* | ?:[\\/]*) ;;
2626 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2627 esac
2629 for ac_prog in gawk mawk nawk awk
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if test "${ac_cv_prog_AWK+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$AWK"; then
2639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_AWK="$ac_prog"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 AWK=$ac_cv_prog_AWK
2659 if test -n "$AWK"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2661 $as_echo "$AWK" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2668 test -n "$AWK" && break
2669 done
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2672 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2673 set x ${MAKE-make}
2674 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2675 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 cat >conftest.make <<\_ACEOF
2679 SHELL = /bin/sh
2680 all:
2681 @echo '@@@%%%=$(MAKE)=@@@%%%'
2682 _ACEOF
2683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2684 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2685 *@@@%%%=?*=@@@%%%*)
2686 eval ac_cv_prog_make_${ac_make}_set=yes;;
2688 eval ac_cv_prog_make_${ac_make}_set=no;;
2689 esac
2690 rm -f conftest.make
2692 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694 $as_echo "yes" >&6; }
2695 SET_MAKE=
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 SET_MAKE="MAKE=${MAKE-make}"
2702 rm -rf .tst 2>/dev/null
2703 mkdir .tst 2>/dev/null
2704 if test -d .tst; then
2705 am__leading_dot=.
2706 else
2707 am__leading_dot=_
2709 rmdir .tst 2>/dev/null
2711 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713 # is not polluted with repeated "-I."
2714 am__isrc=' -I$(srcdir)'
2715 # test to see if srcdir already configured
2716 if test -f $srcdir/config.status; then
2717 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2721 # test whether we have cygpath
2722 if test -z "$CYGPATH_W"; then
2723 if (cygpath --version) >/dev/null 2>/dev/null; then
2724 CYGPATH_W='cygpath -w'
2725 else
2726 CYGPATH_W=echo
2731 # Define the identity of the package.
2732 PACKAGE='libexif'
2733 VERSION='0.6.19'
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE "$PACKAGE"
2738 _ACEOF
2741 cat >>confdefs.h <<_ACEOF
2742 #define VERSION "$VERSION"
2743 _ACEOF
2745 # Some tools Automake needs.
2747 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2761 # We need awk for the "check" target. The system "awk" is bad on
2762 # some platforms.
2763 # Always define AMTAR for backward compatibility.
2765 AMTAR=${AMTAR-"${am_missing_run}tar"}
2767 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2775 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2776 # Check whether --enable-maintainer-mode was given.
2777 if test "${enable_maintainer_mode+set}" = set; then :
2778 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2779 else
2780 USE_MAINTAINER_MODE=no
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2784 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2785 if test $USE_MAINTAINER_MODE = yes; then
2786 MAINTAINER_MODE_TRUE=
2787 MAINTAINER_MODE_FALSE='#'
2788 else
2789 MAINTAINER_MODE_TRUE='#'
2790 MAINTAINER_MODE_FALSE=
2793 MAINT=$MAINTAINER_MODE_TRUE
2797 if test ! -d "$srcdir/m4m"; then
2798 as_fn_error "
2799 You are missing the m4m/ directory in your top
2800 $PACKAGE_TARNAME source directory.
2802 You are probably using an ill-maintained CVS tree.
2803 Running
2805 cd $srcdir
2806 cvs co m4m
2808 and re-running autogen.sh might help.
2809 " "$LINENO" 5
2813 # make sure "cd" doesn't print anything on stdout
2814 if test x"${CDPATH+set}" = xset
2815 then
2816 CDPATH=:
2817 export CDPATH
2820 # make sure $() command substitution works
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
2822 $as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
2823 if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
2824 then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 uname=`uname 2>&1` # ''
2831 uname_a=`uname -a 2>&1` # ''
2832 as_fn_error "
2834 * POSIX sh \$() command substition does not work with this shell.
2836 * You are running a very rare species of shell. Please report this
2837 * sighting to <${PACKAGE_BUGREPORT}>:
2838 * SHELL=${SHELL}
2839 * uname=${uname}
2840 * uname-a=${uname_a}
2841 * Please also include your OS and version.
2843 * Run this configure script using a better (i.e. POSIX compliant) shell.
2844 " "$LINENO" 5
2849 gp_config_len="30"
2850 gp_config_empty=""
2851 gp_config_len3="$(expr "$gp_config_len" - 3)"
2852 n="$gp_config_len"
2853 while test "$n" -gt 0; do
2854 gp_config_empty="${gp_config_empty} "
2855 n="$(expr "$n" - 1)"
2856 done
2857 gp_config_msg="
2858 Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
2862 gp_config_msg="${gp_config_msg}
2863 Build
2867 gp_config_msg_len="$(expr "Source code location" : '.*')"
2868 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
2869 gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
2870 else
2871 gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
2873 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${srcdir}
2877 LIBEXIF_CURRENT=15
2878 LIBEXIF_AGE=3
2879 LIBEXIF_REVISION=1
2883 LIBEXIF_CURRENT_MIN=`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE`
2885 LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE"
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2917 IFS=$as_save_IFS
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2932 if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935 set dummy gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964 $as_echo "$ac_ct_CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2981 else
2982 CC="$ac_cv_prog_CC"
2985 if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_CC="${ac_tool_prefix}cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028 set dummy cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 ac_prog_rejected=no
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3049 ac_cv_prog_CC="cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3057 if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3082 if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3124 done
3126 if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3168 done
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 CC=$ac_ct_CC
3186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error "no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." "$LINENO" 5; }
3191 # Provide some information about the compiler.
3192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193 set X $ac_compile
3194 ac_compiler=$2
3195 for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 ac_status=$?
3205 if test -s conftest.err; then
3206 sed '10a\
3207 ... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
3210 rm -f conftest.er1 conftest.err
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 done
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218 #include <stdio.h>
3220 main ()
3222 FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3226 return 0;
3228 _ACEOF
3229 ac_clean_files_save=$ac_clean_files
3230 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3231 # Try to create an executable without -o first, disregard a.out.
3232 # It will help us diagnose broken compilers, and finding out an intuition
3233 # of exeext.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3235 $as_echo_n "checking for C compiler default output file name... " >&6; }
3236 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238 # The possible output files:
3239 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241 ac_rmfiles=
3242 for ac_file in $ac_files
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247 esac
3248 done
3249 rm -f $ac_rmfiles
3251 if { { ac_try="$ac_link_default"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_link_default") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
3262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3265 # so that the user can short-circuit this test for compilers unknown to
3266 # Autoconf.
3267 for ac_file in $ac_files ''
3269 test -f "$ac_file" || continue
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273 [ab].out )
3274 # We found the default executable, but exeext='' is most
3275 # certainly right.
3276 break;;
3277 *.* )
3278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279 then :; else
3280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282 # We set ac_cv_exeext here because the later test for it is not
3283 # safe: cross compilers may not add the suffix if given an `-o'
3284 # argument, so we may need to know it at that point already.
3285 # Even if this section looks crufty: it has the advantage of
3286 # actually working.
3287 break;;
3289 break;;
3290 esac
3291 done
3292 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294 else
3295 ac_file=''
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3298 $as_echo "$ac_file" >&6; }
3299 if test -z "$ac_file"; then :
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 { as_fn_set_status 77
3306 as_fn_error "C compiler cannot create executables
3307 See \`config.log' for more details." "$LINENO" 5; }; }
3309 ac_exeext=$ac_cv_exeext
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3314 $as_echo_n "checking whether the C compiler works... " >&6; }
3315 # If not cross compiling, check that we can run a simple program.
3316 if test "$cross_compiling" != yes; then
3317 if { ac_try='./$ac_file'
3318 { { case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; }; then
3328 cross_compiling=no
3329 else
3330 if test "$cross_compiling" = maybe; then
3331 cross_compiling=yes
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error "cannot run C compiled programs.
3336 If you meant to cross compile, use \`--host'.
3337 See \`config.log' for more details." "$LINENO" 5; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3344 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3345 ac_clean_files=$ac_clean_files_save
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354 $as_echo_n "checking for suffix of executables... " >&6; }
3355 if { { ac_try="$ac_link"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3368 # work properly (i.e., refer to `conftest.exe'), while it won't with
3369 # `rm'.
3370 for ac_file in conftest.exe conftest conftest.*; do
3371 test -f "$ac_file" || continue
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375 break;;
3376 * ) break;;
3377 esac
3378 done
3379 else
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error "cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." "$LINENO" 5; }
3385 rm -f conftest$ac_cv_exeext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387 $as_echo "$ac_cv_exeext" >&6; }
3389 rm -f conftest.$ac_ext
3390 EXEEXT=$ac_cv_exeext
3391 ac_exeext=$EXEEXT
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3393 $as_echo_n "checking for suffix of object files... " >&6; }
3394 if test "${ac_cv_objext+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 rm -f conftest.o conftest.obj
3409 if { { ac_try="$ac_compile"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_compile") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 for ac_file in conftest.o conftest.obj conftest.*; do
3421 test -f "$ac_file" || continue;
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3424 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3425 break;;
3426 esac
3427 done
3428 else
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error "cannot compute suffix of object files: cannot compile
3435 See \`config.log' for more details." "$LINENO" 5; }
3437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3440 $as_echo "$ac_cv_objext" >&6; }
3441 OBJEXT=$ac_cv_objext
3442 ac_objext=$OBJEXT
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3444 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3445 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3452 main ()
3454 #ifndef __GNUC__
3455 choke me
3456 #endif
3459 return 0;
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_compiler_gnu=yes
3464 else
3465 ac_compiler_gnu=no
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3472 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3473 if test $ac_compiler_gnu = yes; then
3474 GCC=yes
3475 else
3476 GCC=
3478 ac_test_CFLAGS=${CFLAGS+set}
3479 ac_save_CFLAGS=$CFLAGS
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3481 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3482 if test "${ac_cv_prog_cc_g+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 ac_save_c_werror_flag=$ac_c_werror_flag
3486 ac_c_werror_flag=yes
3487 ac_cv_prog_cc_g=no
3488 CFLAGS="-g"
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3493 main ()
3497 return 0;
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_g=yes
3502 else
3503 CFLAGS=""
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3517 else
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3519 CFLAGS="-g"
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_prog_cc_g=yes
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_c_werror_flag=$ac_save_c_werror_flag
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3542 $as_echo "$ac_cv_prog_cc_g" >&6; }
3543 if test "$ac_test_CFLAGS" = set; then
3544 CFLAGS=$ac_save_CFLAGS
3545 elif test $ac_cv_prog_cc_g = yes; then
3546 if test "$GCC" = yes; then
3547 CFLAGS="-g -O2"
3548 else
3549 CFLAGS="-g"
3551 else
3552 if test "$GCC" = yes; then
3553 CFLAGS="-O2"
3554 else
3555 CFLAGS=
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3559 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3560 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 ac_cv_prog_cc_c89=no
3564 ac_save_CC=$CC
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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;
3578 return p[i];
3580 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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
3593 as 'x'. The following induces an error, until -std is added to get
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
3596 that's true only with -std. */
3597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
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];
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;
3611 main ()
3613 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 return 0;
3617 _ACEOF
3618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_c89=$ac_arg
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636 $as_echo "none needed" >&6; } ;;
3637 xno)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 $as_echo "unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3643 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3645 if test "x$ac_cv_prog_cc_c89" != xno; then :
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 DEPDIR="${am__leading_dot}deps"
3656 ac_config_commands="$ac_config_commands depfiles"
3659 am_make=${MAKE-make}
3660 cat > confinc << 'END'
3661 am__doit:
3662 @echo this is the am__doit target
3663 .PHONY: am__doit
3665 # If we don't find an include directive, just comment out the code.
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3667 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3668 am__include="#"
3669 am__quote=
3670 _am_result=none
3671 # First try GNU make style include.
3672 echo "include confinc" > confmf
3673 # Ignore all kinds of additional output from `make'.
3674 case `$am_make -s -f confmf 2> /dev/null` in #(
3675 *the\ am__doit\ target*)
3676 am__include=include
3677 am__quote=
3678 _am_result=GNU
3680 esac
3681 # Now try BSD make style include.
3682 if test "$am__include" = "#"; then
3683 echo '.include "confinc"' > confmf
3684 case `$am_make -s -f confmf 2> /dev/null` in #(
3685 *the\ am__doit\ target*)
3686 am__include=.include
3687 am__quote="\""
3688 _am_result=BSD
3690 esac
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3695 $as_echo "$_am_result" >&6; }
3696 rm -f confinc confmf
3698 # Check whether --enable-dependency-tracking was given.
3699 if test "${enable_dependency_tracking+set}" = set; then :
3700 enableval=$enable_dependency_tracking;
3703 if test "x$enable_dependency_tracking" != xno; then
3704 am_depcomp="$ac_aux_dir/depcomp"
3705 AMDEPBACKSLASH='\'
3707 if test "x$enable_dependency_tracking" != xno; then
3708 AMDEP_TRUE=
3709 AMDEP_FALSE='#'
3710 else
3711 AMDEP_TRUE='#'
3712 AMDEP_FALSE=
3717 depcc="$CC" am_compiler_list=
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3720 $as_echo_n "checking dependency style of $depcc... " >&6; }
3721 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3725 # We make a subdir and do the tests there. Otherwise we can end up
3726 # making bogus files that we don't know about and never remove. For
3727 # instance it was reported that on HP-UX the gcc test will end up
3728 # making a dummy file named `D' -- because `-MD' means `put the output
3729 # in D'.
3730 mkdir conftest.dir
3731 # Copy depcomp to subdir because otherwise we won't find it if we're
3732 # using a relative directory.
3733 cp "$am_depcomp" conftest.dir
3734 cd conftest.dir
3735 # We will build objects and dependencies in a subdirectory because
3736 # it helps to detect inapplicable dependency modes. For instance
3737 # both Tru64's cc and ICC support -MD to output dependencies as a
3738 # side effect of compilation, but ICC will put the dependencies in
3739 # the current directory while Tru64 will put them in the object
3740 # directory.
3741 mkdir sub
3743 am_cv_CC_dependencies_compiler_type=none
3744 if test "$am_compiler_list" = ""; then
3745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3747 am__universal=false
3748 case " $depcc " in #(
3749 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3750 esac
3752 for depmode in $am_compiler_list; do
3753 # Setup a source with many dependencies, because some compilers
3754 # like to wrap large dependency lists on column 80 (with \), and
3755 # we should not choose a depcomp mode which is confused by this.
3757 # We need to recreate these files for each test, as the compiler may
3758 # overwrite some of them when testing with obscure command lines.
3759 # This happens at least with the AIX C compiler.
3760 : > sub/conftest.c
3761 for i in 1 2 3 4 5 6; do
3762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764 # Solaris 8's {/usr,}/bin/sh.
3765 touch sub/conftst$i.h
3766 done
3767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3769 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3770 # mode. It turns out that the SunPro C++ compiler does not properly
3771 # handle `-M -o', and we need to detect this. Also, some Intel
3772 # versions had trouble with output in subdirs
3773 am__obj=sub/conftest.${OBJEXT-o}
3774 am__minus_obj="-o $am__obj"
3775 case $depmode in
3776 gcc)
3777 # This depmode causes a compiler race in universal mode.
3778 test "$am__universal" = false || continue
3780 nosideeffect)
3781 # after this tag, mechanisms are not by side-effect, so they'll
3782 # only be used when explicitly requested
3783 if test "x$enable_dependency_tracking" = xyes; then
3784 continue
3785 else
3786 break
3789 msvisualcpp | msvcmsys)
3790 # This compiler won't grok `-c -o', but also, the minuso test has
3791 # not run yet. These depmodes are late enough in the game, and
3792 # so weak that their functioning should not be impacted.
3793 am__obj=conftest.${OBJEXT-o}
3794 am__minus_obj=
3796 none) break ;;
3797 esac
3798 if depmode=$depmode \
3799 source=sub/conftest.c object=$am__obj \
3800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3802 >/dev/null 2>conftest.err &&
3803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3807 # icc doesn't choke on unknown options, it will just issue warnings
3808 # or remarks (even with -Werror). So we grep stderr for any message
3809 # that says an option was ignored or not supported.
3810 # When given -MP, icc 7.0 and 7.1 complain thusly:
3811 # icc: Command line warning: ignoring option '-M'; no argument required
3812 # The diagnosis changed in icc 8.0:
3813 # icc: Command line remark: option '-MP' not supported
3814 if (grep 'ignoring option' conftest.err ||
3815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3816 am_cv_CC_dependencies_compiler_type=$depmode
3817 break
3820 done
3822 cd ..
3823 rm -rf conftest.dir
3824 else
3825 am_cv_CC_dependencies_compiler_type=none
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3830 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3831 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3834 test "x$enable_dependency_tracking" != xno \
3835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3836 am__fastdepCC_TRUE=
3837 am__fastdepCC_FALSE='#'
3838 else
3839 am__fastdepCC_TRUE='#'
3840 am__fastdepCC_FALSE=
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3846 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3847 if test "${ac_cv_c_const+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3856 /* FIXME: Include the comments suggested by Paul. */
3857 #ifndef __cplusplus
3858 /* Ultrix mips cc rejects this. */
3859 typedef int charset[2];
3860 const charset cs;
3861 /* SunOS 4.1.1 cc rejects this. */
3862 char const *const *pcpcc;
3863 char **ppc;
3864 /* NEC SVR4.0.2 mips cc rejects this. */
3865 struct point {int x, y;};
3866 static struct point const zero = {0,0};
3867 /* AIX XL C 1.02.0.0 rejects this.
3868 It does not let you subtract one const X* pointer from another in
3869 an arm of an if-expression whose if-part is not a constant
3870 expression */
3871 const char *g = "string";
3872 pcpcc = &g + (g ? g-g : 0);
3873 /* HPUX 7.0 cc rejects these. */
3874 ++pcpcc;
3875 ppc = (char**) pcpcc;
3876 pcpcc = (char const *const *) ppc;
3877 { /* SCO 3.2v4 cc rejects this. */
3878 char *t;
3879 char const *s = 0 ? (char *) 0 : (char const *) 0;
3881 *t++ = 0;
3882 if (s) return 0;
3884 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3885 int x[] = {25, 17};
3886 const int *foo = &x[0];
3887 ++foo;
3889 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3890 typedef const int *iptr;
3891 iptr p = 0;
3892 ++p;
3894 { /* AIX XL C 1.02.0.0 rejects this saying
3895 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3896 struct s { int j; const int *ap[3]; };
3897 struct s *b; b->j = 5;
3899 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3900 const int foo = 10;
3901 if (!foo) return 0;
3903 return !cs[0] && !zero.x;
3904 #endif
3907 return 0;
3909 _ACEOF
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_cv_c_const=yes
3912 else
3913 ac_cv_c_const=no
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3918 $as_echo "$ac_cv_c_const" >&6; }
3919 if test $ac_cv_c_const = no; then
3921 $as_echo "#define const /**/" >>confdefs.h
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3926 $as_echo_n "checking for inline... " >&6; }
3927 if test "${ac_cv_c_inline+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 ac_cv_c_inline=no
3931 for ac_kw in inline __inline__ __inline; do
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #ifndef __cplusplus
3935 typedef int foo_t;
3936 static $ac_kw foo_t static_foo () {return 0; }
3937 $ac_kw foo_t foo () {return 0; }
3938 #endif
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_cv_c_inline=$ac_kw
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 test "$ac_cv_c_inline" != no && break
3946 done
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3950 $as_echo "$ac_cv_c_inline" >&6; }
3952 case $ac_cv_c_inline in
3953 inline | yes) ;;
3955 case $ac_cv_c_inline in
3956 no) ac_val=;;
3957 *) ac_val=$ac_cv_c_inline;;
3958 esac
3959 cat >>confdefs.h <<_ACEOF
3960 #ifndef __cplusplus
3961 #define inline $ac_val
3962 #endif
3963 _ACEOF
3965 esac
3967 case `pwd` in
3968 *\ * | *\ *)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3970 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3971 esac
3975 macro_version='2.2.6'
3976 macro_revision='1.3012'
3990 ltmain="$ac_aux_dir/ltmain.sh"
3992 # Make sure we can run config.sub.
3993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3994 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3997 $as_echo_n "checking build system type... " >&6; }
3998 if test "${ac_cv_build+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 ac_build_alias=$build_alias
4002 test "x$ac_build_alias" = x &&
4003 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4004 test "x$ac_build_alias" = x &&
4005 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4006 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4007 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4011 $as_echo "$ac_cv_build" >&6; }
4012 case $ac_cv_build in
4013 *-*-*) ;;
4014 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4015 esac
4016 build=$ac_cv_build
4017 ac_save_IFS=$IFS; IFS='-'
4018 set x $ac_cv_build
4019 shift
4020 build_cpu=$1
4021 build_vendor=$2
4022 shift; shift
4023 # Remember, the first character of IFS is used to create $*,
4024 # except with old shells:
4025 build_os=$*
4026 IFS=$ac_save_IFS
4027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4031 $as_echo_n "checking host system type... " >&6; }
4032 if test "${ac_cv_host+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test "x$host_alias" = x; then
4036 ac_cv_host=$ac_cv_build
4037 else
4038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4039 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4044 $as_echo "$ac_cv_host" >&6; }
4045 case $ac_cv_host in
4046 *-*-*) ;;
4047 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4048 esac
4049 host=$ac_cv_host
4050 ac_save_IFS=$IFS; IFS='-'
4051 set x $ac_cv_host
4052 shift
4053 host_cpu=$1
4054 host_vendor=$2
4055 shift; shift
4056 # Remember, the first character of IFS is used to create $*,
4057 # except with old shells:
4058 host_os=$*
4059 IFS=$ac_save_IFS
4060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4064 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4065 if test "${ac_cv_path_SED+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4069 for ac_i in 1 2 3 4 5 6 7; do
4070 ac_script="$ac_script$as_nl$ac_script"
4071 done
4072 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4073 { ac_script=; unset ac_script;}
4074 if test -z "$SED"; then
4075 ac_path_SED_found=false
4076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in sed gsed; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4085 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4086 # Check for GNU ac_path_SED and select it if it is found.
4087 # Check for GNU $ac_path_SED
4088 case `"$ac_path_SED" --version 2>&1` in
4089 *GNU*)
4090 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4092 ac_count=0
4093 $as_echo_n 0123456789 >"conftest.in"
4094 while :
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
4099 $as_echo '' >> "conftest.nl"
4100 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102 as_fn_arith $ac_count + 1 && ac_count=$as_val
4103 if test $ac_count -gt ${ac_path_SED_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_SED="$ac_path_SED"
4106 ac_path_SED_max=$ac_count
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 esac
4114 $ac_path_SED_found && break 3
4115 done
4116 done
4117 done
4118 IFS=$as_save_IFS
4119 if test -z "$ac_cv_path_SED"; then
4120 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4122 else
4123 ac_cv_path_SED=$SED
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4128 $as_echo "$ac_cv_path_SED" >&6; }
4129 SED="$ac_cv_path_SED"
4130 rm -f conftest.sed
4132 test -z "$SED" && SED=sed
4133 Xsed="$SED -e 1s/^X//"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4147 if test "${ac_cv_path_GREP+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -z "$GREP"; then
4151 ac_path_GREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in grep ggrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4161 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4162 # Check for GNU ac_path_GREP and select it if it is found.
4163 # Check for GNU $ac_path_GREP
4164 case `"$ac_path_GREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'GREP' >> "conftest.nl"
4176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_GREP="$ac_path_GREP"
4182 ac_path_GREP_max=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4190 $ac_path_GREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_GREP"; then
4196 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 else
4199 ac_cv_path_GREP=$GREP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4204 $as_echo "$ac_cv_path_GREP" >&6; }
4205 GREP="$ac_cv_path_GREP"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4209 $as_echo_n "checking for egrep... " >&6; }
4210 if test "${ac_cv_path_EGREP+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4214 then ac_cv_path_EGREP="$GREP -E"
4215 else
4216 if test -z "$EGREP"; then
4217 ac_path_EGREP_found=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_prog in egrep; do
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4227 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4228 # Check for GNU ac_path_EGREP and select it if it is found.
4229 # Check for GNU $ac_path_EGREP
4230 case `"$ac_path_EGREP" --version 2>&1` in
4231 *GNU*)
4232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234 ac_count=0
4235 $as_echo_n 0123456789 >"conftest.in"
4236 while :
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'EGREP' >> "conftest.nl"
4242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244 as_fn_arith $ac_count + 1 && ac_count=$as_val
4245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_EGREP="$ac_path_EGREP"
4248 ac_path_EGREP_max=$ac_count
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4252 done
4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 esac
4256 $ac_path_EGREP_found && break 3
4257 done
4258 done
4259 done
4260 IFS=$as_save_IFS
4261 if test -z "$ac_cv_path_EGREP"; then
4262 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 else
4265 ac_cv_path_EGREP=$EGREP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4271 $as_echo "$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4276 $as_echo_n "checking for fgrep... " >&6; }
4277 if test "${ac_cv_path_FGREP+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4281 then ac_cv_path_FGREP="$GREP -F"
4282 else
4283 if test -z "$FGREP"; then
4284 ac_path_FGREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in fgrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4295 # Check for GNU ac_path_FGREP and select it if it is found.
4296 # Check for GNU $ac_path_FGREP
4297 case `"$ac_path_FGREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'FGREP' >> "conftest.nl"
4309 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_FGREP="$ac_path_FGREP"
4315 ac_path_FGREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4323 $ac_path_FGREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_FGREP"; then
4329 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 else
4332 ac_cv_path_FGREP=$FGREP
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4338 $as_echo "$ac_cv_path_FGREP" >&6; }
4339 FGREP="$ac_cv_path_FGREP"
4342 test -z "$GREP" && GREP=grep
4362 # Check whether --with-gnu-ld was given.
4363 if test "${with_gnu_ld+set}" = set; then :
4364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4365 else
4366 with_gnu_ld=no
4369 ac_prog=ld
4370 if test "$GCC" = yes; then
4371 # Check if gcc -print-prog-name=ld gives a path.
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4373 $as_echo_n "checking for ld used by $CC... " >&6; }
4374 case $host in
4375 *-*-mingw*)
4376 # gcc leaves a trailing carriage return which upsets mingw
4377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4380 esac
4381 case $ac_prog in
4382 # Accept absolute paths.
4383 [\\/]* | ?:[\\/]*)
4384 re_direlt='/[^/][^/]*/\.\./'
4385 # Canonicalize the pathname of ld
4386 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4387 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4388 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4389 done
4390 test -z "$LD" && LD="$ac_prog"
4393 # If it fails, then pretend we aren't using GCC.
4394 ac_prog=ld
4397 # If it is relative, then search for the first ld in PATH.
4398 with_gnu_ld=unknown
4400 esac
4401 elif test "$with_gnu_ld" = yes; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4403 $as_echo_n "checking for GNU ld... " >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4406 $as_echo_n "checking for non-GNU ld... " >&6; }
4408 if test "${lt_cv_path_LD+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -z "$LD"; then
4412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4413 for ac_dir in $PATH; do
4414 IFS="$lt_save_ifs"
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4417 lt_cv_path_LD="$ac_dir/$ac_prog"
4418 # Check to see if the program is GNU ld. I'd rather use --version,
4419 # but apparently some variants of GNU ld only accept -v.
4420 # Break only if it was the GNU/non-GNU ld that we prefer.
4421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4422 *GNU* | *'with BFD'*)
4423 test "$with_gnu_ld" != no && break
4426 test "$with_gnu_ld" != yes && break
4428 esac
4430 done
4431 IFS="$lt_save_ifs"
4432 else
4433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4437 LD="$lt_cv_path_LD"
4438 if test -n "$LD"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4440 $as_echo "$LD" >&6; }
4441 else
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4445 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4448 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4452 case `$LD -v 2>&1 </dev/null` in
4453 *GNU* | *'with BFD'*)
4454 lt_cv_prog_gnu_ld=yes
4457 lt_cv_prog_gnu_ld=no
4459 esac
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4462 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4463 with_gnu_ld=$lt_cv_prog_gnu_ld
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4474 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4475 if test "${lt_cv_path_NM+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$NM"; then
4479 # Let the user override the test.
4480 lt_cv_path_NM="$NM"
4481 else
4482 lt_nm_to_check="${ac_tool_prefix}nm"
4483 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4484 lt_nm_to_check="$lt_nm_to_check nm"
4486 for lt_tmp_nm in $lt_nm_to_check; do
4487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4488 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4489 IFS="$lt_save_ifs"
4490 test -z "$ac_dir" && ac_dir=.
4491 tmp_nm="$ac_dir/$lt_tmp_nm"
4492 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4493 # Check to see if the nm accepts a BSD-compat flag.
4494 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4495 # nm: unknown option "B" ignored
4496 # Tru64's nm complains that /dev/null is an invalid object file
4497 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4498 */dev/null* | *'Invalid file or object type'*)
4499 lt_cv_path_NM="$tmp_nm -B"
4500 break
4503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4504 */dev/null*)
4505 lt_cv_path_NM="$tmp_nm -p"
4506 break
4509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4510 continue # so that we can try to find one that supports BSD flags
4512 esac
4514 esac
4516 done
4517 IFS="$lt_save_ifs"
4518 done
4519 : ${lt_cv_path_NM=no}
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4523 $as_echo "$lt_cv_path_NM" >&6; }
4524 if test "$lt_cv_path_NM" != "no"; then
4525 NM="$lt_cv_path_NM"
4526 else
4527 # Didn't find any BSD compatible name lister, look for dumpbin.
4528 if test -n "$ac_tool_prefix"; then
4529 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$DUMPBIN"; then
4539 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4558 DUMPBIN=$ac_cv_prog_DUMPBIN
4559 if test -n "$DUMPBIN"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4561 $as_echo "$DUMPBIN" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4568 test -n "$DUMPBIN" && break
4569 done
4571 if test -z "$DUMPBIN"; then
4572 ac_ct_DUMPBIN=$DUMPBIN
4573 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4575 # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy $ac_prog; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_DUMPBIN"; then
4583 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4596 done
4597 done
4598 IFS=$as_save_IFS
4602 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4603 if test -n "$ac_ct_DUMPBIN"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4605 $as_echo "$ac_ct_DUMPBIN" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4612 test -n "$ac_ct_DUMPBIN" && break
4613 done
4615 if test "x$ac_ct_DUMPBIN" = x; then
4616 DUMPBIN=":"
4617 else
4618 case $cross_compiling:$ac_tool_warned in
4619 yes:)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned=yes ;;
4623 esac
4624 DUMPBIN=$ac_ct_DUMPBIN
4629 if test "$DUMPBIN" != ":"; then
4630 NM="$DUMPBIN"
4633 test -z "$NM" && NM=nm
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4641 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4642 if test "${lt_cv_nm_interface+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 lt_cv_nm_interface="BSD nm"
4646 echo "int some_variable = 0;" > conftest.$ac_ext
4647 (eval echo "\"\$as_me:4647: $ac_compile\"" >&5)
4648 (eval "$ac_compile" 2>conftest.err)
4649 cat conftest.err >&5
4650 (eval echo "\"\$as_me:4650: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4652 cat conftest.err >&5
4653 (eval echo "\"\$as_me:4653: output\"" >&5)
4654 cat conftest.out >&5
4655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4656 lt_cv_nm_interface="MS dumpbin"
4658 rm -f conftest*
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4661 $as_echo "$lt_cv_nm_interface" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4664 $as_echo_n "checking whether ln -s works... " >&6; }
4665 LN_S=$as_ln_s
4666 if test "$LN_S" = "ln -s"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4668 $as_echo "yes" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4671 $as_echo "no, using $LN_S" >&6; }
4674 # find the maximum length of command line arguments
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4676 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4677 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4681 teststring="ABCD"
4683 case $build_os in
4684 msdosdjgpp*)
4685 # On DJGPP, this test can blow up pretty badly due to problems in libc
4686 # (any single argument exceeding 2000 bytes causes a buffer overrun
4687 # during glob expansion). Even if it were fixed, the result of this
4688 # check would be larger than it should be.
4689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4692 gnu*)
4693 # Under GNU Hurd, this test is not required because there is
4694 # no limit to the length of command line arguments.
4695 # Libtool will interpret -1 as no limit whatsoever
4696 lt_cv_sys_max_cmd_len=-1;
4699 cygwin* | mingw* | cegcc*)
4700 # On Win9x/ME, this test blows up -- it succeeds, but takes
4701 # about 5 minutes as the teststring grows exponentially.
4702 # Worse, since 9x/ME are not pre-emptively multitasking,
4703 # you end up with a "frozen" computer, even though with patience
4704 # the test eventually succeeds (with a max line length of 256k).
4705 # Instead, let's just punt: use the minimum linelength reported by
4706 # all of the supported platforms: 8192 (on NT/2K/XP).
4707 lt_cv_sys_max_cmd_len=8192;
4710 amigaos*)
4711 # On AmigaOS with pdksh, this test takes hours, literally.
4712 # So we just punt and use a minimum line length of 8192.
4713 lt_cv_sys_max_cmd_len=8192;
4716 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4717 # This has been around since 386BSD, at least. Likely further.
4718 if test -x /sbin/sysctl; then
4719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4720 elif test -x /usr/sbin/sysctl; then
4721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4722 else
4723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4725 # And add a safety zone
4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4730 interix*)
4731 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4732 lt_cv_sys_max_cmd_len=196608
4735 osf*)
4736 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4737 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4738 # nice to cause kernel panics so lets avoid the loop below.
4739 # First set a reasonable default.
4740 lt_cv_sys_max_cmd_len=16384
4742 if test -x /sbin/sysconfig; then
4743 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4744 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4745 esac
4748 sco3.2v5*)
4749 lt_cv_sys_max_cmd_len=102400
4751 sysv5* | sco5v6* | sysv4.2uw2*)
4752 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4753 if test -n "$kargmax"; then
4754 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4755 else
4756 lt_cv_sys_max_cmd_len=32768
4760 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4761 if test -n "$lt_cv_sys_max_cmd_len"; then
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4764 else
4765 # Make teststring a little bigger before we do anything with it.
4766 # a 1K string should be a reasonable start.
4767 for i in 1 2 3 4 5 6 7 8 ; do
4768 teststring=$teststring$teststring
4769 done
4770 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4771 # If test is not a shell built-in, we'll probably end up computing a
4772 # maximum length that is only half of the actual maximum length, but
4773 # we can't tell.
4774 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4775 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4776 test $i != 17 # 1/2 MB should be enough
4778 i=`expr $i + 1`
4779 teststring=$teststring$teststring
4780 done
4781 # Only check the string length outside the loop.
4782 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4783 teststring=
4784 # Add a significant safety factor because C++ compilers can tack on
4785 # massive amounts of additional arguments before passing them to the
4786 # linker. It appears as though 1/2 is a usable value.
4787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4790 esac
4794 if test -n $lt_cv_sys_max_cmd_len ; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4796 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4799 $as_echo "none" >&6; }
4801 max_cmd_len=$lt_cv_sys_max_cmd_len
4808 : ${CP="cp -f"}
4809 : ${MV="mv -f"}
4810 : ${RM="rm -f"}
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4813 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4814 # Try some XSI features
4815 xsi_shell=no
4816 ( _lt_dummy="a/b/c"
4817 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4818 = c,a/b,, \
4819 && eval 'test $(( 1 + 1 )) -eq 2 \
4820 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4821 && xsi_shell=yes
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4823 $as_echo "$xsi_shell" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4827 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4828 lt_shell_append=no
4829 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4830 >/dev/null 2>&1 \
4831 && lt_shell_append=yes
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4833 $as_echo "$lt_shell_append" >&6; }
4836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4837 lt_unset=unset
4838 else
4839 lt_unset=false
4846 # test EBCDIC or ASCII
4847 case `echo X|tr X '\101'` in
4848 A) # ASCII based system
4849 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4850 lt_SP2NL='tr \040 \012'
4851 lt_NL2SP='tr \015\012 \040\040'
4853 *) # EBCDIC based system
4854 lt_SP2NL='tr \100 \n'
4855 lt_NL2SP='tr \r\n \100\100'
4857 esac
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4868 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4869 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 lt_cv_ld_reload_flag='-r'
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4875 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4876 reload_flag=$lt_cv_ld_reload_flag
4877 case $reload_flag in
4878 "" | " "*) ;;
4879 *) reload_flag=" $reload_flag" ;;
4880 esac
4881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4882 case $host_os in
4883 darwin*)
4884 if test "$GCC" = yes; then
4885 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4886 else
4887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4890 esac
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$OBJDUMP"; then
4909 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4928 OBJDUMP=$ac_cv_prog_OBJDUMP
4929 if test -n "$OBJDUMP"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4931 $as_echo "$OBJDUMP" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_OBJDUMP"; then
4940 ac_ct_OBJDUMP=$OBJDUMP
4941 # Extract the first word of "objdump", so it can be a program name with args.
4942 set dummy objdump; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$ac_ct_OBJDUMP"; then
4949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4969 if test -n "$ac_ct_OBJDUMP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4971 $as_echo "$ac_ct_OBJDUMP" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_OBJDUMP" = x; then
4978 OBJDUMP="false"
4979 else
4980 case $cross_compiling:$ac_tool_warned in
4981 yes:)
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned=yes ;;
4985 esac
4986 OBJDUMP=$ac_ct_OBJDUMP
4988 else
4989 OBJDUMP="$ac_cv_prog_OBJDUMP"
4992 test -z "$OBJDUMP" && OBJDUMP=objdump
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5004 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 lt_cv_file_magic_cmd='$MAGIC_CMD'
5008 lt_cv_file_magic_test_file=
5009 lt_cv_deplibs_check_method='unknown'
5010 # Need to set the preceding variable on all platforms that support
5011 # interlibrary dependencies.
5012 # 'none' -- dependencies not supported.
5013 # `unknown' -- same as none, but documents that we really don't know.
5014 # 'pass_all' -- all dependencies passed with no checks.
5015 # 'test_compile' -- check by making test program.
5016 # 'file_magic [[regex]]' -- check by looking for files in library path
5017 # which responds to the $file_magic_cmd with a given extended regex.
5018 # If you have `file' or equivalent on your system and you're not sure
5019 # whether `pass_all' will *always* work, you probably want this one.
5021 case $host_os in
5022 aix[4-9]*)
5023 lt_cv_deplibs_check_method=pass_all
5026 beos*)
5027 lt_cv_deplibs_check_method=pass_all
5030 bsdi[45]*)
5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5032 lt_cv_file_magic_cmd='/usr/bin/file -L'
5033 lt_cv_file_magic_test_file=/shlib/libc.so
5036 cygwin*)
5037 # func_win32_libid is a shell function defined in ltmain.sh
5038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5039 lt_cv_file_magic_cmd='func_win32_libid'
5042 mingw* | pw32*)
5043 # Base MSYS/MinGW do not provide the 'file' command needed by
5044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5045 # unless we find 'file', for example because we are cross-compiling.
5046 if ( file / ) >/dev/null 2>&1; then
5047 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5048 lt_cv_file_magic_cmd='func_win32_libid'
5049 else
5050 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5051 lt_cv_file_magic_cmd='$OBJDUMP -f'
5055 cegcc)
5056 # use the weaker test based on 'objdump'. See mingw*.
5057 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5058 lt_cv_file_magic_cmd='$OBJDUMP -f'
5061 darwin* | rhapsody*)
5062 lt_cv_deplibs_check_method=pass_all
5065 freebsd* | dragonfly*)
5066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5067 case $host_cpu in
5068 i*86 )
5069 # Not sure whether the presence of OpenBSD here was a mistake.
5070 # Let's accept both of them until this is cleared up.
5071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5072 lt_cv_file_magic_cmd=/usr/bin/file
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5075 esac
5076 else
5077 lt_cv_deplibs_check_method=pass_all
5081 gnu*)
5082 lt_cv_deplibs_check_method=pass_all
5085 hpux10.20* | hpux11*)
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 case $host_cpu in
5088 ia64*)
5089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5092 hppa*64*)
5093 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]'
5094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5100 esac
5103 interix[3-9]*)
5104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5108 irix5* | irix6* | nonstopux*)
5109 case $LD in
5110 *-32|*"-32 ") libmagic=32-bit;;
5111 *-n32|*"-n32 ") libmagic=N32;;
5112 *-64|*"-64 ") libmagic=64-bit;;
5113 *) libmagic=never-match;;
5114 esac
5115 lt_cv_deplibs_check_method=pass_all
5118 # This must be Linux ELF.
5119 linux* | k*bsd*-gnu)
5120 lt_cv_deplibs_check_method=pass_all
5123 netbsd*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126 else
5127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5131 newos6*)
5132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5133 lt_cv_file_magic_cmd=/usr/bin/file
5134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5137 *nto* | *qnx*)
5138 lt_cv_deplibs_check_method=pass_all
5141 openbsd*)
5142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5144 else
5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5149 osf3* | osf4* | osf5*)
5150 lt_cv_deplibs_check_method=pass_all
5153 rdos*)
5154 lt_cv_deplibs_check_method=pass_all
5157 solaris*)
5158 lt_cv_deplibs_check_method=pass_all
5161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5162 lt_cv_deplibs_check_method=pass_all
5165 sysv4 | sysv4.3*)
5166 case $host_vendor in
5167 motorola)
5168 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]'
5169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5171 ncr)
5172 lt_cv_deplibs_check_method=pass_all
5174 sequent)
5175 lt_cv_file_magic_cmd='/bin/file'
5176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5178 sni)
5179 lt_cv_file_magic_cmd='/bin/file'
5180 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5181 lt_cv_file_magic_test_file=/lib/libc.so
5183 siemens)
5184 lt_cv_deplibs_check_method=pass_all
5187 lt_cv_deplibs_check_method=pass_all
5189 esac
5192 tpf*)
5193 lt_cv_deplibs_check_method=pass_all
5195 esac
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5199 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5200 file_magic_cmd=$lt_cv_file_magic_cmd
5201 deplibs_check_method=$lt_cv_deplibs_check_method
5202 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}ar; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_AR+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$AR"; then
5224 ac_cv_prog_AR="$AR" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_AR="${ac_tool_prefix}ar"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 AR=$ac_cv_prog_AR
5244 if test -n "$AR"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5246 $as_echo "$AR" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_AR"; then
5255 ac_ct_AR=$AR
5256 # Extract the first word of "ar", so it can be a program name with args.
5257 set dummy ar; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$ac_ct_AR"; then
5264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_AR="ar"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5284 if test -n "$ac_ct_AR"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5286 $as_echo "$ac_ct_AR" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_AR" = x; then
5293 AR="false"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 AR=$ac_ct_AR
5303 else
5304 AR="$ac_cv_prog_AR"
5307 test -z "$AR" && AR=ar
5308 test -z "$AR_FLAGS" && AR_FLAGS=cru
5320 if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5322 set dummy ${ac_tool_prefix}strip; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if test "${ac_cv_prog_STRIP+set}" = set; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$STRIP"; then
5329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 STRIP=$ac_cv_prog_STRIP
5349 if test -n "$STRIP"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5351 $as_echo "$STRIP" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5359 if test -z "$ac_cv_prog_STRIP"; then
5360 ac_ct_STRIP=$STRIP
5361 # Extract the first word of "strip", so it can be a program name with args.
5362 set dummy strip; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$ac_ct_STRIP"; then
5369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_ac_ct_STRIP="strip"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5389 if test -n "$ac_ct_STRIP"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5391 $as_echo "$ac_ct_STRIP" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5397 if test "x$ac_ct_STRIP" = x; then
5398 STRIP=":"
5399 else
5400 case $cross_compiling:$ac_tool_warned in
5401 yes:)
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404 ac_tool_warned=yes ;;
5405 esac
5406 STRIP=$ac_ct_STRIP
5408 else
5409 STRIP="$ac_cv_prog_STRIP"
5412 test -z "$STRIP" && STRIP=:
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$RANLIB"; then
5428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5441 done
5442 done
5443 IFS=$as_save_IFS
5447 RANLIB=$ac_cv_prog_RANLIB
5448 if test -n "$RANLIB"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5450 $as_echo "$RANLIB" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5458 if test -z "$ac_cv_prog_RANLIB"; then
5459 ac_ct_RANLIB=$RANLIB
5460 # Extract the first word of "ranlib", so it can be a program name with args.
5461 set dummy ranlib; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_RANLIB"; then
5468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_ac_ct_RANLIB="ranlib"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488 if test -n "$ac_ct_RANLIB"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5490 $as_echo "$ac_ct_RANLIB" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5496 if test "x$ac_ct_RANLIB" = x; then
5497 RANLIB=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 RANLIB=$ac_ct_RANLIB
5507 else
5508 RANLIB="$ac_cv_prog_RANLIB"
5511 test -z "$RANLIB" && RANLIB=:
5518 # Determine commands to create old-style static archives.
5519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5520 old_postinstall_cmds='chmod 644 $oldlib'
5521 old_postuninstall_cmds=
5523 if test -n "$RANLIB"; then
5524 case $host_os in
5525 openbsd*)
5526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5531 esac
5532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5568 # If no C compiler was specified, use CC.
5569 LTCC=${LTCC-"$CC"}
5571 # If no C compiler flags were specified, use CFLAGS.
5572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5574 # Allow CC to be a program name with arguments.
5575 compiler=$CC
5578 # Check for command to grab the raw symbol name followed by C symbol from nm.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5585 # These are sane defaults that work on at least a few old systems.
5586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5588 # Character class describing NM global symbol codes.
5589 symcode='[BCDEGRST]'
5591 # Regexp to match symbols that can be accessed directly from C.
5592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5594 # Define system-specific variables.
5595 case $host_os in
5596 aix*)
5597 symcode='[BCDT]'
5599 cygwin* | mingw* | pw32* | cegcc*)
5600 symcode='[ABCDGISTW]'
5602 hpux*)
5603 if test "$host_cpu" = ia64; then
5604 symcode='[ABCDEGRST]'
5607 irix* | nonstopux*)
5608 symcode='[BCDEGRST]'
5610 osf*)
5611 symcode='[BCDEGQRST]'
5613 solaris*)
5614 symcode='[BDRT]'
5616 sco3.2v5*)
5617 symcode='[DT]'
5619 sysv4.2uw2*)
5620 symcode='[DT]'
5622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5623 symcode='[ABDT]'
5625 sysv4)
5626 symcode='[DFNSTU]'
5628 esac
5630 # If we're using GNU nm, then use its standard symbol codes.
5631 case `$NM -V 2>&1` in
5632 *GNU* | *'with BFD'*)
5633 symcode='[ABCDGIRSTW]' ;;
5634 esac
5636 # Transform an extracted symbol line into a proper C declaration.
5637 # Some systems (esp. on ia64) link data and code symbols differently,
5638 # so use this general approach.
5639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641 # Transform an extracted symbol line into symbol name and symbol address
5642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5643 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'"
5645 # Handle CRLF in mingw tool chain
5646 opt_cr=
5647 case $build_os in
5648 mingw*)
5649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5651 esac
5653 # Try without a prefix underscore, then with it.
5654 for ac_symprfx in "" "_"; do
5656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5657 symxfrm="\\1 $ac_symprfx\\2 \\2"
5659 # Write the raw and C identifiers.
5660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5661 # Fake it for dumpbin and say T for any non-static function
5662 # and D for any global variable.
5663 # Also find C++ and __fastcall symbols from MSVC++,
5664 # which start with @ or ?.
5665 lt_cv_sys_global_symbol_pipe="$AWK '"\
5666 " {last_section=section; section=\$ 3};"\
5667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668 " \$ 0!~/External *\|/{next};"\
5669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5670 " {if(hide[section]) next};"\
5671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5675 " ' prfx=^$ac_symprfx"
5676 else
5677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5680 # Check to see that the pipe works correctly.
5681 pipe_works=no
5683 rm -f conftest*
5684 cat > conftest.$ac_ext <<_LT_EOF
5685 #ifdef __cplusplus
5686 extern "C" {
5687 #endif
5688 char nm_test_var;
5689 void nm_test_func(void);
5690 void nm_test_func(void){}
5691 #ifdef __cplusplus
5693 #endif
5694 int main(){nm_test_var='a';nm_test_func();return(0);}
5695 _LT_EOF
5697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698 (eval $ac_compile) 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; then
5702 # Now try to grab the symbols.
5703 nlist=conftest.nm
5704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5705 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5706 ac_status=$?
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; } && test -s "$nlist"; then
5709 # Try sorting and uniquifying the output.
5710 if sort "$nlist" | uniq > "$nlist"T; then
5711 mv -f "$nlist"T "$nlist"
5712 else
5713 rm -f "$nlist"T
5716 # Make sure that we snagged all the symbols we need.
5717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5719 cat <<_LT_EOF > conftest.$ac_ext
5720 #ifdef __cplusplus
5721 extern "C" {
5722 #endif
5724 _LT_EOF
5725 # Now generate the symbol file.
5726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5728 cat <<_LT_EOF >> conftest.$ac_ext
5730 /* The mapping between symbol names and symbols. */
5731 const struct {
5732 const char *name;
5733 void *address;
5735 lt__PROGRAM__LTX_preloaded_symbols[] =
5737 { "@PROGRAM@", (void *) 0 },
5738 _LT_EOF
5739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5740 cat <<\_LT_EOF >> conftest.$ac_ext
5741 {0, (void *) 0}
5744 /* This works around a problem in FreeBSD linker */
5745 #ifdef FREEBSD_WORKAROUND
5746 static const void *lt_preloaded_setup() {
5747 return lt__PROGRAM__LTX_preloaded_symbols;
5749 #endif
5751 #ifdef __cplusplus
5753 #endif
5754 _LT_EOF
5755 # Now try linking the two files.
5756 mv conftest.$ac_objext conftstm.$ac_objext
5757 lt_save_LIBS="$LIBS"
5758 lt_save_CFLAGS="$CFLAGS"
5759 LIBS="conftstm.$ac_objext"
5760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5762 (eval $ac_link) 2>&5
5763 ac_status=$?
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5766 pipe_works=yes
5768 LIBS="$lt_save_LIBS"
5769 CFLAGS="$lt_save_CFLAGS"
5770 else
5771 echo "cannot find nm_test_func in $nlist" >&5
5773 else
5774 echo "cannot find nm_test_var in $nlist" >&5
5776 else
5777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5779 else
5780 echo "$progname: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 rm -rf conftest* conftst*
5785 # Do not use the global_symbol_pipe unless it works.
5786 if test "$pipe_works" = yes; then
5787 break
5788 else
5789 lt_cv_sys_global_symbol_pipe=
5791 done
5795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5796 lt_cv_sys_global_symbol_to_cdecl=
5798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5800 $as_echo "failed" >&6; }
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5803 $as_echo "ok" >&6; }
5827 # Check whether --enable-libtool-lock was given.
5828 if test "${enable_libtool_lock+set}" = set; then :
5829 enableval=$enable_libtool_lock;
5832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5834 # Some flags need to be propagated to the compiler or linker for good
5835 # libtool support.
5836 case $host in
5837 ia64-*-hpux*)
5838 # Find out which ABI we are using.
5839 echo 'int i;' > conftest.$ac_ext
5840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5841 (eval $ac_compile) 2>&5
5842 ac_status=$?
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }; then
5845 case `/usr/bin/file conftest.$ac_objext` in
5846 *ELF-32*)
5847 HPUX_IA64_MODE="32"
5849 *ELF-64*)
5850 HPUX_IA64_MODE="64"
5852 esac
5854 rm -rf conftest*
5856 *-*-irix6*)
5857 # Find out which ABI we are using.
5858 echo '#line 5858 "configure"' > conftest.$ac_ext
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 if test "$lt_cv_prog_gnu_ld" = yes; then
5865 case `/usr/bin/file conftest.$ac_objext` in
5866 *32-bit*)
5867 LD="${LD-ld} -melf32bsmip"
5869 *N32*)
5870 LD="${LD-ld} -melf32bmipn32"
5872 *64-bit*)
5873 LD="${LD-ld} -melf64bmip"
5875 esac
5876 else
5877 case `/usr/bin/file conftest.$ac_objext` in
5878 *32-bit*)
5879 LD="${LD-ld} -32"
5881 *N32*)
5882 LD="${LD-ld} -n32"
5884 *64-bit*)
5885 LD="${LD-ld} -64"
5887 esac
5890 rm -rf conftest*
5893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; then
5902 case `/usr/bin/file conftest.o` in
5903 *32-bit*)
5904 case $host in
5905 x86_64-*kfreebsd*-gnu)
5906 LD="${LD-ld} -m elf_i386_fbsd"
5908 x86_64-*linux*)
5909 LD="${LD-ld} -m elf_i386"
5911 ppc64-*linux*|powerpc64-*linux*)
5912 LD="${LD-ld} -m elf32ppclinux"
5914 s390x-*linux*)
5915 LD="${LD-ld} -m elf_s390"
5917 sparc64-*linux*)
5918 LD="${LD-ld} -m elf32_sparc"
5920 esac
5922 *64-bit*)
5923 case $host in
5924 x86_64-*kfreebsd*-gnu)
5925 LD="${LD-ld} -m elf_x86_64_fbsd"
5927 x86_64-*linux*)
5928 LD="${LD-ld} -m elf_x86_64"
5930 ppc*-*linux*|powerpc*-*linux*)
5931 LD="${LD-ld} -m elf64ppc"
5933 s390*-*linux*|s390*-*tpf*)
5934 LD="${LD-ld} -m elf64_s390"
5936 sparc*-*linux*)
5937 LD="${LD-ld} -m elf64_sparc"
5939 esac
5941 esac
5943 rm -rf conftest*
5946 *-*-sco3.2v5*)
5947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948 SAVE_CFLAGS="$CFLAGS"
5949 CFLAGS="$CFLAGS -belf"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5951 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5952 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 ac_ext=c
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5965 main ()
5969 return 0;
5971 _ACEOF
5972 if ac_fn_c_try_link "$LINENO"; then :
5973 lt_cv_cc_needs_belf=yes
5974 else
5975 lt_cv_cc_needs_belf=no
5977 rm -f core conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
5979 ac_ext=c
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5987 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5990 CFLAGS="$SAVE_CFLAGS"
5993 sparc*-*solaris*)
5994 # Find out which ABI we are using.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997 (eval $ac_compile) 2>&5
5998 ac_status=$?
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }; then
6001 case `/usr/bin/file conftest.o` in
6002 *64-bit*)
6003 case $lt_cv_prog_gnu_ld in
6004 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6006 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6007 LD="${LD-ld} -64"
6010 esac
6012 esac
6014 rm -rf conftest*
6016 esac
6018 need_locks="$enable_libtool_lock"
6021 case $host_os in
6022 rhapsody* | darwin*)
6023 if test -n "$ac_tool_prefix"; then
6024 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6025 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$DSYMUTIL"; then
6032 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6045 done
6046 done
6047 IFS=$as_save_IFS
6051 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6052 if test -n "$DSYMUTIL"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6054 $as_echo "$DSYMUTIL" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6062 if test -z "$ac_cv_prog_DSYMUTIL"; then
6063 ac_ct_DSYMUTIL=$DSYMUTIL
6064 # Extract the first word of "dsymutil", so it can be a program name with args.
6065 set dummy dsymutil; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if test -n "$ac_ct_DSYMUTIL"; then
6072 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6085 done
6086 done
6087 IFS=$as_save_IFS
6091 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6092 if test -n "$ac_ct_DSYMUTIL"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6094 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6100 if test "x$ac_ct_DSYMUTIL" = x; then
6101 DSYMUTIL=":"
6102 else
6103 case $cross_compiling:$ac_tool_warned in
6104 yes:)
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107 ac_tool_warned=yes ;;
6108 esac
6109 DSYMUTIL=$ac_ct_DSYMUTIL
6111 else
6112 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$NMEDIT"; then
6124 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6137 done
6138 done
6139 IFS=$as_save_IFS
6143 NMEDIT=$ac_cv_prog_NMEDIT
6144 if test -n "$NMEDIT"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6146 $as_echo "$NMEDIT" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6154 if test -z "$ac_cv_prog_NMEDIT"; then
6155 ac_ct_NMEDIT=$NMEDIT
6156 # Extract the first word of "nmedit", so it can be a program name with args.
6157 set dummy nmedit; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$ac_ct_NMEDIT"; then
6164 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6183 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6184 if test -n "$ac_ct_NMEDIT"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6186 $as_echo "$ac_ct_NMEDIT" >&6; }
6187 else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6192 if test "x$ac_ct_NMEDIT" = x; then
6193 NMEDIT=":"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201 NMEDIT=$ac_ct_NMEDIT
6203 else
6204 NMEDIT="$ac_cv_prog_NMEDIT"
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_LIPO+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$LIPO"; then
6216 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6229 done
6230 done
6231 IFS=$as_save_IFS
6235 LIPO=$ac_cv_prog_LIPO
6236 if test -n "$LIPO"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6238 $as_echo "$LIPO" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6246 if test -z "$ac_cv_prog_LIPO"; then
6247 ac_ct_LIPO=$LIPO
6248 # Extract the first word of "lipo", so it can be a program name with args.
6249 set dummy lipo; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$ac_ct_LIPO"; then
6256 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_LIPO="lipo"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6269 done
6270 done
6271 IFS=$as_save_IFS
6275 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6276 if test -n "$ac_ct_LIPO"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6278 $as_echo "$ac_ct_LIPO" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6284 if test "x$ac_ct_LIPO" = x; then
6285 LIPO=":"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293 LIPO=$ac_ct_LIPO
6295 else
6296 LIPO="$ac_cv_prog_LIPO"
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}otool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$OTOOL"; then
6308 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6327 OTOOL=$ac_cv_prog_OTOOL
6328 if test -n "$OTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6330 $as_echo "$OTOOL" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_OTOOL"; then
6339 ac_ct_OTOOL=$OTOOL
6340 # Extract the first word of "otool", so it can be a program name with args.
6341 set dummy otool; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_OTOOL"; then
6348 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_ac_ct_OTOOL="otool"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6367 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6368 if test -n "$ac_ct_OTOOL"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6370 $as_echo "$ac_ct_OTOOL" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_OTOOL" = x; then
6377 OTOOL=":"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 OTOOL=$ac_ct_OTOOL
6387 else
6388 OTOOL="$ac_cv_prog_OTOOL"
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$OTOOL64"; then
6400 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 OTOOL64=$ac_cv_prog_OTOOL64
6420 if test -n "$OTOOL64"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6422 $as_echo "$OTOOL64" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6430 if test -z "$ac_cv_prog_OTOOL64"; then
6431 ac_ct_OTOOL64=$OTOOL64
6432 # Extract the first word of "otool64", so it can be a program name with args.
6433 set dummy otool64; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_OTOOL64"; then
6440 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_OTOOL64="otool64"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6453 done
6454 done
6455 IFS=$as_save_IFS
6459 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6460 if test -n "$ac_ct_OTOOL64"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6462 $as_echo "$ac_ct_OTOOL64" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 if test "x$ac_ct_OTOOL64" = x; then
6469 OTOOL64=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$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;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 OTOOL64=$ac_ct_OTOOL64
6479 else
6480 OTOOL64="$ac_cv_prog_OTOOL64"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6510 $as_echo_n "checking for -single_module linker flag... " >&6; }
6511 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 lt_cv_apple_cc_single_mod=no
6515 if test -z "${LT_MULTI_MODULE}"; then
6516 # By default we will add the -single_module flag. You can override
6517 # by either setting the environment variable LT_MULTI_MODULE
6518 # non-empty at configure time, or by adding -multi_module to the
6519 # link flags.
6520 rm -rf libconftest.dylib*
6521 echo "int foo(void){return 1;}" > conftest.c
6522 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6523 -dynamiclib -Wl,-single_module conftest.c" >&5
6524 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6525 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6526 _lt_result=$?
6527 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6528 lt_cv_apple_cc_single_mod=yes
6529 else
6530 cat conftest.err >&5
6532 rm -rf libconftest.dylib*
6533 rm -f conftest.*
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6537 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6539 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6540 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 lt_cv_ld_exported_symbols_list=no
6544 save_LDFLAGS=$LDFLAGS
6545 echo "_main" > conftest.sym
6546 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 main ()
6555 return 0;
6557 _ACEOF
6558 if ac_fn_c_try_link "$LINENO"; then :
6559 lt_cv_ld_exported_symbols_list=yes
6560 else
6561 lt_cv_ld_exported_symbols_list=no
6563 rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 LDFLAGS="$save_LDFLAGS"
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6569 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6570 case $host_os in
6571 rhapsody* | darwin1.[012])
6572 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6573 darwin1.*)
6574 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6575 darwin*) # darwin 5.x on
6576 # if running on 10.5 or later, the deployment target defaults
6577 # to the OS version, if on x86, and 10.4, the deployment
6578 # target defaults to 10.4. Don't you love it?
6579 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6580 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6581 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6582 10.[012]*)
6583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6584 10.*)
6585 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6586 esac
6588 esac
6589 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6590 _lt_dar_single_mod='$single_module'
6592 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6593 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6594 else
6595 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6597 if test "$DSYMUTIL" != ":"; then
6598 _lt_dsymutil='~$DSYMUTIL $lib || :'
6599 else
6600 _lt_dsymutil=
6603 esac
6605 ac_ext=c
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6611 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6612 # On Suns, sometimes $CPP names a directory.
6613 if test -n "$CPP" && test -d "$CPP"; then
6614 CPP=
6616 if test -z "$CPP"; then
6617 if test "${ac_cv_prog_CPP+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 # Double quotes because CPP needs to be expanded
6621 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6623 ac_preproc_ok=false
6624 for ac_c_preproc_warn_flag in '' yes
6626 # Use a header file that comes with gcc, so configuring glibc
6627 # with a fresh cross-compiler works.
6628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629 # <limits.h> exists even on freestanding compilers.
6630 # On the NeXT, cc -E runs the code through the compiler's parser,
6631 # not just through cpp. "Syntax error" is here to catch this case.
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634 #ifdef __STDC__
6635 # include <limits.h>
6636 #else
6637 # include <assert.h>
6638 #endif
6639 Syntax error
6640 _ACEOF
6641 if ac_fn_c_try_cpp "$LINENO"; then :
6643 else
6644 # Broken: fails on valid input.
6645 continue
6647 rm -f conftest.err conftest.$ac_ext
6649 # OK, works on sane cases. Now check whether nonexistent headers
6650 # can be detected and how.
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <ac_nonexistent.h>
6654 _ACEOF
6655 if ac_fn_c_try_cpp "$LINENO"; then :
6656 # Broken: success on invalid input.
6657 continue
6658 else
6659 # Passes both tests.
6660 ac_preproc_ok=:
6661 break
6663 rm -f conftest.err conftest.$ac_ext
6665 done
6666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667 rm -f conftest.err conftest.$ac_ext
6668 if $ac_preproc_ok; then :
6669 break
6672 done
6673 ac_cv_prog_CPP=$CPP
6676 CPP=$ac_cv_prog_CPP
6677 else
6678 ac_cv_prog_CPP=$CPP
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6681 $as_echo "$CPP" >&6; }
6682 ac_preproc_ok=false
6683 for ac_c_preproc_warn_flag in '' yes
6685 # Use a header file that comes with gcc, so configuring glibc
6686 # with a fresh cross-compiler works.
6687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688 # <limits.h> exists even on freestanding compilers.
6689 # On the NeXT, cc -E runs the code through the compiler's parser,
6690 # not just through cpp. "Syntax error" is here to catch this case.
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #ifdef __STDC__
6694 # include <limits.h>
6695 #else
6696 # include <assert.h>
6697 #endif
6698 Syntax error
6699 _ACEOF
6700 if ac_fn_c_try_cpp "$LINENO"; then :
6702 else
6703 # Broken: fails on valid input.
6704 continue
6706 rm -f conftest.err conftest.$ac_ext
6708 # OK, works on sane cases. Now check whether nonexistent headers
6709 # can be detected and how.
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <ac_nonexistent.h>
6713 _ACEOF
6714 if ac_fn_c_try_cpp "$LINENO"; then :
6715 # Broken: success on invalid input.
6716 continue
6717 else
6718 # Passes both tests.
6719 ac_preproc_ok=:
6720 break
6722 rm -f conftest.err conftest.$ac_ext
6724 done
6725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6726 rm -f conftest.err conftest.$ac_ext
6727 if $ac_preproc_ok; then :
6729 else
6730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6732 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6733 See \`config.log' for more details." "$LINENO" 5; }
6736 ac_ext=c
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6744 $as_echo_n "checking for ANSI C header files... " >&6; }
6745 if test "${ac_cv_header_stdc+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <stdlib.h>
6751 #include <stdarg.h>
6752 #include <string.h>
6753 #include <float.h>
6756 main ()
6760 return 0;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 ac_cv_header_stdc=yes
6765 else
6766 ac_cv_header_stdc=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 if test $ac_cv_header_stdc = yes; then
6771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 #include <string.h>
6776 _ACEOF
6777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778 $EGREP "memchr" >/dev/null 2>&1; then :
6780 else
6781 ac_cv_header_stdc=no
6783 rm -f conftest*
6787 if test $ac_cv_header_stdc = yes; then
6788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <stdlib.h>
6793 _ACEOF
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795 $EGREP "free" >/dev/null 2>&1; then :
6797 else
6798 ac_cv_header_stdc=no
6800 rm -f conftest*
6804 if test $ac_cv_header_stdc = yes; then
6805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6806 if test "$cross_compiling" = yes; then :
6808 else
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 #include <ctype.h>
6812 #include <stdlib.h>
6813 #if ((' ' & 0x0FF) == 0x020)
6814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6816 #else
6817 # define ISLOWER(c) \
6818 (('a' <= (c) && (c) <= 'i') \
6819 || ('j' <= (c) && (c) <= 'r') \
6820 || ('s' <= (c) && (c) <= 'z'))
6821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6822 #endif
6824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6826 main ()
6828 int i;
6829 for (i = 0; i < 256; i++)
6830 if (XOR (islower (i), ISLOWER (i))
6831 || toupper (i) != TOUPPER (i))
6832 return 2;
6833 return 0;
6835 _ACEOF
6836 if ac_fn_c_try_run "$LINENO"; then :
6838 else
6839 ac_cv_header_stdc=no
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6848 $as_echo "$ac_cv_header_stdc" >&6; }
6849 if test $ac_cv_header_stdc = yes; then
6851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6857 inttypes.h stdint.h unistd.h
6858 do :
6859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6862 eval as_val=\$$as_ac_Header
6863 if test "x$as_val" = x""yes; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6870 done
6873 for ac_header in dlfcn.h
6874 do :
6875 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6877 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_DLFCN_H 1
6880 _ACEOF
6884 done
6888 # Set options
6892 enable_dlopen=no
6895 enable_win32_dll=no
6898 # Check whether --enable-shared was given.
6899 if test "${enable_shared+set}" = set; then :
6900 enableval=$enable_shared; p=${PACKAGE-default}
6901 case $enableval in
6902 yes) enable_shared=yes ;;
6903 no) enable_shared=no ;;
6905 enable_shared=no
6906 # Look at the argument we got. We use all the common list separators.
6907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6908 for pkg in $enableval; do
6909 IFS="$lt_save_ifs"
6910 if test "X$pkg" = "X$p"; then
6911 enable_shared=yes
6913 done
6914 IFS="$lt_save_ifs"
6916 esac
6917 else
6918 enable_shared=yes
6929 # Check whether --enable-static was given.
6930 if test "${enable_static+set}" = set; then :
6931 enableval=$enable_static; p=${PACKAGE-default}
6932 case $enableval in
6933 yes) enable_static=yes ;;
6934 no) enable_static=no ;;
6936 enable_static=no
6937 # Look at the argument we got. We use all the common list separators.
6938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939 for pkg in $enableval; do
6940 IFS="$lt_save_ifs"
6941 if test "X$pkg" = "X$p"; then
6942 enable_static=yes
6944 done
6945 IFS="$lt_save_ifs"
6947 esac
6948 else
6949 enable_static=yes
6961 # Check whether --with-pic was given.
6962 if test "${with_pic+set}" = set; then :
6963 withval=$with_pic; pic_mode="$withval"
6964 else
6965 pic_mode=default
6969 test -z "$pic_mode" && pic_mode=default
6977 # Check whether --enable-fast-install was given.
6978 if test "${enable_fast_install+set}" = set; then :
6979 enableval=$enable_fast_install; p=${PACKAGE-default}
6980 case $enableval in
6981 yes) enable_fast_install=yes ;;
6982 no) enable_fast_install=no ;;
6984 enable_fast_install=no
6985 # Look at the argument we got. We use all the common list separators.
6986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6987 for pkg in $enableval; do
6988 IFS="$lt_save_ifs"
6989 if test "X$pkg" = "X$p"; then
6990 enable_fast_install=yes
6992 done
6993 IFS="$lt_save_ifs"
6995 esac
6996 else
6997 enable_fast_install=yes
7010 # This can be used to rebuild libtool when needed
7011 LIBTOOL_DEPS="$ltmain"
7013 # Always use our own libtool.
7014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7040 test -z "$LN_S" && LN_S="ln -s"
7055 if test -n "${ZSH_VERSION+set}" ; then
7056 setopt NO_GLOB_SUBST
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7060 $as_echo_n "checking for objdir... " >&6; }
7061 if test "${lt_cv_objdir+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 rm -f .libs 2>/dev/null
7065 mkdir .libs 2>/dev/null
7066 if test -d .libs; then
7067 lt_cv_objdir=.libs
7068 else
7069 # MS-DOS does not allow filenames that begin with a dot.
7070 lt_cv_objdir=_libs
7072 rmdir .libs 2>/dev/null
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7075 $as_echo "$lt_cv_objdir" >&6; }
7076 objdir=$lt_cv_objdir
7082 cat >>confdefs.h <<_ACEOF
7083 #define LT_OBJDIR "$lt_cv_objdir/"
7084 _ACEOF
7102 case $host_os in
7103 aix3*)
7104 # AIX sometimes has problems with the GCC collect2 program. For some
7105 # reason, if we set the COLLECT_NAMES environment variable, the problems
7106 # vanish in a puff of smoke.
7107 if test "X${COLLECT_NAMES+set}" != Xset; then
7108 COLLECT_NAMES=
7109 export COLLECT_NAMES
7112 esac
7114 # Sed substitution that helps us do robust quoting. It backslashifies
7115 # metacharacters that are still active within double-quoted strings.
7116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7118 # Same as above, but do not quote variable references.
7119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7121 # Sed substitution to delay expansion of an escaped shell variable in a
7122 # double_quote_subst'ed string.
7123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7125 # Sed substitution to delay expansion of an escaped single quote.
7126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7128 # Sed substitution to avoid accidental globbing in evaled expressions
7129 no_glob_subst='s/\*/\\\*/g'
7131 # Global variables:
7132 ofile=libtool
7133 can_build_shared=yes
7135 # All known linkers require a `.a' archive for static linking (except MSVC,
7136 # which needs '.lib').
7137 libext=a
7139 with_gnu_ld="$lt_cv_prog_gnu_ld"
7141 old_CC="$CC"
7142 old_CFLAGS="$CFLAGS"
7144 # Set sane defaults for various variables
7145 test -z "$CC" && CC=cc
7146 test -z "$LTCC" && LTCC=$CC
7147 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7148 test -z "$LD" && LD=ld
7149 test -z "$ac_objext" && ac_objext=o
7151 for cc_temp in $compiler""; do
7152 case $cc_temp in
7153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7155 \-*) ;;
7156 *) break;;
7157 esac
7158 done
7159 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7162 # Only perform the check for file, if the check method requires it
7163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164 case $deplibs_check_method in
7165 file_magic*)
7166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7168 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 case $MAGIC_CMD in
7173 [\\/*] | ?:[\\/]*)
7174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7177 lt_save_MAGIC_CMD="$MAGIC_CMD"
7178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180 for ac_dir in $ac_dummy; do
7181 IFS="$lt_save_ifs"
7182 test -z "$ac_dir" && ac_dir=.
7183 if test -f $ac_dir/${ac_tool_prefix}file; then
7184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7185 if test -n "$file_magic_test_file"; then
7186 case $deplibs_check_method in
7187 "file_magic "*)
7188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191 $EGREP "$file_magic_regex" > /dev/null; then
7193 else
7194 cat <<_LT_EOF 1>&2
7196 *** Warning: the command libtool uses to detect shared libraries,
7197 *** $file_magic_cmd, produces output that libtool cannot recognize.
7198 *** The result is that libtool may fail to recognize shared libraries
7199 *** as such. This will affect the creation of libtool libraries that
7200 *** depend on shared libraries, but programs linked with such libtool
7201 *** libraries will work regardless of this problem. Nevertheless, you
7202 *** may want to report the problem to your system manager and/or to
7203 *** bug-libtool@gnu.org
7205 _LT_EOF
7206 fi ;;
7207 esac
7209 break
7211 done
7212 IFS="$lt_save_ifs"
7213 MAGIC_CMD="$lt_save_MAGIC_CMD"
7215 esac
7218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219 if test -n "$MAGIC_CMD"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7221 $as_echo "$MAGIC_CMD" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7231 if test -z "$lt_cv_path_MAGIC_CMD"; then
7232 if test -n "$ac_tool_prefix"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7234 $as_echo_n "checking for file... " >&6; }
7235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 case $MAGIC_CMD in
7239 [\\/*] | ?:[\\/]*)
7240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243 lt_save_MAGIC_CMD="$MAGIC_CMD"
7244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7246 for ac_dir in $ac_dummy; do
7247 IFS="$lt_save_ifs"
7248 test -z "$ac_dir" && ac_dir=.
7249 if test -f $ac_dir/file; then
7250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7251 if test -n "$file_magic_test_file"; then
7252 case $deplibs_check_method in
7253 "file_magic "*)
7254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7257 $EGREP "$file_magic_regex" > /dev/null; then
7259 else
7260 cat <<_LT_EOF 1>&2
7262 *** Warning: the command libtool uses to detect shared libraries,
7263 *** $file_magic_cmd, produces output that libtool cannot recognize.
7264 *** The result is that libtool may fail to recognize shared libraries
7265 *** as such. This will affect the creation of libtool libraries that
7266 *** depend on shared libraries, but programs linked with such libtool
7267 *** libraries will work regardless of this problem. Nevertheless, you
7268 *** may want to report the problem to your system manager and/or to
7269 *** bug-libtool@gnu.org
7271 _LT_EOF
7272 fi ;;
7273 esac
7275 break
7277 done
7278 IFS="$lt_save_ifs"
7279 MAGIC_CMD="$lt_save_MAGIC_CMD"
7281 esac
7284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7285 if test -n "$MAGIC_CMD"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7287 $as_echo "$MAGIC_CMD" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7294 else
7295 MAGIC_CMD=:
7301 esac
7303 # Use C for the default configuration in the libtool script
7305 lt_save_CC="$CC"
7306 ac_ext=c
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313 # Source file extension for C test sources.
7314 ac_ext=c
7316 # Object file extension for compiled C test sources.
7317 objext=o
7318 objext=$objext
7320 # Code to be used in simple compile tests
7321 lt_simple_compile_test_code="int some_variable = 0;"
7323 # Code to be used in simple link tests
7324 lt_simple_link_test_code='int main(){return(0);}'
7332 # If no C compiler was specified, use CC.
7333 LTCC=${LTCC-"$CC"}
7335 # If no C compiler flags were specified, use CFLAGS.
7336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7338 # Allow CC to be a program name with arguments.
7339 compiler=$CC
7341 # Save the default compiler, since it gets overwritten when the other
7342 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7343 compiler_DEFAULT=$CC
7345 # save warnings/boilerplate of simple test code
7346 ac_outfile=conftest.$ac_objext
7347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7349 _lt_compiler_boilerplate=`cat conftest.err`
7350 $RM conftest*
7352 ac_outfile=conftest.$ac_objext
7353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7355 _lt_linker_boilerplate=`cat conftest.err`
7356 $RM -r conftest*
7359 ## CAVEAT EMPTOR:
7360 ## There is no encapsulation within the following macros, do not change
7361 ## the running order or otherwise move them around unless you know exactly
7362 ## what you are doing...
7363 if test -n "$compiler"; then
7365 lt_prog_compiler_no_builtin_flag=
7367 if test "$GCC" = yes; then
7368 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7371 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7372 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 lt_cv_prog_compiler_rtti_exceptions=no
7376 ac_outfile=conftest.$ac_objext
7377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7378 lt_compiler_flag="-fno-rtti -fno-exceptions"
7379 # Insert the option either (1) after the last *FLAGS variable, or
7380 # (2) before a word containing "conftest.", or (3) at the end.
7381 # Note that $ac_compile itself does not contain backslashes and begins
7382 # with a dollar sign (not a hyphen), so the echo should work correctly.
7383 # The option is referenced via a variable to avoid confusing sed.
7384 lt_compile=`echo "$ac_compile" | $SED \
7385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7387 -e 's:$: $lt_compiler_flag:'`
7388 (eval echo "\"\$as_me:7388: $lt_compile\"" >&5)
7389 (eval "$lt_compile" 2>conftest.err)
7390 ac_status=$?
7391 cat conftest.err >&5
7392 echo "$as_me:7392: \$? = $ac_status" >&5
7393 if (exit $ac_status) && test -s "$ac_outfile"; then
7394 # The compiler can only warn and ignore the option if not recognized
7395 # So say no if there are warnings other than the usual output.
7396 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7399 lt_cv_prog_compiler_rtti_exceptions=yes
7402 $RM conftest*
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7406 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7410 else
7421 lt_prog_compiler_wl=
7422 lt_prog_compiler_pic=
7423 lt_prog_compiler_static=
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7426 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7428 if test "$GCC" = yes; then
7429 lt_prog_compiler_wl='-Wl,'
7430 lt_prog_compiler_static='-static'
7432 case $host_os in
7433 aix*)
7434 # All AIX code is PIC.
7435 if test "$host_cpu" = ia64; then
7436 # AIX 5 now supports IA64 processor
7437 lt_prog_compiler_static='-Bstatic'
7441 amigaos*)
7442 case $host_cpu in
7443 powerpc)
7444 # see comment about AmigaOS4 .so support
7445 lt_prog_compiler_pic='-fPIC'
7447 m68k)
7448 # FIXME: we need at least 68020 code to build shared libraries, but
7449 # adding the `-m68020' flag to GCC prevents building anything better,
7450 # like `-m68040'.
7451 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7453 esac
7456 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7457 # PIC is the default for these OSes.
7460 mingw* | cygwin* | pw32* | os2* | cegcc*)
7461 # This hack is so that the source file can tell whether it is being
7462 # built for inclusion in a dll (and should export symbols for example).
7463 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7464 # (--disable-auto-import) libraries
7465 lt_prog_compiler_pic='-DDLL_EXPORT'
7468 darwin* | rhapsody*)
7469 # PIC is the default on this platform
7470 # Common symbols not allowed in MH_DYLIB files
7471 lt_prog_compiler_pic='-fno-common'
7474 hpux*)
7475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7477 # sets the default TLS model and affects inlining.
7478 case $host_cpu in
7479 hppa*64*)
7480 # +Z the default
7483 lt_prog_compiler_pic='-fPIC'
7485 esac
7488 interix[3-9]*)
7489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7490 # Instead, we relocate shared libraries at runtime.
7493 msdosdjgpp*)
7494 # Just because we use GCC doesn't mean we suddenly get shared libraries
7495 # on systems that don't support them.
7496 lt_prog_compiler_can_build_shared=no
7497 enable_shared=no
7500 *nto* | *qnx*)
7501 # QNX uses GNU C++, but need to define -shared option too, otherwise
7502 # it will coredump.
7503 lt_prog_compiler_pic='-fPIC -shared'
7506 sysv4*MP*)
7507 if test -d /usr/nec; then
7508 lt_prog_compiler_pic=-Kconform_pic
7513 lt_prog_compiler_pic='-fPIC'
7515 esac
7516 else
7517 # PORTME Check for flag to pass linker flags through the system compiler.
7518 case $host_os in
7519 aix*)
7520 lt_prog_compiler_wl='-Wl,'
7521 if test "$host_cpu" = ia64; then
7522 # AIX 5 now supports IA64 processor
7523 lt_prog_compiler_static='-Bstatic'
7524 else
7525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7529 mingw* | cygwin* | pw32* | os2* | cegcc*)
7530 # This hack is so that the source file can tell whether it is being
7531 # built for inclusion in a dll (and should export symbols for example).
7532 lt_prog_compiler_pic='-DDLL_EXPORT'
7535 hpux9* | hpux10* | hpux11*)
7536 lt_prog_compiler_wl='-Wl,'
7537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7538 # not for PA HP-UX.
7539 case $host_cpu in
7540 hppa*64*|ia64*)
7541 # +Z the default
7544 lt_prog_compiler_pic='+Z'
7546 esac
7547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7548 lt_prog_compiler_static='${wl}-a ${wl}archive'
7551 irix5* | irix6* | nonstopux*)
7552 lt_prog_compiler_wl='-Wl,'
7553 # PIC (with -KPIC) is the default.
7554 lt_prog_compiler_static='-non_shared'
7557 linux* | k*bsd*-gnu)
7558 case $cc_basename in
7559 # old Intel for x86_64 which still supported -KPIC.
7560 ecc*)
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_pic='-KPIC'
7563 lt_prog_compiler_static='-static'
7565 # icc used to be incompatible with GCC.
7566 # ICC 10 doesn't accept -KPIC any more.
7567 icc* | ifort*)
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_pic='-fPIC'
7570 lt_prog_compiler_static='-static'
7572 # Lahey Fortran 8.1.
7573 lf95*)
7574 lt_prog_compiler_wl='-Wl,'
7575 lt_prog_compiler_pic='--shared'
7576 lt_prog_compiler_static='--static'
7578 pgcc* | pgf77* | pgf90* | pgf95*)
7579 # Portland Group compilers (*not* the Pentium gcc compiler,
7580 # which looks to be a dead project)
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_pic='-fpic'
7583 lt_prog_compiler_static='-Bstatic'
7585 ccc*)
7586 lt_prog_compiler_wl='-Wl,'
7587 # All Alpha code is PIC.
7588 lt_prog_compiler_static='-non_shared'
7590 xl*)
7591 # IBM XL C 8.0/Fortran 10.1 on PPC
7592 lt_prog_compiler_wl='-Wl,'
7593 lt_prog_compiler_pic='-qpic'
7594 lt_prog_compiler_static='-qstaticlink'
7597 case `$CC -V 2>&1 | sed 5q` in
7598 *Sun\ C*)
7599 # Sun C 5.9
7600 lt_prog_compiler_pic='-KPIC'
7601 lt_prog_compiler_static='-Bstatic'
7602 lt_prog_compiler_wl='-Wl,'
7604 *Sun\ F*)
7605 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7606 lt_prog_compiler_pic='-KPIC'
7607 lt_prog_compiler_static='-Bstatic'
7608 lt_prog_compiler_wl=''
7610 esac
7612 esac
7615 newsos6)
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7620 *nto* | *qnx*)
7621 # QNX uses GNU C++, but need to define -shared option too, otherwise
7622 # it will coredump.
7623 lt_prog_compiler_pic='-fPIC -shared'
7626 osf3* | osf4* | osf5*)
7627 lt_prog_compiler_wl='-Wl,'
7628 # All OSF/1 code is PIC.
7629 lt_prog_compiler_static='-non_shared'
7632 rdos*)
7633 lt_prog_compiler_static='-non_shared'
7636 solaris*)
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 case $cc_basename in
7640 f77* | f90* | f95*)
7641 lt_prog_compiler_wl='-Qoption ld ';;
7643 lt_prog_compiler_wl='-Wl,';;
7644 esac
7647 sunos4*)
7648 lt_prog_compiler_wl='-Qoption ld '
7649 lt_prog_compiler_pic='-PIC'
7650 lt_prog_compiler_static='-Bstatic'
7653 sysv4 | sysv4.2uw2* | sysv4.3*)
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_pic='-KPIC'
7656 lt_prog_compiler_static='-Bstatic'
7659 sysv4*MP*)
7660 if test -d /usr/nec ;then
7661 lt_prog_compiler_pic='-Kconform_pic'
7662 lt_prog_compiler_static='-Bstatic'
7666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-KPIC'
7669 lt_prog_compiler_static='-Bstatic'
7672 unicos*)
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_can_build_shared=no
7677 uts4*)
7678 lt_prog_compiler_pic='-pic'
7679 lt_prog_compiler_static='-Bstatic'
7683 lt_prog_compiler_can_build_shared=no
7685 esac
7688 case $host_os in
7689 # For platforms which do not support PIC, -DPIC is meaningless:
7690 *djgpp*)
7691 lt_prog_compiler_pic=
7694 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7696 esac
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7698 $as_echo "$lt_prog_compiler_pic" >&6; }
7706 # Check to make sure the PIC flag actually works.
7708 if test -n "$lt_prog_compiler_pic"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7710 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7711 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 lt_cv_prog_compiler_pic_works=no
7715 ac_outfile=conftest.$ac_objext
7716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7718 # Insert the option either (1) after the last *FLAGS variable, or
7719 # (2) before a word containing "conftest.", or (3) at the end.
7720 # Note that $ac_compile itself does not contain backslashes and begins
7721 # with a dollar sign (not a hyphen), so the echo should work correctly.
7722 # The option is referenced via a variable to avoid confusing sed.
7723 lt_compile=`echo "$ac_compile" | $SED \
7724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726 -e 's:$: $lt_compiler_flag:'`
7727 (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728 (eval "$lt_compile" 2>conftest.err)
7729 ac_status=$?
7730 cat conftest.err >&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 if (exit $ac_status) && test -s "$ac_outfile"; then
7733 # The compiler can only warn and ignore the option if not recognized
7734 # So say no if there are warnings other than the usual output.
7735 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7738 lt_cv_prog_compiler_pic_works=yes
7741 $RM conftest*
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7745 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7747 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7748 case $lt_prog_compiler_pic in
7749 "" | " "*) ;;
7750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7751 esac
7752 else
7753 lt_prog_compiler_pic=
7754 lt_prog_compiler_can_build_shared=no
7765 # Check to make sure the static flag actually works.
7767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7769 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7770 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 lt_cv_prog_compiler_static_works=no
7774 save_LDFLAGS="$LDFLAGS"
7775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7778 # The linker can only warn and ignore the option if not recognized
7779 # So say no if there are warnings
7780 if test -s conftest.err; then
7781 # Append any errors to the config.log.
7782 cat conftest.err 1>&5
7783 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7785 if diff conftest.exp conftest.er2 >/dev/null; then
7786 lt_cv_prog_compiler_static_works=yes
7788 else
7789 lt_cv_prog_compiler_static_works=yes
7792 $RM -r conftest*
7793 LDFLAGS="$save_LDFLAGS"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7797 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7799 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7801 else
7802 lt_prog_compiler_static=
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 lt_cv_prog_compiler_c_o=no
7817 $RM -r conftest 2>/dev/null
7818 mkdir conftest
7819 cd conftest
7820 mkdir out
7821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7823 lt_compiler_flag="-o out/conftest2.$ac_objext"
7824 # Insert the option either (1) after the last *FLAGS variable, or
7825 # (2) before a word containing "conftest.", or (3) at the end.
7826 # Note that $ac_compile itself does not contain backslashes and begins
7827 # with a dollar sign (not a hyphen), so the echo should work correctly.
7828 lt_compile=`echo "$ac_compile" | $SED \
7829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7831 -e 's:$: $lt_compiler_flag:'`
7832 (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
7833 (eval "$lt_compile" 2>out/conftest.err)
7834 ac_status=$?
7835 cat out/conftest.err >&5
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7838 then
7839 # The compiler can only warn and ignore the option if not recognized
7840 # So say no if there are warnings
7841 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7844 lt_cv_prog_compiler_c_o=yes
7847 chmod u+w . 2>&5
7848 $RM conftest*
7849 # SGI C++ compiler will create directory out/ii_files/ for
7850 # template instantiation
7851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7852 $RM out/* && rmdir out
7853 cd ..
7854 $RM -r conftest
7855 $RM conftest*
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 lt_cv_prog_compiler_c_o=no
7872 $RM -r conftest 2>/dev/null
7873 mkdir conftest
7874 cd conftest
7875 mkdir out
7876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="-o out/conftest2.$ac_objext"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 lt_compile=`echo "$ac_compile" | $SED \
7884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886 -e 's:$: $lt_compiler_flag:'`
7887 (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7888 (eval "$lt_compile" 2>out/conftest.err)
7889 ac_status=$?
7890 cat out/conftest.err >&5
7891 echo "$as_me:7891: \$? = $ac_status" >&5
7892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7893 then
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings
7896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_c_o=yes
7902 chmod u+w . 2>&5
7903 $RM conftest*
7904 # SGI C++ compiler will create directory out/ii_files/ for
7905 # template instantiation
7906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7907 $RM out/* && rmdir out
7908 cd ..
7909 $RM -r conftest
7910 $RM conftest*
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7919 hard_links="nottested"
7920 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7921 # do not overwrite the value of need_locks provided by the user
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7923 $as_echo_n "checking if we can lock with hard links... " >&6; }
7924 hard_links=yes
7925 $RM conftest*
7926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7927 touch conftest.a
7928 ln conftest.a conftest.b 2>&5 || hard_links=no
7929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7931 $as_echo "$hard_links" >&6; }
7932 if test "$hard_links" = no; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7935 need_locks=warn
7937 else
7938 need_locks=no
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7949 runpath_var=
7950 allow_undefined_flag=
7951 always_export_symbols=no
7952 archive_cmds=
7953 archive_expsym_cmds=
7954 compiler_needs_object=no
7955 enable_shared_with_static_runtimes=no
7956 export_dynamic_flag_spec=
7957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7958 hardcode_automatic=no
7959 hardcode_direct=no
7960 hardcode_direct_absolute=no
7961 hardcode_libdir_flag_spec=
7962 hardcode_libdir_flag_spec_ld=
7963 hardcode_libdir_separator=
7964 hardcode_minus_L=no
7965 hardcode_shlibpath_var=unsupported
7966 inherit_rpath=no
7967 link_all_deplibs=unknown
7968 module_cmds=
7969 module_expsym_cmds=
7970 old_archive_from_new_cmds=
7971 old_archive_from_expsyms_cmds=
7972 thread_safe_flag_spec=
7973 whole_archive_flag_spec=
7974 # include_expsyms should be a list of space-separated symbols to be *always*
7975 # included in the symbol list
7976 include_expsyms=
7977 # exclude_expsyms can be an extended regexp of symbols to exclude
7978 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7979 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7980 # as well as any symbol that contains `d'.
7981 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7982 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7983 # platforms (ab)use it in PIC code, but their linkers get confused if
7984 # the symbol is explicitly referenced. Since portable code cannot
7985 # rely on this symbol name, it's probably fine to never include it in
7986 # preloaded symbol tables.
7987 # Exclude shared library initialization/finalization symbols.
7988 extract_expsyms_cmds=
7990 case $host_os in
7991 cygwin* | mingw* | pw32* | cegcc*)
7992 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7993 # When not using gcc, we currently assume that we are using
7994 # Microsoft Visual C++.
7995 if test "$GCC" != yes; then
7996 with_gnu_ld=no
7999 interix*)
8000 # we just hope/assume this is gcc and not c89 (= MSVC++)
8001 with_gnu_ld=yes
8003 openbsd*)
8004 with_gnu_ld=no
8006 esac
8008 ld_shlibs=yes
8009 if test "$with_gnu_ld" = yes; then
8010 # If archive_cmds runs LD, not CC, wlarc should be empty
8011 wlarc='${wl}'
8013 # Set some defaults for GNU ld with shared library support. These
8014 # are reset later if shared libraries are not supported. Putting them
8015 # here allows them to be overridden if necessary.
8016 runpath_var=LD_RUN_PATH
8017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8018 export_dynamic_flag_spec='${wl}--export-dynamic'
8019 # ancient GNU ld didn't support --whole-archive et. al.
8020 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8021 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8022 else
8023 whole_archive_flag_spec=
8025 supports_anon_versioning=no
8026 case `$LD -v 2>&1` in
8027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8030 *\ 2.11.*) ;; # other 2.11 versions
8031 *) supports_anon_versioning=yes ;;
8032 esac
8034 # See if GNU ld supports shared libraries.
8035 case $host_os in
8036 aix[3-9]*)
8037 # On AIX/PPC, the GNU linker is very broken
8038 if test "$host_cpu" != ia64; then
8039 ld_shlibs=no
8040 cat <<_LT_EOF 1>&2
8042 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8043 *** to be unable to reliably create shared libraries on AIX.
8044 *** Therefore, libtool is disabling shared libraries support. If you
8045 *** really care for shared libraries, you may want to modify your PATH
8046 *** so that a non-GNU linker is found, and then restart.
8048 _LT_EOF
8052 amigaos*)
8053 case $host_cpu in
8054 powerpc)
8055 # see comment about AmigaOS4 .so support
8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 archive_expsym_cmds=''
8059 m68k)
8060 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)'
8061 hardcode_libdir_flag_spec='-L$libdir'
8062 hardcode_minus_L=yes
8064 esac
8067 beos*)
8068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8069 allow_undefined_flag=unsupported
8070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8071 # support --undefined. This deserves some investigation. FIXME
8072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073 else
8074 ld_shlibs=no
8078 cygwin* | mingw* | pw32* | cegcc*)
8079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8080 # as there is no search path for DLLs.
8081 hardcode_libdir_flag_spec='-L$libdir'
8082 allow_undefined_flag=unsupported
8083 always_export_symbols=no
8084 enable_shared_with_static_runtimes=yes
8085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8089 # If the export-symbols file already is a .def file (1st line
8090 # is EXPORTS), use it as is; otherwise, prepend...
8091 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8092 cp $export_symbols $output_objdir/$soname.def;
8093 else
8094 echo EXPORTS > $output_objdir/$soname.def;
8095 cat $export_symbols >> $output_objdir/$soname.def;
8097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8098 else
8099 ld_shlibs=no
8103 interix[3-9]*)
8104 hardcode_direct=no
8105 hardcode_shlibpath_var=no
8106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8107 export_dynamic_flag_spec='${wl}-E'
8108 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8109 # Instead, shared libraries are loaded at an image base (0x10000000 by
8110 # default) and relocated if they conflict, which is a slow very memory
8111 # consuming and fragmenting process. To avoid this, we pick a random,
8112 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8113 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8115 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'
8118 gnu* | linux* | tpf* | k*bsd*-gnu)
8119 tmp_diet=no
8120 if test "$host_os" = linux-dietlibc; then
8121 case $cc_basename in
8122 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8123 esac
8125 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8126 && test "$tmp_diet" = no
8127 then
8128 tmp_addflag=
8129 tmp_sharedflag='-shared'
8130 case $cc_basename,$host_cpu in
8131 pgcc*) # Portland Group C compiler
8132 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'
8133 tmp_addflag=' $pic_flag'
8135 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8136 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'
8137 tmp_addflag=' $pic_flag -Mnomain' ;;
8138 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8139 tmp_addflag=' -i_dynamic' ;;
8140 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8141 tmp_addflag=' -i_dynamic -nofor_main' ;;
8142 ifc* | ifort*) # Intel Fortran compiler
8143 tmp_addflag=' -nofor_main' ;;
8144 lf95*) # Lahey Fortran 8.1
8145 whole_archive_flag_spec=
8146 tmp_sharedflag='--shared' ;;
8147 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8148 tmp_sharedflag='-qmkshrobj'
8149 tmp_addflag= ;;
8150 esac
8151 case `$CC -V 2>&1 | sed 5q` in
8152 *Sun\ C*) # Sun C 5.9
8153 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'
8154 compiler_needs_object=yes
8155 tmp_sharedflag='-G' ;;
8156 *Sun\ F*) # Sun Fortran 8.3
8157 tmp_sharedflag='-G' ;;
8158 esac
8159 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8161 if test "x$supports_anon_versioning" = xyes; then
8162 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8164 echo "local: *; };" >> $output_objdir/$libname.ver~
8165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8168 case $cc_basename in
8169 xlf*)
8170 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8171 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8172 hardcode_libdir_flag_spec=
8173 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8174 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8175 if test "x$supports_anon_versioning" = xyes; then
8176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8178 echo "local: *; };" >> $output_objdir/$libname.ver~
8179 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8182 esac
8183 else
8184 ld_shlibs=no
8188 netbsd*)
8189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8190 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8191 wlarc=
8192 else
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198 solaris*)
8199 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8200 ld_shlibs=no
8201 cat <<_LT_EOF 1>&2
8203 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8204 *** create shared libraries on Solaris systems. Therefore, libtool
8205 *** is disabling shared libraries support. We urge you to upgrade GNU
8206 *** binutils to release 2.9.1 or newer. Another option is to modify
8207 *** your PATH or compiler configuration so that the native linker is
8208 *** used, and then restart.
8210 _LT_EOF
8211 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8214 else
8215 ld_shlibs=no
8219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8220 case `$LD -v 2>&1` in
8221 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8222 ld_shlibs=no
8223 cat <<_LT_EOF 1>&2
8225 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8226 *** reliably create shared libraries on SCO systems. Therefore, libtool
8227 *** is disabling shared libraries support. We urge you to upgrade GNU
8228 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8229 *** your PATH or compiler configuration so that the native linker is
8230 *** used, and then restart.
8232 _LT_EOF
8235 # For security reasons, it is highly recommended that you always
8236 # use absolute paths for naming shared libraries, and exclude the
8237 # DT_RUNPATH tag from executables and libraries. But doing so
8238 # requires that you compile everything twice, which is a pain.
8239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243 else
8244 ld_shlibs=no
8247 esac
8250 sunos4*)
8251 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8252 wlarc=
8253 hardcode_direct=yes
8254 hardcode_shlibpath_var=no
8258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261 else
8262 ld_shlibs=no
8265 esac
8267 if test "$ld_shlibs" = no; then
8268 runpath_var=
8269 hardcode_libdir_flag_spec=
8270 export_dynamic_flag_spec=
8271 whole_archive_flag_spec=
8273 else
8274 # PORTME fill in a description of your system's linker (not GNU ld)
8275 case $host_os in
8276 aix3*)
8277 allow_undefined_flag=unsupported
8278 always_export_symbols=yes
8279 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'
8280 # Note: this linker hardcodes the directories in LIBPATH if there
8281 # are no directories specified by -L.
8282 hardcode_minus_L=yes
8283 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8284 # Neither direct hardcoding nor static linking is supported with a
8285 # broken collect2.
8286 hardcode_direct=unsupported
8290 aix[4-9]*)
8291 if test "$host_cpu" = ia64; then
8292 # On IA64, the linker does run time linking by default, so we don't
8293 # have to do anything special.
8294 aix_use_runtimelinking=no
8295 exp_sym_flag='-Bexport'
8296 no_entry_flag=""
8297 else
8298 # If we're using GNU nm, then we don't want the "-C" option.
8299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8300 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8301 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'
8302 else
8303 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'
8305 aix_use_runtimelinking=no
8307 # Test if we are trying to use run time linking or normal
8308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8309 # need to do runtime linking.
8310 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8311 for ld_flag in $LDFLAGS; do
8312 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8313 aix_use_runtimelinking=yes
8314 break
8316 done
8318 esac
8320 exp_sym_flag='-bexport'
8321 no_entry_flag='-bnoentry'
8324 # When large executables or shared objects are built, AIX ld can
8325 # have problems creating the table of contents. If linking a library
8326 # or program results in "error TOC overflow" add -mminimal-toc to
8327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8330 archive_cmds=''
8331 hardcode_direct=yes
8332 hardcode_direct_absolute=yes
8333 hardcode_libdir_separator=':'
8334 link_all_deplibs=yes
8335 file_list_spec='${wl}-f,'
8337 if test "$GCC" = yes; then
8338 case $host_os in aix4.[012]|aix4.[012].*)
8339 # We only want to do this on AIX 4.2 and lower, the check
8340 # below for broken collect2 doesn't work under 4.3+
8341 collect2name=`${CC} -print-prog-name=collect2`
8342 if test -f "$collect2name" &&
8343 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8344 then
8345 # We have reworked collect2
8347 else
8348 # We have old collect2
8349 hardcode_direct=unsupported
8350 # It fails to find uninstalled libraries when the uninstalled
8351 # path is not listed in the libpath. Setting hardcode_minus_L
8352 # to unsupported forces relinking
8353 hardcode_minus_L=yes
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_libdir_separator=
8358 esac
8359 shared_flag='-shared'
8360 if test "$aix_use_runtimelinking" = yes; then
8361 shared_flag="$shared_flag "'${wl}-G'
8363 link_all_deplibs=no
8364 else
8365 # not using gcc
8366 if test "$host_cpu" = ia64; then
8367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368 # chokes on -Wl,-G. The following line is correct:
8369 shared_flag='-G'
8370 else
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag='${wl}-G'
8373 else
8374 shared_flag='${wl}-bM:SRE'
8379 export_dynamic_flag_spec='${wl}-bexpall'
8380 # It seems that -bexpall does not export symbols beginning with
8381 # underscore (_), so it is better to generate a list of symbols to export.
8382 always_export_symbols=yes
8383 if test "$aix_use_runtimelinking" = yes; then
8384 # Warning - without using the other runtime loading flags (-brtl),
8385 # -berok will link without error, but may produce a broken library.
8386 allow_undefined_flag='-berok'
8387 # Determine the default libpath from the value encoded in an
8388 # empty executable.
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8393 main ()
8397 return 0;
8399 _ACEOF
8400 if ac_fn_c_try_link "$LINENO"; then :
8402 lt_aix_libpath_sed='
8403 /Import File Strings/,/^$/ {
8404 /^0/ {
8405 s/^0 *\(.*\)$/\1/
8409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410 # Check for a 64-bit object if we didn't find anything.
8411 if test -z "$aix_libpath"; then
8412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420 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"
8421 else
8422 if test "$host_cpu" = ia64; then
8423 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8424 allow_undefined_flag="-z nodefs"
8425 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"
8426 else
8427 # Determine the default libpath from the value encoded in an
8428 # empty executable.
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8433 main ()
8437 return 0;
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8442 lt_aix_libpath_sed='
8443 /Import File Strings/,/^$/ {
8444 /^0/ {
8445 s/^0 *\(.*\)$/\1/
8449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8450 # Check for a 64-bit object if we didn't find anything.
8451 if test -z "$aix_libpath"; then
8452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8460 # Warning - without using the other run time loading flags,
8461 # -berok will link without error, but may produce a broken library.
8462 no_undefined_flag=' ${wl}-bernotok'
8463 allow_undefined_flag=' ${wl}-berok'
8464 # Exported symbols can be pulled into shared objects from archives
8465 whole_archive_flag_spec='$convenience'
8466 archive_cmds_need_lc=yes
8467 # This is similar to how AIX traditionally builds its shared libraries.
8468 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'
8473 amigaos*)
8474 case $host_cpu in
8475 powerpc)
8476 # see comment about AmigaOS4 .so support
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 archive_expsym_cmds=''
8480 m68k)
8481 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)'
8482 hardcode_libdir_flag_spec='-L$libdir'
8483 hardcode_minus_L=yes
8485 esac
8488 bsdi[45]*)
8489 export_dynamic_flag_spec=-rdynamic
8492 cygwin* | mingw* | pw32* | cegcc*)
8493 # When not using gcc, we currently assume that we are using
8494 # Microsoft Visual C++.
8495 # hardcode_libdir_flag_spec is actually meaningless, as there is
8496 # no search path for DLLs.
8497 hardcode_libdir_flag_spec=' '
8498 allow_undefined_flag=unsupported
8499 # Tell ltmain to make .lib files, not .a files.
8500 libext=lib
8501 # Tell ltmain to make .dll files, not .so files.
8502 shrext_cmds=".dll"
8503 # FIXME: Setting linknames here is a bad hack.
8504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8505 # The linker will automatically build a .lib file if we build a DLL.
8506 old_archive_from_new_cmds='true'
8507 # FIXME: Should let the user specify the lib program.
8508 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8509 fix_srcfile_path='`cygpath -w "$srcfile"`'
8510 enable_shared_with_static_runtimes=yes
8513 darwin* | rhapsody*)
8516 archive_cmds_need_lc=no
8517 hardcode_direct=no
8518 hardcode_automatic=yes
8519 hardcode_shlibpath_var=unsupported
8520 whole_archive_flag_spec=''
8521 link_all_deplibs=yes
8522 allow_undefined_flag="$_lt_dar_allow_undefined"
8523 case $cc_basename in
8524 ifort*) _lt_dar_can_shared=yes ;;
8525 *) _lt_dar_can_shared=$GCC ;;
8526 esac
8527 if test "$_lt_dar_can_shared" = "yes"; then
8528 output_verbose_link_cmd=echo
8529 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8530 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8531 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}"
8532 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}"
8534 else
8535 ld_shlibs=no
8540 dgux*)
8541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_libdir_flag_spec='-L$libdir'
8543 hardcode_shlibpath_var=no
8546 freebsd1*)
8547 ld_shlibs=no
8550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8551 # support. Future versions do this automatically, but an explicit c++rt0.o
8552 # does not break anything, and helps significantly (at the cost of a little
8553 # extra space).
8554 freebsd2.2*)
8555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8556 hardcode_libdir_flag_spec='-R$libdir'
8557 hardcode_direct=yes
8558 hardcode_shlibpath_var=no
8561 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8562 freebsd2*)
8563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_direct=yes
8565 hardcode_minus_L=yes
8566 hardcode_shlibpath_var=no
8569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8570 freebsd* | dragonfly*)
8571 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8572 hardcode_libdir_flag_spec='-R$libdir'
8573 hardcode_direct=yes
8574 hardcode_shlibpath_var=no
8577 hpux9*)
8578 if test "$GCC" = yes; then
8579 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'
8580 else
8581 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'
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585 hardcode_direct=yes
8587 # hardcode_minus_L: Not really in the search PATH,
8588 # but as the default location of the library.
8589 hardcode_minus_L=yes
8590 export_dynamic_flag_spec='${wl}-E'
8593 hpux10*)
8594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8595 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596 else
8597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8599 if test "$with_gnu_ld" = no; then
8600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8601 hardcode_libdir_flag_spec_ld='+b $libdir'
8602 hardcode_libdir_separator=:
8603 hardcode_direct=yes
8604 hardcode_direct_absolute=yes
8605 export_dynamic_flag_spec='${wl}-E'
8606 # hardcode_minus_L: Not really in the search PATH,
8607 # but as the default location of the library.
8608 hardcode_minus_L=yes
8612 hpux11*)
8613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8614 case $host_cpu in
8615 hppa*64*)
8616 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8618 ia64*)
8619 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8622 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8624 esac
8625 else
8626 case $host_cpu in
8627 hppa*64*)
8628 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8630 ia64*)
8631 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8634 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8636 esac
8638 if test "$with_gnu_ld" = no; then
8639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8640 hardcode_libdir_separator=:
8642 case $host_cpu in
8643 hppa*64*|ia64*)
8644 hardcode_direct=no
8645 hardcode_shlibpath_var=no
8648 hardcode_direct=yes
8649 hardcode_direct_absolute=yes
8650 export_dynamic_flag_spec='${wl}-E'
8652 # hardcode_minus_L: Not really in the search PATH,
8653 # but as the default location of the library.
8654 hardcode_minus_L=yes
8656 esac
8660 irix5* | irix6* | nonstopux*)
8661 if test "$GCC" = yes; then
8662 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'
8663 # Try to use the -exported_symbol ld option, if it does not
8664 # work, assume that -exports_file does not work either and
8665 # implicitly export all symbols.
8666 save_LDFLAGS="$LDFLAGS"
8667 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670 int foo(void) {}
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 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'
8676 rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LDFLAGS="$save_LDFLAGS"
8679 else
8680 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'
8681 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'
8683 archive_cmds_need_lc='no'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 hardcode_libdir_separator=:
8686 inherit_rpath=yes
8687 link_all_deplibs=yes
8690 netbsd*)
8691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8693 else
8694 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8696 hardcode_libdir_flag_spec='-R$libdir'
8697 hardcode_direct=yes
8698 hardcode_shlibpath_var=no
8701 newsos6)
8702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_direct=yes
8704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705 hardcode_libdir_separator=:
8706 hardcode_shlibpath_var=no
8709 *nto* | *qnx*)
8712 openbsd*)
8713 if test -f /usr/libexec/ld.so; then
8714 hardcode_direct=yes
8715 hardcode_shlibpath_var=no
8716 hardcode_direct_absolute=yes
8717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721 export_dynamic_flag_spec='${wl}-E'
8722 else
8723 case $host_os in
8724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_libdir_flag_spec='-R$libdir'
8729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8732 esac
8734 else
8735 ld_shlibs=no
8739 os2*)
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_minus_L=yes
8742 allow_undefined_flag=unsupported
8743 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'
8744 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8747 osf3*)
8748 if test "$GCC" = yes; then
8749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8750 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'
8751 else
8752 allow_undefined_flag=' -expect_unresolved \*'
8753 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'
8755 archive_cmds_need_lc='no'
8756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757 hardcode_libdir_separator=:
8760 osf4* | osf5*) # as osf3* with the addition of -msym flag
8761 if test "$GCC" = yes; then
8762 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8763 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'
8764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765 else
8766 allow_undefined_flag=' -expect_unresolved \*'
8767 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'
8768 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~
8769 $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'
8771 # Both c and cxx compiler support -rpath directly
8772 hardcode_libdir_flag_spec='-rpath $libdir'
8774 archive_cmds_need_lc='no'
8775 hardcode_libdir_separator=:
8778 solaris*)
8779 no_undefined_flag=' -z defs'
8780 if test "$GCC" = yes; then
8781 wlarc='${wl}'
8782 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8784 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8785 else
8786 case `$CC -V 2>&1` in
8787 *"Compilers 5.0"*)
8788 wlarc=''
8789 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8794 wlarc='${wl}'
8795 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8796 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8797 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8799 esac
8801 hardcode_libdir_flag_spec='-R$libdir'
8802 hardcode_shlibpath_var=no
8803 case $host_os in
8804 solaris2.[0-5] | solaris2.[0-5].*) ;;
8806 # The compiler driver will combine and reorder linker options,
8807 # but understands `-z linker_flag'. GCC discards it without `$wl',
8808 # but is careful enough not to reorder.
8809 # Supported since Solaris 2.6 (maybe 2.5.1?)
8810 if test "$GCC" = yes; then
8811 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8812 else
8813 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8816 esac
8817 link_all_deplibs=yes
8820 sunos4*)
8821 if test "x$host_vendor" = xsequent; then
8822 # Use $CC to link under sequent, because it throws in some extra .o
8823 # files that make .init and .fini sections work.
8824 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8825 else
8826 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_direct=yes
8830 hardcode_minus_L=yes
8831 hardcode_shlibpath_var=no
8834 sysv4)
8835 case $host_vendor in
8836 sni)
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_direct=yes # is this really true???
8840 siemens)
8841 ## LD is ld it makes a PLAMLIB
8842 ## CC just makes a GrossModule.
8843 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8844 reload_cmds='$CC -r -o $output$reload_objs'
8845 hardcode_direct=no
8847 motorola)
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8851 esac
8852 runpath_var='LD_RUN_PATH'
8853 hardcode_shlibpath_var=no
8856 sysv4.3*)
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_shlibpath_var=no
8859 export_dynamic_flag_spec='-Bexport'
8862 sysv4*MP*)
8863 if test -d /usr/nec; then
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_shlibpath_var=no
8866 runpath_var=LD_RUN_PATH
8867 hardcode_runpath_var=yes
8868 ld_shlibs=yes
8872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8873 no_undefined_flag='${wl}-z,text'
8874 archive_cmds_need_lc=no
8875 hardcode_shlibpath_var=no
8876 runpath_var='LD_RUN_PATH'
8878 if test "$GCC" = yes; then
8879 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 else
8882 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 sysv5* | sco3.2v5* | sco5v6*)
8888 # Note: We can NOT use -z defs as we might desire, because we do not
8889 # link with -lc, and that would cause any symbols used from libc to
8890 # always be unresolved, which means just about no library would
8891 # ever link correctly. If we're not using GNU ld we use -z text
8892 # though, which does catch some bad symbols but isn't as heavy-handed
8893 # as -z defs.
8894 no_undefined_flag='${wl}-z,text'
8895 allow_undefined_flag='${wl}-z,nodefs'
8896 archive_cmds_need_lc=no
8897 hardcode_shlibpath_var=no
8898 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8899 hardcode_libdir_separator=':'
8900 link_all_deplibs=yes
8901 export_dynamic_flag_spec='${wl}-Bexport'
8902 runpath_var='LD_RUN_PATH'
8904 if test "$GCC" = yes; then
8905 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 else
8908 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 uts4*)
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 hardcode_shlibpath_var=no
8920 ld_shlibs=no
8922 esac
8924 if test x$host_vendor = xsni; then
8925 case $host in
8926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8927 export_dynamic_flag_spec='${wl}-Blargedynsym'
8929 esac
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8934 $as_echo "$ld_shlibs" >&6; }
8935 test "$ld_shlibs" = no && can_build_shared=no
8937 with_gnu_ld=$with_gnu_ld
8954 # Do we need to explicitly link libc?
8956 case "x$archive_cmds_need_lc" in
8957 x|xyes)
8958 # Assume -lc should be added
8959 archive_cmds_need_lc=yes
8961 if test "$enable_shared" = yes && test "$GCC" = yes; then
8962 case $archive_cmds in
8963 *'~'*)
8964 # FIXME: we may have to deal with multi-command sequences.
8966 '$CC '*)
8967 # Test whether the compiler implicitly links with -lc since on some
8968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8969 # to ld, don't add -lc before -lgcc.
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8971 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8972 $RM conftest*
8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8976 (eval $ac_compile) 2>&5
8977 ac_status=$?
8978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979 test $ac_status = 0; } 2>conftest.err; then
8980 soname=conftest
8981 lib=conftest
8982 libobjs=conftest.$ac_objext
8983 deplibs=
8984 wl=$lt_prog_compiler_wl
8985 pic_flag=$lt_prog_compiler_pic
8986 compiler_flags=-v
8987 linker_flags=-v
8988 verstring=
8989 output_objdir=.
8990 libname=conftest
8991 lt_save_allow_undefined_flag=$allow_undefined_flag
8992 allow_undefined_flag=
8993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8995 ac_status=$?
8996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8997 test $ac_status = 0; }
8998 then
8999 archive_cmds_need_lc=no
9000 else
9001 archive_cmds_need_lc=yes
9003 allow_undefined_flag=$lt_save_allow_undefined_flag
9004 else
9005 cat conftest.err 1>&5
9007 $RM conftest*
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9009 $as_echo "$archive_cmds_need_lc" >&6; }
9011 esac
9014 esac
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9175 if test "$GCC" = yes; then
9176 case $host_os in
9177 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9178 *) lt_awk_arg="/^libraries:/" ;;
9179 esac
9180 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9182 # if the path contains ";" then we assume it to be the separator
9183 # otherwise default to the standard path separator (i.e. ":") - it is
9184 # assumed that no part of a normal pathname contains ";" but that should
9185 # okay in the real world where ";" in dirpaths is itself problematic.
9186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9187 else
9188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9190 # Ok, now we have the path, separated by spaces, we can step through it
9191 # and add multilib dir if necessary.
9192 lt_tmp_lt_search_path_spec=
9193 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9194 for lt_sys_path in $lt_search_path_spec; do
9195 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9197 else
9198 test -d "$lt_sys_path" && \
9199 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9201 done
9202 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9203 BEGIN {RS=" "; FS="/|\n";} {
9204 lt_foo="";
9205 lt_count=0;
9206 for (lt_i = NF; lt_i > 0; lt_i--) {
9207 if ($lt_i != "" && $lt_i != ".") {
9208 if ($lt_i == "..") {
9209 lt_count++;
9210 } else {
9211 if (lt_count == 0) {
9212 lt_foo="/" $lt_i lt_foo;
9213 } else {
9214 lt_count--;
9219 if (lt_foo != "") { lt_freq[lt_foo]++; }
9220 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9222 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9223 else
9224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9226 library_names_spec=
9227 libname_spec='lib$name'
9228 soname_spec=
9229 shrext_cmds=".so"
9230 postinstall_cmds=
9231 postuninstall_cmds=
9232 finish_cmds=
9233 finish_eval=
9234 shlibpath_var=
9235 shlibpath_overrides_runpath=unknown
9236 version_type=none
9237 dynamic_linker="$host_os ld.so"
9238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9239 need_lib_prefix=unknown
9240 hardcode_into_libs=no
9242 # when you set need_version to no, make sure it does not cause -set_version
9243 # flags to be left without arguments
9244 need_version=unknown
9246 case $host_os in
9247 aix3*)
9248 version_type=linux
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9250 shlibpath_var=LIBPATH
9252 # AIX 3 has no versioning support, so we append a major version to the name.
9253 soname_spec='${libname}${release}${shared_ext}$major'
9256 aix[4-9]*)
9257 version_type=linux
9258 need_lib_prefix=no
9259 need_version=no
9260 hardcode_into_libs=yes
9261 if test "$host_cpu" = ia64; then
9262 # AIX 5 supports IA64
9263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 else
9266 # With GCC up to 2.95.x, collect2 would create an import file
9267 # for dependence libraries. The import file would start with
9268 # the line `#! .'. This would cause the generated library to
9269 # depend on `.', always an invalid library. This was fixed in
9270 # development snapshots of GCC prior to 3.0.
9271 case $host_os in
9272 aix4 | aix4.[01] | aix4.[01].*)
9273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9274 echo ' yes '
9275 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9277 else
9278 can_build_shared=no
9281 esac
9282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9283 # soname into executable. Probably we can add versioning support to
9284 # collect2, so additional links can be useful in future.
9285 if test "$aix_use_runtimelinking" = yes; then
9286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9287 # instead of lib<name>.a to let people know that these are not
9288 # typical AIX shared libraries.
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 else
9291 # We preserve .a as extension for shared libraries through AIX4.2
9292 # and later when we are not doing run time linking.
9293 library_names_spec='${libname}${release}.a $libname.a'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LIBPATH
9300 amigaos*)
9301 case $host_cpu in
9302 powerpc)
9303 # Since July 2007 AmigaOS4 officially supports .so libraries.
9304 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 m68k)
9308 library_names_spec='$libname.ixlibrary $libname.a'
9309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310 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'
9312 esac
9315 beos*)
9316 library_names_spec='${libname}${shared_ext}'
9317 dynamic_linker="$host_os ld.so"
9318 shlibpath_var=LIBRARY_PATH
9321 bsdi[45]*)
9322 version_type=linux
9323 need_version=no
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9330 # the default ld.so.conf also contains /usr/contrib/lib and
9331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9332 # libtool to hard-code these into programs
9335 cygwin* | mingw* | pw32* | cegcc*)
9336 version_type=windows
9337 shrext_cmds=".dll"
9338 need_version=no
9339 need_lib_prefix=no
9341 case $GCC,$host_os in
9342 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9343 library_names_spec='$libname.dll.a'
9344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9345 postinstall_cmds='base_file=`basename \${file}`~
9346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9347 dldir=$destdir/`dirname \$dlpath`~
9348 test -d \$dldir || mkdir -p \$dldir~
9349 $install_prog $dir/$dlname \$dldir/$dlname~
9350 chmod a+x \$dldir/$dlname~
9351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355 dlpath=$dir/\$dldll~
9356 $RM \$dlpath'
9357 shlibpath_overrides_runpath=yes
9359 case $host_os in
9360 cygwin*)
9361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9365 mingw* | cegcc*)
9366 # MinGW DLLs use traditional 'lib' prefix
9367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9370 # It is most probably a Windows format PATH printed by
9371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372 # path with ; separators, and with drive letters. We can handle the
9373 # drive letters (cygwin fileutils understands them), so leave them,
9374 # especially as we might pass files found there to a mingw objdump,
9375 # which wouldn't understand a cygwinified path. Ahh.
9376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377 else
9378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9381 pw32*)
9382 # pw32 DLLs use 'pw' prefix rather than 'lib'
9383 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 esac
9389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9391 esac
9392 dynamic_linker='Win32 ld.exe'
9393 # FIXME: first we should search . and the directory the executable is in
9394 shlibpath_var=PATH
9397 darwin* | rhapsody*)
9398 dynamic_linker="$host_os dyld"
9399 version_type=darwin
9400 need_lib_prefix=no
9401 need_version=no
9402 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403 soname_spec='${libname}${release}${major}$shared_ext'
9404 shlibpath_overrides_runpath=yes
9405 shlibpath_var=DYLD_LIBRARY_PATH
9406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9412 dgux*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9421 freebsd1*)
9422 dynamic_linker=no
9425 freebsd* | dragonfly*)
9426 # DragonFly does not have aout. When/if they implement a new
9427 # versioning mechanism, adjust this.
9428 if test -x /usr/bin/objformat; then
9429 objformat=`/usr/bin/objformat`
9430 else
9431 case $host_os in
9432 freebsd[123]*) objformat=aout ;;
9433 *) objformat=elf ;;
9434 esac
9436 version_type=freebsd-$objformat
9437 case $version_type in
9438 freebsd-elf*)
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 need_version=no
9441 need_lib_prefix=no
9443 freebsd-*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9445 need_version=yes
9447 esac
9448 shlibpath_var=LD_LIBRARY_PATH
9449 case $host_os in
9450 freebsd2*)
9451 shlibpath_overrides_runpath=yes
9453 freebsd3.[01]* | freebsdelf3.[01]*)
9454 shlibpath_overrides_runpath=yes
9455 hardcode_into_libs=yes
9457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9459 shlibpath_overrides_runpath=no
9460 hardcode_into_libs=yes
9462 *) # from 4.6 on, and DragonFly
9463 shlibpath_overrides_runpath=yes
9464 hardcode_into_libs=yes
9466 esac
9469 gnu*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 hardcode_into_libs=yes
9479 hpux9* | hpux10* | hpux11*)
9480 # Give a soname corresponding to the major version so that dld.sl refuses to
9481 # link against other versions.
9482 version_type=sunos
9483 need_lib_prefix=no
9484 need_version=no
9485 case $host_cpu in
9486 ia64*)
9487 shrext_cmds='.so'
9488 hardcode_into_libs=yes
9489 dynamic_linker="$host_os dld.so"
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 if test "X$HPUX_IA64_MODE" = X32; then
9495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9496 else
9497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9501 hppa*64*)
9502 shrext_cmds='.sl'
9503 hardcode_into_libs=yes
9504 dynamic_linker="$host_os dld.sl"
9505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9513 shrext_cmds='.sl'
9514 dynamic_linker="$host_os dld.sl"
9515 shlibpath_var=SHLIB_PATH
9516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9520 esac
9521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9522 postinstall_cmds='chmod 555 $lib'
9525 interix[3-9]*)
9526 version_type=linux
9527 need_lib_prefix=no
9528 need_version=no
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 shlibpath_overrides_runpath=no
9534 hardcode_into_libs=yes
9537 irix5* | irix6* | nonstopux*)
9538 case $host_os in
9539 nonstopux*) version_type=nonstopux ;;
9541 if test "$lt_cv_prog_gnu_ld" = yes; then
9542 version_type=linux
9543 else
9544 version_type=irix
9545 fi ;;
9546 esac
9547 need_lib_prefix=no
9548 need_version=no
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9551 case $host_os in
9552 irix5* | nonstopux*)
9553 libsuff= shlibsuff=
9556 case $LD in # libtool.m4 will add one of these switches to LD
9557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9558 libsuff= shlibsuff= libmagic=32-bit;;
9559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9560 libsuff=32 shlibsuff=N32 libmagic=N32;;
9561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9563 *) libsuff= shlibsuff= libmagic=never-match;;
9564 esac
9566 esac
9567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9568 shlibpath_overrides_runpath=no
9569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9571 hardcode_into_libs=yes
9574 # No shared lib support for Linux oldld, aout, or coff.
9575 linux*oldld* | linux*aout* | linux*coff*)
9576 dynamic_linker=no
9579 # This must be Linux ELF.
9580 linux* | k*bsd*-gnu)
9581 version_type=linux
9582 need_lib_prefix=no
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=no
9589 # Some binutils ld are patched to set DT_RUNPATH
9590 save_LDFLAGS=$LDFLAGS
9591 save_libdir=$libdir
9592 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9593 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9598 main ()
9602 return 0;
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9607 shlibpath_overrides_runpath=yes
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 LDFLAGS=$save_LDFLAGS
9613 libdir=$save_libdir
9615 # This implies no fast_install, which is unacceptable.
9616 # Some rework will be needed to allow for fast_install
9617 # before this can be enabled.
9618 hardcode_into_libs=yes
9620 # find out which ABI we are using
9621 libsuff=
9622 case "$host_cpu" in
9623 x86_64*|s390x*|powerpc64*)
9624 echo '#line 9624 "configure"' > conftest.$ac_ext
9625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9626 (eval $ac_compile) 2>&5
9627 ac_status=$?
9628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629 test $ac_status = 0; }; then
9630 case `/usr/bin/file conftest.$ac_objext` in
9631 *64-bit*)
9632 libsuff=64
9634 esac
9636 rm -rf conftest*
9638 esac
9640 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9642 # Append ld.so.conf contents to the search path
9643 if test -f /etc/ld.so.conf; then
9644 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' ' '`
9645 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9648 # We used to test for /lib/ld.so.1 and disable shared libraries on
9649 # powerpc, because MkLinux only supported shared libraries with the
9650 # GNU dynamic linker. Since this was broken with cross compilers,
9651 # most powerpc-linux boxes support dynamic linking these days and
9652 # people can always --disable-shared, the test was removed, and we
9653 # assume the GNU/Linux dynamic linker is in use.
9654 dynamic_linker='GNU/Linux ld.so'
9657 netbsd*)
9658 version_type=sunos
9659 need_lib_prefix=no
9660 need_version=no
9661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664 dynamic_linker='NetBSD (a.out) ld.so'
9665 else
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 dynamic_linker='NetBSD ld.elf_so'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9675 newsos6)
9676 version_type=linux
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=yes
9682 *nto* | *qnx*)
9683 version_type=qnx
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='ldqnx.so'
9694 openbsd*)
9695 version_type=sunos
9696 sys_lib_dlsearch_path_spec="/usr/lib"
9697 need_lib_prefix=no
9698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9699 case $host_os in
9700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9701 *) need_version=no ;;
9702 esac
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9707 case $host_os in
9708 openbsd2.[89] | openbsd2.[89].*)
9709 shlibpath_overrides_runpath=no
9712 shlibpath_overrides_runpath=yes
9714 esac
9715 else
9716 shlibpath_overrides_runpath=yes
9720 os2*)
9721 libname_spec='$name'
9722 shrext_cmds=".dll"
9723 need_lib_prefix=no
9724 library_names_spec='$libname${shared_ext} $libname.a'
9725 dynamic_linker='OS/2 ld.exe'
9726 shlibpath_var=LIBPATH
9729 osf3* | osf4* | osf5*)
9730 version_type=osf
9731 need_lib_prefix=no
9732 need_version=no
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9740 rdos*)
9741 dynamic_linker=no
9744 solaris*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 shlibpath_overrides_runpath=yes
9752 hardcode_into_libs=yes
9753 # ldd complains unless libraries are executable
9754 postinstall_cmds='chmod +x $lib'
9757 sunos4*)
9758 version_type=sunos
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 if test "$with_gnu_ld" = yes; then
9764 need_lib_prefix=no
9766 need_version=yes
9769 sysv4 | sysv4.3*)
9770 version_type=linux
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 case $host_vendor in
9775 sni)
9776 shlibpath_overrides_runpath=no
9777 need_lib_prefix=no
9778 runpath_var=LD_RUN_PATH
9780 siemens)
9781 need_lib_prefix=no
9783 motorola)
9784 need_lib_prefix=no
9785 need_version=no
9786 shlibpath_overrides_runpath=no
9787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9789 esac
9792 sysv4*MP*)
9793 if test -d /usr/nec ;then
9794 version_type=linux
9795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9796 soname_spec='$libname${shared_ext}.$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9802 version_type=freebsd-elf
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=yes
9809 hardcode_into_libs=yes
9810 if test "$with_gnu_ld" = yes; then
9811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9812 else
9813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9814 case $host_os in
9815 sco3.2v5*)
9816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9818 esac
9820 sys_lib_dlsearch_path_spec='/usr/lib'
9823 tpf*)
9824 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9825 version_type=linux
9826 need_lib_prefix=no
9827 need_version=no
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=no
9831 hardcode_into_libs=yes
9834 uts4*)
9835 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
9842 dynamic_linker=no
9844 esac
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9846 $as_echo "$dynamic_linker" >&6; }
9847 test "$dynamic_linker" = no && can_build_shared=no
9849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9850 if test "$GCC" = yes; then
9851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9854 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9855 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9857 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9858 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9949 hardcode_action=
9950 if test -n "$hardcode_libdir_flag_spec" ||
9951 test -n "$runpath_var" ||
9952 test "X$hardcode_automatic" = "Xyes" ; then
9954 # We can hardcode non-existent directories.
9955 if test "$hardcode_direct" != no &&
9956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9957 # have to relink, otherwise we might link with an installed library
9958 # when we should be linking with a yet-to-be-installed one
9959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9960 test "$hardcode_minus_L" != no; then
9961 # Linking always hardcodes the temporary library directory.
9962 hardcode_action=relink
9963 else
9964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9965 hardcode_action=immediate
9967 else
9968 # We cannot hardcode anything, or else we can only hardcode existing
9969 # directories.
9970 hardcode_action=unsupported
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9973 $as_echo "$hardcode_action" >&6; }
9975 if test "$hardcode_action" = relink ||
9976 test "$inherit_rpath" = yes; then
9977 # Fast installation is not supported
9978 enable_fast_install=no
9979 elif test "$shlibpath_overrides_runpath" = yes ||
9980 test "$enable_shared" = no; then
9981 # Fast installation is not necessary
9982 enable_fast_install=needless
9990 if test "x$enable_dlopen" != xyes; then
9991 enable_dlopen=unknown
9992 enable_dlopen_self=unknown
9993 enable_dlopen_self_static=unknown
9994 else
9995 lt_cv_dlopen=no
9996 lt_cv_dlopen_libs=
9998 case $host_os in
9999 beos*)
10000 lt_cv_dlopen="load_add_on"
10001 lt_cv_dlopen_libs=
10002 lt_cv_dlopen_self=yes
10005 mingw* | pw32* | cegcc*)
10006 lt_cv_dlopen="LoadLibrary"
10007 lt_cv_dlopen_libs=
10010 cygwin*)
10011 lt_cv_dlopen="dlopen"
10012 lt_cv_dlopen_libs=
10015 darwin*)
10016 # if libdl is installed we need to link against it
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10018 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-ldl $LIBS"
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dlopen ();
10035 main ()
10037 return dlopen ();
10039 return 0;
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"; then :
10043 ac_cv_lib_dl_dlopen=yes
10044 else
10045 ac_cv_lib_dl_dlopen=no
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 LIBS=$ac_check_lib_save_LIBS
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10052 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10053 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10055 else
10057 lt_cv_dlopen="dyld"
10058 lt_cv_dlopen_libs=
10059 lt_cv_dlopen_self=yes
10066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10067 if test "x$ac_cv_func_shl_load" = x""yes; then :
10068 lt_cv_dlopen="shl_load"
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10071 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10072 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 ac_check_lib_save_LIBS=$LIBS
10076 LIBS="-ldld $LIBS"
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char shl_load ();
10088 main ()
10090 return shl_load ();
10092 return 0;
10094 _ACEOF
10095 if ac_fn_c_try_link "$LINENO"; then :
10096 ac_cv_lib_dld_shl_load=yes
10097 else
10098 ac_cv_lib_dld_shl_load=no
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10105 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10106 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10107 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10108 else
10109 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10110 if test "x$ac_cv_func_dlopen" = x""yes; then :
10111 lt_cv_dlopen="dlopen"
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10114 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-ldl $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char dlopen ();
10131 main ()
10133 return dlopen ();
10135 return 0;
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 ac_cv_lib_dl_dlopen=yes
10140 else
10141 ac_cv_lib_dl_dlopen=no
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10149 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10153 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10154 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lsvld $LIBS"
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 char dlopen ();
10170 main ()
10172 return dlopen ();
10174 return 0;
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 ac_cv_lib_svld_dlopen=yes
10179 else
10180 ac_cv_lib_svld_dlopen=no
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10187 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10188 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10190 else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10192 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-ldld $LIBS"
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char dld_link ();
10209 main ()
10211 return dld_link ();
10213 return 0;
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217 ac_cv_lib_dld_dld_link=yes
10218 else
10219 ac_cv_lib_dld_dld_link=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10226 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10227 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10228 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10247 esac
10249 if test "x$lt_cv_dlopen" != xno; then
10250 enable_dlopen=yes
10251 else
10252 enable_dlopen=no
10255 case $lt_cv_dlopen in
10256 dlopen)
10257 save_CPPFLAGS="$CPPFLAGS"
10258 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10260 save_LDFLAGS="$LDFLAGS"
10261 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10263 save_LIBS="$LIBS"
10264 LIBS="$lt_cv_dlopen_libs $LIBS"
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10267 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10268 if test "${lt_cv_dlopen_self+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 if test "$cross_compiling" = yes; then :
10272 lt_cv_dlopen_self=cross
10273 else
10274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10275 lt_status=$lt_dlunknown
10276 cat > conftest.$ac_ext <<_LT_EOF
10277 #line 10277 "configure"
10278 #include "confdefs.h"
10280 #if HAVE_DLFCN_H
10281 #include <dlfcn.h>
10282 #endif
10284 #include <stdio.h>
10286 #ifdef RTLD_GLOBAL
10287 # define LT_DLGLOBAL RTLD_GLOBAL
10288 #else
10289 # ifdef DL_GLOBAL
10290 # define LT_DLGLOBAL DL_GLOBAL
10291 # else
10292 # define LT_DLGLOBAL 0
10293 # endif
10294 #endif
10296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10297 find out it does not work in some platform. */
10298 #ifndef LT_DLLAZY_OR_NOW
10299 # ifdef RTLD_LAZY
10300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10301 # else
10302 # ifdef DL_LAZY
10303 # define LT_DLLAZY_OR_NOW DL_LAZY
10304 # else
10305 # ifdef RTLD_NOW
10306 # define LT_DLLAZY_OR_NOW RTLD_NOW
10307 # else
10308 # ifdef DL_NOW
10309 # define LT_DLLAZY_OR_NOW DL_NOW
10310 # else
10311 # define LT_DLLAZY_OR_NOW 0
10312 # endif
10313 # endif
10314 # endif
10315 # endif
10316 #endif
10318 void fnord() { int i=42;}
10319 int main ()
10321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10322 int status = $lt_dlunknown;
10324 if (self)
10326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10328 /* dlclose (self); */
10330 else
10331 puts (dlerror ());
10333 return status;
10335 _LT_EOF
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10337 (eval $ac_link) 2>&5
10338 ac_status=$?
10339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10341 (./conftest; exit; ) >&5 2>/dev/null
10342 lt_status=$?
10343 case x$lt_status in
10344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10347 esac
10348 else :
10349 # compilation failed
10350 lt_cv_dlopen_self=no
10353 rm -fr conftest*
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10358 $as_echo "$lt_cv_dlopen_self" >&6; }
10360 if test "x$lt_cv_dlopen_self" = xyes; then
10361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10363 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10364 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test "$cross_compiling" = yes; then :
10368 lt_cv_dlopen_self_static=cross
10369 else
10370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371 lt_status=$lt_dlunknown
10372 cat > conftest.$ac_ext <<_LT_EOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10376 #if HAVE_DLFCN_H
10377 #include <dlfcn.h>
10378 #endif
10380 #include <stdio.h>
10382 #ifdef RTLD_GLOBAL
10383 # define LT_DLGLOBAL RTLD_GLOBAL
10384 #else
10385 # ifdef DL_GLOBAL
10386 # define LT_DLGLOBAL DL_GLOBAL
10387 # else
10388 # define LT_DLGLOBAL 0
10389 # endif
10390 #endif
10392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393 find out it does not work in some platform. */
10394 #ifndef LT_DLLAZY_OR_NOW
10395 # ifdef RTLD_LAZY
10396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10397 # else
10398 # ifdef DL_LAZY
10399 # define LT_DLLAZY_OR_NOW DL_LAZY
10400 # else
10401 # ifdef RTLD_NOW
10402 # define LT_DLLAZY_OR_NOW RTLD_NOW
10403 # else
10404 # ifdef DL_NOW
10405 # define LT_DLLAZY_OR_NOW DL_NOW
10406 # else
10407 # define LT_DLLAZY_OR_NOW 0
10408 # endif
10409 # endif
10410 # endif
10411 # endif
10412 #endif
10414 void fnord() { int i=42;}
10415 int main ()
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10420 if (self)
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10426 else
10427 puts (dlerror ());
10429 return status;
10431 _LT_EOF
10432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10437 (./conftest; exit; ) >&5 2>/dev/null
10438 lt_status=$?
10439 case x$lt_status in
10440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10442 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10443 esac
10444 else :
10445 # compilation failed
10446 lt_cv_dlopen_self_static=no
10449 rm -fr conftest*
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10454 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10457 CPPFLAGS="$save_CPPFLAGS"
10458 LDFLAGS="$save_LDFLAGS"
10459 LIBS="$save_LIBS"
10461 esac
10463 case $lt_cv_dlopen_self in
10464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10465 *) enable_dlopen_self=unknown ;;
10466 esac
10468 case $lt_cv_dlopen_self_static in
10469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10470 *) enable_dlopen_self_static=unknown ;;
10471 esac
10490 striplib=
10491 old_striplib=
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10493 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10494 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10495 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10496 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; }
10499 else
10500 # FIXME - insert some real tests, host_os isn't really good enough
10501 case $host_os in
10502 darwin*)
10503 if test -n "$STRIP" ; then
10504 striplib="$STRIP -x"
10505 old_striplib="$STRIP -S"
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507 $as_echo "yes" >&6; }
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10517 esac
10531 # Report which library types will actually be built
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10533 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10535 $as_echo "$can_build_shared" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10538 $as_echo_n "checking whether to build shared libraries... " >&6; }
10539 test "$can_build_shared" = "no" && enable_shared=no
10541 # On AIX, shared libraries and static libraries use the same namespace, and
10542 # are all built from PIC.
10543 case $host_os in
10544 aix3*)
10545 test "$enable_shared" = yes && enable_static=no
10546 if test -n "$RANLIB"; then
10547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10548 postinstall_cmds='$RANLIB $lib'
10552 aix[4-9]*)
10553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10554 test "$enable_shared" = yes && enable_static=no
10557 esac
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10559 $as_echo "$enable_shared" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10562 $as_echo_n "checking whether to build static libraries... " >&6; }
10563 # Make sure either enable_shared or enable_static is yes.
10564 test "$enable_shared" = yes || enable_static=yes
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10566 $as_echo "$enable_static" >&6; }
10572 ac_ext=c
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578 CC="$lt_save_CC"
10592 ac_config_commands="$ac_config_commands libtool"
10597 # Only expand once:
10600 AM_CPPFLAGS="$CPPFLAGS"
10602 gp_config_msg_len="$(expr "Compiler" : '.*')"
10603 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
10604 gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
10605 else
10606 gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
10608 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${CC}
10614 ac_dir=`echo "libexif/_stdint.h"|sed 's%/[^/][^/]*$%%'`
10615 if test "$ac_dir" != "libexif/_stdint.h" && test "$ac_dir" != .; then
10616 # The file is in a subdirectory.
10617 test ! -d "$ac_dir" && mkdir "$ac_dir"
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
10621 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #include <stdint.h>
10625 _ACEOF
10626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10627 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10628 ac_cv_type_uint8_t=yes
10629 else
10630 ac_cv_type_uint8_t=no
10632 rm -f conftest*
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10634 $as_echo "$ac_cv_type_uint8_t" >&6; }
10635 if test $ac_cv_type_uint8_t = yes; then
10637 cat > "libexif/_stdint.h" <<EOF
10638 /* This file is generated automatically by configure */
10639 #include <stdint.h>
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
10643 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <inttypes.h>
10647 _ACEOF
10648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10649 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10650 ac_cv_type_uint8_t=yes
10651 else
10652 ac_cv_type_uint8_t=no
10654 rm -f conftest*
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10656 $as_echo "$ac_cv_type_uint8_t" >&6; }
10657 if test $ac_cv_type_uint8_t = yes; then
10658 cat > "libexif/_stdint.h" <<EOF
10659 /* This file is generated automatically by configure */
10660 #include <inttypes.h>
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
10664 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <sys/types.h>
10668 _ACEOF
10669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10671 ac_cv_type_uint8_t=yes
10672 else
10673 ac_cv_type_uint8_t=no
10675 rm -f conftest*
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10677 $as_echo "$ac_cv_type_uint8_t" >&6; }
10678 if test $ac_cv_type_uint8_t = yes; then
10679 cat > "libexif/_stdint.h" <<EOF
10680 /* This file is generated automatically by configure */
10681 #include <sys/types.h>
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
10685 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 #include <sys/types.h>
10689 _ACEOF
10690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10691 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10692 ac_cv_type_u_int8_t=yes
10693 else
10694 ac_cv_type_u_int8_t=no
10696 rm -f conftest*
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
10698 $as_echo "$ac_cv_type_u_int8_t" >&6; }
10699 if test $ac_cv_type_u_int8_t = yes; then
10700 cat > "libexif/_stdint.h" <<EOF
10701 /* This file is generated automatically by configure */
10702 #ifndef __STDINT_H
10703 #define __STDINT_H
10704 #include <sys/types.h>
10705 typedef u_int8_t uint8_t;
10706 typedef u_int16_t uint16_t;
10707 typedef u_int32_t uint32_t;
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
10711 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #include <sys/types.h>
10715 _ACEOF
10716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10717 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10718 ac_cv_type_u_int64_t=yes
10719 else
10720 ac_cv_type_u_int64_t=no
10722 rm -f conftest*
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
10724 $as_echo "$ac_cv_type_u_int64_t" >&6; }
10725 if test $ac_cv_type_u_int64_t = yes; then
10726 cat >> "libexif/_stdint.h" <<EOF
10727 typedef u_int64_t uint64_t;
10728 #endif /*!__STDINT_H*/
10730 else
10731 cat >> "libexif/_stdint.h" <<EOF
10732 /* 64-bit types are not available on this system */
10733 /* typedef u_int64_t uint64_t; */
10734 #endif /*!__STDINT_H*/
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
10742 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
10743 if test -e "libexif/_stdint.h" ; then
10744 rm -f "libexif/_stdint.h"
10758 ship_binaries=false
10759 # Check whether --enable-ship-binaries was given.
10760 if test "${enable_ship_binaries+set}" = set; then :
10761 enableval=$enable_ship_binaries;
10762 if test x$enableval = xyes; then
10763 ship_binaries=true
10768 if $ship_binaries; then
10769 SHIP_BINARIES_TRUE=
10770 SHIP_BINARIES_FALSE='#'
10771 else
10772 SHIP_BINARIES_TRUE='#'
10773 SHIP_BINARIES_FALSE=
10777 gp_config_msg_len="$(expr "Ship binaries in tarball" : '.*')"
10778 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
10779 gp_config_msg_lhs="$(expr "Ship binaries in tarball" : "\(.\{0,${gp_config_len3}\}\)")..:"
10780 else
10781 gp_config_msg_lhs="$(expr "Ship binaries in tarball:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
10783 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} $ship_binaries
10789 # we need sqrt and pow which may be in libm
10790 # We cannot use AC_CHECK_FUNC because if CFLAGS contains
10791 # -Wall -Werror here the check fails because
10792 # char *sqrt() conflicts with double sqrt(double xx)
10794 # Start by assuming -lm is needed, because it's possible that the little
10795 # test program below will be optimized to in-line floating point code that
10796 # doesn't require -lm, whereas the library itself cannot be so optimized
10797 # (this actually seems to be the case on x86 with gcc 4.2). Assuming the
10798 # reverse means that -lm could be needed but wouldn't be detected below.
10800 LIBS_orig="$LIBS"
10801 LIBS="$LIBS -lm"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions in libm" >&5
10803 $as_echo_n "checking for math functions in libm... " >&6; }
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 #include <math.h>
10808 int main() {
10809 double s = sqrt(0);
10810 double p = pow(s,s);
10811 return (int)p;
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10817 $as_echo "yes" >&6; }
10818 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 LIBS="$LIBS_orig"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions without libm" >&5
10824 $as_echo_n "checking for math functions without libm... " >&6; }
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 #include <math.h>
10829 int main() {
10830 double s = sqrt(0);
10831 double p = pow(s,s);
10832 return (int)p;
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10839 $as_echo "yes" >&6; }
10841 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 as_fn_error "*** Could not find sqrt() & pow() functions" "$LINENO" 5
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10852 rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10855 # doc support
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build any docs" >&5
10857 $as_echo_n "checking whether to build any docs... " >&6; }
10858 # Check whether --enable-docs was given.
10859 if test "${enable_docs+set}" = set; then :
10860 enableval=$enable_docs; case "$enableval" in
10861 yes|true|on) gp_build_docs="yes" ;;
10862 *) gp_build_docs="no" ;;
10863 esac
10865 else
10866 gp_build_docs="yes"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_build_docs}" >&5
10870 $as_echo "${gp_build_docs}" >&6; }
10871 if test "x${gp_build_docs}" = "xyes"; then
10872 BUILD_DOCS_TRUE=
10873 BUILD_DOCS_FALSE='#'
10874 else
10875 BUILD_DOCS_TRUE='#'
10876 BUILD_DOCS_FALSE=
10883 # Check whether --with-doc-dir was given.
10884 if test "${with_doc_dir+set}" = set; then :
10885 withval=$with_doc_dir;
10889 # check for the main ("root") documentation directory
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
10891 $as_echo_n "checking main docdir... " >&6; }
10893 if test "x${with_doc_dir}" != "x"
10894 then # docdir is given as parameter
10895 docdir="${with_doc_dir}"
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
10897 $as_echo "${docdir} (from parameter)" >&6; }
10898 else # otherwise invent a docdir hopefully compatible with system policy
10899 if test -d "/usr/share/doc"
10900 then
10901 maindocdir='${prefix}/share/doc'
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
10903 $as_echo "${maindocdir} (FHS style)" >&6; }
10904 elif test -d "/usr/doc"
10905 then
10906 maindocdir='${prefix}/doc'
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
10908 $as_echo "${maindocdir} (old style)" >&6; }
10909 else
10910 maindocdir='${datadir}/doc'
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
10912 $as_echo "${maindocdir} (default value)" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
10915 $as_echo_n "checking package docdir... " >&6; }
10916 # check whether to include package version into documentation path
10917 # FIXME: doesn't work properly.
10918 if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
10919 then
10920 docdir="${maindocdir}/${PACKAGE}-${VERSION}"
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
10922 $as_echo "${docdir} (redhat style)" >&6; }
10923 else
10924 docdir="${maindocdir}/${PACKAGE}"
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
10926 $as_echo "${docdir} (default style)" >&6; }
10932 # Extract the first word of "dot", so it can be a program name with args.
10933 set dummy dot; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_path_DOT+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 case $DOT in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10959 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
10961 esac
10963 DOT=$ac_cv_path_DOT
10964 if test -n "$DOT"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
10966 $as_echo "$DOT" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10973 # Extract the first word of "doxygen", so it can be a program name with args.
10974 set dummy doxygen; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 case $DOXYGEN in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10996 done
10997 done
10998 IFS=$as_save_IFS
11000 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
11002 esac
11004 DOXYGEN=$ac_cv_path_DOXYGEN
11005 if test -n "$DOXYGEN"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11007 $as_echo "$DOXYGEN" >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11014 if test "x$DOXYGEN" != "xfalse"; then
11015 HAVE_DOXYGEN_TRUE=
11016 HAVE_DOXYGEN_FALSE='#'
11017 else
11018 HAVE_DOXYGEN_TRUE='#'
11019 HAVE_DOXYGEN_FALSE=
11022 if test "x$DOT" != "xfalse"; then
11023 HAVE_DOT_TRUE=
11024 HAVE_DOT_FALSE='#'
11025 else
11026 HAVE_DOT_TRUE='#'
11027 HAVE_DOT_FALSE=
11030 if test "x$DOT" != "xfalse"; then
11031 HAVE_DOT=YES
11033 else
11034 HAVE_DOT=NO
11037 HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html"
11039 DOXYGEN_OUTPUT_DIR=doxygen-output
11041 HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html"
11045 # Whether to enable the internal docs build.
11047 # This takes quite some time due to the generation of lots of call
11048 # graphs, so it is disabled by default.
11049 set_enable_internal_docs=no
11050 # Check whether --enable-internal-docs was given.
11051 if test "${enable_internal_docs+set}" = set; then :
11052 enableval=$enable_internal_docs; if test "x$enableval" = xno \
11053 || test "x$enableval" = xoff \
11054 || test "x$enableval" = xfalse;
11055 then
11056 set_enable_internal_docs=no
11057 elif test "x$enableval" = xyes \
11058 || test "x$enableval" = xon \
11059 || test "x$enableval" = xtrue
11060 then
11061 set_enable_internal_docs=yes
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create internal code docs" >&5
11067 $as_echo_n "checking whether to create internal code docs... " >&6; }
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${set_enable_internal_docs}" >&5
11069 $as_echo "${set_enable_internal_docs}" >&6; }
11070 if test "x${set_enable_internal_docs}" = "xyes"; then
11071 ENABLE_INTERNAL_DOCS_TRUE=
11072 ENABLE_INTERNAL_DOCS_FALSE='#'
11073 else
11074 ENABLE_INTERNAL_DOCS_TRUE='#'
11075 ENABLE_INTERNAL_DOCS_FALSE=
11080 # ---------------------------------------------------------------------------
11081 # i18n support
11082 # ---------------------------------------------------------------------------
11083 ALL_LINGUAS="be cs da de en_CA en_GB es fr it ja nl pl pt pt_BR ru sk sq sr sv vi zh_CN"
11085 MKINSTALLDIRS=
11086 if test -n "$ac_aux_dir"; then
11087 case "$ac_aux_dir" in
11088 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11089 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11090 esac
11092 if test -z "$MKINSTALLDIRS"; then
11093 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11099 $as_echo_n "checking whether NLS is requested... " >&6; }
11100 # Check whether --enable-nls was given.
11101 if test "${enable_nls+set}" = set; then :
11102 enableval=$enable_nls; USE_NLS=$enableval
11103 else
11104 USE_NLS=yes
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11108 $as_echo "$USE_NLS" >&6; }
11115 # Prepare PATH_SEPARATOR.
11116 # The user is always right.
11117 if test "${PATH_SEPARATOR+set}" != set; then
11118 echo "#! /bin/sh" >conf$$.sh
11119 echo "exit 0" >>conf$$.sh
11120 chmod +x conf$$.sh
11121 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11122 PATH_SEPARATOR=';'
11123 else
11124 PATH_SEPARATOR=:
11126 rm -f conf$$.sh
11129 # Find out how to test for executable files. Don't use a zero-byte file,
11130 # as systems may use methods other than mode bits to determine executability.
11131 cat >conf$$.file <<_ASEOF
11132 #! /bin/sh
11133 exit 0
11134 _ASEOF
11135 chmod +x conf$$.file
11136 if test -x conf$$.file >/dev/null 2>&1; then
11137 ac_executable_p="test -x"
11138 else
11139 ac_executable_p="test -f"
11141 rm -f conf$$.file
11143 # Extract the first word of "msgfmt", so it can be a program name with args.
11144 set dummy msgfmt; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 case "$MSGFMT" in
11151 [\\/]* | ?:[\\/]*)
11152 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11155 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11156 for ac_dir in $PATH; do
11157 IFS="$ac_save_IFS"
11158 test -z "$ac_dir" && ac_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11161 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11162 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11163 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11164 break 2
11167 done
11168 done
11169 IFS="$ac_save_IFS"
11170 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11172 esac
11174 MSGFMT="$ac_cv_path_MSGFMT"
11175 if test "$MSGFMT" != ":"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11177 $as_echo "$MSGFMT" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11183 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11184 set dummy gmsgfmt; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 case $GMSGFMT in
11191 [\\/]* | ?:[\\/]*)
11192 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11206 done
11207 done
11208 IFS=$as_save_IFS
11210 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11212 esac
11214 GMSGFMT=$ac_cv_path_GMSGFMT
11215 if test -n "$GMSGFMT"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11217 $as_echo "$GMSGFMT" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11226 # Prepare PATH_SEPARATOR.
11227 # The user is always right.
11228 if test "${PATH_SEPARATOR+set}" != set; then
11229 echo "#! /bin/sh" >conf$$.sh
11230 echo "exit 0" >>conf$$.sh
11231 chmod +x conf$$.sh
11232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11233 PATH_SEPARATOR=';'
11234 else
11235 PATH_SEPARATOR=:
11237 rm -f conf$$.sh
11240 # Find out how to test for executable files. Don't use a zero-byte file,
11241 # as systems may use methods other than mode bits to determine executability.
11242 cat >conf$$.file <<_ASEOF
11243 #! /bin/sh
11244 exit 0
11245 _ASEOF
11246 chmod +x conf$$.file
11247 if test -x conf$$.file >/dev/null 2>&1; then
11248 ac_executable_p="test -x"
11249 else
11250 ac_executable_p="test -f"
11252 rm -f conf$$.file
11254 # Extract the first word of "xgettext", so it can be a program name with args.
11255 set dummy xgettext; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 case "$XGETTEXT" in
11262 [\\/]* | ?:[\\/]*)
11263 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11266 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11267 for ac_dir in $PATH; do
11268 IFS="$ac_save_IFS"
11269 test -z "$ac_dir" && ac_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11272 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11273 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11274 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11275 break 2
11278 done
11279 done
11280 IFS="$ac_save_IFS"
11281 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11283 esac
11285 XGETTEXT="$ac_cv_path_XGETTEXT"
11286 if test "$XGETTEXT" != ":"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11288 $as_echo "$XGETTEXT" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11294 rm -f messages.po
11297 # Prepare PATH_SEPARATOR.
11298 # The user is always right.
11299 if test "${PATH_SEPARATOR+set}" != set; then
11300 echo "#! /bin/sh" >conf$$.sh
11301 echo "exit 0" >>conf$$.sh
11302 chmod +x conf$$.sh
11303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11304 PATH_SEPARATOR=';'
11305 else
11306 PATH_SEPARATOR=:
11308 rm -f conf$$.sh
11311 # Find out how to test for executable files. Don't use a zero-byte file,
11312 # as systems may use methods other than mode bits to determine executability.
11313 cat >conf$$.file <<_ASEOF
11314 #! /bin/sh
11315 exit 0
11316 _ASEOF
11317 chmod +x conf$$.file
11318 if test -x conf$$.file >/dev/null 2>&1; then
11319 ac_executable_p="test -x"
11320 else
11321 ac_executable_p="test -f"
11323 rm -f conf$$.file
11325 # Extract the first word of "msgmerge", so it can be a program name with args.
11326 set dummy msgmerge; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 case "$MSGMERGE" in
11333 [\\/]* | ?:[\\/]*)
11334 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11338 for ac_dir in $PATH; do
11339 IFS="$ac_save_IFS"
11340 test -z "$ac_dir" && ac_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11343 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11344 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11345 break 2
11348 done
11349 done
11350 IFS="$ac_save_IFS"
11351 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11353 esac
11355 MSGMERGE="$ac_cv_path_MSGMERGE"
11356 if test "$MSGMERGE" != ":"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11358 $as_echo "$MSGMERGE" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11365 if test "$GMSGFMT" != ":"; then
11366 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11367 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11369 else
11370 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11372 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11373 GMSGFMT=":"
11377 if test "$XGETTEXT" != ":"; then
11378 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11379 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11383 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11384 XGETTEXT=":"
11386 rm -f messages.po
11389 ac_config_commands="$ac_config_commands default-1"
11393 GETTEXT_PACKAGE="${PACKAGE}-${LIBEXIF_CURRENT_MIN}"
11394 # The gettext domain we're using
11395 AM_CPPFLAGS="$AM_CPPFLAGS -DGETTEXT_PACKAGE=\\\"${GETTEXT_PACKAGE}\\\""
11397 sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
11398 sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Mueller and others|"
11400 if test -n "$PACKAGE_BUGREPORT"; then
11401 sed_mb="${PACKAGE_BUGREPORT}"
11402 else
11403 as_fn_error "
11404 *** Your configure.{ac,in} is wrong.
11405 *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
11406 *** or give GP_GETTEXT_HACK the third parameter.
11408 " "$LINENO" 5
11411 sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
11412 # Not so sure whether this hack is all *that* evil...
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
11414 $as_echo_n "checking for po/Makevars requiring hack... " >&6; }
11415 if test -f "${srcdir}/po/Makevars.template"; then
11416 sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
11418 $as_echo "yes, done." >&6; }
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11426 if test "X$prefix" = "XNONE"; then
11427 acl_final_prefix="$ac_default_prefix"
11428 else
11429 acl_final_prefix="$prefix"
11431 if test "X$exec_prefix" = "XNONE"; then
11432 acl_final_exec_prefix='${prefix}'
11433 else
11434 acl_final_exec_prefix="$exec_prefix"
11436 acl_save_prefix="$prefix"
11437 prefix="$acl_final_prefix"
11438 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11439 prefix="$acl_save_prefix"
11442 # Check whether --with-gnu-ld was given.
11443 if test "${with_gnu_ld+set}" = set; then :
11444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11445 else
11446 with_gnu_ld=no
11449 # Prepare PATH_SEPARATOR.
11450 # The user is always right.
11451 if test "${PATH_SEPARATOR+set}" != set; then
11452 echo "#! /bin/sh" >conf$$.sh
11453 echo "exit 0" >>conf$$.sh
11454 chmod +x conf$$.sh
11455 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11456 PATH_SEPARATOR=';'
11457 else
11458 PATH_SEPARATOR=:
11460 rm -f conf$$.sh
11462 ac_prog=ld
11463 if test "$GCC" = yes; then
11464 # Check if gcc -print-prog-name=ld gives a path.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11466 $as_echo_n "checking for ld used by GCC... " >&6; }
11467 case $host in
11468 *-*-mingw*)
11469 # gcc leaves a trailing carriage return which upsets mingw
11470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11473 esac
11474 case $ac_prog in
11475 # Accept absolute paths.
11476 [\\/]* | [A-Za-z]:[\\/]*)
11477 re_direlt='/[^/][^/]*/\.\./'
11478 # Canonicalize the path of ld
11479 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11481 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11482 done
11483 test -z "$LD" && LD="$ac_prog"
11486 # If it fails, then pretend we aren't using GCC.
11487 ac_prog=ld
11490 # If it is relative, then search for the first ld in PATH.
11491 with_gnu_ld=unknown
11493 esac
11494 elif test "$with_gnu_ld" = yes; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11496 $as_echo_n "checking for GNU ld... " >&6; }
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11499 $as_echo_n "checking for non-GNU ld... " >&6; }
11501 if test "${acl_cv_path_LD+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 if test -z "$LD"; then
11505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11506 for ac_dir in $PATH; do
11507 test -z "$ac_dir" && ac_dir=.
11508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11509 acl_cv_path_LD="$ac_dir/$ac_prog"
11510 # Check to see if the program is GNU ld. I'd rather use --version,
11511 # but apparently some GNU ld's only accept -v.
11512 # Break only if it was the GNU/non-GNU ld that we prefer.
11513 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11514 *GNU* | *'with BFD'*)
11515 test "$with_gnu_ld" != no && break ;;
11517 test "$with_gnu_ld" != yes && break ;;
11518 esac
11520 done
11521 IFS="$ac_save_ifs"
11522 else
11523 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11527 LD="$acl_cv_path_LD"
11528 if test -n "$LD"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11530 $as_echo "$LD" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11535 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11538 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11542 case `$LD -v 2>&1 </dev/null` in
11543 *GNU* | *'with BFD'*)
11544 acl_cv_prog_gnu_ld=yes ;;
11546 acl_cv_prog_gnu_ld=no ;;
11547 esac
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11550 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11551 with_gnu_ld=$acl_cv_prog_gnu_ld
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11556 $as_echo_n "checking for shared library run path origin... " >&6; }
11557 if test "${acl_cv_rpath+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11563 . ./conftest.sh
11564 rm -f ./conftest.sh
11565 acl_cv_rpath=done
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11569 $as_echo "$acl_cv_rpath" >&6; }
11570 wl="$acl_cv_wl"
11571 libext="$acl_cv_libext"
11572 shlibext="$acl_cv_shlibext"
11573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11575 hardcode_direct="$acl_cv_hardcode_direct"
11576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11577 # Check whether --enable-rpath was given.
11578 if test "${enable_rpath+set}" = set; then :
11579 enableval=$enable_rpath; :
11580 else
11581 enable_rpath=yes
11591 use_additional=yes
11593 acl_save_prefix="$prefix"
11594 prefix="$acl_final_prefix"
11595 acl_save_exec_prefix="$exec_prefix"
11596 exec_prefix="$acl_final_exec_prefix"
11598 eval additional_includedir=\"$includedir\"
11599 eval additional_libdir=\"$libdir\"
11601 exec_prefix="$acl_save_exec_prefix"
11602 prefix="$acl_save_prefix"
11605 # Check whether --with-libiconv-prefix was given.
11606 if test "${with_libiconv_prefix+set}" = set; then :
11607 withval=$with_libiconv_prefix;
11608 if test "X$withval" = "Xno"; then
11609 use_additional=no
11610 else
11611 if test "X$withval" = "X"; then
11613 acl_save_prefix="$prefix"
11614 prefix="$acl_final_prefix"
11615 acl_save_exec_prefix="$exec_prefix"
11616 exec_prefix="$acl_final_exec_prefix"
11618 eval additional_includedir=\"$includedir\"
11619 eval additional_libdir=\"$libdir\"
11621 exec_prefix="$acl_save_exec_prefix"
11622 prefix="$acl_save_prefix"
11624 else
11625 additional_includedir="$withval/include"
11626 additional_libdir="$withval/lib"
11632 LIBICONV=
11633 LTLIBICONV=
11634 INCICONV=
11635 rpathdirs=
11636 ltrpathdirs=
11637 names_already_handled=
11638 names_next_round='iconv '
11639 while test -n "$names_next_round"; do
11640 names_this_round="$names_next_round"
11641 names_next_round=
11642 for name in $names_this_round; do
11643 already_handled=
11644 for n in $names_already_handled; do
11645 if test "$n" = "$name"; then
11646 already_handled=yes
11647 break
11649 done
11650 if test -z "$already_handled"; then
11651 names_already_handled="$names_already_handled $name"
11652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11653 eval value=\"\$HAVE_LIB$uppername\"
11654 if test -n "$value"; then
11655 if test "$value" = yes; then
11656 eval value=\"\$LIB$uppername\"
11657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11658 eval value=\"\$LTLIB$uppername\"
11659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11660 else
11663 else
11664 found_dir=
11665 found_la=
11666 found_so=
11667 found_a=
11668 if test $use_additional = yes; then
11669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11670 found_dir="$additional_libdir"
11671 found_so="$additional_libdir/lib$name.$shlibext"
11672 if test -f "$additional_libdir/lib$name.la"; then
11673 found_la="$additional_libdir/lib$name.la"
11675 else
11676 if test -f "$additional_libdir/lib$name.$libext"; then
11677 found_dir="$additional_libdir"
11678 found_a="$additional_libdir/lib$name.$libext"
11679 if test -f "$additional_libdir/lib$name.la"; then
11680 found_la="$additional_libdir/lib$name.la"
11685 if test "X$found_dir" = "X"; then
11686 for x in $LDFLAGS $LTLIBICONV; do
11688 acl_save_prefix="$prefix"
11689 prefix="$acl_final_prefix"
11690 acl_save_exec_prefix="$exec_prefix"
11691 exec_prefix="$acl_final_exec_prefix"
11692 eval x=\"$x\"
11693 exec_prefix="$acl_save_exec_prefix"
11694 prefix="$acl_save_prefix"
11696 case "$x" in
11697 -L*)
11698 dir=`echo "X$x" | sed -e 's/^X-L//'`
11699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11700 found_dir="$dir"
11701 found_so="$dir/lib$name.$shlibext"
11702 if test -f "$dir/lib$name.la"; then
11703 found_la="$dir/lib$name.la"
11705 else
11706 if test -f "$dir/lib$name.$libext"; then
11707 found_dir="$dir"
11708 found_a="$dir/lib$name.$libext"
11709 if test -f "$dir/lib$name.la"; then
11710 found_la="$dir/lib$name.la"
11715 esac
11716 if test "X$found_dir" != "X"; then
11717 break
11719 done
11721 if test "X$found_dir" != "X"; then
11722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11723 if test "X$found_so" != "X"; then
11724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11726 else
11727 haveit=
11728 for x in $ltrpathdirs; do
11729 if test "X$x" = "X$found_dir"; then
11730 haveit=yes
11731 break
11733 done
11734 if test -z "$haveit"; then
11735 ltrpathdirs="$ltrpathdirs $found_dir"
11737 if test "$hardcode_direct" = yes; then
11738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11739 else
11740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11742 haveit=
11743 for x in $rpathdirs; do
11744 if test "X$x" = "X$found_dir"; then
11745 haveit=yes
11746 break
11748 done
11749 if test -z "$haveit"; then
11750 rpathdirs="$rpathdirs $found_dir"
11752 else
11753 haveit=
11754 for x in $LDFLAGS $LIBICONV; do
11756 acl_save_prefix="$prefix"
11757 prefix="$acl_final_prefix"
11758 acl_save_exec_prefix="$exec_prefix"
11759 exec_prefix="$acl_final_exec_prefix"
11760 eval x=\"$x\"
11761 exec_prefix="$acl_save_exec_prefix"
11762 prefix="$acl_save_prefix"
11764 if test "X$x" = "X-L$found_dir"; then
11765 haveit=yes
11766 break
11768 done
11769 if test -z "$haveit"; then
11770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11772 if test "$hardcode_minus_L" != no; then
11773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11774 else
11775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11780 else
11781 if test "X$found_a" != "X"; then
11782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11783 else
11784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11787 additional_includedir=
11788 case "$found_dir" in
11789 */lib | */lib/)
11790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11791 additional_includedir="$basedir/include"
11793 esac
11794 if test "X$additional_includedir" != "X"; then
11795 if test "X$additional_includedir" != "X/usr/include"; then
11796 haveit=
11797 if test "X$additional_includedir" = "X/usr/local/include"; then
11798 if test -n "$GCC"; then
11799 case $host_os in
11800 linux*) haveit=yes;;
11801 esac
11804 if test -z "$haveit"; then
11805 for x in $CPPFLAGS $INCICONV; do
11807 acl_save_prefix="$prefix"
11808 prefix="$acl_final_prefix"
11809 acl_save_exec_prefix="$exec_prefix"
11810 exec_prefix="$acl_final_exec_prefix"
11811 eval x=\"$x\"
11812 exec_prefix="$acl_save_exec_prefix"
11813 prefix="$acl_save_prefix"
11815 if test "X$x" = "X-I$additional_includedir"; then
11816 haveit=yes
11817 break
11819 done
11820 if test -z "$haveit"; then
11821 if test -d "$additional_includedir"; then
11822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11828 if test -n "$found_la"; then
11829 save_libdir="$libdir"
11830 case "$found_la" in
11831 */* | *\\*) . "$found_la" ;;
11832 *) . "./$found_la" ;;
11833 esac
11834 libdir="$save_libdir"
11835 for dep in $dependency_libs; do
11836 case "$dep" in
11837 -L*)
11838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11839 if test "X$additional_libdir" != "X/usr/lib"; then
11840 haveit=
11841 if test "X$additional_libdir" = "X/usr/local/lib"; then
11842 if test -n "$GCC"; then
11843 case $host_os in
11844 linux*) haveit=yes;;
11845 esac
11848 if test -z "$haveit"; then
11849 haveit=
11850 for x in $LDFLAGS $LIBICONV; do
11852 acl_save_prefix="$prefix"
11853 prefix="$acl_final_prefix"
11854 acl_save_exec_prefix="$exec_prefix"
11855 exec_prefix="$acl_final_exec_prefix"
11856 eval x=\"$x\"
11857 exec_prefix="$acl_save_exec_prefix"
11858 prefix="$acl_save_prefix"
11860 if test "X$x" = "X-L$additional_libdir"; then
11861 haveit=yes
11862 break
11864 done
11865 if test -z "$haveit"; then
11866 if test -d "$additional_libdir"; then
11867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11870 haveit=
11871 for x in $LDFLAGS $LTLIBICONV; do
11873 acl_save_prefix="$prefix"
11874 prefix="$acl_final_prefix"
11875 acl_save_exec_prefix="$exec_prefix"
11876 exec_prefix="$acl_final_exec_prefix"
11877 eval x=\"$x\"
11878 exec_prefix="$acl_save_exec_prefix"
11879 prefix="$acl_save_prefix"
11881 if test "X$x" = "X-L$additional_libdir"; then
11882 haveit=yes
11883 break
11885 done
11886 if test -z "$haveit"; then
11887 if test -d "$additional_libdir"; then
11888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11894 -R*)
11895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11896 if test "$enable_rpath" != no; then
11897 haveit=
11898 for x in $rpathdirs; do
11899 if test "X$x" = "X$dir"; then
11900 haveit=yes
11901 break
11903 done
11904 if test -z "$haveit"; then
11905 rpathdirs="$rpathdirs $dir"
11907 haveit=
11908 for x in $ltrpathdirs; do
11909 if test "X$x" = "X$dir"; then
11910 haveit=yes
11911 break
11913 done
11914 if test -z "$haveit"; then
11915 ltrpathdirs="$ltrpathdirs $dir"
11919 -l*)
11920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11922 *.la)
11923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11929 esac
11930 done
11932 else
11933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11938 done
11939 done
11940 if test "X$rpathdirs" != "X"; then
11941 if test -n "$hardcode_libdir_separator"; then
11942 alldirs=
11943 for found_dir in $rpathdirs; do
11944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11945 done
11946 acl_save_libdir="$libdir"
11947 libdir="$alldirs"
11948 eval flag=\"$hardcode_libdir_flag_spec\"
11949 libdir="$acl_save_libdir"
11950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11951 else
11952 for found_dir in $rpathdirs; do
11953 acl_save_libdir="$libdir"
11954 libdir="$found_dir"
11955 eval flag=\"$hardcode_libdir_flag_spec\"
11956 libdir="$acl_save_libdir"
11957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11958 done
11961 if test "X$ltrpathdirs" != "X"; then
11962 for found_dir in $ltrpathdirs; do
11963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11964 done
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11985 $as_echo_n "checking whether NLS is requested... " >&6; }
11986 # Check whether --enable-nls was given.
11987 if test "${enable_nls+set}" = set; then :
11988 enableval=$enable_nls; USE_NLS=$enableval
11989 else
11990 USE_NLS=yes
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11994 $as_echo "$USE_NLS" >&6; }
11999 LIBINTL=
12000 LTLIBINTL=
12001 POSUB=
12003 if test "$USE_NLS" = "yes"; then
12004 gt_use_preinstalled_gnugettext=no
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12012 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12013 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <libintl.h>
12019 extern int _nl_msg_cat_cntr;
12020 extern int *_nl_domain_bindings;
12022 main ()
12024 bindtextdomain ("", "");
12025 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12027 return 0;
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 gt_cv_func_gnugettext1_libc=yes
12032 else
12033 gt_cv_func_gnugettext1_libc=no
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
12039 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12041 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12047 am_save_CPPFLAGS="$CPPFLAGS"
12049 for element in $INCICONV; do
12050 haveit=
12051 for x in $CPPFLAGS; do
12053 acl_save_prefix="$prefix"
12054 prefix="$acl_final_prefix"
12055 acl_save_exec_prefix="$exec_prefix"
12056 exec_prefix="$acl_final_exec_prefix"
12057 eval x=\"$x\"
12058 exec_prefix="$acl_save_exec_prefix"
12059 prefix="$acl_save_prefix"
12061 if test "X$x" = "X$element"; then
12062 haveit=yes
12063 break
12065 done
12066 if test -z "$haveit"; then
12067 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12069 done
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12073 $as_echo_n "checking for iconv... " >&6; }
12074 if test "${am_cv_func_iconv+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12078 am_cv_func_iconv="no, consider installing GNU libiconv"
12079 am_cv_lib_iconv=no
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <stdlib.h>
12083 #include <iconv.h>
12085 main ()
12087 iconv_t cd = iconv_open("","");
12088 iconv(cd,NULL,NULL,NULL,NULL);
12089 iconv_close(cd);
12091 return 0;
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 am_cv_func_iconv=yes
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 if test "$am_cv_func_iconv" != yes; then
12100 am_save_LIBS="$LIBS"
12101 LIBS="$LIBS $LIBICONV"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #include <stdlib.h>
12105 #include <iconv.h>
12107 main ()
12109 iconv_t cd = iconv_open("","");
12110 iconv(cd,NULL,NULL,NULL,NULL);
12111 iconv_close(cd);
12113 return 0;
12115 _ACEOF
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 am_cv_lib_iconv=yes
12118 am_cv_func_iconv=yes
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122 LIBS="$am_save_LIBS"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12127 $as_echo "$am_cv_func_iconv" >&6; }
12128 if test "$am_cv_func_iconv" = yes; then
12130 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12133 if test "$am_cv_lib_iconv" = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12135 $as_echo_n "checking how to link with libiconv... " >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12137 $as_echo "$LIBICONV" >&6; }
12138 else
12139 CPPFLAGS="$am_save_CPPFLAGS"
12140 LIBICONV=
12141 LTLIBICONV=
12149 use_additional=yes
12151 acl_save_prefix="$prefix"
12152 prefix="$acl_final_prefix"
12153 acl_save_exec_prefix="$exec_prefix"
12154 exec_prefix="$acl_final_exec_prefix"
12156 eval additional_includedir=\"$includedir\"
12157 eval additional_libdir=\"$libdir\"
12159 exec_prefix="$acl_save_exec_prefix"
12160 prefix="$acl_save_prefix"
12163 # Check whether --with-libintl-prefix was given.
12164 if test "${with_libintl_prefix+set}" = set; then :
12165 withval=$with_libintl_prefix;
12166 if test "X$withval" = "Xno"; then
12167 use_additional=no
12168 else
12169 if test "X$withval" = "X"; then
12171 acl_save_prefix="$prefix"
12172 prefix="$acl_final_prefix"
12173 acl_save_exec_prefix="$exec_prefix"
12174 exec_prefix="$acl_final_exec_prefix"
12176 eval additional_includedir=\"$includedir\"
12177 eval additional_libdir=\"$libdir\"
12179 exec_prefix="$acl_save_exec_prefix"
12180 prefix="$acl_save_prefix"
12182 else
12183 additional_includedir="$withval/include"
12184 additional_libdir="$withval/lib"
12190 LIBINTL=
12191 LTLIBINTL=
12192 INCINTL=
12193 rpathdirs=
12194 ltrpathdirs=
12195 names_already_handled=
12196 names_next_round='intl '
12197 while test -n "$names_next_round"; do
12198 names_this_round="$names_next_round"
12199 names_next_round=
12200 for name in $names_this_round; do
12201 already_handled=
12202 for n in $names_already_handled; do
12203 if test "$n" = "$name"; then
12204 already_handled=yes
12205 break
12207 done
12208 if test -z "$already_handled"; then
12209 names_already_handled="$names_already_handled $name"
12210 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12211 eval value=\"\$HAVE_LIB$uppername\"
12212 if test -n "$value"; then
12213 if test "$value" = yes; then
12214 eval value=\"\$LIB$uppername\"
12215 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12216 eval value=\"\$LTLIB$uppername\"
12217 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12218 else
12221 else
12222 found_dir=
12223 found_la=
12224 found_so=
12225 found_a=
12226 if test $use_additional = yes; then
12227 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12228 found_dir="$additional_libdir"
12229 found_so="$additional_libdir/lib$name.$shlibext"
12230 if test -f "$additional_libdir/lib$name.la"; then
12231 found_la="$additional_libdir/lib$name.la"
12233 else
12234 if test -f "$additional_libdir/lib$name.$libext"; then
12235 found_dir="$additional_libdir"
12236 found_a="$additional_libdir/lib$name.$libext"
12237 if test -f "$additional_libdir/lib$name.la"; then
12238 found_la="$additional_libdir/lib$name.la"
12243 if test "X$found_dir" = "X"; then
12244 for x in $LDFLAGS $LTLIBINTL; do
12246 acl_save_prefix="$prefix"
12247 prefix="$acl_final_prefix"
12248 acl_save_exec_prefix="$exec_prefix"
12249 exec_prefix="$acl_final_exec_prefix"
12250 eval x=\"$x\"
12251 exec_prefix="$acl_save_exec_prefix"
12252 prefix="$acl_save_prefix"
12254 case "$x" in
12255 -L*)
12256 dir=`echo "X$x" | sed -e 's/^X-L//'`
12257 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12258 found_dir="$dir"
12259 found_so="$dir/lib$name.$shlibext"
12260 if test -f "$dir/lib$name.la"; then
12261 found_la="$dir/lib$name.la"
12263 else
12264 if test -f "$dir/lib$name.$libext"; then
12265 found_dir="$dir"
12266 found_a="$dir/lib$name.$libext"
12267 if test -f "$dir/lib$name.la"; then
12268 found_la="$dir/lib$name.la"
12273 esac
12274 if test "X$found_dir" != "X"; then
12275 break
12277 done
12279 if test "X$found_dir" != "X"; then
12280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12281 if test "X$found_so" != "X"; then
12282 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12284 else
12285 haveit=
12286 for x in $ltrpathdirs; do
12287 if test "X$x" = "X$found_dir"; then
12288 haveit=yes
12289 break
12291 done
12292 if test -z "$haveit"; then
12293 ltrpathdirs="$ltrpathdirs $found_dir"
12295 if test "$hardcode_direct" = yes; then
12296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12297 else
12298 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12299 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12300 haveit=
12301 for x in $rpathdirs; do
12302 if test "X$x" = "X$found_dir"; then
12303 haveit=yes
12304 break
12306 done
12307 if test -z "$haveit"; then
12308 rpathdirs="$rpathdirs $found_dir"
12310 else
12311 haveit=
12312 for x in $LDFLAGS $LIBINTL; do
12314 acl_save_prefix="$prefix"
12315 prefix="$acl_final_prefix"
12316 acl_save_exec_prefix="$exec_prefix"
12317 exec_prefix="$acl_final_exec_prefix"
12318 eval x=\"$x\"
12319 exec_prefix="$acl_save_exec_prefix"
12320 prefix="$acl_save_prefix"
12322 if test "X$x" = "X-L$found_dir"; then
12323 haveit=yes
12324 break
12326 done
12327 if test -z "$haveit"; then
12328 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12330 if test "$hardcode_minus_L" != no; then
12331 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12332 else
12333 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12338 else
12339 if test "X$found_a" != "X"; then
12340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12341 else
12342 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12345 additional_includedir=
12346 case "$found_dir" in
12347 */lib | */lib/)
12348 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12349 additional_includedir="$basedir/include"
12351 esac
12352 if test "X$additional_includedir" != "X"; then
12353 if test "X$additional_includedir" != "X/usr/include"; then
12354 haveit=
12355 if test "X$additional_includedir" = "X/usr/local/include"; then
12356 if test -n "$GCC"; then
12357 case $host_os in
12358 linux*) haveit=yes;;
12359 esac
12362 if test -z "$haveit"; then
12363 for x in $CPPFLAGS $INCINTL; do
12365 acl_save_prefix="$prefix"
12366 prefix="$acl_final_prefix"
12367 acl_save_exec_prefix="$exec_prefix"
12368 exec_prefix="$acl_final_exec_prefix"
12369 eval x=\"$x\"
12370 exec_prefix="$acl_save_exec_prefix"
12371 prefix="$acl_save_prefix"
12373 if test "X$x" = "X-I$additional_includedir"; then
12374 haveit=yes
12375 break
12377 done
12378 if test -z "$haveit"; then
12379 if test -d "$additional_includedir"; then
12380 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12386 if test -n "$found_la"; then
12387 save_libdir="$libdir"
12388 case "$found_la" in
12389 */* | *\\*) . "$found_la" ;;
12390 *) . "./$found_la" ;;
12391 esac
12392 libdir="$save_libdir"
12393 for dep in $dependency_libs; do
12394 case "$dep" in
12395 -L*)
12396 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12397 if test "X$additional_libdir" != "X/usr/lib"; then
12398 haveit=
12399 if test "X$additional_libdir" = "X/usr/local/lib"; then
12400 if test -n "$GCC"; then
12401 case $host_os in
12402 linux*) haveit=yes;;
12403 esac
12406 if test -z "$haveit"; then
12407 haveit=
12408 for x in $LDFLAGS $LIBINTL; do
12410 acl_save_prefix="$prefix"
12411 prefix="$acl_final_prefix"
12412 acl_save_exec_prefix="$exec_prefix"
12413 exec_prefix="$acl_final_exec_prefix"
12414 eval x=\"$x\"
12415 exec_prefix="$acl_save_exec_prefix"
12416 prefix="$acl_save_prefix"
12418 if test "X$x" = "X-L$additional_libdir"; then
12419 haveit=yes
12420 break
12422 done
12423 if test -z "$haveit"; then
12424 if test -d "$additional_libdir"; then
12425 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12428 haveit=
12429 for x in $LDFLAGS $LTLIBINTL; do
12431 acl_save_prefix="$prefix"
12432 prefix="$acl_final_prefix"
12433 acl_save_exec_prefix="$exec_prefix"
12434 exec_prefix="$acl_final_exec_prefix"
12435 eval x=\"$x\"
12436 exec_prefix="$acl_save_exec_prefix"
12437 prefix="$acl_save_prefix"
12439 if test "X$x" = "X-L$additional_libdir"; then
12440 haveit=yes
12441 break
12443 done
12444 if test -z "$haveit"; then
12445 if test -d "$additional_libdir"; then
12446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12452 -R*)
12453 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12454 if test "$enable_rpath" != no; then
12455 haveit=
12456 for x in $rpathdirs; do
12457 if test "X$x" = "X$dir"; then
12458 haveit=yes
12459 break
12461 done
12462 if test -z "$haveit"; then
12463 rpathdirs="$rpathdirs $dir"
12465 haveit=
12466 for x in $ltrpathdirs; do
12467 if test "X$x" = "X$dir"; then
12468 haveit=yes
12469 break
12471 done
12472 if test -z "$haveit"; then
12473 ltrpathdirs="$ltrpathdirs $dir"
12477 -l*)
12478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12480 *.la)
12481 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12484 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12485 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12487 esac
12488 done
12490 else
12491 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12492 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12496 done
12497 done
12498 if test "X$rpathdirs" != "X"; then
12499 if test -n "$hardcode_libdir_separator"; then
12500 alldirs=
12501 for found_dir in $rpathdirs; do
12502 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12503 done
12504 acl_save_libdir="$libdir"
12505 libdir="$alldirs"
12506 eval flag=\"$hardcode_libdir_flag_spec\"
12507 libdir="$acl_save_libdir"
12508 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12509 else
12510 for found_dir in $rpathdirs; do
12511 acl_save_libdir="$libdir"
12512 libdir="$found_dir"
12513 eval flag=\"$hardcode_libdir_flag_spec\"
12514 libdir="$acl_save_libdir"
12515 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12516 done
12519 if test "X$ltrpathdirs" != "X"; then
12520 for found_dir in $ltrpathdirs; do
12521 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12522 done
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12526 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12527 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 gt_save_CPPFLAGS="$CPPFLAGS"
12531 CPPFLAGS="$CPPFLAGS $INCINTL"
12532 gt_save_LIBS="$LIBS"
12533 LIBS="$LIBS $LIBINTL"
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536 #include <libintl.h>
12537 extern int _nl_msg_cat_cntr;
12538 extern
12539 #ifdef __cplusplus
12541 #endif
12542 const char *_nl_expand_alias ();
12544 main ()
12546 bindtextdomain ("", "");
12547 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12549 return 0;
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 gt_cv_func_gnugettext1_libintl=yes
12554 else
12555 gt_cv_func_gnugettext1_libintl=no
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12560 LIBS="$LIBS $LIBICONV"
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 #include <libintl.h>
12564 extern int _nl_msg_cat_cntr;
12565 extern
12566 #ifdef __cplusplus
12568 #endif
12569 const char *_nl_expand_alias ();
12571 main ()
12573 bindtextdomain ("", "");
12574 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12576 return 0;
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"; then :
12580 LIBINTL="$LIBINTL $LIBICONV"
12581 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12582 gt_cv_func_gnugettext1_libintl=yes
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12588 CPPFLAGS="$gt_save_CPPFLAGS"
12589 LIBS="$gt_save_LIBS"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
12592 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
12595 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12596 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12597 && test "$PACKAGE" != gettext-runtime \
12598 && test "$PACKAGE" != gettext-tools; }; then
12599 gt_use_preinstalled_gnugettext=yes
12600 else
12601 LIBINTL=
12602 LTLIBINTL=
12603 INCINTL=
12608 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12609 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12611 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12613 else
12614 USE_NLS=no
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12619 $as_echo_n "checking whether to use NLS... " >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12621 $as_echo "$USE_NLS" >&6; }
12622 if test "$USE_NLS" = "yes"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12624 $as_echo_n "checking where the gettext function comes from... " >&6; }
12625 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12626 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12627 gt_source="external libintl"
12628 else
12629 gt_source="libc"
12631 else
12632 gt_source="included intl directory"
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12635 $as_echo "$gt_source" >&6; }
12638 if test "$USE_NLS" = "yes"; then
12640 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12641 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12643 $as_echo_n "checking how to link with libintl... " >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12645 $as_echo "$LIBINTL" >&6; }
12647 for element in $INCINTL; do
12648 haveit=
12649 for x in $CPPFLAGS; do
12651 acl_save_prefix="$prefix"
12652 prefix="$acl_final_prefix"
12653 acl_save_exec_prefix="$exec_prefix"
12654 exec_prefix="$acl_final_exec_prefix"
12655 eval x=\"$x\"
12656 exec_prefix="$acl_save_exec_prefix"
12657 prefix="$acl_save_prefix"
12659 if test "X$x" = "X$element"; then
12660 haveit=yes
12661 break
12663 done
12664 if test -z "$haveit"; then
12665 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12667 done
12672 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12675 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12679 POSUB=po
12684 INTLLIBS="$LIBINTL"
12696 am_save_CPPFLAGS="$CPPFLAGS"
12698 for element in $INCICONV; do
12699 haveit=
12700 for x in $CPPFLAGS; do
12702 acl_save_prefix="$prefix"
12703 prefix="$acl_final_prefix"
12704 acl_save_exec_prefix="$exec_prefix"
12705 exec_prefix="$acl_final_exec_prefix"
12706 eval x=\"$x\"
12707 exec_prefix="$acl_save_exec_prefix"
12708 prefix="$acl_save_prefix"
12710 if test "X$x" = "X$element"; then
12711 haveit=yes
12712 break
12714 done
12715 if test -z "$haveit"; then
12716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12718 done
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12722 $as_echo_n "checking for iconv... " >&6; }
12723 if test "${am_cv_func_iconv+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12727 am_cv_func_iconv="no, consider installing GNU libiconv"
12728 am_cv_lib_iconv=no
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731 #include <stdlib.h>
12732 #include <iconv.h>
12734 main ()
12736 iconv_t cd = iconv_open("","");
12737 iconv(cd,NULL,NULL,NULL,NULL);
12738 iconv_close(cd);
12740 return 0;
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 am_cv_func_iconv=yes
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 if test "$am_cv_func_iconv" != yes; then
12749 am_save_LIBS="$LIBS"
12750 LIBS="$LIBS $LIBICONV"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #include <stdlib.h>
12754 #include <iconv.h>
12756 main ()
12758 iconv_t cd = iconv_open("","");
12759 iconv(cd,NULL,NULL,NULL,NULL);
12760 iconv_close(cd);
12762 return 0;
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 am_cv_lib_iconv=yes
12767 am_cv_func_iconv=yes
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771 LIBS="$am_save_LIBS"
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12776 $as_echo "$am_cv_func_iconv" >&6; }
12777 if test "$am_cv_func_iconv" = yes; then
12779 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12782 if test "$am_cv_lib_iconv" = yes; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12784 $as_echo_n "checking how to link with libiconv... " >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12786 $as_echo "$LIBICONV" >&6; }
12787 else
12788 CPPFLAGS="$am_save_CPPFLAGS"
12789 LIBICONV=
12790 LTLIBICONV=
12795 if test "$am_cv_func_iconv" = yes; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12797 $as_echo_n "checking for iconv declaration... " >&6; }
12798 if test "${am_cv_proto_iconv+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 #include <stdlib.h>
12806 #include <iconv.h>
12807 extern
12808 #ifdef __cplusplus
12810 #endif
12811 #if defined(__STDC__) || defined(__cplusplus)
12812 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12813 #else
12814 size_t iconv();
12815 #endif
12818 main ()
12822 return 0;
12824 _ACEOF
12825 if ac_fn_c_try_compile "$LINENO"; then :
12826 am_cv_proto_iconv_arg1=""
12827 else
12828 am_cv_proto_iconv_arg1="const"
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12834 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12836 }$am_cv_proto_iconv" >&5
12837 $as_echo "${ac_t:-
12838 }$am_cv_proto_iconv" >&6; }
12840 cat >>confdefs.h <<_ACEOF
12841 #define ICONV_CONST $am_cv_proto_iconv_arg1
12842 _ACEOF
12849 if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
12850 AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
12853 gp_config_msg_len="$(expr "Use translations" : '.*')"
12854 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
12855 gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
12856 else
12857 gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
12859 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${USE_NLS}
12862 if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
12864 gp_config_msg_len="$(expr "Use included libintl" : '.*')"
12865 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
12866 gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
12867 else
12868 gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
12870 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
12874 localedir='$(datadir)/locale'
12876 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
12880 for ac_func in localtime_r
12881 do :
12882 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12883 if test "x$ac_cv_func_localtime_r" = x""yes; then :
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_LOCALTIME_R 1
12886 _ACEOF
12889 done
12892 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
12893 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)"
12894 AM_LDFLAGS="$LDFLAGS"
12895 if test "x$GCC" = "xyes"; then
12896 AM_CFLAGS="$AM_CFLAGS -ansi -pedantic-error"
12897 AM_CXXFLAGS="$AM_CXXFLAGS -ansi -pedantic-error"
12898 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
12899 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
12908 ac_config_files="$ac_config_files po/Makefile.in Makefile libexif.spec libexif/Makefile test/Makefile test/nls/Makefile m4m/Makefile doc/Makefile doc/Doxyfile doc/Doxyfile-internals libexif.pc libexif-uninstalled.pc binary/Makefile contrib/Makefile contrib/examples/Makefile"
12910 cat >confcache <<\_ACEOF
12911 # This file is a shell script that caches the results of configure
12912 # tests run on this system so they can be shared between configure
12913 # scripts and configure runs, see configure's option --config-cache.
12914 # It is not useful on other systems. If it contains results you don't
12915 # want to keep, you may remove or edit it.
12917 # config.status only pays attention to the cache file if you give it
12918 # the --recheck option to rerun configure.
12920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12922 # following values.
12924 _ACEOF
12926 # The following way of writing the cache mishandles newlines in values,
12927 # but we know of no workaround that is simple, portable, and efficient.
12928 # So, we kill variables containing newlines.
12929 # Ultrix sh set writes to stderr and can't be redirected directly,
12930 # and sets the high bit in the cache file unless we assign to the vars.
12932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12933 eval ac_val=\$$ac_var
12934 case $ac_val in #(
12935 *${as_nl}*)
12936 case $ac_var in #(
12937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12939 esac
12940 case $ac_var in #(
12941 _ | IFS | as_nl) ;; #(
12942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12943 *) { eval $ac_var=; unset $ac_var;} ;;
12944 esac ;;
12945 esac
12946 done
12948 (set) 2>&1 |
12949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12950 *${as_nl}ac_space=\ *)
12951 # `set' does not quote correctly, so add quotes: double-quote
12952 # substitution turns \\\\ into \\, and sed turns \\ into \.
12953 sed -n \
12954 "s/'/'\\\\''/g;
12955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12956 ;; #(
12958 # `set' quotes correctly as required by POSIX, so do not add quotes.
12959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12961 esac |
12962 sort
12964 sed '
12965 /^ac_cv_env_/b end
12966 t clear
12967 :clear
12968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12969 t end
12970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12971 :end' >>confcache
12972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12973 if test -w "$cache_file"; then
12974 test "x$cache_file" != "x/dev/null" &&
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12976 $as_echo "$as_me: updating cache $cache_file" >&6;}
12977 cat confcache >$cache_file
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12983 rm -f confcache
12985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12986 # Let make expand exec_prefix.
12987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12989 DEFS=-DHAVE_CONFIG_H
12991 ac_libobjs=
12992 ac_ltlibobjs=
12993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12994 # 1. Remove the extension, and $U if already installed.
12995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12998 # will be set to the directory where LIBOBJS objects are built.
12999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13001 done
13002 LIBOBJS=$ac_libobjs
13004 LTLIBOBJS=$ac_ltlibobjs
13007 if test -n "$EXEEXT"; then
13008 am__EXEEXT_TRUE=
13009 am__EXEEXT_FALSE='#'
13010 else
13011 am__EXEEXT_TRUE='#'
13012 am__EXEEXT_FALSE=
13015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13016 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13019 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13020 as_fn_error "conditional \"AMDEP\" was never defined.
13021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13024 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13027 if test -z "${SHIP_BINARIES_TRUE}" && test -z "${SHIP_BINARIES_FALSE}"; then
13028 as_fn_error "conditional \"SHIP_BINARIES\" was never defined.
13029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13031 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13032 as_fn_error "conditional \"BUILD_DOCS\" was never defined.
13033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13035 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13036 as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
13037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13039 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
13040 as_fn_error "conditional \"HAVE_DOT\" was never defined.
13041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043 if test -z "${ENABLE_INTERNAL_DOCS_TRUE}" && test -z "${ENABLE_INTERNAL_DOCS_FALSE}"; then
13044 as_fn_error "conditional \"ENABLE_INTERNAL_DOCS\" was never defined.
13045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13048 : ${CONFIG_STATUS=./config.status}
13049 ac_write_fail=0
13050 ac_clean_files_save=$ac_clean_files
13051 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13053 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13054 as_write_fail=0
13055 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13056 #! $SHELL
13057 # Generated by $as_me.
13058 # Run this file to recreate the current configuration.
13059 # Compiler output produced by configure, useful for debugging
13060 # configure, is in config.log if it exists.
13062 debug=false
13063 ac_cs_recheck=false
13064 ac_cs_silent=false
13066 SHELL=\${CONFIG_SHELL-$SHELL}
13067 export SHELL
13068 _ASEOF
13069 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13070 ## -------------------- ##
13071 ## M4sh Initialization. ##
13072 ## -------------------- ##
13074 # Be more Bourne compatible
13075 DUALCASE=1; export DUALCASE # for MKS sh
13076 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13077 emulate sh
13078 NULLCMD=:
13079 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13080 # is contrary to our usage. Disable this feature.
13081 alias -g '${1+"$@"}'='"$@"'
13082 setopt NO_GLOB_SUBST
13083 else
13084 case `(set -o) 2>/dev/null` in #(
13085 *posix*) :
13086 set -o posix ;; #(
13087 *) :
13089 esac
13093 as_nl='
13095 export as_nl
13096 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13097 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13098 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13099 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13100 # Prefer a ksh shell builtin over an external printf program on Solaris,
13101 # but without wasting forks for bash or zsh.
13102 if test -z "$BASH_VERSION$ZSH_VERSION" \
13103 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13104 as_echo='print -r --'
13105 as_echo_n='print -rn --'
13106 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13107 as_echo='printf %s\n'
13108 as_echo_n='printf %s'
13109 else
13110 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13111 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13112 as_echo_n='/usr/ucb/echo -n'
13113 else
13114 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13115 as_echo_n_body='eval
13116 arg=$1;
13117 case $arg in #(
13118 *"$as_nl"*)
13119 expr "X$arg" : "X\\(.*\\)$as_nl";
13120 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13121 esac;
13122 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13124 export as_echo_n_body
13125 as_echo_n='sh -c $as_echo_n_body as_echo'
13127 export as_echo_body
13128 as_echo='sh -c $as_echo_body as_echo'
13131 # The user is always right.
13132 if test "${PATH_SEPARATOR+set}" != set; then
13133 PATH_SEPARATOR=:
13134 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13135 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13136 PATH_SEPARATOR=';'
13141 # IFS
13142 # We need space, tab and new line, in precisely that order. Quoting is
13143 # there to prevent editors from complaining about space-tab.
13144 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13145 # splitting by setting IFS to empty value.)
13146 IFS=" "" $as_nl"
13148 # Find who we are. Look in the path if we contain no directory separator.
13149 case $0 in #((
13150 *[\\/]* ) as_myself=$0 ;;
13151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13157 done
13158 IFS=$as_save_IFS
13161 esac
13162 # We did not find ourselves, most probably we were run as `sh COMMAND'
13163 # in which case we are not to be found in the path.
13164 if test "x$as_myself" = x; then
13165 as_myself=$0
13167 if test ! -f "$as_myself"; then
13168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13169 exit 1
13172 # Unset variables that we do not need and which cause bugs (e.g. in
13173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13174 # suppresses any "Segmentation fault" message there. '((' could
13175 # trigger a bug in pdksh 5.2.14.
13176 for as_var in BASH_ENV ENV MAIL MAILPATH
13177 do eval test x\${$as_var+set} = xset \
13178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13179 done
13180 PS1='$ '
13181 PS2='> '
13182 PS4='+ '
13184 # NLS nuisances.
13185 LC_ALL=C
13186 export LC_ALL
13187 LANGUAGE=C
13188 export LANGUAGE
13190 # CDPATH.
13191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13194 # as_fn_error ERROR [LINENO LOG_FD]
13195 # ---------------------------------
13196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13198 # script with status $?, using 1 if that was 0.
13199 as_fn_error ()
13201 as_status=$?; test $as_status -eq 0 && as_status=1
13202 if test "$3"; then
13203 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13206 $as_echo "$as_me: error: $1" >&2
13207 as_fn_exit $as_status
13208 } # as_fn_error
13211 # as_fn_set_status STATUS
13212 # -----------------------
13213 # Set $? to STATUS, without forking.
13214 as_fn_set_status ()
13216 return $1
13217 } # as_fn_set_status
13219 # as_fn_exit STATUS
13220 # -----------------
13221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13222 as_fn_exit ()
13224 set +e
13225 as_fn_set_status $1
13226 exit $1
13227 } # as_fn_exit
13229 # as_fn_unset VAR
13230 # ---------------
13231 # Portably unset VAR.
13232 as_fn_unset ()
13234 { eval $1=; unset $1;}
13236 as_unset=as_fn_unset
13237 # as_fn_append VAR VALUE
13238 # ----------------------
13239 # Append the text in VALUE to the end of the definition contained in VAR. Take
13240 # advantage of any shell optimizations that allow amortized linear growth over
13241 # repeated appends, instead of the typical quadratic growth present in naive
13242 # implementations.
13243 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13244 eval 'as_fn_append ()
13246 eval $1+=\$2
13248 else
13249 as_fn_append ()
13251 eval $1=\$$1\$2
13253 fi # as_fn_append
13255 # as_fn_arith ARG...
13256 # ------------------
13257 # Perform arithmetic evaluation on the ARGs, and store the result in the
13258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13259 # must be portable across $(()) and expr.
13260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13261 eval 'as_fn_arith ()
13263 as_val=$(( $* ))
13265 else
13266 as_fn_arith ()
13268 as_val=`expr "$@" || test $? -eq 1`
13270 fi # as_fn_arith
13273 if expr a : '\(a\)' >/dev/null 2>&1 &&
13274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13275 as_expr=expr
13276 else
13277 as_expr=false
13280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13281 as_basename=basename
13282 else
13283 as_basename=false
13286 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13287 as_dirname=dirname
13288 else
13289 as_dirname=false
13292 as_me=`$as_basename -- "$0" ||
13293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13294 X"$0" : 'X\(//\)$' \| \
13295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13296 $as_echo X/"$0" |
13297 sed '/^.*\/\([^/][^/]*\)\/*$/{
13298 s//\1/
13301 /^X\/\(\/\/\)$/{
13302 s//\1/
13305 /^X\/\(\/\).*/{
13306 s//\1/
13309 s/.*/./; q'`
13311 # Avoid depending upon Character Ranges.
13312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13315 as_cr_digits='0123456789'
13316 as_cr_alnum=$as_cr_Letters$as_cr_digits
13318 ECHO_C= ECHO_N= ECHO_T=
13319 case `echo -n x` in #(((((
13320 -n*)
13321 case `echo 'xy\c'` in
13322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13323 xy) ECHO_C='\c';;
13324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13325 ECHO_T=' ';;
13326 esac;;
13328 ECHO_N='-n';;
13329 esac
13331 rm -f conf$$ conf$$.exe conf$$.file
13332 if test -d conf$$.dir; then
13333 rm -f conf$$.dir/conf$$.file
13334 else
13335 rm -f conf$$.dir
13336 mkdir conf$$.dir 2>/dev/null
13338 if (echo >conf$$.file) 2>/dev/null; then
13339 if ln -s conf$$.file conf$$ 2>/dev/null; then
13340 as_ln_s='ln -s'
13341 # ... but there are two gotchas:
13342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13344 # In both cases, we have to default to `cp -p'.
13345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13346 as_ln_s='cp -p'
13347 elif ln conf$$.file conf$$ 2>/dev/null; then
13348 as_ln_s=ln
13349 else
13350 as_ln_s='cp -p'
13352 else
13353 as_ln_s='cp -p'
13355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13356 rmdir conf$$.dir 2>/dev/null
13359 # as_fn_mkdir_p
13360 # -------------
13361 # Create "$as_dir" as a directory, including parents if necessary.
13362 as_fn_mkdir_p ()
13365 case $as_dir in #(
13366 -*) as_dir=./$as_dir;;
13367 esac
13368 test -d "$as_dir" || eval $as_mkdir_p || {
13369 as_dirs=
13370 while :; do
13371 case $as_dir in #(
13372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13373 *) as_qdir=$as_dir;;
13374 esac
13375 as_dirs="'$as_qdir' $as_dirs"
13376 as_dir=`$as_dirname -- "$as_dir" ||
13377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$as_dir" : 'X\(//\)[^/]' \| \
13379 X"$as_dir" : 'X\(//\)$' \| \
13380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13381 $as_echo X"$as_dir" |
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13383 s//\1/
13386 /^X\(\/\/\)[^/].*/{
13387 s//\1/
13390 /^X\(\/\/\)$/{
13391 s//\1/
13394 /^X\(\/\).*/{
13395 s//\1/
13398 s/.*/./; q'`
13399 test -d "$as_dir" && break
13400 done
13401 test -z "$as_dirs" || eval "mkdir $as_dirs"
13402 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13405 } # as_fn_mkdir_p
13406 if mkdir -p . 2>/dev/null; then
13407 as_mkdir_p='mkdir -p "$as_dir"'
13408 else
13409 test -d ./-p && rmdir ./-p
13410 as_mkdir_p=false
13413 if test -x / >/dev/null 2>&1; then
13414 as_test_x='test -x'
13415 else
13416 if ls -dL / >/dev/null 2>&1; then
13417 as_ls_L_option=L
13418 else
13419 as_ls_L_option=
13421 as_test_x='
13422 eval sh -c '\''
13423 if test -d "$1"; then
13424 test -d "$1/.";
13425 else
13426 case $1 in #(
13427 -*)set "./$1";;
13428 esac;
13429 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13430 ???[sx]*):;;*)false;;esac;fi
13431 '\'' sh
13434 as_executable_p=$as_test_x
13436 # Sed expression to map a string onto a valid CPP name.
13437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13439 # Sed expression to map a string onto a valid variable name.
13440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13443 exec 6>&1
13444 ## ----------------------------------- ##
13445 ## Main body of $CONFIG_STATUS script. ##
13446 ## ----------------------------------- ##
13447 _ASEOF
13448 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13451 # Save the log message, to keep $0 and so on meaningful, and to
13452 # report actual input values of CONFIG_FILES etc. instead of their
13453 # values after options handling.
13454 ac_log="
13455 This file was extended by EXIF library $as_me 0.6.19, which was
13456 generated by GNU Autoconf 2.64. Invocation command line was
13458 CONFIG_FILES = $CONFIG_FILES
13459 CONFIG_HEADERS = $CONFIG_HEADERS
13460 CONFIG_LINKS = $CONFIG_LINKS
13461 CONFIG_COMMANDS = $CONFIG_COMMANDS
13462 $ $0 $@
13464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13467 _ACEOF
13469 case $ac_config_files in *"
13470 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13471 esac
13473 case $ac_config_headers in *"
13474 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13475 esac
13478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479 # Files that config.status was made for.
13480 config_files="`echo $ac_config_files`"
13481 config_headers="`echo $ac_config_headers`"
13482 config_commands="`echo $ac_config_commands`"
13484 _ACEOF
13486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13487 ac_cs_usage="\
13488 \`$as_me' instantiates files and other configuration actions
13489 from templates according to the current configuration. Unless the files
13490 and actions are specified as TAGs, all are instantiated by default.
13492 Usage: $0 [OPTION]... [TAG]...
13494 -h, --help print this help, then exit
13495 -V, --version print version number and configuration settings, then exit
13496 -q, --quiet, --silent
13497 do not print progress messages
13498 -d, --debug don't remove temporary files
13499 --recheck update $as_me by reconfiguring in the same conditions
13500 --file=FILE[:TEMPLATE]
13501 instantiate the configuration file FILE
13502 --header=FILE[:TEMPLATE]
13503 instantiate the configuration header FILE
13505 Configuration files:
13506 $config_files
13508 Configuration headers:
13509 $config_headers
13511 Configuration commands:
13512 $config_commands
13514 Report bugs to <libexif-devel@lists.sourceforge.net>."
13516 _ACEOF
13517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13518 ac_cs_version="\\
13519 EXIF library config.status 0.6.19
13520 configured by $0, generated by GNU Autoconf 2.64,
13521 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13523 Copyright (C) 2009 Free Software Foundation, Inc.
13524 This config.status script is free software; the Free Software Foundation
13525 gives unlimited permission to copy, distribute and modify it."
13527 ac_pwd='$ac_pwd'
13528 srcdir='$srcdir'
13529 INSTALL='$INSTALL'
13530 MKDIR_P='$MKDIR_P'
13531 AWK='$AWK'
13532 test -n "\$AWK" || AWK=awk
13533 _ACEOF
13535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536 # The default lists apply if the user does not specify any file.
13537 ac_need_defaults=:
13538 while test $# != 0
13540 case $1 in
13541 --*=*)
13542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13543 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13544 ac_shift=:
13547 ac_option=$1
13548 ac_optarg=$2
13549 ac_shift=shift
13551 esac
13553 case $ac_option in
13554 # Handling of the options.
13555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13556 ac_cs_recheck=: ;;
13557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13558 $as_echo "$ac_cs_version"; exit ;;
13559 --debug | --debu | --deb | --de | --d | -d )
13560 debug=: ;;
13561 --file | --fil | --fi | --f )
13562 $ac_shift
13563 case $ac_optarg in
13564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13565 esac
13566 as_fn_append CONFIG_FILES " '$ac_optarg'"
13567 ac_need_defaults=false;;
13568 --header | --heade | --head | --hea )
13569 $ac_shift
13570 case $ac_optarg in
13571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13572 esac
13573 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13574 ac_need_defaults=false;;
13575 --he | --h)
13576 # Conflict between --help and --header
13577 as_fn_error "ambiguous option: \`$1'
13578 Try \`$0 --help' for more information.";;
13579 --help | --hel | -h )
13580 $as_echo "$ac_cs_usage"; exit ;;
13581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13583 ac_cs_silent=: ;;
13585 # This is an error.
13586 -*) as_fn_error "unrecognized option: \`$1'
13587 Try \`$0 --help' for more information." ;;
13589 *) as_fn_append ac_config_targets " $1"
13590 ac_need_defaults=false ;;
13592 esac
13593 shift
13594 done
13596 ac_configure_extra_args=
13598 if $ac_cs_silent; then
13599 exec 6>/dev/null
13600 ac_configure_extra_args="$ac_configure_extra_args --silent"
13603 _ACEOF
13604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13605 if \$ac_cs_recheck; then
13606 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13607 shift
13608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13609 CONFIG_SHELL='$SHELL'
13610 export CONFIG_SHELL
13611 exec "\$@"
13614 _ACEOF
13615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13616 exec 5>>config.log
13618 echo
13619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13620 ## Running $as_me. ##
13621 _ASBOX
13622 $as_echo "$ac_log"
13623 } >&5
13625 _ACEOF
13626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 # INIT-COMMANDS
13630 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13633 # The HP-UX ksh and POSIX shell print the target directory to stdout
13634 # if CDPATH is set.
13635 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13637 sed_quote_subst='$sed_quote_subst'
13638 double_quote_subst='$double_quote_subst'
13639 delay_variable_subst='$delay_variable_subst'
13640 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13641 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13642 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13643 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13644 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13645 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13646 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13647 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13648 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13649 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13650 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13651 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13652 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13653 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13654 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13655 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13656 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13657 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13658 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13659 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13660 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13661 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13662 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13663 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13664 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13665 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13666 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13667 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13668 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13669 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13670 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13671 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13672 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13673 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13674 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13675 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13676 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13677 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13678 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13679 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13680 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13681 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13682 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13684 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"`'
13685 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"`'
13686 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13687 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13688 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13689 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13690 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13691 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13692 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13693 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13694 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13695 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13696 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13697 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13698 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13699 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13700 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13701 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13702 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13703 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13704 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13705 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13706 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13707 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13708 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13709 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13710 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13711 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13712 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13713 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13714 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13715 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13716 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13717 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13718 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13719 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13720 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13721 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13722 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13723 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13724 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13725 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13726 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13727 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13728 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13729 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13730 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13731 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13732 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13733 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13734 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13735 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13736 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13737 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13738 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13739 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13740 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13741 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13742 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13743 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13744 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13745 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13746 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13747 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13748 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13749 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13750 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13751 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13752 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13753 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13754 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13755 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13756 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13757 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13759 LTCC='$LTCC'
13760 LTCFLAGS='$LTCFLAGS'
13761 compiler='$compiler_DEFAULT'
13763 # Quote evaled strings.
13764 for var in SED \
13765 GREP \
13766 EGREP \
13767 FGREP \
13768 LD \
13769 NM \
13770 LN_S \
13771 lt_SP2NL \
13772 lt_NL2SP \
13773 reload_flag \
13774 OBJDUMP \
13775 deplibs_check_method \
13776 file_magic_cmd \
13777 AR \
13778 AR_FLAGS \
13779 STRIP \
13780 RANLIB \
13781 CC \
13782 CFLAGS \
13783 compiler \
13784 lt_cv_sys_global_symbol_pipe \
13785 lt_cv_sys_global_symbol_to_cdecl \
13786 lt_cv_sys_global_symbol_to_c_name_address \
13787 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13788 SHELL \
13789 ECHO \
13790 lt_prog_compiler_no_builtin_flag \
13791 lt_prog_compiler_wl \
13792 lt_prog_compiler_pic \
13793 lt_prog_compiler_static \
13794 lt_cv_prog_compiler_c_o \
13795 need_locks \
13796 DSYMUTIL \
13797 NMEDIT \
13798 LIPO \
13799 OTOOL \
13800 OTOOL64 \
13801 shrext_cmds \
13802 export_dynamic_flag_spec \
13803 whole_archive_flag_spec \
13804 compiler_needs_object \
13805 with_gnu_ld \
13806 allow_undefined_flag \
13807 no_undefined_flag \
13808 hardcode_libdir_flag_spec \
13809 hardcode_libdir_flag_spec_ld \
13810 hardcode_libdir_separator \
13811 fix_srcfile_path \
13812 exclude_expsyms \
13813 include_expsyms \
13814 file_list_spec \
13815 variables_saved_for_relink \
13816 libname_spec \
13817 library_names_spec \
13818 soname_spec \
13819 finish_eval \
13820 old_striplib \
13821 striplib; do
13822 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13823 *[\\\\\\\`\\"\\\$]*)
13824 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13827 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13829 esac
13830 done
13832 # Double-quote double-evaled strings.
13833 for var in reload_cmds \
13834 old_postinstall_cmds \
13835 old_postuninstall_cmds \
13836 old_archive_cmds \
13837 extract_expsyms_cmds \
13838 old_archive_from_new_cmds \
13839 old_archive_from_expsyms_cmds \
13840 archive_cmds \
13841 archive_expsym_cmds \
13842 module_cmds \
13843 module_expsym_cmds \
13844 export_symbols_cmds \
13845 prelink_cmds \
13846 postinstall_cmds \
13847 postuninstall_cmds \
13848 finish_cmds \
13849 sys_lib_search_path_spec \
13850 sys_lib_dlsearch_path_spec; do
13851 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13852 *[\\\\\\\`\\"\\\$]*)
13853 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13856 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13858 esac
13859 done
13861 # Fix-up fallback echo if it was mangled by the above quoting rules.
13862 case \$lt_ECHO in
13863 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13865 esac
13867 ac_aux_dir='$ac_aux_dir'
13868 xsi_shell='$xsi_shell'
13869 lt_shell_append='$lt_shell_append'
13871 # See if we are running on zsh, and set the options which allow our
13872 # commands through without removal of \ escapes INIT.
13873 if test -n "\${ZSH_VERSION+set}" ; then
13874 setopt NO_GLOB_SUBST
13878 PACKAGE='$PACKAGE'
13879 VERSION='$VERSION'
13880 TIMESTAMP='$TIMESTAMP'
13881 RM='$RM'
13882 ofile='$ofile'
13886 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13887 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13888 # from automake.
13889 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13890 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13891 LINGUAS="${LINGUAS-%UNSET%}"
13894 _ACEOF
13896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13898 # Handling of arguments.
13899 for ac_config_target in $ac_config_targets
13901 case $ac_config_target in
13902 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13903 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13904 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13905 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13906 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13908 "libexif.spec") CONFIG_FILES="$CONFIG_FILES libexif.spec" ;;
13909 "libexif/Makefile") CONFIG_FILES="$CONFIG_FILES libexif/Makefile" ;;
13910 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13911 "test/nls/Makefile") CONFIG_FILES="$CONFIG_FILES test/nls/Makefile" ;;
13912 "m4m/Makefile") CONFIG_FILES="$CONFIG_FILES m4m/Makefile" ;;
13913 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13914 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13915 "doc/Doxyfile-internals") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile-internals" ;;
13916 "libexif.pc") CONFIG_FILES="$CONFIG_FILES libexif.pc" ;;
13917 "libexif-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libexif-uninstalled.pc" ;;
13918 "binary/Makefile") CONFIG_FILES="$CONFIG_FILES binary/Makefile" ;;
13919 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13920 "contrib/examples/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/examples/Makefile" ;;
13922 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13923 esac
13924 done
13927 # If the user did not use the arguments to specify the items to instantiate,
13928 # then the envvar interface is used. Set only those that are not.
13929 # We use the long form for the default assignment because of an extremely
13930 # bizarre bug on SunOS 4.1.3.
13931 if $ac_need_defaults; then
13932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13937 # Have a temporary directory for convenience. Make it in the build tree
13938 # simply because there is no reason against having it here, and in addition,
13939 # creating and moving files from /tmp can sometimes cause problems.
13940 # Hook for its removal unless debugging.
13941 # Note that there is a small window in which the directory will not be cleaned:
13942 # after its creation but before its name has been assigned to `$tmp'.
13943 $debug ||
13945 tmp=
13946 trap 'exit_status=$?
13947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13949 trap 'as_fn_exit 1' 1 2 13 15
13951 # Create a (secure) tmp directory for tmp files.
13954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13955 test -n "$tmp" && test -d "$tmp"
13956 } ||
13958 tmp=./conf$$-$RANDOM
13959 (umask 077 && mkdir "$tmp")
13960 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13962 # Set up the scripts for CONFIG_FILES section.
13963 # No need to generate them if there are no CONFIG_FILES.
13964 # This happens for instance with `./config.status config.h'.
13965 if test -n "$CONFIG_FILES"; then
13968 ac_cr=`echo X | tr X '\015'`
13969 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13970 # But we know of no other shell where ac_cr would be empty at this
13971 # point, so we can use a bashism as a fallback.
13972 if test "x$ac_cr" = x; then
13973 eval ac_cr=\$\'\\r\'
13975 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13976 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13977 ac_cs_awk_cr='\r'
13978 else
13979 ac_cs_awk_cr=$ac_cr
13982 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13983 _ACEOF
13987 echo "cat >conf$$subs.awk <<_ACEOF" &&
13988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13989 echo "_ACEOF"
13990 } >conf$$subs.sh ||
13991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13993 ac_delim='%!_!# '
13994 for ac_last_try in false false false false false :; do
13995 . ./conf$$subs.sh ||
13996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13999 if test $ac_delim_n = $ac_delim_num; then
14000 break
14001 elif $ac_last_try; then
14002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14003 else
14004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14006 done
14007 rm -f conf$$subs.sh
14009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14011 _ACEOF
14012 sed -n '
14014 s/^/S["/; s/!.*/"]=/
14017 s/^[^!]*!//
14018 :repl
14019 t repl
14020 s/'"$ac_delim"'$//
14021 t delim
14024 s/\(.\{148\}\).*/\1/
14025 t more1
14026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14029 b repl
14030 :more1
14031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14034 s/.\{148\}//
14035 t nl
14036 :delim
14038 s/\(.\{148\}\).*/\1/
14039 t more2
14040 s/["\\]/\\&/g; s/^/"/; s/$/"/
14043 :more2
14044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14047 s/.\{148\}//
14048 t delim
14049 ' <conf$$subs.awk | sed '
14050 /^[^""]/{
14052 s/\n//
14054 ' >>$CONFIG_STATUS || ac_write_fail=1
14055 rm -f conf$$subs.awk
14056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14057 _ACAWK
14058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14059 for (key in S) S_is_set[key] = 1
14060 FS = "\a"
14064 line = $ 0
14065 nfields = split(line, field, "@")
14066 substed = 0
14067 len = length(field[1])
14068 for (i = 2; i < nfields; i++) {
14069 key = field[i]
14070 keylen = length(key)
14071 if (S_is_set[key]) {
14072 value = S[key]
14073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14074 len += length(value) + length(field[++i])
14075 substed = 1
14076 } else
14077 len += 1 + keylen
14080 print line
14083 _ACAWK
14084 _ACEOF
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14088 else
14090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14091 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14092 _ACEOF
14094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096 # trailing colons and then remove the whole line if VPATH becomes empty
14097 # (actually we leave an empty line to preserve line numbers).
14098 if test "x$srcdir" = x.; then
14099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14100 s/:*\$(srcdir):*/:/
14101 s/:*\${srcdir}:*/:/
14102 s/:*@srcdir@:*/:/
14103 s/^\([^=]*=[ ]*\):*/\1/
14104 s/:*$//
14105 s/^[^=]*=[ ]*$//
14109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110 fi # test -n "$CONFIG_FILES"
14112 # Set up the scripts for CONFIG_HEADERS section.
14113 # No need to generate them if there are no CONFIG_HEADERS.
14114 # This happens for instance with `./config.status Makefile'.
14115 if test -n "$CONFIG_HEADERS"; then
14116 cat >"$tmp/defines.awk" <<\_ACAWK ||
14117 BEGIN {
14118 _ACEOF
14120 # Transform confdefs.h into an awk script `defines.awk', embedded as
14121 # here-document in config.status, that substitutes the proper values into
14122 # config.h.in to produce config.h.
14124 # Create a delimiter string that does not exist in confdefs.h, to ease
14125 # handling of long lines.
14126 ac_delim='%!_!# '
14127 for ac_last_try in false false :; do
14128 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14129 if test -z "$ac_t"; then
14130 break
14131 elif $ac_last_try; then
14132 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14133 else
14134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14136 done
14138 # For the awk script, D is an array of macro values keyed by name,
14139 # likewise P contains macro parameters if any. Preserve backslash
14140 # newline sequences.
14142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14143 sed -n '
14144 s/.\{148\}/&'"$ac_delim"'/g
14145 t rset
14146 :rset
14147 s/^[ ]*#[ ]*define[ ][ ]*/ /
14148 t def
14150 :def
14151 s/\\$//
14152 t bsnl
14153 s/["\\]/\\&/g
14154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14155 D["\1"]=" \3"/p
14156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14158 :bsnl
14159 s/["\\]/\\&/g
14160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14161 D["\1"]=" \3\\\\\\n"\\/p
14162 t cont
14163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14164 t cont
14166 :cont
14168 s/.\{148\}/&'"$ac_delim"'/g
14169 t clear
14170 :clear
14171 s/\\$//
14172 t bsnlc
14173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14175 :bsnlc
14176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14177 b cont
14178 ' <confdefs.h | sed '
14179 s/'"$ac_delim"'/"\\\
14180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14183 for (key in D) D_is_set[key] = 1
14184 FS = "\a"
14186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14187 line = \$ 0
14188 split(line, arg, " ")
14189 if (arg[1] == "#") {
14190 defundef = arg[2]
14191 mac1 = arg[3]
14192 } else {
14193 defundef = substr(arg[1], 2)
14194 mac1 = arg[2]
14196 split(mac1, mac2, "(") #)
14197 macro = mac2[1]
14198 prefix = substr(line, 1, index(line, defundef) - 1)
14199 if (D_is_set[macro]) {
14200 # Preserve the white space surrounding the "#".
14201 print prefix "define", macro P[macro] D[macro]
14202 next
14203 } else {
14204 # Replace #undef with comments. This is necessary, for example,
14205 # in the case of _POSIX_SOURCE, which is predefined and required
14206 # on some systems where configure will not decide to define it.
14207 if (defundef == "undef") {
14208 print "/*", prefix defundef, macro, "*/"
14209 next
14213 { print }
14214 _ACAWK
14215 _ACEOF
14216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14217 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14218 fi # test -n "$CONFIG_HEADERS"
14221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14222 shift
14223 for ac_tag
14225 case $ac_tag in
14226 :[FHLC]) ac_mode=$ac_tag; continue;;
14227 esac
14228 case $ac_mode$ac_tag in
14229 :[FHL]*:*);;
14230 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14231 :[FH]-) ac_tag=-:-;;
14232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14233 esac
14234 ac_save_IFS=$IFS
14235 IFS=:
14236 set x $ac_tag
14237 IFS=$ac_save_IFS
14238 shift
14239 ac_file=$1
14240 shift
14242 case $ac_mode in
14243 :L) ac_source=$1;;
14244 :[FH])
14245 ac_file_inputs=
14246 for ac_f
14248 case $ac_f in
14249 -) ac_f="$tmp/stdin";;
14250 *) # Look for the file first in the build tree, then in the source tree
14251 # (if the path is not absolute). The absolute path cannot be DOS-style,
14252 # because $ac_f cannot contain `:'.
14253 test -f "$ac_f" ||
14254 case $ac_f in
14255 [\\/$]*) false;;
14256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14257 esac ||
14258 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14259 esac
14260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14261 as_fn_append ac_file_inputs " '$ac_f'"
14262 done
14264 # Let's still pretend it is `configure' which instantiates (i.e., don't
14265 # use $as_me), people would be surprised to read:
14266 # /* config.h. Generated by config.status. */
14267 configure_input='Generated from '`
14268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14269 `' by configure.'
14270 if test x"$ac_file" != x-; then
14271 configure_input="$ac_file. $configure_input"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14273 $as_echo "$as_me: creating $ac_file" >&6;}
14275 # Neutralize special characters interpreted by sed in replacement strings.
14276 case $configure_input in #(
14277 *\&* | *\|* | *\\* )
14278 ac_sed_conf_input=`$as_echo "$configure_input" |
14279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14280 *) ac_sed_conf_input=$configure_input;;
14281 esac
14283 case $ac_tag in
14284 *:-:* | *:-) cat >"$tmp/stdin" \
14285 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14286 esac
14288 esac
14290 ac_dir=`$as_dirname -- "$ac_file" ||
14291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14292 X"$ac_file" : 'X\(//\)[^/]' \| \
14293 X"$ac_file" : 'X\(//\)$' \| \
14294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14295 $as_echo X"$ac_file" |
14296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14297 s//\1/
14300 /^X\(\/\/\)[^/].*/{
14301 s//\1/
14304 /^X\(\/\/\)$/{
14305 s//\1/
14308 /^X\(\/\).*/{
14309 s//\1/
14312 s/.*/./; q'`
14313 as_dir="$ac_dir"; as_fn_mkdir_p
14314 ac_builddir=.
14316 case "$ac_dir" in
14317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14320 # A ".." for each directory in $ac_dir_suffix.
14321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14322 case $ac_top_builddir_sub in
14323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14325 esac ;;
14326 esac
14327 ac_abs_top_builddir=$ac_pwd
14328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14329 # for backward compatibility:
14330 ac_top_builddir=$ac_top_build_prefix
14332 case $srcdir in
14333 .) # We are building in place.
14334 ac_srcdir=.
14335 ac_top_srcdir=$ac_top_builddir_sub
14336 ac_abs_top_srcdir=$ac_pwd ;;
14337 [\\/]* | ?:[\\/]* ) # Absolute name.
14338 ac_srcdir=$srcdir$ac_dir_suffix;
14339 ac_top_srcdir=$srcdir
14340 ac_abs_top_srcdir=$srcdir ;;
14341 *) # Relative name.
14342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14343 ac_top_srcdir=$ac_top_build_prefix$srcdir
14344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14345 esac
14346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14349 case $ac_mode in
14352 # CONFIG_FILE
14355 case $INSTALL in
14356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14358 esac
14359 ac_MKDIR_P=$MKDIR_P
14360 case $MKDIR_P in
14361 [\\/$]* | ?:[\\/]* ) ;;
14362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14363 esac
14364 _ACEOF
14366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367 # If the template does not know about datarootdir, expand it.
14368 # FIXME: This hack should be removed a few years after 2.60.
14369 ac_datarootdir_hack=; ac_datarootdir_seen=
14370 ac_sed_dataroot='
14371 /datarootdir/ {
14375 /@datadir@/p
14376 /@docdir@/p
14377 /@infodir@/p
14378 /@localedir@/p
14379 /@mandir@/p'
14380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14381 *datarootdir*) ac_datarootdir_seen=yes;;
14382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14385 _ACEOF
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 ac_datarootdir_hack='
14388 s&@datadir@&$datadir&g
14389 s&@docdir@&$docdir&g
14390 s&@infodir@&$infodir&g
14391 s&@localedir@&$localedir&g
14392 s&@mandir@&$mandir&g
14393 s&\\\${datarootdir}&$datarootdir&g' ;;
14394 esac
14395 _ACEOF
14397 # Neutralize VPATH when `$srcdir' = `.'.
14398 # Shell code in configure.ac might set extrasub.
14399 # FIXME: do we really want to maintain this feature?
14400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14401 ac_sed_extra="$ac_vpsub
14402 $extrasub
14403 _ACEOF
14404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14407 s|@configure_input@|$ac_sed_conf_input|;t t
14408 s&@top_builddir@&$ac_top_builddir_sub&;t t
14409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14410 s&@srcdir@&$ac_srcdir&;t t
14411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14412 s&@top_srcdir@&$ac_top_srcdir&;t t
14413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14414 s&@builddir@&$ac_builddir&;t t
14415 s&@abs_builddir@&$ac_abs_builddir&;t t
14416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14417 s&@INSTALL@&$ac_INSTALL&;t t
14418 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14419 $ac_datarootdir_hack
14421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14422 || as_fn_error "could not create $ac_file" "$LINENO" 5
14424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14428 which seems to be undefined. Please make sure it is defined." >&5
14429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14430 which seems to be undefined. Please make sure it is defined." >&2;}
14432 rm -f "$tmp/stdin"
14433 case $ac_file in
14434 -) cat "$tmp/out" && rm -f "$tmp/out";;
14435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14436 esac \
14437 || as_fn_error "could not create $ac_file" "$LINENO" 5
14441 # CONFIG_HEADER
14443 if test x"$ac_file" != x-; then
14445 $as_echo "/* $configure_input */" \
14446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14447 } >"$tmp/config.h" \
14448 || as_fn_error "could not create $ac_file" "$LINENO" 5
14449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14452 else
14453 rm -f "$ac_file"
14454 mv "$tmp/config.h" "$ac_file" \
14455 || as_fn_error "could not create $ac_file" "$LINENO" 5
14457 else
14458 $as_echo "/* $configure_input */" \
14459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14460 || as_fn_error "could not create -" "$LINENO" 5
14462 # Compute "$ac_file"'s index in $config_headers.
14463 _am_arg="$ac_file"
14464 _am_stamp_count=1
14465 for _am_header in $config_headers :; do
14466 case $_am_header in
14467 $_am_arg | $_am_arg:* )
14468 break ;;
14470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14471 esac
14472 done
14473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14475 X"$_am_arg" : 'X\(//\)[^/]' \| \
14476 X"$_am_arg" : 'X\(//\)$' \| \
14477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14478 $as_echo X"$_am_arg" |
14479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14480 s//\1/
14483 /^X\(\/\/\)[^/].*/{
14484 s//\1/
14487 /^X\(\/\/\)$/{
14488 s//\1/
14491 /^X\(\/\).*/{
14492 s//\1/
14495 s/.*/./; q'`/stamp-h$_am_stamp_count
14498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14499 $as_echo "$as_me: executing $ac_file commands" >&6;}
14501 esac
14504 case $ac_file$ac_mode in
14505 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14506 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14507 # are listed without --file. Let's play safe and only enable the eval
14508 # if we detect the quoting.
14509 case $CONFIG_FILES in
14510 *\'*) eval set x "$CONFIG_FILES" ;;
14511 *) set x $CONFIG_FILES ;;
14512 esac
14513 shift
14514 for mf
14516 # Strip MF so we end up with the name of the file.
14517 mf=`echo "$mf" | sed -e 's/:.*$//'`
14518 # Check whether this is an Automake generated Makefile or not.
14519 # We used to match only the files named `Makefile.in', but
14520 # some people rename them; so instead we look at the file content.
14521 # Grep'ing the first line is not enough: some people post-process
14522 # each Makefile.in and add a new line on top of each file to say so.
14523 # Grep'ing the whole file is not good either: AIX grep has a line
14524 # limit of 2048, but all sed's we know have understand at least 4000.
14525 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14526 dirpart=`$as_dirname -- "$mf" ||
14527 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14528 X"$mf" : 'X\(//\)[^/]' \| \
14529 X"$mf" : 'X\(//\)$' \| \
14530 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14531 $as_echo X"$mf" |
14532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14533 s//\1/
14536 /^X\(\/\/\)[^/].*/{
14537 s//\1/
14540 /^X\(\/\/\)$/{
14541 s//\1/
14544 /^X\(\/\).*/{
14545 s//\1/
14548 s/.*/./; q'`
14549 else
14550 continue
14552 # Extract the definition of DEPDIR, am__include, and am__quote
14553 # from the Makefile without running `make'.
14554 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14555 test -z "$DEPDIR" && continue
14556 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14557 test -z "am__include" && continue
14558 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14559 # When using ansi2knr, U may be empty or an underscore; expand it
14560 U=`sed -n 's/^U = //p' < "$mf"`
14561 # Find all dependency output files, they are included files with
14562 # $(DEPDIR) in their names. We invoke sed twice because it is the
14563 # simplest approach to changing $(DEPDIR) to its actual value in the
14564 # expansion.
14565 for file in `sed -n "
14566 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14567 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14568 # Make sure the directory exists.
14569 test -f "$dirpart/$file" && continue
14570 fdir=`$as_dirname -- "$file" ||
14571 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14572 X"$file" : 'X\(//\)[^/]' \| \
14573 X"$file" : 'X\(//\)$' \| \
14574 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14575 $as_echo X"$file" |
14576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14577 s//\1/
14580 /^X\(\/\/\)[^/].*/{
14581 s//\1/
14584 /^X\(\/\/\)$/{
14585 s//\1/
14588 /^X\(\/\).*/{
14589 s//\1/
14592 s/.*/./; q'`
14593 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14594 # echo "creating $dirpart/$file"
14595 echo '# dummy' > "$dirpart/$file"
14596 done
14597 done
14600 "libtool":C)
14602 # See if we are running on zsh, and set the options which allow our
14603 # commands through without removal of \ escapes.
14604 if test -n "${ZSH_VERSION+set}" ; then
14605 setopt NO_GLOB_SUBST
14608 cfgfile="${ofile}T"
14609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14610 $RM "$cfgfile"
14612 cat <<_LT_EOF >> "$cfgfile"
14613 #! $SHELL
14615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14621 # 2006, 2007, 2008 Free Software Foundation, Inc.
14622 # Written by Gordon Matzigkeit, 1996
14624 # This file is part of GNU Libtool.
14626 # GNU Libtool is free software; you can redistribute it and/or
14627 # modify it under the terms of the GNU General Public License as
14628 # published by the Free Software Foundation; either version 2 of
14629 # the License, or (at your option) any later version.
14631 # As a special exception to the GNU General Public License,
14632 # if you distribute this file as part of a program or library that
14633 # is built using GNU Libtool, you may include this file under the
14634 # same distribution terms that you use for the rest of that program.
14636 # GNU Libtool is distributed in the hope that it will be useful,
14637 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14639 # GNU General Public License for more details.
14641 # You should have received a copy of the GNU General Public License
14642 # along with GNU Libtool; see the file COPYING. If not, a copy
14643 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14644 # obtained by writing to the Free Software Foundation, Inc.,
14645 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14648 # The names of the tagged configurations supported by this script.
14649 available_tags=""
14651 # ### BEGIN LIBTOOL CONFIG
14653 # Which release of libtool.m4 was used?
14654 macro_version=$macro_version
14655 macro_revision=$macro_revision
14657 # Whether or not to build shared libraries.
14658 build_libtool_libs=$enable_shared
14660 # Whether or not to build static libraries.
14661 build_old_libs=$enable_static
14663 # What type of objects to build.
14664 pic_mode=$pic_mode
14666 # Whether or not to optimize for fast installation.
14667 fast_install=$enable_fast_install
14669 # The host system.
14670 host_alias=$host_alias
14671 host=$host
14672 host_os=$host_os
14674 # The build system.
14675 build_alias=$build_alias
14676 build=$build
14677 build_os=$build_os
14679 # A sed program that does not truncate output.
14680 SED=$lt_SED
14682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14683 Xsed="\$SED -e 1s/^X//"
14685 # A grep program that handles long lines.
14686 GREP=$lt_GREP
14688 # An ERE matcher.
14689 EGREP=$lt_EGREP
14691 # A literal string matcher.
14692 FGREP=$lt_FGREP
14694 # A BSD- or MS-compatible name lister.
14695 NM=$lt_NM
14697 # Whether we need soft or hard links.
14698 LN_S=$lt_LN_S
14700 # What is the maximum length of a command?
14701 max_cmd_len=$max_cmd_len
14703 # Object file suffix (normally "o").
14704 objext=$ac_objext
14706 # Executable file suffix (normally "").
14707 exeext=$exeext
14709 # whether the shell understands "unset".
14710 lt_unset=$lt_unset
14712 # turn spaces into newlines.
14713 SP2NL=$lt_lt_SP2NL
14715 # turn newlines into spaces.
14716 NL2SP=$lt_lt_NL2SP
14718 # How to create reloadable object files.
14719 reload_flag=$lt_reload_flag
14720 reload_cmds=$lt_reload_cmds
14722 # An object symbol dumper.
14723 OBJDUMP=$lt_OBJDUMP
14725 # Method to check whether dependent libraries are shared objects.
14726 deplibs_check_method=$lt_deplibs_check_method
14728 # Command to use when deplibs_check_method == "file_magic".
14729 file_magic_cmd=$lt_file_magic_cmd
14731 # The archiver.
14732 AR=$lt_AR
14733 AR_FLAGS=$lt_AR_FLAGS
14735 # A symbol stripping program.
14736 STRIP=$lt_STRIP
14738 # Commands used to install an old-style archive.
14739 RANLIB=$lt_RANLIB
14740 old_postinstall_cmds=$lt_old_postinstall_cmds
14741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14743 # A C compiler.
14744 LTCC=$lt_CC
14746 # LTCC compiler flags.
14747 LTCFLAGS=$lt_CFLAGS
14749 # Take the output of nm and produce a listing of raw symbols and C names.
14750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14752 # Transform the output of nm in a proper C declaration.
14753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14755 # Transform the output of nm in a C name address pair.
14756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14758 # Transform the output of nm in a C name address pair when lib prefix is needed.
14759 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14761 # The name of the directory that contains temporary libtool files.
14762 objdir=$objdir
14764 # Shell to use when invoking shell scripts.
14765 SHELL=$lt_SHELL
14767 # An echo program that does not interpret backslashes.
14768 ECHO=$lt_ECHO
14770 # Used to examine libraries when file_magic_cmd begins with "file".
14771 MAGIC_CMD=$MAGIC_CMD
14773 # Must we lock files when doing compilation?
14774 need_locks=$lt_need_locks
14776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14777 DSYMUTIL=$lt_DSYMUTIL
14779 # Tool to change global to local symbols on Mac OS X.
14780 NMEDIT=$lt_NMEDIT
14782 # Tool to manipulate fat objects and archives on Mac OS X.
14783 LIPO=$lt_LIPO
14785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14786 OTOOL=$lt_OTOOL
14788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14789 OTOOL64=$lt_OTOOL64
14791 # Old archive suffix (normally "a").
14792 libext=$libext
14794 # Shared library suffix (normally ".so").
14795 shrext_cmds=$lt_shrext_cmds
14797 # The commands to extract the exported symbol list from a shared archive.
14798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14800 # Variables whose values should be saved in libtool wrapper scripts and
14801 # restored at link time.
14802 variables_saved_for_relink=$lt_variables_saved_for_relink
14804 # Do we need the "lib" prefix for modules?
14805 need_lib_prefix=$need_lib_prefix
14807 # Do we need a version for libraries?
14808 need_version=$need_version
14810 # Library versioning type.
14811 version_type=$version_type
14813 # Shared library runtime path variable.
14814 runpath_var=$runpath_var
14816 # Shared library path variable.
14817 shlibpath_var=$shlibpath_var
14819 # Is shlibpath searched before the hard-coded library search path?
14820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14822 # Format of library name prefix.
14823 libname_spec=$lt_libname_spec
14825 # List of archive names. First name is the real one, the rest are links.
14826 # The last name is the one that the linker finds with -lNAME
14827 library_names_spec=$lt_library_names_spec
14829 # The coded name of the library, if different from the real name.
14830 soname_spec=$lt_soname_spec
14832 # Command to use after installation of a shared archive.
14833 postinstall_cmds=$lt_postinstall_cmds
14835 # Command to use after uninstallation of a shared archive.
14836 postuninstall_cmds=$lt_postuninstall_cmds
14838 # Commands used to finish a libtool library installation in a directory.
14839 finish_cmds=$lt_finish_cmds
14841 # As "finish_cmds", except a single script fragment to be evaled but
14842 # not shown.
14843 finish_eval=$lt_finish_eval
14845 # Whether we should hardcode library paths into libraries.
14846 hardcode_into_libs=$hardcode_into_libs
14848 # Compile-time system search path for libraries.
14849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14851 # Run-time system search path for libraries.
14852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14854 # Whether dlopen is supported.
14855 dlopen_support=$enable_dlopen
14857 # Whether dlopen of programs is supported.
14858 dlopen_self=$enable_dlopen_self
14860 # Whether dlopen of statically linked programs is supported.
14861 dlopen_self_static=$enable_dlopen_self_static
14863 # Commands to strip libraries.
14864 old_striplib=$lt_old_striplib
14865 striplib=$lt_striplib
14868 # The linker used to build libraries.
14869 LD=$lt_LD
14871 # Commands used to build an old-style archive.
14872 old_archive_cmds=$lt_old_archive_cmds
14874 # A language specific compiler.
14875 CC=$lt_compiler
14877 # Is the compiler the GNU compiler?
14878 with_gcc=$GCC
14880 # Compiler flag to turn off builtin functions.
14881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14883 # How to pass a linker flag through the compiler.
14884 wl=$lt_lt_prog_compiler_wl
14886 # Additional compiler flags for building library objects.
14887 pic_flag=$lt_lt_prog_compiler_pic
14889 # Compiler flag to prevent dynamic linking.
14890 link_static_flag=$lt_lt_prog_compiler_static
14892 # Does compiler simultaneously support -c and -o options?
14893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14895 # Whether or not to add -lc for building shared libraries.
14896 build_libtool_need_lc=$archive_cmds_need_lc
14898 # Whether or not to disallow shared libs when runtime libs are static.
14899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14901 # Compiler flag to allow reflexive dlopens.
14902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904 # Compiler flag to generate shared objects directly from archives.
14905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907 # Whether the compiler copes with passing no objects directly.
14908 compiler_needs_object=$lt_compiler_needs_object
14910 # Create an old-style archive from a shared archive.
14911 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14913 # Create a temporary old-style archive to link instead of a shared archive.
14914 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14916 # Commands used to build a shared archive.
14917 archive_cmds=$lt_archive_cmds
14918 archive_expsym_cmds=$lt_archive_expsym_cmds
14920 # Commands used to build a loadable module if different from building
14921 # a shared archive.
14922 module_cmds=$lt_module_cmds
14923 module_expsym_cmds=$lt_module_expsym_cmds
14925 # Whether we are building with GNU ld or not.
14926 with_gnu_ld=$lt_with_gnu_ld
14928 # Flag that allows shared libraries with undefined symbols to be built.
14929 allow_undefined_flag=$lt_allow_undefined_flag
14931 # Flag that enforces no undefined symbols.
14932 no_undefined_flag=$lt_no_undefined_flag
14934 # Flag to hardcode \$libdir into a binary during linking.
14935 # This must work even if \$libdir does not exist
14936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14938 # If ld is used when linking, flag to hardcode \$libdir into a binary
14939 # during linking. This must work even if \$libdir does not exist.
14940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14942 # Whether we need a single "-rpath" flag with a separated argument.
14943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14946 # DIR into the resulting binary.
14947 hardcode_direct=$hardcode_direct
14949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14950 # DIR into the resulting binary and the resulting library dependency is
14951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14952 # library is relocated.
14953 hardcode_direct_absolute=$hardcode_direct_absolute
14955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14956 # into the resulting binary.
14957 hardcode_minus_L=$hardcode_minus_L
14959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14960 # into the resulting binary.
14961 hardcode_shlibpath_var=$hardcode_shlibpath_var
14963 # Set to "yes" if building a shared library automatically hardcodes DIR
14964 # into the library and all subsequent libraries and executables linked
14965 # against it.
14966 hardcode_automatic=$hardcode_automatic
14968 # Set to yes if linker adds runtime paths of dependent libraries
14969 # to runtime path list.
14970 inherit_rpath=$inherit_rpath
14972 # Whether libtool must link a program against all its dependency libraries.
14973 link_all_deplibs=$link_all_deplibs
14975 # Fix the shell variable \$srcfile for the compiler.
14976 fix_srcfile_path=$lt_fix_srcfile_path
14978 # Set to "yes" if exported symbols are required.
14979 always_export_symbols=$always_export_symbols
14981 # The commands to list exported symbols.
14982 export_symbols_cmds=$lt_export_symbols_cmds
14984 # Symbols that should not be listed in the preloaded symbols.
14985 exclude_expsyms=$lt_exclude_expsyms
14987 # Symbols that must always be exported.
14988 include_expsyms=$lt_include_expsyms
14990 # Commands necessary for linking programs (against libraries) with templates.
14991 prelink_cmds=$lt_prelink_cmds
14993 # Specify filename containing input files.
14994 file_list_spec=$lt_file_list_spec
14996 # How to hardcode a shared library path into an executable.
14997 hardcode_action=$hardcode_action
14999 # ### END LIBTOOL CONFIG
15001 _LT_EOF
15003 case $host_os in
15004 aix3*)
15005 cat <<\_LT_EOF >> "$cfgfile"
15006 # AIX sometimes has problems with the GCC collect2 program. For some
15007 # reason, if we set the COLLECT_NAMES environment variable, the problems
15008 # vanish in a puff of smoke.
15009 if test "X${COLLECT_NAMES+set}" != Xset; then
15010 COLLECT_NAMES=
15011 export COLLECT_NAMES
15013 _LT_EOF
15015 esac
15018 ltmain="$ac_aux_dir/ltmain.sh"
15021 # We use sed instead of cat because bash on DJGPP gets confused if
15022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15023 # text mode, it properly converts lines to CR/LF. This bash problem
15024 # is reportedly fixed, but why not run on old versions too?
15025 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15026 || (rm -f "$cfgfile"; exit 1)
15028 case $xsi_shell in
15029 yes)
15030 cat << \_LT_EOF >> "$cfgfile"
15032 # func_dirname file append nondir_replacement
15033 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15034 # otherwise set result to NONDIR_REPLACEMENT.
15035 func_dirname ()
15037 case ${1} in
15038 */*) func_dirname_result="${1%/*}${2}" ;;
15039 * ) func_dirname_result="${3}" ;;
15040 esac
15043 # func_basename file
15044 func_basename ()
15046 func_basename_result="${1##*/}"
15049 # func_dirname_and_basename file append nondir_replacement
15050 # perform func_basename and func_dirname in a single function
15051 # call:
15052 # dirname: Compute the dirname of FILE. If nonempty,
15053 # add APPEND to the result, otherwise set result
15054 # to NONDIR_REPLACEMENT.
15055 # value returned in "$func_dirname_result"
15056 # basename: Compute filename of FILE.
15057 # value retuned in "$func_basename_result"
15058 # Implementation must be kept synchronized with func_dirname
15059 # and func_basename. For efficiency, we do not delegate to
15060 # those functions but instead duplicate the functionality here.
15061 func_dirname_and_basename ()
15063 case ${1} in
15064 */*) func_dirname_result="${1%/*}${2}" ;;
15065 * ) func_dirname_result="${3}" ;;
15066 esac
15067 func_basename_result="${1##*/}"
15070 # func_stripname prefix suffix name
15071 # strip PREFIX and SUFFIX off of NAME.
15072 # PREFIX and SUFFIX must not contain globbing or regex special
15073 # characters, hashes, percent signs, but SUFFIX may contain a leading
15074 # dot (in which case that matches only a dot).
15075 func_stripname ()
15077 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15078 # positional parameters, so assign one to ordinary parameter first.
15079 func_stripname_result=${3}
15080 func_stripname_result=${func_stripname_result#"${1}"}
15081 func_stripname_result=${func_stripname_result%"${2}"}
15084 # func_opt_split
15085 func_opt_split ()
15087 func_opt_split_opt=${1%%=*}
15088 func_opt_split_arg=${1#*=}
15091 # func_lo2o object
15092 func_lo2o ()
15094 case ${1} in
15095 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15096 *) func_lo2o_result=${1} ;;
15097 esac
15100 # func_xform libobj-or-source
15101 func_xform ()
15103 func_xform_result=${1%.*}.lo
15106 # func_arith arithmetic-term...
15107 func_arith ()
15109 func_arith_result=$(( $* ))
15112 # func_len string
15113 # STRING may not start with a hyphen.
15114 func_len ()
15116 func_len_result=${#1}
15119 _LT_EOF
15121 *) # Bourne compatible functions.
15122 cat << \_LT_EOF >> "$cfgfile"
15124 # func_dirname file append nondir_replacement
15125 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15126 # otherwise set result to NONDIR_REPLACEMENT.
15127 func_dirname ()
15129 # Extract subdirectory from the argument.
15130 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15131 if test "X$func_dirname_result" = "X${1}"; then
15132 func_dirname_result="${3}"
15133 else
15134 func_dirname_result="$func_dirname_result${2}"
15138 # func_basename file
15139 func_basename ()
15141 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15145 # func_stripname prefix suffix name
15146 # strip PREFIX and SUFFIX off of NAME.
15147 # PREFIX and SUFFIX must not contain globbing or regex special
15148 # characters, hashes, percent signs, but SUFFIX may contain a leading
15149 # dot (in which case that matches only a dot).
15150 # func_strip_suffix prefix name
15151 func_stripname ()
15153 case ${2} in
15154 .*) func_stripname_result=`$ECHO "X${3}" \
15155 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15156 *) func_stripname_result=`$ECHO "X${3}" \
15157 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15158 esac
15161 # sed scripts:
15162 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15163 my_sed_long_arg='1s/^-[^=]*=//'
15165 # func_opt_split
15166 func_opt_split ()
15168 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15169 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15172 # func_lo2o object
15173 func_lo2o ()
15175 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15178 # func_xform libobj-or-source
15179 func_xform ()
15181 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15184 # func_arith arithmetic-term...
15185 func_arith ()
15187 func_arith_result=`expr "$@"`
15190 # func_len string
15191 # STRING may not start with a hyphen.
15192 func_len ()
15194 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15197 _LT_EOF
15198 esac
15200 case $lt_shell_append in
15201 yes)
15202 cat << \_LT_EOF >> "$cfgfile"
15204 # func_append var value
15205 # Append VALUE to the end of shell variable VAR.
15206 func_append ()
15208 eval "$1+=\$2"
15210 _LT_EOF
15213 cat << \_LT_EOF >> "$cfgfile"
15215 # func_append var value
15216 # Append VALUE to the end of shell variable VAR.
15217 func_append ()
15219 eval "$1=\$$1\$2"
15222 _LT_EOF
15224 esac
15227 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15228 || (rm -f "$cfgfile"; exit 1)
15230 mv -f "$cfgfile" "$ofile" ||
15231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15232 chmod +x "$ofile"
15235 "default-1":C)
15236 for ac_file in $CONFIG_FILES; do
15237 # Support "outfile[:infile[:infile...]]"
15238 case "$ac_file" in
15239 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15240 esac
15241 # PO directories have a Makefile.in generated from Makefile.in.in.
15242 case "$ac_file" in */Makefile.in)
15243 # Adjust a relative srcdir.
15244 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15245 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15246 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15247 # In autoconf-2.13 it is called $ac_given_srcdir.
15248 # In autoconf-2.50 it is called $srcdir.
15249 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15250 case "$ac_given_srcdir" in
15251 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15252 /*) top_srcdir="$ac_given_srcdir" ;;
15253 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15254 esac
15255 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15256 rm -f "$ac_dir/POTFILES"
15257 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15258 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15259 POMAKEFILEDEPS="POTFILES.in"
15260 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15261 # on $ac_dir but don't depend on user-specified configuration
15262 # parameters.
15263 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15264 # The LINGUAS file contains the set of available languages.
15265 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15266 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15268 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15269 # Hide the ALL_LINGUAS assigment from automake.
15270 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15271 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15272 else
15273 # The set of available languages was given in configure.in.
15274 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15276 # Compute POFILES
15277 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15278 # Compute UPDATEPOFILES
15279 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15280 # Compute DUMMYPOFILES
15281 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15282 # Compute GMOFILES
15283 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15284 case "$ac_given_srcdir" in
15285 .) srcdirpre= ;;
15286 *) srcdirpre='$(srcdir)/' ;;
15287 esac
15288 POFILES=
15289 UPDATEPOFILES=
15290 DUMMYPOFILES=
15291 GMOFILES=
15292 for lang in $ALL_LINGUAS; do
15293 POFILES="$POFILES $srcdirpre$lang.po"
15294 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15295 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15296 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15297 done
15298 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15299 # environment variable.
15300 INST_LINGUAS=
15301 if test -n "$ALL_LINGUAS"; then
15302 for presentlang in $ALL_LINGUAS; do
15303 useit=no
15304 if test "%UNSET%" != "$LINGUAS"; then
15305 desiredlanguages="$LINGUAS"
15306 else
15307 desiredlanguages="$ALL_LINGUAS"
15309 for desiredlang in $desiredlanguages; do
15310 # Use the presentlang catalog if desiredlang is
15311 # a. equal to presentlang, or
15312 # b. a variant of presentlang (because in this case,
15313 # presentlang can be used as a fallback for messages
15314 # which are not translated in the desiredlang catalog).
15315 case "$desiredlang" in
15316 "$presentlang"*) useit=yes;;
15317 esac
15318 done
15319 if test $useit = yes; then
15320 INST_LINGUAS="$INST_LINGUAS $presentlang"
15322 done
15324 CATALOGS=
15325 if test -n "$INST_LINGUAS"; then
15326 for lang in $INST_LINGUAS; do
15327 CATALOGS="$CATALOGS $lang.gmo"
15328 done
15330 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15331 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15332 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15333 if test -f "$f"; then
15334 case "$f" in
15335 *.orig | *.bak | *~) ;;
15336 *) cat "$f" >> "$ac_dir/Makefile" ;;
15337 esac
15339 done
15342 esac
15343 done ;;
15345 esac
15346 done # for ac_tag
15349 as_fn_exit 0
15350 _ACEOF
15351 ac_clean_files=$ac_clean_files_save
15353 test $ac_write_fail = 0 ||
15354 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15357 # configure is writing to config.log, and then calls config.status.
15358 # config.status does its own redirection, appending to config.log.
15359 # Unfortunately, on DOS this fails, as config.log is still kept open
15360 # by configure, so config.status won't be able to write to it; its
15361 # output is simply discarded. So we exec the FD to /dev/null,
15362 # effectively closing config.log, so it can be properly (re)opened and
15363 # appended to by config.status. When coming back to configure, we
15364 # need to make the FD available again.
15365 if test "$no_create" != yes; then
15366 ac_cs_success=:
15367 ac_config_status_args=
15368 test "$silent" = yes &&
15369 ac_config_status_args="$ac_config_status_args --quiet"
15370 exec 5>/dev/null
15371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15372 exec 5>>config.log
15373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15374 # would make configure fail if this is the last instruction.
15375 $ac_cs_success || as_fn_exit $?
15377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15383 # Message about configured subprojects
15384 if test "x$subdirs" != "x"; then
15386 gp_config_msg="${gp_config_msg}
15388 _subdirs=""
15389 for sd in $subdirs; do
15390 ssd="$(basename "$sd")"
15391 if test "x$_subdirs" = "x"; then
15392 _subdirs="$ssd";
15393 else
15394 _subdirs="$_subdirs $ssd"
15396 done
15398 gp_config_msg_len="$(expr "Subprojects" : '.*')"
15399 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15400 gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
15401 else
15402 gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15404 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${_subdirs}
15408 echo "${gp_config_msg}
15409 You may run \"make\" and \"make install\" now."