~ubuntu-branches/ubuntu/vivid/libicns/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Paul Wise, Mathew Eis, Paul Wise
  • Date: 2012-06-14 10:16:49 UTC
  • mfrom: (1.1.3)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20120614101649-7e9vuqyd686l0h3z
[ Mathew Eis ]
* New upstream release
  - No longer crashes on ARM/SPARC (Closes: #612698)
  - Understands 'odrp' type (Closes: #614031)
  - Fails with non-zero return code (Closes: #614028)
  - Fixes FTBFS with newer libpng (Closes: #635952)
* debian/control
  - Bump to 3.9.3 Standards-Version (no change needed).

[ Paul Wise ]
* Include changes from Debian NMU
* Wrap and sort various files using wrap-and-sort -s
* Compile against libjpeg-dev instead of the old version (Closes: #643316)
* Compile against libpng-dev instead of the old version (Closes: #662403)
* Adjust the watch file to only look for release versions
* Switch to debhelper compat 9 and dh tiny rules
* Drop autotools_dev and use dh-autoreconf
* Switch to dpkg-source v3
* Use multi-arch paths and fields
* Add myself to uploaders
* Add Vcs-* headers
* Also install the API docs, drop from lib package
* Switch to Debian copyright format 1.0 for the source Debian copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for libicns 0.5.9.
 
3
# Generated by GNU Autoconf 2.69 for libicns 0.8.1.
4
4
#
5
5
# Report bugs to <mathew@eisbox.net>.
6
6
#
7
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
9
11
# This configure script is free software; the Free Software Foundation
10
12
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
14
16
 
15
17
# Be more Bourne compatible
16
18
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
20
  emulate sh
19
21
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
23
  # is contrary to our usage.  Disable this feature.
22
24
  alias -g '${1+"$@"}'='"$@"'
23
25
  setopt NO_GLOB_SUBST
24
26
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
27
32
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
41
73
 
42
74
# The user is always right.
43
75
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
 
 
55
 
# Support unset when possible.
56
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
 
  as_unset=unset
58
 
else
59
 
  as_unset=false
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
60
81
fi
61
82
 
62
83
 
65
86
# there to prevent editors from complaining about space-tab.
66
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
88
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
89
IFS=" ""        $as_nl"
71
90
 
72
91
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
 
92
as_myself=
 
93
case $0 in #((
74
94
  *[\\/]* ) as_myself=$0 ;;
75
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
96
for as_dir in $PATH
77
97
do
78
98
  IFS=$as_save_IFS
79
99
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
82
102
IFS=$as_save_IFS
83
103
 
84
104
     ;;
89
109
  as_myself=$0
90
110
fi
91
111
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
94
114
fi
95
115
 
96
 
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
99
123
done
100
124
PS1='$ '
101
125
PS2='> '
102
126
PS4='+ '
103
127
 
104
128
# NLS nuisances.
105
 
for as_var in \
106
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
 
  LC_TELEPHONE LC_TIME
109
 
do
110
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
 
    eval $as_var=C; export $as_var
112
 
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
 
  fi
115
 
done
116
 
 
117
 
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
 
  as_expr=expr
121
 
else
122
 
  as_expr=false
123
 
fi
124
 
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
 
  as_basename=basename
127
 
else
128
 
  as_basename=false
129
 
fi
130
 
 
131
 
 
132
 
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
134
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
 
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
 
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
151
133
 
152
134
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
155
 
 
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
156
162
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
 
202
 
 
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
207
    PATH=/empty FPATH=/empty; export PATH FPATH
 
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
158
211
  as_have_required=yes
159
212
else
160
213
  as_have_required=no
161
214
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
223
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
224
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
221
do
226
222
  IFS=$as_save_IFS
227
223
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
 
224
  as_found=:
 
225
  case $as_dir in #(
229
226
         /*)
230
227
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
232
237
           done;;
233
238
       esac
 
239
  as_found=false
234
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
235
245
IFS=$as_save_IFS
236
246
 
237
247
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
 
430
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
437
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and mathew@eisbox.net
 
278
$0: about your system, including any error possibly output
 
279
$0: before this message. Then install a modern shell, or
 
280
$0: manually run the script under such a shell if you do
 
281
$0: have one."
 
282
  fi
 
283
  exit 1
 
284
fi
 
285
fi
 
286
fi
 
287
SHELL=${CONFIG_SHELL-/bin/sh}
 
288
export SHELL
 
289
# Unset more variables known to interfere with behavior of common tools.
 
290
CLICOLOR_FORCE= GREP_OPTIONS=
 
291
unset CLICOLOR_FORCE GREP_OPTIONS
 
292
 
 
293
## --------------------- ##
 
294
## M4sh Shell Functions. ##
 
295
## --------------------- ##
 
296
# as_fn_unset VAR
 
297
# ---------------
 
298
# Portably unset VAR.
 
299
as_fn_unset ()
 
300
{
 
301
  { eval $1=; unset $1;}
 
302
}
 
303
as_unset=as_fn_unset
 
304
 
 
305
# as_fn_set_status STATUS
 
306
# -----------------------
 
307
# Set $? to STATUS, without forking.
 
308
as_fn_set_status ()
 
309
{
 
310
  return $1
 
311
} # as_fn_set_status
 
312
 
 
313
# as_fn_exit STATUS
 
314
# -----------------
 
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
316
as_fn_exit ()
 
317
{
 
318
  set +e
 
319
  as_fn_set_status $1
 
320
  exit $1
 
321
} # as_fn_exit
 
322
 
 
323
# as_fn_mkdir_p
 
324
# -------------
 
325
# Create "$as_dir" as a directory, including parents if necessary.
 
326
as_fn_mkdir_p ()
 
327
{
 
328
 
 
329
  case $as_dir in #(
 
330
  -*) as_dir=./$as_dir;;
 
331
  esac
 
332
  test -d "$as_dir" || eval $as_mkdir_p || {
 
333
    as_dirs=
 
334
    while :; do
 
335
      case $as_dir in #(
 
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
337
      *) as_qdir=$as_dir;;
 
338
      esac
 
339
      as_dirs="'$as_qdir' $as_dirs"
 
340
      as_dir=`$as_dirname -- "$as_dir" ||
 
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
343
         X"$as_dir" : 'X\(//\)$' \| \
 
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
345
$as_echo X"$as_dir" |
 
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
347
            s//\1/
 
348
            q
 
349
          }
 
350
          /^X\(\/\/\)[^/].*/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)$/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\).*/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          s/.*/./; q'`
 
363
      test -d "$as_dir" && break
 
364
    done
 
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
367
 
 
368
 
 
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
 
378
# as_fn_append VAR VALUE
 
379
# ----------------------
 
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
381
# advantage of any shell optimizations that allow amortized linear growth over
 
382
# repeated appends, instead of the typical quadratic growth present in naive
 
383
# implementations.
 
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
385
  eval 'as_fn_append ()
 
386
  {
 
387
    eval $1+=\$2
 
388
  }'
 
389
else
 
390
  as_fn_append ()
 
391
  {
 
392
    eval $1=\$$1\$2
 
393
  }
 
394
fi # as_fn_append
 
395
 
 
396
# as_fn_arith ARG...
 
397
# ------------------
 
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
400
# must be portable across $(()) and expr.
 
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
402
  eval 'as_fn_arith ()
 
403
  {
 
404
    as_val=$(( $* ))
 
405
  }'
 
406
else
 
407
  as_fn_arith ()
 
408
  {
 
409
    as_val=`expr "$@" || test $? -eq 1`
 
410
  }
 
411
fi # as_fn_arith
 
412
 
 
413
 
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
415
# ----------------------------------------
 
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
418
# script with STATUS, using 1 if that was 0.
 
419
as_fn_error ()
 
420
{
 
421
  as_status=$1; test $as_status -eq 0 && as_status=1
 
422
  if test "$4"; then
 
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
425
  fi
 
426
  $as_echo "$as_me: error: $2" >&2
 
427
  as_fn_exit $as_status
 
428
} # as_fn_error
 
429
 
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
432
  as_expr=expr
 
433
else
 
434
  as_expr=false
 
435
fi
 
436
 
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
438
  as_basename=basename
 
439
else
 
440
  as_basename=false
 
441
fi
 
442
 
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
444
  as_dirname=dirname
 
445
else
 
446
  as_dirname=false
 
447
fi
 
448
 
 
449
as_me=`$as_basename -- "$0" ||
 
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
451
         X"$0" : 'X\(//\)$' \| \
 
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
453
$as_echo X/"$0" |
 
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
455
            s//\1/
 
456
            q
 
457
          }
 
458
          /^X\/\(\/\/\)$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\).*/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          s/.*/./; q'`
 
467
 
 
468
# Avoid depending upon Character Ranges.
 
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
472
as_cr_digits='0123456789'
 
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
474
 
 
475
 
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
440
481
  sed -n '
441
482
    p
442
483
    /[$]LINENO/=
453
494
      s/-\n.*//
454
495
    ' >$as_me.lineno &&
455
496
  chmod +x "$as_me.lineno" ||
456
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
 
   { (exit 1); exit 1; }; }
 
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
459
503
  # Don't try to exec as it changes $[0], causing all sort of problems
460
504
  # (the dirname of $[0] is not the place where we might find the
461
505
  # original and so on.  Autoconf is especially sensitive to this).
464
508
  exit
465
509
}
466
510
 
467
 
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
511
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
 
512
case `echo -n x` in #(((((
476
513
-n*)
477
 
  case `echo 'x\c'` in
 
514
  case `echo 'xy\c'` in
478
515
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
 
516
  xy)  ECHO_C='\c';;
 
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
518
       ECHO_T=' ';;
480
519
  esac;;
481
520
*)
482
521
  ECHO_N='-n';;
483
522
esac
484
523
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
 
  as_expr=expr
488
 
else
489
 
  as_expr=false
490
 
fi
491
 
 
492
524
rm -f conf$$ conf$$.exe conf$$.file
493
525
if test -d conf$$.dir; then
494
526
  rm -f conf$$.dir/conf$$.file
495
527
else
496
528
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
 
529
  mkdir conf$$.dir 2>/dev/null
498
530
fi
499
 
echo >conf$$.file
500
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507
 
    as_ln_s='cp -p'
508
 
elif ln conf$$.file conf$$ 2>/dev/null; then
509
 
  as_ln_s=ln
 
531
if (echo >conf$$.file) 2>/dev/null; then
 
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
533
    as_ln_s='ln -s'
 
534
    # ... but there are two gotchas:
 
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
537
    # In both cases, we have to default to `cp -pR'.
 
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
539
      as_ln_s='cp -pR'
 
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
541
    as_ln_s=ln
 
542
  else
 
543
    as_ln_s='cp -pR'
 
544
  fi
510
545
else
511
 
  as_ln_s='cp -p'
 
546
  as_ln_s='cp -pR'
512
547
fi
513
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
549
rmdir conf$$.dir 2>/dev/null
515
550
 
516
551
if mkdir -p . 2>/dev/null; then
517
 
  as_mkdir_p=:
 
552
  as_mkdir_p='mkdir -p "$as_dir"'
518
553
else
519
554
  test -d ./-p && rmdir ./-p
520
555
  as_mkdir_p=false
521
556
fi
522
557
 
523
 
if test -x / >/dev/null 2>&1; then
524
 
  as_test_x='test -x'
525
 
else
526
 
  if ls -dL / >/dev/null 2>&1; then
527
 
    as_ls_L_option=L
528
 
  else
529
 
    as_ls_L_option=
530
 
  fi
531
 
  as_test_x='
532
 
    eval sh -c '\''
533
 
      if test -d "$1"; then
534
 
        test -d "$1/.";
535
 
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
538
 
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
 
        ???[sx]*):;;*)false;;esac;fi
541
 
    '\'' sh
542
 
  '
543
 
fi
544
 
as_executable_p=$as_test_x
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
545
560
 
546
561
# Sed expression to map a string onto a valid CPP name.
547
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
564
# Sed expression to map a string onto a valid variable name.
550
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
566
 
552
 
 
553
 
 
554
 
 
555
 
# Check that we are running under the correct shell.
556
567
SHELL=${CONFIG_SHELL-/bin/sh}
557
568
 
558
 
case X$ECHO in
559
 
X*--fallback-echo)
560
 
  # Remove one level of quotation (which was required for Make).
561
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
 
  ;;
563
 
esac
564
 
 
565
 
echo=${ECHO-echo}
566
 
if test "X$1" = X--no-reexec; then
567
 
  # Discard the --no-reexec flag, and continue.
568
 
  shift
569
 
elif test "X$1" = X--fallback-echo; then
570
 
  # Avoid inline document here, it may be left over
571
 
  :
572
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
 
  # Yippee, $echo works!
574
 
  :
575
 
else
576
 
  # Restart under the correct shell.
577
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
578
 
fi
579
 
 
580
 
if test "X$1" = X--fallback-echo; then
581
 
  # used as fallback echo
582
 
  shift
583
 
  cat <<EOF
584
 
$*
585
 
EOF
586
 
  exit 0
587
 
fi
588
 
 
589
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
590
 
# if CDPATH is set.
591
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
 
 
593
 
if test -z "$ECHO"; then
594
 
if test "X${echo_test_string+set}" != Xset; then
595
 
# find a string as large as possible, as long as the shell can cope with it
596
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
 
       echo_test_string=`eval $cmd` &&
600
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
 
    then
602
 
      break
603
 
    fi
604
 
  done
605
 
fi
606
 
 
607
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
610
 
  :
611
 
else
612
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
613
 
  # backslashes.  This makes it impossible to quote backslashes using
614
 
  #   echo "$something" | sed 's/\\/\\\\/g'
615
 
  #
616
 
  # So, first we look for a working echo in the user's PATH.
617
 
 
618
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
 
  for dir in $PATH /usr/ucb; do
620
 
    IFS="$lt_save_ifs"
621
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
625
 
      echo="$dir/echo"
626
 
      break
627
 
    fi
628
 
  done
629
 
  IFS="$lt_save_ifs"
630
 
 
631
 
  if test "X$echo" = Xecho; then
632
 
    # We didn't find a better echo, so look for alternatives.
633
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
636
 
      # This shell has a builtin print -r that does the trick.
637
 
      echo='print -r'
638
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
640
 
      # If we have ksh, try running configure again with it.
641
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
 
      export ORIGINAL_CONFIG_SHELL
643
 
      CONFIG_SHELL=/bin/ksh
644
 
      export CONFIG_SHELL
645
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646
 
    else
647
 
      # Try using printf.
648
 
      echo='printf %s\n'
649
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
652
 
        # Cool, printf works
653
 
        :
654
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = 'X\t' &&
656
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
658
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
 
        export CONFIG_SHELL
660
 
        SHELL="$CONFIG_SHELL"
661
 
        export SHELL
662
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
663
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = 'X\t' &&
665
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
667
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
668
 
      else
669
 
        # maybe with a smaller string...
670
 
        prev=:
671
 
 
672
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674
 
          then
675
 
            break
676
 
          fi
677
 
          prev="$cmd"
678
 
        done
679
 
 
680
 
        if test "$prev" != 'sed 50q "$0"'; then
681
 
          echo_test_string=`eval $prev`
682
 
          export echo_test_string
683
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
 
        else
685
 
          # Oops.  We lost completely, so just stick with echo.
686
 
          echo=echo
687
 
        fi
688
 
      fi
689
 
    fi
690
 
  fi
691
 
fi
692
 
fi
693
 
 
694
 
# Copy echo and quote the copy suitably for passing to libtool from
695
 
# the Makefile, instead of quoting the original, which is used later.
696
 
ECHO=$echo
697
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699
 
fi
700
 
 
701
 
 
702
 
 
703
 
 
704
 
tagnames=${tagnames+${tagnames},}CXX
705
 
 
706
 
tagnames=${tagnames+${tagnames},}F77
707
 
 
708
 
exec 7<&0 </dev/null 6>&1
 
569
 
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
 
571
exec 6>&1
709
572
 
710
573
# Name of the host.
711
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
712
575
# so uname gets run too.
713
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
577
 
723
586
subdirs=
724
587
MFLAGS=
725
588
MAKEFLAGS=
726
 
SHELL=${CONFIG_SHELL-/bin/sh}
727
589
 
728
590
# Identity of this package.
729
591
PACKAGE_NAME='libicns'
730
592
PACKAGE_TARNAME='libicns'
731
 
PACKAGE_VERSION='0.5.9'
732
 
PACKAGE_STRING='libicns 0.5.9'
 
593
PACKAGE_VERSION='0.8.1'
 
594
PACKAGE_STRING='libicns 0.8.1'
733
595
PACKAGE_BUGREPORT='mathew@eisbox.net'
 
596
PACKAGE_URL=''
734
597
 
735
598
ac_unique_file="src/icns.h"
736
599
# Factoring default headers for most tests.
769
632
# include <unistd.h>
770
633
#endif"
771
634
 
772
 
ac_subst_vars='SHELL
773
 
PATH_SEPARATOR
774
 
PACKAGE_NAME
775
 
PACKAGE_TARNAME
776
 
PACKAGE_VERSION
777
 
PACKAGE_STRING
778
 
PACKAGE_BUGREPORT
779
 
exec_prefix
780
 
prefix
781
 
program_transform_name
782
 
bindir
783
 
sbindir
784
 
libexecdir
785
 
datarootdir
786
 
datadir
787
 
sysconfdir
788
 
sharedstatedir
789
 
localstatedir
790
 
includedir
791
 
oldincludedir
792
 
docdir
793
 
infodir
794
 
htmldir
795
 
dvidir
796
 
pdfdir
797
 
psdir
798
 
libdir
799
 
localedir
800
 
mandir
801
 
DEFS
802
 
ECHO_C
803
 
ECHO_N
804
 
ECHO_T
805
 
LIBS
806
 
build_alias
807
 
host_alias
808
 
target_alias
809
 
INSTALL_PROGRAM
810
 
INSTALL_SCRIPT
811
 
INSTALL_DATA
812
 
am__isrc
813
 
CYGPATH_W
814
 
PACKAGE
815
 
VERSION
816
 
ACLOCAL
817
 
AUTOCONF
818
 
AUTOMAKE
819
 
AUTOHEADER
820
 
MAKEINFO
821
 
install_sh
822
 
STRIP
823
 
INSTALL_STRIP_PROGRAM
824
 
mkdir_p
825
 
AWK
826
 
SET_MAKE
827
 
am__leading_dot
828
 
AMTAR
829
 
am__tar
830
 
am__untar
831
 
MAINTAINER_MODE_TRUE
832
 
MAINTAINER_MODE_FALSE
833
 
MAINT
834
 
CC
835
 
CFLAGS
836
 
LDFLAGS
837
 
CPPFLAGS
838
 
ac_ct_CC
839
 
EXEEXT
840
 
OBJEXT
841
 
DEPDIR
842
 
am__include
843
 
am__quote
844
 
AMDEP_TRUE
845
 
AMDEP_FALSE
846
 
AMDEPBACKSLASH
847
 
CCDEPMODE
848
 
am__fastdepCC_TRUE
849
 
am__fastdepCC_FALSE
 
635
ac_subst_vars='am__EXEEXT_FALSE
 
636
am__EXEEXT_TRUE
 
637
LTLIBOBJS
 
638
LIBOBJS
 
639
JP2000_LIBS
 
640
PNG_LIBS
 
641
OTOOL64
 
642
OTOOL
 
643
LIPO
 
644
NMEDIT
 
645
DSYMUTIL
 
646
MANIFEST_TOOL
 
647
RANLIB
 
648
ac_ct_AR
 
649
AR
 
650
DLLTOOL
 
651
OBJDUMP
 
652
NM
 
653
ac_ct_DUMPBIN
 
654
DUMPBIN
 
655
LD
 
656
FGREP
 
657
SED
 
658
host_os
 
659
host_vendor
 
660
host_cpu
 
661
host
 
662
build_os
 
663
build_vendor
 
664
build_cpu
 
665
build
 
666
LIBTOOL
850
667
LN_S
851
 
build
852
 
build_cpu
853
 
build_vendor
854
 
build_os
855
 
host
856
 
host_cpu
857
 
host_vendor
858
 
host_os
859
 
SED
 
668
EGREP
860
669
GREP
861
 
EGREP
862
 
ECHO
863
 
AR
864
 
RANLIB
865
 
DSYMUTIL
866
 
NMEDIT
867
670
CPP
868
 
CXX
869
 
CXXFLAGS
870
 
ac_ct_CXX
871
 
CXXDEPMODE
872
 
am__fastdepCXX_TRUE
873
 
am__fastdepCXX_FALSE
874
 
CXXCPP
875
 
F77
876
 
FFLAGS
877
 
ac_ct_F77
878
 
LIBTOOL
879
 
PNG_LIBS
880
 
JP2000_LIBS
881
 
LIBOBJS
882
 
LTLIBOBJS'
 
671
am__fastdepCC_FALSE
 
672
am__fastdepCC_TRUE
 
673
CCDEPMODE
 
674
am__nodep
 
675
AMDEPBACKSLASH
 
676
AMDEP_FALSE
 
677
AMDEP_TRUE
 
678
am__quote
 
679
am__include
 
680
DEPDIR
 
681
OBJEXT
 
682
EXEEXT
 
683
ac_ct_CC
 
684
CPPFLAGS
 
685
LDFLAGS
 
686
CFLAGS
 
687
CC
 
688
MAINT
 
689
MAINTAINER_MODE_FALSE
 
690
MAINTAINER_MODE_TRUE
 
691
am__untar
 
692
am__tar
 
693
AMTAR
 
694
am__leading_dot
 
695
SET_MAKE
 
696
AWK
 
697
mkdir_p
 
698
MKDIR_P
 
699
INSTALL_STRIP_PROGRAM
 
700
STRIP
 
701
install_sh
 
702
MAKEINFO
 
703
AUTOHEADER
 
704
AUTOMAKE
 
705
AUTOCONF
 
706
ACLOCAL
 
707
VERSION
 
708
PACKAGE
 
709
CYGPATH_W
 
710
am__isrc
 
711
INSTALL_DATA
 
712
INSTALL_SCRIPT
 
713
INSTALL_PROGRAM
 
714
target_alias
 
715
host_alias
 
716
build_alias
 
717
LIBS
 
718
ECHO_T
 
719
ECHO_N
 
720
ECHO_C
 
721
DEFS
 
722
mandir
 
723
localedir
 
724
libdir
 
725
psdir
 
726
pdfdir
 
727
dvidir
 
728
htmldir
 
729
infodir
 
730
docdir
 
731
oldincludedir
 
732
includedir
 
733
localstatedir
 
734
sharedstatedir
 
735
sysconfdir
 
736
datadir
 
737
datarootdir
 
738
libexecdir
 
739
sbindir
 
740
bindir
 
741
program_transform_name
 
742
prefix
 
743
exec_prefix
 
744
PACKAGE_URL
 
745
PACKAGE_BUGREPORT
 
746
PACKAGE_STRING
 
747
PACKAGE_VERSION
 
748
PACKAGE_TARNAME
 
749
PACKAGE_NAME
 
750
PATH_SEPARATOR
 
751
SHELL'
883
752
ac_subst_files=''
 
753
ac_user_opts='
 
754
enable_option_checking
 
755
enable_maintainer_mode
 
756
enable_debug
 
757
enable_dependency_tracking
 
758
enable_shared
 
759
enable_static
 
760
with_pic
 
761
enable_fast_install
 
762
with_gnu_ld
 
763
with_sysroot
 
764
enable_libtool_lock
 
765
'
884
766
      ac_precious_vars='build_alias
885
767
host_alias
886
768
target_alias
889
771
LDFLAGS
890
772
LIBS
891
773
CPPFLAGS
892
 
CPP
893
 
CXX
894
 
CXXFLAGS
895
 
CCC
896
 
CXXCPP
897
 
F77
898
 
FFLAGS'
 
774
CPP'
899
775
 
900
776
 
901
777
# Initialize some variables set by options.
902
778
ac_init_help=
903
779
ac_init_version=false
 
780
ac_unrecognized_opts=
 
781
ac_unrecognized_sep=
904
782
# The variables have the same names as the options, with
905
783
# dashes changed to underlines.
906
784
cache_file=/dev/null
956
834
  fi
957
835
 
958
836
  case $ac_option in
959
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960
 
  *)    ac_optarg=yes ;;
 
837
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
838
  *=)   ac_optarg= ;;
 
839
  *)    ac_optarg=yes ;;
961
840
  esac
962
841
 
963
842
  # Accept the important Cygnus configure options, so we can diagnose typos.
999
878
    datarootdir=$ac_optarg ;;
1000
879
 
1001
880
  -disable-* | --disable-*)
1002
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
881
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003
882
    # Reject names that are not valid shell variable names.
1004
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006
 
   { (exit 1); exit 1; }; }
1007
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008
 
    eval enable_$ac_feature=no ;;
 
883
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
884
      as_fn_error $? "invalid feature name: $ac_useropt"
 
885
    ac_useropt_orig=$ac_useropt
 
886
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
887
    case $ac_user_opts in
 
888
      *"
 
889
"enable_$ac_useropt"
 
890
"*) ;;
 
891
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
892
         ac_unrecognized_sep=', ';;
 
893
    esac
 
894
    eval enable_$ac_useropt=no ;;
1009
895
 
1010
896
  -docdir | --docdir | --docdi | --doc | --do)
1011
897
    ac_prev=docdir ;;
1018
904
    dvidir=$ac_optarg ;;
1019
905
 
1020
906
  -enable-* | --enable-*)
1021
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
907
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022
908
    # Reject names that are not valid shell variable names.
1023
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025
 
   { (exit 1); exit 1; }; }
1026
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
909
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
910
      as_fn_error $? "invalid feature name: $ac_useropt"
 
911
    ac_useropt_orig=$ac_useropt
 
912
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
913
    case $ac_user_opts in
 
914
      *"
 
915
"enable_$ac_useropt"
 
916
"*) ;;
 
917
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
918
         ac_unrecognized_sep=', ';;
 
919
    esac
 
920
    eval enable_$ac_useropt=\$ac_optarg ;;
1028
921
 
1029
922
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
923
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215
1108
    ac_init_version=: ;;
1216
1109
 
1217
1110
  -with-* | --with-*)
1218
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1111
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
1112
    # Reject names that are not valid shell variable names.
1220
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1222
 
   { (exit 1); exit 1; }; }
1223
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224
 
    eval with_$ac_package=\$ac_optarg ;;
 
1113
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1114
      as_fn_error $? "invalid package name: $ac_useropt"
 
1115
    ac_useropt_orig=$ac_useropt
 
1116
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1117
    case $ac_user_opts in
 
1118
      *"
 
1119
"with_$ac_useropt"
 
1120
"*) ;;
 
1121
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1122
         ac_unrecognized_sep=', ';;
 
1123
    esac
 
1124
    eval with_$ac_useropt=\$ac_optarg ;;
1225
1125
 
1226
1126
  -without-* | --without-*)
1227
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1127
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228
1128
    # Reject names that are not valid shell variable names.
1229
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1231
 
   { (exit 1); exit 1; }; }
1232
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233
 
    eval with_$ac_package=no ;;
 
1129
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1130
      as_fn_error $? "invalid package name: $ac_useropt"
 
1131
    ac_useropt_orig=$ac_useropt
 
1132
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1133
    case $ac_user_opts in
 
1134
      *"
 
1135
"with_$ac_useropt"
 
1136
"*) ;;
 
1137
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1138
         ac_unrecognized_sep=', ';;
 
1139
    esac
 
1140
    eval with_$ac_useropt=no ;;
1234
1141
 
1235
1142
  --x)
1236
1143
    # Obsolete; use --with-x.
1250
1157
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251
1158
    x_libraries=$ac_optarg ;;
1252
1159
 
1253
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1254
 
Try \`$0 --help' for more information." >&2
1255
 
   { (exit 1); exit 1; }; }
 
1160
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1161
Try \`$0 --help' for more information"
1256
1162
    ;;
1257
1163
 
1258
1164
  *=*)
1259
1165
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260
1166
    # Reject names that are not valid shell variable names.
1261
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263
 
   { (exit 1); exit 1; }; }
 
1167
    case $ac_envvar in #(
 
1168
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1169
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1170
    esac
1264
1171
    eval $ac_envvar=\$ac_optarg
1265
1172
    export $ac_envvar ;;
1266
1173
 
1267
1174
  *)
1268
1175
    # FIXME: should be removed in autoconf 3.0.
1269
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1176
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270
1177
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1178
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1179
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273
1180
    ;;
1274
1181
 
1275
1182
  esac
1277
1184
 
1278
1185
if test -n "$ac_prev"; then
1279
1186
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1281
 
   { (exit 1); exit 1; }; }
1282
 
fi
1283
 
 
1284
 
# Be sure to have absolute directory names.
 
1187
  as_fn_error $? "missing argument to $ac_option"
 
1188
fi
 
1189
 
 
1190
if test -n "$ac_unrecognized_opts"; then
 
1191
  case $enable_option_checking in
 
1192
    no) ;;
 
1193
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1194
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1195
  esac
 
1196
fi
 
1197
 
 
1198
# Check all directory arguments for consistency.
1285
1199
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286
1200
                datadir sysconfdir sharedstatedir localstatedir includedir \
1287
1201
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288
1202
                libdir localedir mandir
1289
1203
do
1290
1204
  eval ac_val=\$$ac_var
 
1205
  # Remove trailing slashes.
 
1206
  case $ac_val in
 
1207
    */ )
 
1208
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1209
      eval $ac_var=\$ac_val;;
 
1210
  esac
 
1211
  # Be sure to have absolute directory names.
1291
1212
  case $ac_val in
1292
1213
    [\\/$]* | ?:[\\/]* )  continue;;
1293
1214
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294
1215
  esac
1295
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296
 
   { (exit 1); exit 1; }; }
 
1216
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297
1217
done
1298
1218
 
1299
1219
# There might be people who depend on the old broken behavior: `$host'
1307
1227
if test "x$host_alias" != x; then
1308
1228
  if test "x$build_alias" = x; then
1309
1229
    cross_compiling=maybe
1310
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1312
1230
  elif test "x$build_alias" != "x$host_alias"; then
1313
1231
    cross_compiling=yes
1314
1232
  fi
1323
1241
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324
1242
ac_ls_di=`ls -di .` &&
1325
1243
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1327
 
   { (exit 1); exit 1; }; }
 
1244
  as_fn_error $? "working directory cannot be determined"
1328
1245
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1330
 
   { (exit 1); exit 1; }; }
 
1246
  as_fn_error $? "pwd does not report name of working directory"
1331
1247
 
1332
1248
 
1333
1249
# Find the source files, if location was not specified.
1334
1250
if test -z "$srcdir"; then
1335
1251
  ac_srcdir_defaulted=yes
1336
1252
  # Try the directory containing this script, then the parent directory.
1337
 
  ac_confdir=`$as_dirname -- "$0" ||
1338
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339
 
         X"$0" : 'X\(//\)[^/]' \| \
1340
 
         X"$0" : 'X\(//\)$' \| \
1341
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342
 
echo X"$0" |
 
1253
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1254
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1255
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1256
         X"$as_myself" : 'X\(//\)$' \| \
 
1257
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1258
$as_echo X"$as_myself" |
1343
1259
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344
1260
            s//\1/
1345
1261
            q
1366
1282
fi
1367
1283
if test ! -r "$srcdir/$ac_unique_file"; then
1368
1284
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370
 
   { (exit 1); exit 1; }; }
 
1285
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371
1286
fi
1372
1287
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373
1288
ac_abs_confdir=`(
1374
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375
 
   { (exit 1); exit 1; }; }
 
1289
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376
1290
        pwd)`
1377
1291
# When building in place, set srcdir=.
1378
1292
if test "$ac_abs_confdir" = "$ac_pwd"; then
1398
1312
  # Omit some internal or obsolete options to make the list less imposing.
1399
1313
  # This message is too long to be a string in the A/UX 3.1 sh.
1400
1314
  cat <<_ACEOF
1401
 
\`configure' configures libicns 0.5.9 to adapt to many kinds of systems.
 
1315
\`configure' configures libicns 0.8.1 to adapt to many kinds of systems.
1402
1316
 
1403
1317
Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1318
 
1412
1326
      --help=short        display options specific to this package
1413
1327
      --help=recursive    display the short help of all the included packages
1414
1328
  -V, --version           display version information and exit
1415
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1329
  -q, --quiet, --silent   do not print \`checking ...' messages
1416
1330
      --cache-file=FILE   cache test results in FILE [disabled]
1417
1331
  -C, --config-cache      alias for \`--cache-file=config.cache'
1418
1332
  -n, --no-create         do not create output files
1420
1334
 
1421
1335
Installation directories:
1422
1336
  --prefix=PREFIX         install architecture-independent files in PREFIX
1423
 
                          [$ac_default_prefix]
 
1337
                          [$ac_default_prefix]
1424
1338
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425
 
                          [PREFIX]
 
1339
                          [PREFIX]
1426
1340
 
1427
1341
By default, \`make install' will install all the files in
1428
1342
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432
1346
For better control, use the options below.
1433
1347
 
1434
1348
Fine tuning of the installation directories:
1435
 
  --bindir=DIR           user executables [EPREFIX/bin]
1436
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1437
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1438
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1439
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1440
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1441
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1442
 
  --includedir=DIR       C header files [PREFIX/include]
1443
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1444
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1445
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1446
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1447
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1448
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1449
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/libicns]
1450
 
  --htmldir=DIR          html documentation [DOCDIR]
1451
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1452
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1453
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1349
  --bindir=DIR            user executables [EPREFIX/bin]
 
1350
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1351
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1352
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1353
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1354
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1355
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1356
  --includedir=DIR        C header files [PREFIX/include]
 
1357
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1358
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1359
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1360
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1361
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1362
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1363
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libicns]
 
1364
  --htmldir=DIR           html documentation [DOCDIR]
 
1365
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1366
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1367
  --psdir=DIR             ps documentation [DOCDIR]
1454
1368
_ACEOF
1455
1369
 
1456
1370
  cat <<\_ACEOF
1468
1382
 
1469
1383
if test -n "$ac_init_help"; then
1470
1384
  case $ac_init_help in
1471
 
     short | recursive ) echo "Configuration of libicns 0.5.9:";;
 
1385
     short | recursive ) echo "Configuration of libicns 0.8.1:";;
1472
1386
   esac
1473
1387
  cat <<\_ACEOF
1474
1388
 
1475
1389
Optional Features:
 
1390
  --disable-option-checking  ignore unrecognized --enable/--with options
1476
1391
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477
1392
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1393
  --disable-maintainer-mode  disable make rules and dependencies not useful
1479
1394
                          (and sometimes confusing) to the casual installer
1480
1395
  --enable-debug=yes/no turn on debugging default=no
1481
1396
  --disable-dependency-tracking  speeds up one-time build
1489
1404
Optional Packages:
1490
1405
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491
1406
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1407
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1408
                          both]
1492
1409
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1494
 
                          both]
1495
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1410
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1411
                        (or the compiler's sysroot if not specified).
1496
1412
 
1497
1413
Some influential environment variables:
1498
1414
  CC          C compiler command
1500
1416
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501
1417
              nonstandard directory <lib dir>
1502
1418
  LIBS        libraries to pass to the linker, e.g. -l<library>
1503
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1419
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504
1420
              you have headers in a nonstandard directory <include dir>
1505
1421
  CPP         C preprocessor
1506
 
  CXX         C++ compiler command
1507
 
  CXXFLAGS    C++ compiler flags
1508
 
  CXXCPP      C++ preprocessor
1509
 
  F77         Fortran 77 compiler command
1510
 
  FFLAGS      Fortran 77 compiler flags
1511
1422
 
1512
1423
Use these variables to override the choices made by `configure' or to help
1513
1424
it to find libraries and programs with nonstandard names/locations.
1520
1431
if test "$ac_init_help" = "recursive"; then
1521
1432
  # If there are subdirs, report their specific --help.
1522
1433
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523
 
    test -d "$ac_dir" || continue
 
1434
    test -d "$ac_dir" ||
 
1435
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1436
      continue
1524
1437
    ac_builddir=.
1525
1438
 
1526
1439
case "$ac_dir" in
1527
1440
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528
1441
*)
1529
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1442
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530
1443
  # A ".." for each directory in $ac_dir_suffix.
1531
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1444
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532
1445
  case $ac_top_builddir_sub in
1533
1446
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534
1447
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564
1477
      echo &&
1565
1478
      $SHELL "$ac_srcdir/configure" --help=recursive
1566
1479
    else
1567
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1480
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568
1481
    fi || ac_status=$?
1569
1482
    cd "$ac_pwd" || { ac_status=$?; break; }
1570
1483
  done
1573
1486
test -n "$ac_init_help" && exit $ac_status
1574
1487
if $ac_init_version; then
1575
1488
  cat <<\_ACEOF
1576
 
libicns configure 0.5.9
1577
 
generated by GNU Autoconf 2.61
 
1489
libicns configure 0.8.1
 
1490
generated by GNU Autoconf 2.69
1578
1491
 
1579
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1492
Copyright (C) 2012 Free Software Foundation, Inc.
1581
1493
This configure script is free software; the Free Software Foundation
1582
1494
gives unlimited permission to copy, distribute and modify it.
1583
1495
_ACEOF
1584
1496
  exit
1585
1497
fi
 
1498
 
 
1499
## ------------------------ ##
 
1500
## Autoconf initialization. ##
 
1501
## ------------------------ ##
 
1502
 
 
1503
# ac_fn_c_try_compile LINENO
 
1504
# --------------------------
 
1505
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1506
ac_fn_c_try_compile ()
 
1507
{
 
1508
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1509
  rm -f conftest.$ac_objext
 
1510
  if { { ac_try="$ac_compile"
 
1511
case "(($ac_try" in
 
1512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1513
  *) ac_try_echo=$ac_try;;
 
1514
esac
 
1515
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1516
$as_echo "$ac_try_echo"; } >&5
 
1517
  (eval "$ac_compile") 2>conftest.err
 
1518
  ac_status=$?
 
1519
  if test -s conftest.err; then
 
1520
    grep -v '^ *+' conftest.err >conftest.er1
 
1521
    cat conftest.er1 >&5
 
1522
    mv -f conftest.er1 conftest.err
 
1523
  fi
 
1524
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1525
  test $ac_status = 0; } && {
 
1526
         test -z "$ac_c_werror_flag" ||
 
1527
         test ! -s conftest.err
 
1528
       } && test -s conftest.$ac_objext; then :
 
1529
  ac_retval=0
 
1530
else
 
1531
  $as_echo "$as_me: failed program was:" >&5
 
1532
sed 's/^/| /' conftest.$ac_ext >&5
 
1533
 
 
1534
        ac_retval=1
 
1535
fi
 
1536
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1537
  as_fn_set_status $ac_retval
 
1538
 
 
1539
} # ac_fn_c_try_compile
 
1540
 
 
1541
# ac_fn_c_try_cpp LINENO
 
1542
# ----------------------
 
1543
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1544
ac_fn_c_try_cpp ()
 
1545
{
 
1546
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1547
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1548
case "(($ac_try" in
 
1549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1550
  *) ac_try_echo=$ac_try;;
 
1551
esac
 
1552
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1553
$as_echo "$ac_try_echo"; } >&5
 
1554
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1555
  ac_status=$?
 
1556
  if test -s conftest.err; then
 
1557
    grep -v '^ *+' conftest.err >conftest.er1
 
1558
    cat conftest.er1 >&5
 
1559
    mv -f conftest.er1 conftest.err
 
1560
  fi
 
1561
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1562
  test $ac_status = 0; } > conftest.i && {
 
1563
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1564
         test ! -s conftest.err
 
1565
       }; then :
 
1566
  ac_retval=0
 
1567
else
 
1568
  $as_echo "$as_me: failed program was:" >&5
 
1569
sed 's/^/| /' conftest.$ac_ext >&5
 
1570
 
 
1571
    ac_retval=1
 
1572
fi
 
1573
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1574
  as_fn_set_status $ac_retval
 
1575
 
 
1576
} # ac_fn_c_try_cpp
 
1577
 
 
1578
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1579
# -------------------------------------------------------
 
1580
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1581
# the include files in INCLUDES and setting the cache variable VAR
 
1582
# accordingly.
 
1583
ac_fn_c_check_header_mongrel ()
 
1584
{
 
1585
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1586
  if eval \${$3+:} false; then :
 
1587
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1588
$as_echo_n "checking for $2... " >&6; }
 
1589
if eval \${$3+:} false; then :
 
1590
  $as_echo_n "(cached) " >&6
 
1591
fi
 
1592
eval ac_res=\$$3
 
1593
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1594
$as_echo "$ac_res" >&6; }
 
1595
else
 
1596
  # Is the header compilable?
 
1597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1598
$as_echo_n "checking $2 usability... " >&6; }
 
1599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1600
/* end confdefs.h.  */
 
1601
$4
 
1602
#include <$2>
 
1603
_ACEOF
 
1604
if ac_fn_c_try_compile "$LINENO"; then :
 
1605
  ac_header_compiler=yes
 
1606
else
 
1607
  ac_header_compiler=no
 
1608
fi
 
1609
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1611
$as_echo "$ac_header_compiler" >&6; }
 
1612
 
 
1613
# Is the header present?
 
1614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1615
$as_echo_n "checking $2 presence... " >&6; }
 
1616
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1617
/* end confdefs.h.  */
 
1618
#include <$2>
 
1619
_ACEOF
 
1620
if ac_fn_c_try_cpp "$LINENO"; then :
 
1621
  ac_header_preproc=yes
 
1622
else
 
1623
  ac_header_preproc=no
 
1624
fi
 
1625
rm -f conftest.err conftest.i conftest.$ac_ext
 
1626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1627
$as_echo "$ac_header_preproc" >&6; }
 
1628
 
 
1629
# So?  What about this header?
 
1630
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1631
  yes:no: )
 
1632
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1633
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1634
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1635
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1636
    ;;
 
1637
  no:yes:* )
 
1638
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1639
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1640
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1641
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1642
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1643
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1644
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1645
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1646
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1647
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1648
( $as_echo "## -------------------------------- ##
 
1649
## Report this to mathew@eisbox.net ##
 
1650
## -------------------------------- ##"
 
1651
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1652
    ;;
 
1653
esac
 
1654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1655
$as_echo_n "checking for $2... " >&6; }
 
1656
if eval \${$3+:} false; then :
 
1657
  $as_echo_n "(cached) " >&6
 
1658
else
 
1659
  eval "$3=\$ac_header_compiler"
 
1660
fi
 
1661
eval ac_res=\$$3
 
1662
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1663
$as_echo "$ac_res" >&6; }
 
1664
fi
 
1665
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1666
 
 
1667
} # ac_fn_c_check_header_mongrel
 
1668
 
 
1669
# ac_fn_c_try_run LINENO
 
1670
# ----------------------
 
1671
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1672
# that executables *can* be run.
 
1673
ac_fn_c_try_run ()
 
1674
{
 
1675
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1676
  if { { ac_try="$ac_link"
 
1677
case "(($ac_try" in
 
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1679
  *) ac_try_echo=$ac_try;;
 
1680
esac
 
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1682
$as_echo "$ac_try_echo"; } >&5
 
1683
  (eval "$ac_link") 2>&5
 
1684
  ac_status=$?
 
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1686
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1687
  { { case "(($ac_try" in
 
1688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1689
  *) ac_try_echo=$ac_try;;
 
1690
esac
 
1691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1692
$as_echo "$ac_try_echo"; } >&5
 
1693
  (eval "$ac_try") 2>&5
 
1694
  ac_status=$?
 
1695
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1696
  test $ac_status = 0; }; }; then :
 
1697
  ac_retval=0
 
1698
else
 
1699
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1700
       $as_echo "$as_me: failed program was:" >&5
 
1701
sed 's/^/| /' conftest.$ac_ext >&5
 
1702
 
 
1703
       ac_retval=$ac_status
 
1704
fi
 
1705
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1706
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1707
  as_fn_set_status $ac_retval
 
1708
 
 
1709
} # ac_fn_c_try_run
 
1710
 
 
1711
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1712
# -------------------------------------------------------
 
1713
# Tests whether HEADER exists and can be compiled using the include files in
 
1714
# INCLUDES, setting the cache variable VAR accordingly.
 
1715
ac_fn_c_check_header_compile ()
 
1716
{
 
1717
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1718
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1719
$as_echo_n "checking for $2... " >&6; }
 
1720
if eval \${$3+:} false; then :
 
1721
  $as_echo_n "(cached) " >&6
 
1722
else
 
1723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1724
/* end confdefs.h.  */
 
1725
$4
 
1726
#include <$2>
 
1727
_ACEOF
 
1728
if ac_fn_c_try_compile "$LINENO"; then :
 
1729
  eval "$3=yes"
 
1730
else
 
1731
  eval "$3=no"
 
1732
fi
 
1733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1734
fi
 
1735
eval ac_res=\$$3
 
1736
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1737
$as_echo "$ac_res" >&6; }
 
1738
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1739
 
 
1740
} # ac_fn_c_check_header_compile
 
1741
 
 
1742
# ac_fn_c_try_link LINENO
 
1743
# -----------------------
 
1744
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1745
ac_fn_c_try_link ()
 
1746
{
 
1747
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1748
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1749
  if { { ac_try="$ac_link"
 
1750
case "(($ac_try" in
 
1751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1752
  *) ac_try_echo=$ac_try;;
 
1753
esac
 
1754
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1755
$as_echo "$ac_try_echo"; } >&5
 
1756
  (eval "$ac_link") 2>conftest.err
 
1757
  ac_status=$?
 
1758
  if test -s conftest.err; then
 
1759
    grep -v '^ *+' conftest.err >conftest.er1
 
1760
    cat conftest.er1 >&5
 
1761
    mv -f conftest.er1 conftest.err
 
1762
  fi
 
1763
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1764
  test $ac_status = 0; } && {
 
1765
         test -z "$ac_c_werror_flag" ||
 
1766
         test ! -s conftest.err
 
1767
       } && test -s conftest$ac_exeext && {
 
1768
         test "$cross_compiling" = yes ||
 
1769
         test -x conftest$ac_exeext
 
1770
       }; then :
 
1771
  ac_retval=0
 
1772
else
 
1773
  $as_echo "$as_me: failed program was:" >&5
 
1774
sed 's/^/| /' conftest.$ac_ext >&5
 
1775
 
 
1776
        ac_retval=1
 
1777
fi
 
1778
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1779
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1780
  # interfere with the next link command; also delete a directory that is
 
1781
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1782
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1783
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1784
  as_fn_set_status $ac_retval
 
1785
 
 
1786
} # ac_fn_c_try_link
 
1787
 
 
1788
# ac_fn_c_check_func LINENO FUNC VAR
 
1789
# ----------------------------------
 
1790
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1791
ac_fn_c_check_func ()
 
1792
{
 
1793
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1794
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1795
$as_echo_n "checking for $2... " >&6; }
 
1796
if eval \${$3+:} false; then :
 
1797
  $as_echo_n "(cached) " >&6
 
1798
else
 
1799
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1800
/* end confdefs.h.  */
 
1801
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1802
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1803
#define $2 innocuous_$2
 
1804
 
 
1805
/* System header to define __stub macros and hopefully few prototypes,
 
1806
    which can conflict with char $2 (); below.
 
1807
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1808
    <limits.h> exists even on freestanding compilers.  */
 
1809
 
 
1810
#ifdef __STDC__
 
1811
# include <limits.h>
 
1812
#else
 
1813
# include <assert.h>
 
1814
#endif
 
1815
 
 
1816
#undef $2
 
1817
 
 
1818
/* Override any GCC internal prototype to avoid an error.
 
1819
   Use char because int might match the return type of a GCC
 
1820
   builtin and then its argument prototype would still apply.  */
 
1821
#ifdef __cplusplus
 
1822
extern "C"
 
1823
#endif
 
1824
char $2 ();
 
1825
/* The GNU C library defines this for functions which it implements
 
1826
    to always fail with ENOSYS.  Some functions are actually named
 
1827
    something starting with __ and the normal name is an alias.  */
 
1828
#if defined __stub_$2 || defined __stub___$2
 
1829
choke me
 
1830
#endif
 
1831
 
 
1832
int
 
1833
main ()
 
1834
{
 
1835
return $2 ();
 
1836
  ;
 
1837
  return 0;
 
1838
}
 
1839
_ACEOF
 
1840
if ac_fn_c_try_link "$LINENO"; then :
 
1841
  eval "$3=yes"
 
1842
else
 
1843
  eval "$3=no"
 
1844
fi
 
1845
rm -f core conftest.err conftest.$ac_objext \
 
1846
    conftest$ac_exeext conftest.$ac_ext
 
1847
fi
 
1848
eval ac_res=\$$3
 
1849
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1850
$as_echo "$ac_res" >&6; }
 
1851
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1852
 
 
1853
} # ac_fn_c_check_func
 
1854
 
 
1855
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1856
# -------------------------------------------
 
1857
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1858
# variable VAR accordingly.
 
1859
ac_fn_c_check_type ()
 
1860
{
 
1861
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1862
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1863
$as_echo_n "checking for $2... " >&6; }
 
1864
if eval \${$3+:} false; then :
 
1865
  $as_echo_n "(cached) " >&6
 
1866
else
 
1867
  eval "$3=no"
 
1868
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1869
/* end confdefs.h.  */
 
1870
$4
 
1871
int
 
1872
main ()
 
1873
{
 
1874
if (sizeof ($2))
 
1875
         return 0;
 
1876
  ;
 
1877
  return 0;
 
1878
}
 
1879
_ACEOF
 
1880
if ac_fn_c_try_compile "$LINENO"; then :
 
1881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1882
/* end confdefs.h.  */
 
1883
$4
 
1884
int
 
1885
main ()
 
1886
{
 
1887
if (sizeof (($2)))
 
1888
            return 0;
 
1889
  ;
 
1890
  return 0;
 
1891
}
 
1892
_ACEOF
 
1893
if ac_fn_c_try_compile "$LINENO"; then :
 
1894
 
 
1895
else
 
1896
  eval "$3=yes"
 
1897
fi
 
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1899
fi
 
1900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1901
fi
 
1902
eval ac_res=\$$3
 
1903
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1904
$as_echo "$ac_res" >&6; }
 
1905
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1906
 
 
1907
} # ac_fn_c_check_type
1586
1908
cat >config.log <<_ACEOF
1587
1909
This file contains any messages produced by compilers while
1588
1910
running configure, to aid debugging if configure makes a mistake.
1589
1911
 
1590
 
It was created by libicns $as_me 0.5.9, which was
1591
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
1912
It was created by libicns $as_me 0.8.1, which was
 
1913
generated by GNU Autoconf 2.69.  Invocation command line was
1592
1914
 
1593
1915
  $ $0 $@
1594
1916
 
1624
1946
do
1625
1947
  IFS=$as_save_IFS
1626
1948
  test -z "$as_dir" && as_dir=.
1627
 
  echo "PATH: $as_dir"
1628
 
done
 
1949
    $as_echo "PATH: $as_dir"
 
1950
  done
1629
1951
IFS=$as_save_IFS
1630
1952
 
1631
1953
} >&5
1659
1981
    | -silent | --silent | --silen | --sile | --sil)
1660
1982
      continue ;;
1661
1983
    *\'*)
1662
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1984
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663
1985
    esac
1664
1986
    case $ac_pass in
1665
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1987
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1666
1988
    2)
1667
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1989
      as_fn_append ac_configure_args1 " '$ac_arg'"
1668
1990
      if test $ac_must_keep_next = true; then
1669
1991
        ac_must_keep_next=false # Got value, back to normal.
1670
1992
      else
1680
2002
          -* ) ac_must_keep_next=true ;;
1681
2003
        esac
1682
2004
      fi
1683
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2005
      as_fn_append ac_configure_args " '$ac_arg'"
1684
2006
      ;;
1685
2007
    esac
1686
2008
  done
1687
2009
done
1688
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2010
{ ac_configure_args0=; unset ac_configure_args0;}
 
2011
{ ac_configure_args1=; unset ac_configure_args1;}
1690
2012
 
1691
2013
# When interrupted or exit'd, cleanup temporary files, and complete
1692
2014
# config.log.  We remove comments because anyway the quotes in there
1698
2020
  {
1699
2021
    echo
1700
2022
 
1701
 
    cat <<\_ASBOX
1702
 
## ---------------- ##
 
2023
    $as_echo "## ---------------- ##
1703
2024
## Cache variables. ##
1704
 
## ---------------- ##
1705
 
_ASBOX
 
2025
## ---------------- ##"
1706
2026
    echo
1707
2027
    # The following way of writing the cache mishandles newlines in values,
1708
2028
(
1711
2031
    case $ac_val in #(
1712
2032
    *${as_nl}*)
1713
2033
      case $ac_var in #(
1714
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2034
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2035
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1716
2036
      esac
1717
2037
      case $ac_var in #(
1718
2038
      _ | IFS | as_nl) ;; #(
1719
 
      *) $as_unset $ac_var ;;
 
2039
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2040
      *) { eval $ac_var=; unset $ac_var;} ;;
1720
2041
      esac ;;
1721
2042
    esac
1722
2043
  done
1735
2056
)
1736
2057
    echo
1737
2058
 
1738
 
    cat <<\_ASBOX
1739
 
## ----------------- ##
 
2059
    $as_echo "## ----------------- ##
1740
2060
## Output variables. ##
1741
 
## ----------------- ##
1742
 
_ASBOX
 
2061
## ----------------- ##"
1743
2062
    echo
1744
2063
    for ac_var in $ac_subst_vars
1745
2064
    do
1746
2065
      eval ac_val=\$$ac_var
1747
2066
      case $ac_val in
1748
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2067
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749
2068
      esac
1750
 
      echo "$ac_var='\''$ac_val'\''"
 
2069
      $as_echo "$ac_var='\''$ac_val'\''"
1751
2070
    done | sort
1752
2071
    echo
1753
2072
 
1754
2073
    if test -n "$ac_subst_files"; then
1755
 
      cat <<\_ASBOX
1756
 
## ------------------- ##
 
2074
      $as_echo "## ------------------- ##
1757
2075
## File substitutions. ##
1758
 
## ------------------- ##
1759
 
_ASBOX
 
2076
## ------------------- ##"
1760
2077
      echo
1761
2078
      for ac_var in $ac_subst_files
1762
2079
      do
1763
2080
        eval ac_val=\$$ac_var
1764
2081
        case $ac_val in
1765
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2082
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766
2083
        esac
1767
 
        echo "$ac_var='\''$ac_val'\''"
 
2084
        $as_echo "$ac_var='\''$ac_val'\''"
1768
2085
      done | sort
1769
2086
      echo
1770
2087
    fi
1771
2088
 
1772
2089
    if test -s confdefs.h; then
1773
 
      cat <<\_ASBOX
1774
 
## ----------- ##
 
2090
      $as_echo "## ----------- ##
1775
2091
## confdefs.h. ##
1776
 
## ----------- ##
1777
 
_ASBOX
 
2092
## ----------- ##"
1778
2093
      echo
1779
2094
      cat confdefs.h
1780
2095
      echo
1781
2096
    fi
1782
2097
    test "$ac_signal" != 0 &&
1783
 
      echo "$as_me: caught signal $ac_signal"
1784
 
    echo "$as_me: exit $exit_status"
 
2098
      $as_echo "$as_me: caught signal $ac_signal"
 
2099
    $as_echo "$as_me: exit $exit_status"
1785
2100
  } >&5
1786
2101
  rm -f core *.core core.conftest.* &&
1787
2102
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788
2103
    exit $exit_status
1789
2104
' 0
1790
2105
for ac_signal in 1 2 13 15; do
1791
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2106
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1792
2107
done
1793
2108
ac_signal=0
1794
2109
 
1795
2110
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1796
2111
rm -f -r conftest* confdefs.h
1797
2112
 
 
2113
$as_echo "/* confdefs.h */" > confdefs.h
 
2114
 
1798
2115
# Predefined preprocessor variables.
1799
2116
 
1800
2117
cat >>confdefs.h <<_ACEOF
1801
2118
#define PACKAGE_NAME "$PACKAGE_NAME"
1802
2119
_ACEOF
1803
2120
 
1804
 
 
1805
2121
cat >>confdefs.h <<_ACEOF
1806
2122
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807
2123
_ACEOF
1808
2124
 
1809
 
 
1810
2125
cat >>confdefs.h <<_ACEOF
1811
2126
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1812
2127
_ACEOF
1813
2128
 
1814
 
 
1815
2129
cat >>confdefs.h <<_ACEOF
1816
2130
#define PACKAGE_STRING "$PACKAGE_STRING"
1817
2131
_ACEOF
1818
2132
 
1819
 
 
1820
2133
cat >>confdefs.h <<_ACEOF
1821
2134
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822
2135
_ACEOF
1823
2136
 
 
2137
cat >>confdefs.h <<_ACEOF
 
2138
#define PACKAGE_URL "$PACKAGE_URL"
 
2139
_ACEOF
 
2140
 
1824
2141
 
1825
2142
# Let the site file select an alternate cache file if it wants to.
1826
 
# Prefer explicitly selected file to automatically selected ones.
 
2143
# Prefer an explicitly selected file to automatically selected ones.
 
2144
ac_site_file1=NONE
 
2145
ac_site_file2=NONE
1827
2146
if test -n "$CONFIG_SITE"; then
1828
 
  set x "$CONFIG_SITE"
 
2147
  # We do not want a PATH search for config.site.
 
2148
  case $CONFIG_SITE in #((
 
2149
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2150
    */*) ac_site_file1=$CONFIG_SITE;;
 
2151
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2152
  esac
1829
2153
elif test "x$prefix" != xNONE; then
1830
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2154
  ac_site_file1=$prefix/share/config.site
 
2155
  ac_site_file2=$prefix/etc/config.site
1831
2156
else
1832
 
  set x "$ac_default_prefix/share/config.site" \
1833
 
        "$ac_default_prefix/etc/config.site"
 
2157
  ac_site_file1=$ac_default_prefix/share/config.site
 
2158
  ac_site_file2=$ac_default_prefix/etc/config.site
1834
2159
fi
1835
 
shift
1836
 
for ac_site_file
 
2160
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1837
2161
do
1838
 
  if test -r "$ac_site_file"; then
1839
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2162
  test "x$ac_site_file" = xNONE && continue
 
2163
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2164
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2165
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1841
2166
    sed 's/^/| /' "$ac_site_file" >&5
1842
 
    . "$ac_site_file"
 
2167
    . "$ac_site_file" \
 
2168
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2170
as_fn_error $? "failed to load site script $ac_site_file
 
2171
See \`config.log' for more details" "$LINENO" 5; }
1843
2172
  fi
1844
2173
done
1845
2174
 
1846
2175
if test -r "$cache_file"; then
1847
 
  # Some versions of bash will fail to source /dev/null (special
1848
 
  # files actually), so we avoid doing that.
1849
 
  if test -f "$cache_file"; then
1850
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2176
  # Some versions of bash will fail to source /dev/null (special files
 
2177
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2178
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2179
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2180
$as_echo "$as_me: loading cache $cache_file" >&6;}
1852
2181
    case $cache_file in
1853
2182
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854
2183
      *)                      . "./$cache_file";;
1855
2184
    esac
1856
2185
  fi
1857
2186
else
1858
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2187
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2188
$as_echo "$as_me: creating cache $cache_file" >&6;}
1860
2189
  >$cache_file
1861
2190
fi
1862
2191
 
1870
2199
  eval ac_new_val=\$ac_env_${ac_var}_value
1871
2200
  case $ac_old_set,$ac_new_set in
1872
2201
    set,)
1873
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2202
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2203
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875
2204
      ac_cache_corrupted=: ;;
1876
2205
    ,set)
1877
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2206
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2207
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879
2208
      ac_cache_corrupted=: ;;
1880
2209
    ,);;
1881
2210
    *)
1882
2211
      if test "x$ac_old_val" != "x$ac_new_val"; then
1883
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1886
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1887
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1888
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1889
 
        ac_cache_corrupted=:
 
2212
        # differences in whitespace do not lead to failure.
 
2213
        ac_old_val_w=`echo x $ac_old_val`
 
2214
        ac_new_val_w=`echo x $ac_new_val`
 
2215
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2216
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2217
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2218
          ac_cache_corrupted=:
 
2219
        else
 
2220
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2221
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2222
          eval $ac_var=\$ac_old_val
 
2223
        fi
 
2224
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2225
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2226
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2227
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1890
2228
      fi;;
1891
2229
  esac
1892
2230
  # Pass precious variables to config.status.
1893
2231
  if test "$ac_new_set" = set; then
1894
2232
    case $ac_new_val in
1895
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2233
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896
2234
    *) ac_arg=$ac_var=$ac_new_val ;;
1897
2235
    esac
1898
2236
    case " $ac_configure_args " in
1899
2237
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1900
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2238
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1901
2239
    esac
1902
2240
  fi
1903
2241
done
1904
2242
if $ac_cache_corrupted; then
1905
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909
 
   { (exit 1); exit 1; }; }
 
2243
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2245
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2246
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2247
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1910
2248
fi
1911
 
 
1912
 
 
1913
 
 
1914
 
 
1915
 
 
1916
 
 
1917
 
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
 
2249
## -------------------- ##
 
2250
## Main body of script. ##
 
2251
## -------------------- ##
1935
2252
 
1936
2253
ac_ext=c
1937
2254
ac_cpp='$CPP $CPPFLAGS'
1940
2257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941
2258
 
1942
2259
 
1943
 
am__api_version='1.10'
 
2260
am__api_version='1.11'
1944
2261
 
1945
2262
ac_aux_dir=
1946
2263
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959
2276
  fi
1960
2277
done
1961
2278
if test -z "$ac_aux_dir"; then
1962
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964
 
   { (exit 1); exit 1; }; }
 
2279
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1965
2280
fi
1966
2281
 
1967
2282
# These three variables are undocumented and unsupported,
1986
2301
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987
2302
# OS/2's system install, which has a completely different semantic
1988
2303
# ./install, which can be erroneously created by make from ./install.sh.
1989
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2304
# Reject install programs that cannot install multiple files.
 
2305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2306
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1991
2307
if test -z "$INSTALL"; then
1992
 
if test "${ac_cv_path_install+set}" = set; then
1993
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2308
if ${ac_cv_path_install+:} false; then :
 
2309
  $as_echo_n "(cached) " >&6
1994
2310
else
1995
2311
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996
2312
for as_dir in $PATH
1997
2313
do
1998
2314
  IFS=$as_save_IFS
1999
2315
  test -z "$as_dir" && as_dir=.
2000
 
  # Account for people who put trailing slashes in PATH elements.
2001
 
case $as_dir/ in
2002
 
  ./ | .// | /cC/* | \
 
2316
    # Account for people who put trailing slashes in PATH elements.
 
2317
case $as_dir/ in #((
 
2318
  ./ | .// | /[cC]/* | \
2003
2319
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2320
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2005
2321
  /usr/ucb/* ) ;;
2006
2322
  *)
2007
2323
    # OSF1 and SCO ODT 3.0 have their own names for install.
2009
2325
    # by default.
2010
2326
    for ac_prog in ginstall scoinst install; do
2011
2327
      for ac_exec_ext in '' $ac_executable_extensions; do
2012
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2328
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2013
2329
          if test $ac_prog = install &&
2014
2330
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015
2331
            # AIX install.  It has an incompatible calling convention.
2019
2335
            # program-specific install script used by HP pwplus--don't use.
2020
2336
            :
2021
2337
          else
2022
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023
 
            break 3
 
2338
            rm -rf conftest.one conftest.two conftest.dir
 
2339
            echo one > conftest.one
 
2340
            echo two > conftest.two
 
2341
            mkdir conftest.dir
 
2342
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2343
              test -s conftest.one && test -s conftest.two &&
 
2344
              test -s conftest.dir/conftest.one &&
 
2345
              test -s conftest.dir/conftest.two
 
2346
            then
 
2347
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2348
              break 3
 
2349
            fi
2024
2350
          fi
2025
2351
        fi
2026
2352
      done
2027
2353
    done
2028
2354
    ;;
2029
2355
esac
2030
 
done
 
2356
 
 
2357
  done
2031
2358
IFS=$as_save_IFS
2032
2359
 
 
2360
rm -rf conftest.one conftest.two conftest.dir
2033
2361
 
2034
2362
fi
2035
2363
  if test "${ac_cv_path_install+set}" = set; then
2042
2370
    INSTALL=$ac_install_sh
2043
2371
  fi
2044
2372
fi
2045
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2046
 
echo "${ECHO_T}$INSTALL" >&6; }
 
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2374
$as_echo "$INSTALL" >&6; }
2047
2375
 
2048
2376
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049
2377
# It thinks the first close brace ends the variable substitution.
2053
2381
 
2054
2382
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
2383
 
2056
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2385
$as_echo_n "checking whether build environment is sane... " >&6; }
2058
2386
# Just in case
2059
2387
sleep 1
2060
2388
echo timestamp > conftest.file
 
2389
# Reject unsafe characters in $srcdir or the absolute working directory
 
2390
# name.  Accept space and tab only in the latter.
 
2391
am_lf='
 
2392
'
 
2393
case `pwd` in
 
2394
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2395
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2396
esac
 
2397
case $srcdir in
 
2398
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2399
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2400
esac
 
2401
 
2061
2402
# Do `set' in a subshell so we don't clobber the current shell's
2062
2403
# arguments.  Must try -L first in case configure is actually a
2063
2404
# symlink; some systems play weird games with the mod time of symlinks
2064
2405
# (eg FreeBSD returns the mod time of the symlink's containing
2065
2406
# directory).
2066
2407
if (
2067
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2408
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2068
2409
   if test "$*" = "X"; then
2069
2410
      # -L didn't work.
2070
 
      set X `ls -t $srcdir/configure conftest.file`
 
2411
      set X `ls -t "$srcdir/configure" conftest.file`
2071
2412
   fi
2072
2413
   rm -f conftest.file
2073
2414
   if test "$*" != "X $srcdir/configure conftest.file" \
2077
2418
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2078
2419
      # broken ls alias from the environment.  This has actually
2079
2420
      # happened.  Such a system could not be considered "sane".
2080
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2081
 
alias in your environment" >&5
2082
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2083
 
alias in your environment" >&2;}
2084
 
   { (exit 1); exit 1; }; }
 
2421
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2422
alias in your environment" "$LINENO" 5
2085
2423
   fi
2086
2424
 
2087
2425
   test "$2" = conftest.file
2090
2428
   # Ok.
2091
2429
   :
2092
2430
else
2093
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094
 
Check your system clock" >&5
2095
 
echo "$as_me: error: newly created file is older than distributed files!
2096
 
Check your system clock" >&2;}
2097
 
   { (exit 1); exit 1; }; }
 
2431
   as_fn_error $? "newly created file is older than distributed files!
 
2432
Check your system clock" "$LINENO" 5
2098
2433
fi
2099
 
{ echo "$as_me:$LINENO: result: yes" >&5
2100
 
echo "${ECHO_T}yes" >&6; }
 
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2435
$as_echo "yes" >&6; }
2101
2436
test "$program_prefix" != NONE &&
2102
2437
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103
2438
# Use a double $ so make ignores it.
2104
2439
test "$program_suffix" != NONE &&
2105
2440
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106
 
# Double any \ or $.  echo might interpret backslashes.
 
2441
# Double any \ or $.
2107
2442
# By default was `s,x,x', remove it if useless.
2108
 
cat <<\_ACEOF >conftest.sed
2109
 
s/[\\$]/&&/g;s/;s,x,x,$//
2110
 
_ACEOF
2111
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112
 
rm -f conftest.sed
 
2443
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2444
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2113
2445
 
2114
2446
# expand $ac_aux_dir to an absolute path
2115
2447
am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2448
 
2117
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2449
if test x"${MISSING+set}" != xset; then
 
2450
  case $am_aux_dir in
 
2451
  *\ * | *\     *)
 
2452
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2453
  *)
 
2454
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2455
  esac
 
2456
fi
2118
2457
# Use eval to expand $SHELL
2119
2458
if eval "$MISSING --run true"; then
2120
2459
  am_missing_run="$MISSING --run "
2121
2460
else
2122
2461
  am_missing_run=
2123
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125
 
fi
2126
 
 
2127
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2462
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2463
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2464
fi
 
2465
 
 
2466
if test x"${install_sh}" != xset; then
 
2467
  case $am_aux_dir in
 
2468
  *\ * | *\     *)
 
2469
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2470
  *)
 
2471
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2472
  esac
 
2473
fi
 
2474
 
 
2475
# Installed binaries are usually stripped using `strip' when the user
 
2476
# run `make install-strip'.  However `strip' might not be the right
 
2477
# tool to use in cross-compilation environments, therefore Automake
 
2478
# will honor the `STRIP' environment variable to overrule this program.
 
2479
if test "$cross_compiling" != no; then
 
2480
  if test -n "$ac_tool_prefix"; then
 
2481
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2482
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2484
$as_echo_n "checking for $ac_word... " >&6; }
 
2485
if ${ac_cv_prog_STRIP+:} false; then :
 
2486
  $as_echo_n "(cached) " >&6
 
2487
else
 
2488
  if test -n "$STRIP"; then
 
2489
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2490
else
 
2491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2492
for as_dir in $PATH
 
2493
do
 
2494
  IFS=$as_save_IFS
 
2495
  test -z "$as_dir" && as_dir=.
 
2496
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2497
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2498
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2500
    break 2
 
2501
  fi
 
2502
done
 
2503
  done
 
2504
IFS=$as_save_IFS
 
2505
 
 
2506
fi
 
2507
fi
 
2508
STRIP=$ac_cv_prog_STRIP
 
2509
if test -n "$STRIP"; then
 
2510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2511
$as_echo "$STRIP" >&6; }
 
2512
else
 
2513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2514
$as_echo "no" >&6; }
 
2515
fi
 
2516
 
 
2517
 
 
2518
fi
 
2519
if test -z "$ac_cv_prog_STRIP"; then
 
2520
  ac_ct_STRIP=$STRIP
 
2521
  # Extract the first word of "strip", so it can be a program name with args.
 
2522
set dummy strip; ac_word=$2
 
2523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2524
$as_echo_n "checking for $ac_word... " >&6; }
 
2525
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2526
  $as_echo_n "(cached) " >&6
 
2527
else
 
2528
  if test -n "$ac_ct_STRIP"; then
 
2529
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2530
else
 
2531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2532
for as_dir in $PATH
 
2533
do
 
2534
  IFS=$as_save_IFS
 
2535
  test -z "$as_dir" && as_dir=.
 
2536
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2537
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2538
    ac_cv_prog_ac_ct_STRIP="strip"
 
2539
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2540
    break 2
 
2541
  fi
 
2542
done
 
2543
  done
 
2544
IFS=$as_save_IFS
 
2545
 
 
2546
fi
 
2547
fi
 
2548
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2549
if test -n "$ac_ct_STRIP"; then
 
2550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2551
$as_echo "$ac_ct_STRIP" >&6; }
 
2552
else
 
2553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2554
$as_echo "no" >&6; }
 
2555
fi
 
2556
 
 
2557
  if test "x$ac_ct_STRIP" = x; then
 
2558
    STRIP=":"
 
2559
  else
 
2560
    case $cross_compiling:$ac_tool_warned in
 
2561
yes:)
 
2562
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2564
ac_tool_warned=yes ;;
 
2565
esac
 
2566
    STRIP=$ac_ct_STRIP
 
2567
  fi
 
2568
else
 
2569
  STRIP="$ac_cv_prog_STRIP"
 
2570
fi
 
2571
 
 
2572
fi
 
2573
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2574
 
 
2575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2576
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2129
2577
if test -z "$MKDIR_P"; then
2130
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2578
  if ${ac_cv_path_mkdir+:} false; then :
 
2579
  $as_echo_n "(cached) " >&6
2132
2580
else
2133
2581
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134
2582
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135
2583
do
2136
2584
  IFS=$as_save_IFS
2137
2585
  test -z "$as_dir" && as_dir=.
2138
 
  for ac_prog in mkdir gmkdir; do
 
2586
    for ac_prog in mkdir gmkdir; do
2139
2587
         for ac_exec_ext in '' $ac_executable_extensions; do
2140
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2588
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2141
2589
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142
2590
             'mkdir (GNU coreutils) '* | \
2143
2591
             'mkdir (coreutils) '* | \
2147
2595
           esac
2148
2596
         done
2149
2597
       done
2150
 
done
 
2598
  done
2151
2599
IFS=$as_save_IFS
2152
2600
 
2153
2601
fi
2154
2602
 
 
2603
  test -d ./--version && rmdir ./--version
2155
2604
  if test "${ac_cv_path_mkdir+set}" = set; then
2156
2605
    MKDIR_P="$ac_cv_path_mkdir -p"
2157
2606
  else
2159
2608
    # value for MKDIR_P within a source directory, because that will
2160
2609
    # break other packages using the cache if that directory is
2161
2610
    # removed, or if the value is a relative name.
2162
 
    test -d ./--version && rmdir ./--version
2163
2611
    MKDIR_P="$ac_install_sh -d"
2164
2612
  fi
2165
2613
fi
2166
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167
 
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2615
$as_echo "$MKDIR_P" >&6; }
2168
2616
 
2169
2617
mkdir_p="$MKDIR_P"
2170
2618
case $mkdir_p in
2176
2624
do
2177
2625
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2178
2626
set dummy $ac_prog; ac_word=$2
2179
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2180
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181
 
if test "${ac_cv_prog_AWK+set}" = set; then
2182
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2628
$as_echo_n "checking for $ac_word... " >&6; }
 
2629
if ${ac_cv_prog_AWK+:} false; then :
 
2630
  $as_echo_n "(cached) " >&6
2183
2631
else
2184
2632
  if test -n "$AWK"; then
2185
2633
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189
2637
do
2190
2638
  IFS=$as_save_IFS
2191
2639
  test -z "$as_dir" && as_dir=.
2192
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2193
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2640
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2641
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194
2642
    ac_cv_prog_AWK="$ac_prog"
2195
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2643
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2196
2644
    break 2
2197
2645
  fi
2198
2646
done
2199
 
done
 
2647
  done
2200
2648
IFS=$as_save_IFS
2201
2649
 
2202
2650
fi
2203
2651
fi
2204
2652
AWK=$ac_cv_prog_AWK
2205
2653
if test -n "$AWK"; then
2206
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2207
 
echo "${ECHO_T}$AWK" >&6; }
 
2654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2655
$as_echo "$AWK" >&6; }
2208
2656
else
2209
 
  { echo "$as_me:$LINENO: result: no" >&5
2210
 
echo "${ECHO_T}no" >&6; }
 
2657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2658
$as_echo "no" >&6; }
2211
2659
fi
2212
2660
 
2213
2661
 
2214
2662
  test -n "$AWK" && break
2215
2663
done
2216
2664
 
2217
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2221
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2666
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2667
set x ${MAKE-make}
 
2668
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2669
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2670
  $as_echo_n "(cached) " >&6
2222
2671
else
2223
2672
  cat >conftest.make <<\_ACEOF
2224
2673
SHELL = /bin/sh
2225
2674
all:
2226
2675
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2227
2676
_ACEOF
2228
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2677
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2229
2678
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230
2679
  *@@@%%%=?*=@@@%%%*)
2231
2680
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2235
2684
rm -f conftest.make
2236
2685
fi
2237
2686
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238
 
  { echo "$as_me:$LINENO: result: yes" >&5
2239
 
echo "${ECHO_T}yes" >&6; }
 
2687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2688
$as_echo "yes" >&6; }
2240
2689
  SET_MAKE=
2241
2690
else
2242
 
  { echo "$as_me:$LINENO: result: no" >&5
2243
 
echo "${ECHO_T}no" >&6; }
 
2691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2692
$as_echo "no" >&6; }
2244
2693
  SET_MAKE="MAKE=${MAKE-make}"
2245
2694
fi
2246
2695
 
2259
2708
  am__isrc=' -I$(srcdir)'
2260
2709
  # test to see if srcdir already configured
2261
2710
  if test -f $srcdir/config.status; then
2262
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264
 
   { (exit 1); exit 1; }; }
 
2711
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2265
2712
  fi
2266
2713
fi
2267
2714
 
2277
2724
 
2278
2725
# Define the identity of the package.
2279
2726
 PACKAGE='libicns'
2280
 
 VERSION='0.5.9'
 
2727
 VERSION='0.8.1'
2281
2728
 
2282
2729
 
2283
2730
cat >>confdefs.h <<_ACEOF
2305
2752
 
2306
2753
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2307
2754
 
2308
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2309
 
 
2310
 
# Installed binaries are usually stripped using `strip' when the user
2311
 
# run `make install-strip'.  However `strip' might not be the right
2312
 
# tool to use in cross-compilation environments, therefore Automake
2313
 
# will honor the `STRIP' environment variable to overrule this program.
2314
 
if test "$cross_compiling" != no; then
2315
 
  if test -n "$ac_tool_prefix"; then
2316
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2317
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2318
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2319
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2322
 
else
2323
 
  if test -n "$STRIP"; then
2324
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2325
 
else
2326
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327
 
for as_dir in $PATH
2328
 
do
2329
 
  IFS=$as_save_IFS
2330
 
  test -z "$as_dir" && as_dir=.
2331
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2332
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2334
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335
 
    break 2
2336
 
  fi
2337
 
done
2338
 
done
2339
 
IFS=$as_save_IFS
2340
 
 
2341
 
fi
2342
 
fi
2343
 
STRIP=$ac_cv_prog_STRIP
2344
 
if test -n "$STRIP"; then
2345
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2346
 
echo "${ECHO_T}$STRIP" >&6; }
2347
 
else
2348
 
  { echo "$as_me:$LINENO: result: no" >&5
2349
 
echo "${ECHO_T}no" >&6; }
2350
 
fi
2351
 
 
2352
 
 
2353
 
fi
2354
 
if test -z "$ac_cv_prog_STRIP"; then
2355
 
  ac_ct_STRIP=$STRIP
2356
 
  # Extract the first word of "strip", so it can be a program name with args.
2357
 
set dummy strip; ac_word=$2
2358
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2359
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2362
 
else
2363
 
  if test -n "$ac_ct_STRIP"; then
2364
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2365
 
else
2366
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367
 
for as_dir in $PATH
2368
 
do
2369
 
  IFS=$as_save_IFS
2370
 
  test -z "$as_dir" && as_dir=.
2371
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2372
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373
 
    ac_cv_prog_ac_ct_STRIP="strip"
2374
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375
 
    break 2
2376
 
  fi
2377
 
done
2378
 
done
2379
 
IFS=$as_save_IFS
2380
 
 
2381
 
fi
2382
 
fi
2383
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2384
 
if test -n "$ac_ct_STRIP"; then
2385
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2386
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2387
 
else
2388
 
  { echo "$as_me:$LINENO: result: no" >&5
2389
 
echo "${ECHO_T}no" >&6; }
2390
 
fi
2391
 
 
2392
 
  if test "x$ac_ct_STRIP" = x; then
2393
 
    STRIP=":"
2394
 
  else
2395
 
    case $cross_compiling:$ac_tool_warned in
2396
 
yes:)
2397
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2398
 
whose name does not start with the host triplet.  If you think this
2399
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2400
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2401
 
whose name does not start with the host triplet.  If you think this
2402
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2403
 
ac_tool_warned=yes ;;
2404
 
esac
2405
 
    STRIP=$ac_ct_STRIP
2406
 
  fi
2407
 
else
2408
 
  STRIP="$ac_cv_prog_STRIP"
2409
 
fi
2410
 
 
2411
 
fi
2412
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2413
 
 
2414
2755
# We need awk for the "check" target.  The system "awk" is bad on
2415
2756
# some platforms.
2416
 
# Always define AMTAR for backward compatibility.
2417
 
 
2418
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2419
 
 
2420
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2421
 
 
2422
 
 
2423
 
 
2424
 
 
2425
 
 
2426
 
 
2427
 
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2757
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2758
# in the wild :-(  We should find a proper way to deprecate it ...
 
2759
AMTAR='$${TAR-tar}'
 
2760
 
 
2761
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2762
 
 
2763
 
 
2764
 
 
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2770
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429
2771
    # Check whether --enable-maintainer-mode was given.
2430
 
if test "${enable_maintainer_mode+set}" = set; then
 
2772
if test "${enable_maintainer_mode+set}" = set; then :
2431
2773
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2432
2774
else
2433
 
  USE_MAINTAINER_MODE=no
 
2775
  USE_MAINTAINER_MODE=yes
2434
2776
fi
2435
2777
 
2436
 
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2779
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2438
2780
   if test $USE_MAINTAINER_MODE = yes; then
2439
2781
  MAINTAINER_MODE_TRUE=
2440
2782
  MAINTAINER_MODE_FALSE='#'
2449
2791
 
2450
2792
# To enable debugging mode
2451
2793
CFLAGS="${CFLAGS=}"
2452
 
{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
2453
 
echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
 
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
 
2795
$as_echo_n "checking whether to enable debugging... " >&6; }
2454
2796
# Check whether --enable-debug was given.
2455
 
if test "${enable_debug+set}" = set; then
 
2797
if test "${enable_debug+set}" = set; then :
2456
2798
  enableval=$enable_debug;
2457
2799
else
2458
2800
  enable_debug=no
2460
2802
 
2461
2803
if test "x$enable_debug" = "xyes"; then
2462
2804
         CFLAGS="$CFLAGS -g -DDEBUG -DICNS_DEBUG"
2463
 
{ echo "$as_me:$LINENO: result: yes" >&5
2464
 
echo "${ECHO_T}yes" >&6; }
 
2805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2806
$as_echo "yes" >&6; }
2465
2807
else
2466
 
{ echo "$as_me:$LINENO: result: no" >&5
2467
 
echo "${ECHO_T}no" >&6; }
 
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2809
$as_echo "no" >&6; }
2468
2810
fi
2469
2811
 
2470
2812
# Stuff for the config.h.in file
2471
2813
ac_config_headers="$ac_config_headers config.h"
2472
2814
 
2473
 
 
2474
 
cat >>confdefs.h <<\_ACEOF
2475
 
#define _GNU_SOURCE 1
2476
 
_ACEOF
2477
 
 
2478
 
 
2479
 
 
2480
 
# Checks for programs.
 
2815
DEPDIR="${am__leading_dot}deps"
 
2816
 
 
2817
ac_config_commands="$ac_config_commands depfiles"
 
2818
 
 
2819
 
 
2820
am_make=${MAKE-make}
 
2821
cat > confinc << 'END'
 
2822
am__doit:
 
2823
        @echo this is the am__doit target
 
2824
.PHONY: am__doit
 
2825
END
 
2826
# If we don't find an include directive, just comment out the code.
 
2827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2828
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2829
am__include="#"
 
2830
am__quote=
 
2831
_am_result=none
 
2832
# First try GNU make style include.
 
2833
echo "include confinc" > confmf
 
2834
# Ignore all kinds of additional output from `make'.
 
2835
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2836
*the\ am__doit\ target*)
 
2837
  am__include=include
 
2838
  am__quote=
 
2839
  _am_result=GNU
 
2840
  ;;
 
2841
esac
 
2842
# Now try BSD make style include.
 
2843
if test "$am__include" = "#"; then
 
2844
   echo '.include "confinc"' > confmf
 
2845
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2846
   *the\ am__doit\ target*)
 
2847
     am__include=.include
 
2848
     am__quote="\""
 
2849
     _am_result=BSD
 
2850
     ;;
 
2851
   esac
 
2852
fi
 
2853
 
 
2854
 
 
2855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2856
$as_echo "$_am_result" >&6; }
 
2857
rm -f confinc confmf
 
2858
 
 
2859
# Check whether --enable-dependency-tracking was given.
 
2860
if test "${enable_dependency_tracking+set}" = set; then :
 
2861
  enableval=$enable_dependency_tracking;
 
2862
fi
 
2863
 
 
2864
if test "x$enable_dependency_tracking" != xno; then
 
2865
  am_depcomp="$ac_aux_dir/depcomp"
 
2866
  AMDEPBACKSLASH='\'
 
2867
  am__nodep='_no'
 
2868
fi
 
2869
 if test "x$enable_dependency_tracking" != xno; then
 
2870
  AMDEP_TRUE=
 
2871
  AMDEP_FALSE='#'
 
2872
else
 
2873
  AMDEP_TRUE='#'
 
2874
  AMDEP_FALSE=
 
2875
fi
 
2876
 
 
2877
 
2481
2878
ac_ext=c
2482
2879
ac_cpp='$CPP $CPPFLAGS'
2483
2880
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486
2883
if test -n "$ac_tool_prefix"; then
2487
2884
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2488
2885
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2489
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2490
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491
 
if test "${ac_cv_prog_CC+set}" = set; then
2492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2887
$as_echo_n "checking for $ac_word... " >&6; }
 
2888
if ${ac_cv_prog_CC+:} false; then :
 
2889
  $as_echo_n "(cached) " >&6
2493
2890
else
2494
2891
  if test -n "$CC"; then
2495
2892
  ac_cv_prog_CC="$CC" # Let the user override the test.
2499
2896
do
2500
2897
  IFS=$as_save_IFS
2501
2898
  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
 
2899
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2900
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2504
2901
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2505
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2902
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506
2903
    break 2
2507
2904
  fi
2508
2905
done
2509
 
done
 
2906
  done
2510
2907
IFS=$as_save_IFS
2511
2908
 
2512
2909
fi
2513
2910
fi
2514
2911
CC=$ac_cv_prog_CC
2515
2912
if test -n "$CC"; then
2516
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2517
 
echo "${ECHO_T}$CC" >&6; }
 
2913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2914
$as_echo "$CC" >&6; }
2518
2915
else
2519
 
  { echo "$as_me:$LINENO: result: no" >&5
2520
 
echo "${ECHO_T}no" >&6; }
 
2916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2917
$as_echo "no" >&6; }
2521
2918
fi
2522
2919
 
2523
2920
 
2526
2923
  ac_ct_CC=$CC
2527
2924
  # Extract the first word of "gcc", so it can be a program name with args.
2528
2925
set dummy gcc; ac_word=$2
2529
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2927
$as_echo_n "checking for $ac_word... " >&6; }
 
2928
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2929
  $as_echo_n "(cached) " >&6
2533
2930
else
2534
2931
  if test -n "$ac_ct_CC"; then
2535
2932
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539
2936
do
2540
2937
  IFS=$as_save_IFS
2541
2938
  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
 
2939
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2940
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544
2941
    ac_cv_prog_ac_ct_CC="gcc"
2545
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2942
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546
2943
    break 2
2547
2944
  fi
2548
2945
done
2549
 
done
 
2946
  done
2550
2947
IFS=$as_save_IFS
2551
2948
 
2552
2949
fi
2553
2950
fi
2554
2951
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555
2952
if test -n "$ac_ct_CC"; then
2556
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2557
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2953
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2954
$as_echo "$ac_ct_CC" >&6; }
2558
2955
else
2559
 
  { echo "$as_me:$LINENO: result: no" >&5
2560
 
echo "${ECHO_T}no" >&6; }
 
2956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2957
$as_echo "no" >&6; }
2561
2958
fi
2562
2959
 
2563
2960
  if test "x$ac_ct_CC" = x; then
2565
2962
  else
2566
2963
    case $cross_compiling:$ac_tool_warned in
2567
2964
yes:)
2568
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2569
 
whose name does not start with the host triplet.  If you think this
2570
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2571
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2572
 
whose name does not start with the host triplet.  If you think this
2573
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2965
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2966
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2574
2967
ac_tool_warned=yes ;;
2575
2968
esac
2576
2969
    CC=$ac_ct_CC
2583
2976
          if test -n "$ac_tool_prefix"; then
2584
2977
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2585
2978
set dummy ${ac_tool_prefix}cc; ac_word=$2
2586
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2587
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588
 
if test "${ac_cv_prog_CC+set}" = set; then
2589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2980
$as_echo_n "checking for $ac_word... " >&6; }
 
2981
if ${ac_cv_prog_CC+:} false; then :
 
2982
  $as_echo_n "(cached) " >&6
2590
2983
else
2591
2984
  if test -n "$CC"; then
2592
2985
  ac_cv_prog_CC="$CC" # Let the user override the test.
2596
2989
do
2597
2990
  IFS=$as_save_IFS
2598
2991
  test -z "$as_dir" && as_dir=.
2599
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2600
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2992
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2993
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601
2994
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2602
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603
2996
    break 2
2604
2997
  fi
2605
2998
done
2606
 
done
 
2999
  done
2607
3000
IFS=$as_save_IFS
2608
3001
 
2609
3002
fi
2610
3003
fi
2611
3004
CC=$ac_cv_prog_CC
2612
3005
if test -n "$CC"; then
2613
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2614
 
echo "${ECHO_T}$CC" >&6; }
 
3006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3007
$as_echo "$CC" >&6; }
2615
3008
else
2616
 
  { echo "$as_me:$LINENO: result: no" >&5
2617
 
echo "${ECHO_T}no" >&6; }
 
3009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3010
$as_echo "no" >&6; }
2618
3011
fi
2619
3012
 
2620
3013
 
2623
3016
if test -z "$CC"; then
2624
3017
  # Extract the first word of "cc", so it can be a program name with args.
2625
3018
set dummy cc; ac_word=$2
2626
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2627
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628
 
if test "${ac_cv_prog_CC+set}" = set; then
2629
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3020
$as_echo_n "checking for $ac_word... " >&6; }
 
3021
if ${ac_cv_prog_CC+:} false; then :
 
3022
  $as_echo_n "(cached) " >&6
2630
3023
else
2631
3024
  if test -n "$CC"; then
2632
3025
  ac_cv_prog_CC="$CC" # Let the user override the test.
2637
3030
do
2638
3031
  IFS=$as_save_IFS
2639
3032
  test -z "$as_dir" && as_dir=.
2640
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2641
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3033
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3034
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642
3035
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2643
3036
       ac_prog_rejected=yes
2644
3037
       continue
2645
3038
     fi
2646
3039
    ac_cv_prog_CC="cc"
2647
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648
3041
    break 2
2649
3042
  fi
2650
3043
done
2651
 
done
 
3044
  done
2652
3045
IFS=$as_save_IFS
2653
3046
 
2654
3047
if test $ac_prog_rejected = yes; then
2667
3060
fi
2668
3061
CC=$ac_cv_prog_CC
2669
3062
if test -n "$CC"; then
2670
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2671
 
echo "${ECHO_T}$CC" >&6; }
 
3063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3064
$as_echo "$CC" >&6; }
2672
3065
else
2673
 
  { echo "$as_me:$LINENO: result: no" >&5
2674
 
echo "${ECHO_T}no" >&6; }
 
3066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3067
$as_echo "no" >&6; }
2675
3068
fi
2676
3069
 
2677
3070
 
2682
3075
  do
2683
3076
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2684
3077
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2685
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2686
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687
 
if test "${ac_cv_prog_CC+set}" = set; then
2688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3079
$as_echo_n "checking for $ac_word... " >&6; }
 
3080
if ${ac_cv_prog_CC+:} false; then :
 
3081
  $as_echo_n "(cached) " >&6
2689
3082
else
2690
3083
  if test -n "$CC"; then
2691
3084
  ac_cv_prog_CC="$CC" # Let the user override the test.
2695
3088
do
2696
3089
  IFS=$as_save_IFS
2697
3090
  test -z "$as_dir" && as_dir=.
2698
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2699
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3091
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3092
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700
3093
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2701
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3094
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702
3095
    break 2
2703
3096
  fi
2704
3097
done
2705
 
done
 
3098
  done
2706
3099
IFS=$as_save_IFS
2707
3100
 
2708
3101
fi
2709
3102
fi
2710
3103
CC=$ac_cv_prog_CC
2711
3104
if test -n "$CC"; then
2712
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2713
 
echo "${ECHO_T}$CC" >&6; }
 
3105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3106
$as_echo "$CC" >&6; }
2714
3107
else
2715
 
  { echo "$as_me:$LINENO: result: no" >&5
2716
 
echo "${ECHO_T}no" >&6; }
 
3108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3109
$as_echo "no" >&6; }
2717
3110
fi
2718
3111
 
2719
3112
 
2726
3119
do
2727
3120
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2728
3121
set dummy $ac_prog; ac_word=$2
2729
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2730
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3123
$as_echo_n "checking for $ac_word... " >&6; }
 
3124
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3125
  $as_echo_n "(cached) " >&6
2733
3126
else
2734
3127
  if test -n "$ac_ct_CC"; then
2735
3128
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739
3132
do
2740
3133
  IFS=$as_save_IFS
2741
3134
  test -z "$as_dir" && as_dir=.
2742
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2743
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3135
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3136
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744
3137
    ac_cv_prog_ac_ct_CC="$ac_prog"
2745
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3138
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746
3139
    break 2
2747
3140
  fi
2748
3141
done
2749
 
done
 
3142
  done
2750
3143
IFS=$as_save_IFS
2751
3144
 
2752
3145
fi
2753
3146
fi
2754
3147
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755
3148
if test -n "$ac_ct_CC"; then
2756
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2757
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3150
$as_echo "$ac_ct_CC" >&6; }
2758
3151
else
2759
 
  { echo "$as_me:$LINENO: result: no" >&5
2760
 
echo "${ECHO_T}no" >&6; }
 
3152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3153
$as_echo "no" >&6; }
2761
3154
fi
2762
3155
 
2763
3156
 
2769
3162
  else
2770
3163
    case $cross_compiling:$ac_tool_warned in
2771
3164
yes:)
2772
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2773
 
whose name does not start with the host triplet.  If you think this
2774
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2775
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2776
 
whose name does not start with the host triplet.  If you think this
2777
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3165
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3166
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778
3167
ac_tool_warned=yes ;;
2779
3168
esac
2780
3169
    CC=$ac_ct_CC
2784
3173
fi
2785
3174
 
2786
3175
 
2787
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2788
 
See \`config.log' for more details." >&5
2789
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2790
 
See \`config.log' for more details." >&2;}
2791
 
   { (exit 1); exit 1; }; }
 
3176
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3177
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3178
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3179
See \`config.log' for more details" "$LINENO" 5; }
2792
3180
 
2793
3181
# Provide some information about the compiler.
2794
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2795
 
ac_compiler=`set X $ac_compile; echo $2`
2796
 
{ (ac_try="$ac_compiler --version >&5"
2797
 
case "(($ac_try" in
2798
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799
 
  *) ac_try_echo=$ac_try;;
2800
 
esac
2801
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802
 
  (eval "$ac_compiler --version >&5") 2>&5
2803
 
  ac_status=$?
2804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805
 
  (exit $ac_status); }
2806
 
{ (ac_try="$ac_compiler -v >&5"
2807
 
case "(($ac_try" in
2808
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809
 
  *) ac_try_echo=$ac_try;;
2810
 
esac
2811
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812
 
  (eval "$ac_compiler -v >&5") 2>&5
2813
 
  ac_status=$?
2814
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
 
  (exit $ac_status); }
2816
 
{ (ac_try="$ac_compiler -V >&5"
2817
 
case "(($ac_try" in
2818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819
 
  *) ac_try_echo=$ac_try;;
2820
 
esac
2821
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822
 
  (eval "$ac_compiler -V >&5") 2>&5
2823
 
  ac_status=$?
2824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825
 
  (exit $ac_status); }
 
3182
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3183
set X $ac_compile
 
3184
ac_compiler=$2
 
3185
for ac_option in --version -v -V -qversion; do
 
3186
  { { ac_try="$ac_compiler $ac_option >&5"
 
3187
case "(($ac_try" in
 
3188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3189
  *) ac_try_echo=$ac_try;;
 
3190
esac
 
3191
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3192
$as_echo "$ac_try_echo"; } >&5
 
3193
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3194
  ac_status=$?
 
3195
  if test -s conftest.err; then
 
3196
    sed '10a\
 
3197
... rest of stderr output deleted ...
 
3198
         10q' conftest.err >conftest.er1
 
3199
    cat conftest.er1 >&5
 
3200
  fi
 
3201
  rm -f conftest.er1 conftest.err
 
3202
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3203
  test $ac_status = 0; }
 
3204
done
2826
3205
 
2827
 
cat >conftest.$ac_ext <<_ACEOF
2828
 
/* confdefs.h.  */
2829
 
_ACEOF
2830
 
cat confdefs.h >>conftest.$ac_ext
2831
 
cat >>conftest.$ac_ext <<_ACEOF
 
3206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832
3207
/* end confdefs.h.  */
2833
3208
 
2834
3209
int
2840
3215
}
2841
3216
_ACEOF
2842
3217
ac_clean_files_save=$ac_clean_files
2843
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3218
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2844
3219
# Try to create an executable without -o first, disregard a.out.
2845
3220
# It will help us diagnose broken compilers, and finding out an intuition
2846
3221
# of exeext.
2847
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2848
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2849
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2850
 
#
2851
 
# List of possible output files, starting from the most likely.
2852
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2853
 
# only as a last resort.  b.out is created by i960 compilers.
2854
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2855
 
#
2856
 
# The IRIX 6 linker writes into existing files which may not be
2857
 
# executable, retaining their permissions.  Remove them first so a
2858
 
# subsequent execution test works.
 
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3223
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3224
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3225
 
 
3226
# The possible output files:
 
3227
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3228
 
2859
3229
ac_rmfiles=
2860
3230
for ac_file in $ac_files
2861
3231
do
2862
3232
  case $ac_file in
2863
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3233
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2864
3234
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2865
3235
  esac
2866
3236
done
2867
3237
rm -f $ac_rmfiles
2868
3238
 
2869
 
if { (ac_try="$ac_link_default"
 
3239
if { { ac_try="$ac_link_default"
2870
3240
case "(($ac_try" in
2871
3241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872
3242
  *) ac_try_echo=$ac_try;;
2873
3243
esac
2874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3244
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3245
$as_echo "$ac_try_echo"; } >&5
2875
3246
  (eval "$ac_link_default") 2>&5
2876
3247
  ac_status=$?
2877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
 
  (exit $ac_status); }; then
 
3248
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3249
  test $ac_status = 0; }; then :
2879
3250
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2880
3251
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2881
3252
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2885
3256
do
2886
3257
  test -f "$ac_file" || continue
2887
3258
  case $ac_file in
2888
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3259
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2889
3260
        ;;
2890
3261
    [ab].out )
2891
3262
        # We found the default executable, but exeext='' is most
2892
3263
        # certainly right.
2893
3264
        break;;
2894
3265
    *.* )
2895
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3266
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2896
3267
        then :; else
2897
3268
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898
3269
        fi
2911
3282
else
2912
3283
  ac_file=''
2913
3284
fi
2914
 
 
2915
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2916
 
echo "${ECHO_T}$ac_file" >&6; }
2917
 
if test -z "$ac_file"; then
2918
 
  echo "$as_me: failed program was:" >&5
 
3285
if test -z "$ac_file"; then :
 
3286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3287
$as_echo "no" >&6; }
 
3288
$as_echo "$as_me: failed program was:" >&5
2919
3289
sed 's/^/| /' conftest.$ac_ext >&5
2920
3290
 
2921
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2922
 
See \`config.log' for more details." >&5
2923
 
echo "$as_me: error: C compiler cannot create executables
2924
 
See \`config.log' for more details." >&2;}
2925
 
   { (exit 77); exit 77; }; }
 
3291
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3292
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3293
as_fn_error 77 "C compiler cannot create executables
 
3294
See \`config.log' for more details" "$LINENO" 5; }
 
3295
else
 
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3297
$as_echo "yes" >&6; }
2926
3298
fi
2927
 
 
 
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3300
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3302
$as_echo "$ac_file" >&6; }
2928
3303
ac_exeext=$ac_cv_exeext
2929
3304
 
2930
 
# Check that the compiler produces executables we can run.  If not, either
2931
 
# the compiler is broken, or we cross compile.
2932
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2933
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2934
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2935
 
# If not cross compiling, check that we can run a simple program.
2936
 
if test "$cross_compiling" != yes; then
2937
 
  if { ac_try='./$ac_file'
2938
 
  { (case "(($ac_try" in
2939
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
 
  *) ac_try_echo=$ac_try;;
2941
 
esac
2942
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943
 
  (eval "$ac_try") 2>&5
2944
 
  ac_status=$?
2945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
 
  (exit $ac_status); }; }; then
2947
 
    cross_compiling=no
2948
 
  else
2949
 
    if test "$cross_compiling" = maybe; then
2950
 
        cross_compiling=yes
2951
 
    else
2952
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2953
 
If you meant to cross compile, use \`--host'.
2954
 
See \`config.log' for more details." >&5
2955
 
echo "$as_me: error: cannot run C compiled programs.
2956
 
If you meant to cross compile, use \`--host'.
2957
 
See \`config.log' for more details." >&2;}
2958
 
   { (exit 1); exit 1; }; }
2959
 
    fi
2960
 
  fi
2961
 
fi
2962
 
{ echo "$as_me:$LINENO: result: yes" >&5
2963
 
echo "${ECHO_T}yes" >&6; }
2964
 
 
2965
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3305
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2966
3306
ac_clean_files=$ac_clean_files_save
2967
 
# Check that the compiler produces executables we can run.  If not, either
2968
 
# the compiler is broken, or we cross compile.
2969
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2970
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2971
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2972
 
echo "${ECHO_T}$cross_compiling" >&6; }
2973
 
 
2974
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2975
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2976
 
if { (ac_try="$ac_link"
 
3307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3308
$as_echo_n "checking for suffix of executables... " >&6; }
 
3309
if { { ac_try="$ac_link"
2977
3310
case "(($ac_try" in
2978
3311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979
3312
  *) ac_try_echo=$ac_try;;
2980
3313
esac
2981
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3314
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3315
$as_echo "$ac_try_echo"; } >&5
2982
3316
  (eval "$ac_link") 2>&5
2983
3317
  ac_status=$?
2984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985
 
  (exit $ac_status); }; then
 
3318
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3319
  test $ac_status = 0; }; then :
2986
3320
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987
3321
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2988
3322
# work properly (i.e., refer to `conftest.exe'), while it won't with
2990
3324
for ac_file in conftest.exe conftest conftest.*; do
2991
3325
  test -f "$ac_file" || continue
2992
3326
  case $ac_file in
2993
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3327
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994
3328
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995
3329
          break;;
2996
3330
    * ) break;;
2997
3331
  esac
2998
3332
done
2999
3333
else
3000
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3001
 
See \`config.log' for more details." >&5
3002
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3003
 
See \`config.log' for more details." >&2;}
3004
 
   { (exit 1); exit 1; }; }
 
3334
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3335
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3336
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3337
See \`config.log' for more details" "$LINENO" 5; }
3005
3338
fi
3006
 
 
3007
 
rm -f conftest$ac_cv_exeext
3008
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3009
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3339
rm -f conftest conftest$ac_cv_exeext
 
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3341
$as_echo "$ac_cv_exeext" >&6; }
3010
3342
 
3011
3343
rm -f conftest.$ac_ext
3012
3344
EXEEXT=$ac_cv_exeext
3013
3345
ac_exeext=$EXEEXT
3014
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3015
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3016
 
if test "${ac_cv_objext+set}" = set; then
3017
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3347
/* end confdefs.h.  */
 
3348
#include <stdio.h>
 
3349
int
 
3350
main ()
 
3351
{
 
3352
FILE *f = fopen ("conftest.out", "w");
 
3353
 return ferror (f) || fclose (f) != 0;
 
3354
 
 
3355
  ;
 
3356
  return 0;
 
3357
}
 
3358
_ACEOF
 
3359
ac_clean_files="$ac_clean_files conftest.out"
 
3360
# Check that the compiler produces executables we can run.  If not, either
 
3361
# the compiler is broken, or we cross compile.
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3363
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3364
if test "$cross_compiling" != yes; then
 
3365
  { { ac_try="$ac_link"
 
3366
case "(($ac_try" in
 
3367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3368
  *) ac_try_echo=$ac_try;;
 
3369
esac
 
3370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3371
$as_echo "$ac_try_echo"; } >&5
 
3372
  (eval "$ac_link") 2>&5
 
3373
  ac_status=$?
 
3374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3375
  test $ac_status = 0; }
 
3376
  if { ac_try='./conftest$ac_cv_exeext'
 
3377
  { { case "(($ac_try" in
 
3378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3379
  *) ac_try_echo=$ac_try;;
 
3380
esac
 
3381
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3382
$as_echo "$ac_try_echo"; } >&5
 
3383
  (eval "$ac_try") 2>&5
 
3384
  ac_status=$?
 
3385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3386
  test $ac_status = 0; }; }; then
 
3387
    cross_compiling=no
 
3388
  else
 
3389
    if test "$cross_compiling" = maybe; then
 
3390
        cross_compiling=yes
 
3391
    else
 
3392
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3393
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3394
as_fn_error $? "cannot run C compiled programs.
 
3395
If you meant to cross compile, use \`--host'.
 
3396
See \`config.log' for more details" "$LINENO" 5; }
 
3397
    fi
 
3398
  fi
 
3399
fi
 
3400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3401
$as_echo "$cross_compiling" >&6; }
 
3402
 
 
3403
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3404
ac_clean_files=$ac_clean_files_save
 
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3406
$as_echo_n "checking for suffix of object files... " >&6; }
 
3407
if ${ac_cv_objext+:} false; then :
 
3408
  $as_echo_n "(cached) " >&6
3018
3409
else
3019
 
  cat >conftest.$ac_ext <<_ACEOF
3020
 
/* confdefs.h.  */
3021
 
_ACEOF
3022
 
cat confdefs.h >>conftest.$ac_ext
3023
 
cat >>conftest.$ac_ext <<_ACEOF
 
3410
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024
3411
/* end confdefs.h.  */
3025
3412
 
3026
3413
int
3032
3419
}
3033
3420
_ACEOF
3034
3421
rm -f conftest.o conftest.obj
3035
 
if { (ac_try="$ac_compile"
 
3422
if { { ac_try="$ac_compile"
3036
3423
case "(($ac_try" in
3037
3424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038
3425
  *) ac_try_echo=$ac_try;;
3039
3426
esac
3040
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3427
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3428
$as_echo "$ac_try_echo"; } >&5
3041
3429
  (eval "$ac_compile") 2>&5
3042
3430
  ac_status=$?
3043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
 
  (exit $ac_status); }; then
 
3431
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3432
  test $ac_status = 0; }; then :
3045
3433
  for ac_file in conftest.o conftest.obj conftest.*; do
3046
3434
  test -f "$ac_file" || continue;
3047
3435
  case $ac_file in
3048
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3436
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3049
3437
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3050
3438
       break;;
3051
3439
  esac
3052
3440
done
3053
3441
else
3054
 
  echo "$as_me: failed program was:" >&5
 
3442
  $as_echo "$as_me: failed program was:" >&5
3055
3443
sed 's/^/| /' conftest.$ac_ext >&5
3056
3444
 
3057
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3058
 
See \`config.log' for more details." >&5
3059
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3060
 
See \`config.log' for more details." >&2;}
3061
 
   { (exit 1); exit 1; }; }
 
3445
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3446
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3447
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3448
See \`config.log' for more details" "$LINENO" 5; }
3062
3449
fi
3063
 
 
3064
3450
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3065
3451
fi
3066
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3067
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3453
$as_echo "$ac_cv_objext" >&6; }
3068
3454
OBJEXT=$ac_cv_objext
3069
3455
ac_objext=$OBJEXT
3070
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3071
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3072
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3457
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3458
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3459
  $as_echo_n "(cached) " >&6
3074
3460
else
3075
 
  cat >conftest.$ac_ext <<_ACEOF
3076
 
/* confdefs.h.  */
3077
 
_ACEOF
3078
 
cat confdefs.h >>conftest.$ac_ext
3079
 
cat >>conftest.$ac_ext <<_ACEOF
 
3461
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080
3462
/* end confdefs.h.  */
3081
3463
 
3082
3464
int
3090
3472
  return 0;
3091
3473
}
3092
3474
_ACEOF
3093
 
rm -f conftest.$ac_objext
3094
 
if { (ac_try="$ac_compile"
3095
 
case "(($ac_try" in
3096
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097
 
  *) ac_try_echo=$ac_try;;
3098
 
esac
3099
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100
 
  (eval "$ac_compile") 2>conftest.er1
3101
 
  ac_status=$?
3102
 
  grep -v '^ *+' conftest.er1 >conftest.err
3103
 
  rm -f conftest.er1
3104
 
  cat conftest.err >&5
3105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
 
  (exit $ac_status); } && {
3107
 
         test -z "$ac_c_werror_flag" ||
3108
 
         test ! -s conftest.err
3109
 
       } && test -s conftest.$ac_objext; then
 
3475
if ac_fn_c_try_compile "$LINENO"; then :
3110
3476
  ac_compiler_gnu=yes
3111
3477
else
3112
 
  echo "$as_me: failed program was:" >&5
3113
 
sed 's/^/| /' conftest.$ac_ext >&5
3114
 
 
3115
 
        ac_compiler_gnu=no
 
3478
  ac_compiler_gnu=no
3116
3479
fi
3117
 
 
3118
3480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119
3481
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120
3482
 
3121
3483
fi
3122
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3124
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3485
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3486
if test $ac_compiler_gnu = yes; then
 
3487
  GCC=yes
 
3488
else
 
3489
  GCC=
 
3490
fi
3125
3491
ac_test_CFLAGS=${CFLAGS+set}
3126
3492
ac_save_CFLAGS=$CFLAGS
3127
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3128
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3129
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3494
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3495
if ${ac_cv_prog_cc_g+:} false; then :
 
3496
  $as_echo_n "(cached) " >&6
3131
3497
else
3132
3498
  ac_save_c_werror_flag=$ac_c_werror_flag
3133
3499
   ac_c_werror_flag=yes
3134
3500
   ac_cv_prog_cc_g=no
3135
3501
   CFLAGS="-g"
3136
 
   cat >conftest.$ac_ext <<_ACEOF
3137
 
/* confdefs.h.  */
3138
 
_ACEOF
3139
 
cat confdefs.h >>conftest.$ac_ext
3140
 
cat >>conftest.$ac_ext <<_ACEOF
3141
 
/* end confdefs.h.  */
3142
 
 
3143
 
int
3144
 
main ()
3145
 
{
3146
 
 
3147
 
  ;
3148
 
  return 0;
3149
 
}
3150
 
_ACEOF
3151
 
rm -f conftest.$ac_objext
3152
 
if { (ac_try="$ac_compile"
3153
 
case "(($ac_try" in
3154
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155
 
  *) ac_try_echo=$ac_try;;
3156
 
esac
3157
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158
 
  (eval "$ac_compile") 2>conftest.er1
3159
 
  ac_status=$?
3160
 
  grep -v '^ *+' conftest.er1 >conftest.err
3161
 
  rm -f conftest.er1
3162
 
  cat conftest.err >&5
3163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164
 
  (exit $ac_status); } && {
3165
 
         test -z "$ac_c_werror_flag" ||
3166
 
         test ! -s conftest.err
3167
 
       } && test -s conftest.$ac_objext; then
3168
 
  ac_cv_prog_cc_g=yes
3169
 
else
3170
 
  echo "$as_me: failed program was:" >&5
3171
 
sed 's/^/| /' conftest.$ac_ext >&5
3172
 
 
3173
 
        CFLAGS=""
3174
 
      cat >conftest.$ac_ext <<_ACEOF
3175
 
/* confdefs.h.  */
3176
 
_ACEOF
3177
 
cat confdefs.h >>conftest.$ac_ext
3178
 
cat >>conftest.$ac_ext <<_ACEOF
3179
 
/* end confdefs.h.  */
3180
 
 
3181
 
int
3182
 
main ()
3183
 
{
3184
 
 
3185
 
  ;
3186
 
  return 0;
3187
 
}
3188
 
_ACEOF
3189
 
rm -f conftest.$ac_objext
3190
 
if { (ac_try="$ac_compile"
3191
 
case "(($ac_try" in
3192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193
 
  *) ac_try_echo=$ac_try;;
3194
 
esac
3195
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196
 
  (eval "$ac_compile") 2>conftest.er1
3197
 
  ac_status=$?
3198
 
  grep -v '^ *+' conftest.er1 >conftest.err
3199
 
  rm -f conftest.er1
3200
 
  cat conftest.err >&5
3201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202
 
  (exit $ac_status); } && {
3203
 
         test -z "$ac_c_werror_flag" ||
3204
 
         test ! -s conftest.err
3205
 
       } && test -s conftest.$ac_objext; then
 
3502
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3503
/* end confdefs.h.  */
 
3504
 
 
3505
int
 
3506
main ()
 
3507
{
 
3508
 
 
3509
  ;
 
3510
  return 0;
 
3511
}
 
3512
_ACEOF
 
3513
if ac_fn_c_try_compile "$LINENO"; then :
 
3514
  ac_cv_prog_cc_g=yes
 
3515
else
 
3516
  CFLAGS=""
 
3517
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3518
/* end confdefs.h.  */
 
3519
 
 
3520
int
 
3521
main ()
 
3522
{
 
3523
 
 
3524
  ;
 
3525
  return 0;
 
3526
}
 
3527
_ACEOF
 
3528
if ac_fn_c_try_compile "$LINENO"; then :
 
3529
 
 
3530
else
 
3531
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3532
         CFLAGS="-g"
 
3533
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3534
/* end confdefs.h.  */
 
3535
 
 
3536
int
 
3537
main ()
 
3538
{
 
3539
 
 
3540
  ;
 
3541
  return 0;
 
3542
}
 
3543
_ACEOF
 
3544
if ac_fn_c_try_compile "$LINENO"; then :
 
3545
  ac_cv_prog_cc_g=yes
 
3546
fi
 
3547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3548
fi
 
3549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3550
fi
 
3551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3552
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3553
fi
 
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3555
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3556
if test "$ac_test_CFLAGS" = set; then
 
3557
  CFLAGS=$ac_save_CFLAGS
 
3558
elif test $ac_cv_prog_cc_g = yes; then
 
3559
  if test "$GCC" = yes; then
 
3560
    CFLAGS="-g -O2"
 
3561
  else
 
3562
    CFLAGS="-g"
 
3563
  fi
 
3564
else
 
3565
  if test "$GCC" = yes; then
 
3566
    CFLAGS="-O2"
 
3567
  else
 
3568
    CFLAGS=
 
3569
  fi
 
3570
fi
 
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3572
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3573
if ${ac_cv_prog_cc_c89+:} false; then :
 
3574
  $as_echo_n "(cached) " >&6
 
3575
else
 
3576
  ac_cv_prog_cc_c89=no
 
3577
ac_save_CC=$CC
 
3578
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3579
/* end confdefs.h.  */
 
3580
#include <stdarg.h>
 
3581
#include <stdio.h>
 
3582
struct stat;
 
3583
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3584
struct buf { int x; };
 
3585
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3586
static char *e (p, i)
 
3587
     char **p;
 
3588
     int i;
 
3589
{
 
3590
  return p[i];
 
3591
}
 
3592
static char *f (char * (*g) (char **, int), char **p, ...)
 
3593
{
 
3594
  char *s;
 
3595
  va_list v;
 
3596
  va_start (v,p);
 
3597
  s = g (p, va_arg (v,int));
 
3598
  va_end (v);
 
3599
  return s;
 
3600
}
 
3601
 
 
3602
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3603
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3604
   These don't provoke an error unfortunately, instead are silently treated
 
3605
   as 'x'.  The following induces an error, until -std is added to get
 
3606
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3607
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3608
   that's true only with -std.  */
 
3609
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3610
 
 
3611
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3612
   inside strings and character constants.  */
 
3613
#define FOO(x) 'x'
 
3614
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3615
 
 
3616
int test (int i, double x);
 
3617
struct s1 {int (*f) (int a);};
 
3618
struct s2 {int (*f) (double a);};
 
3619
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3620
int argc;
 
3621
char **argv;
 
3622
int
 
3623
main ()
 
3624
{
 
3625
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3626
  ;
 
3627
  return 0;
 
3628
}
 
3629
_ACEOF
 
3630
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3631
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3632
do
 
3633
  CC="$ac_save_CC $ac_arg"
 
3634
  if ac_fn_c_try_compile "$LINENO"; then :
 
3635
  ac_cv_prog_cc_c89=$ac_arg
 
3636
fi
 
3637
rm -f core conftest.err conftest.$ac_objext
 
3638
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3639
done
 
3640
rm -f conftest.$ac_ext
 
3641
CC=$ac_save_CC
 
3642
 
 
3643
fi
 
3644
# AC_CACHE_VAL
 
3645
case "x$ac_cv_prog_cc_c89" in
 
3646
  x)
 
3647
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3648
$as_echo "none needed" >&6; } ;;
 
3649
  xno)
 
3650
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3651
$as_echo "unsupported" >&6; } ;;
 
3652
  *)
 
3653
    CC="$CC $ac_cv_prog_cc_c89"
 
3654
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3655
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3656
esac
 
3657
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3658
 
 
3659
fi
 
3660
 
 
3661
ac_ext=c
 
3662
ac_cpp='$CPP $CPPFLAGS'
 
3663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3666
 
 
3667
depcc="$CC"   am_compiler_list=
 
3668
 
 
3669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3670
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3671
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3672
  $as_echo_n "(cached) " >&6
 
3673
else
 
3674
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3675
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3676
  # making bogus files that we don't know about and never remove.  For
 
3677
  # instance it was reported that on HP-UX the gcc test will end up
 
3678
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3679
  # in D'.
 
3680
  rm -rf conftest.dir
 
3681
  mkdir conftest.dir
 
3682
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3683
  # using a relative directory.
 
3684
  cp "$am_depcomp" conftest.dir
 
3685
  cd conftest.dir
 
3686
  # We will build objects and dependencies in a subdirectory because
 
3687
  # it helps to detect inapplicable dependency modes.  For instance
 
3688
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3689
  # side effect of compilation, but ICC will put the dependencies in
 
3690
  # the current directory while Tru64 will put them in the object
 
3691
  # directory.
 
3692
  mkdir sub
 
3693
 
 
3694
  am_cv_CC_dependencies_compiler_type=none
 
3695
  if test "$am_compiler_list" = ""; then
 
3696
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3697
  fi
 
3698
  am__universal=false
 
3699
  case " $depcc " in #(
 
3700
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3701
     esac
 
3702
 
 
3703
  for depmode in $am_compiler_list; do
 
3704
    # Setup a source with many dependencies, because some compilers
 
3705
    # like to wrap large dependency lists on column 80 (with \), and
 
3706
    # we should not choose a depcomp mode which is confused by this.
 
3707
    #
 
3708
    # We need to recreate these files for each test, as the compiler may
 
3709
    # overwrite some of them when testing with obscure command lines.
 
3710
    # This happens at least with the AIX C compiler.
 
3711
    : > sub/conftest.c
 
3712
    for i in 1 2 3 4 5 6; do
 
3713
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3714
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3715
      # Solaris 8's {/usr,}/bin/sh.
 
3716
      touch sub/conftst$i.h
 
3717
    done
 
3718
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3719
 
 
3720
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3721
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3722
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3723
    # versions had trouble with output in subdirs
 
3724
    am__obj=sub/conftest.${OBJEXT-o}
 
3725
    am__minus_obj="-o $am__obj"
 
3726
    case $depmode in
 
3727
    gcc)
 
3728
      # This depmode causes a compiler race in universal mode.
 
3729
      test "$am__universal" = false || continue
 
3730
      ;;
 
3731
    nosideeffect)
 
3732
      # after this tag, mechanisms are not by side-effect, so they'll
 
3733
      # only be used when explicitly requested
 
3734
      if test "x$enable_dependency_tracking" = xyes; then
 
3735
        continue
 
3736
      else
 
3737
        break
 
3738
      fi
 
3739
      ;;
 
3740
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3741
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3742
      # not run yet.  These depmodes are late enough in the game, and
 
3743
      # so weak that their functioning should not be impacted.
 
3744
      am__obj=conftest.${OBJEXT-o}
 
3745
      am__minus_obj=
 
3746
      ;;
 
3747
    none) break ;;
 
3748
    esac
 
3749
    if depmode=$depmode \
 
3750
       source=sub/conftest.c object=$am__obj \
 
3751
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3752
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3753
         >/dev/null 2>conftest.err &&
 
3754
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3755
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3756
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3757
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3758
      # icc doesn't choke on unknown options, it will just issue warnings
 
3759
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3760
      # that says an option was ignored or not supported.
 
3761
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3762
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3763
      # The diagnosis changed in icc 8.0:
 
3764
      #   icc: Command line remark: option '-MP' not supported
 
3765
      if (grep 'ignoring option' conftest.err ||
 
3766
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3767
        am_cv_CC_dependencies_compiler_type=$depmode
 
3768
        break
 
3769
      fi
 
3770
    fi
 
3771
  done
 
3772
 
 
3773
  cd ..
 
3774
  rm -rf conftest.dir
 
3775
else
 
3776
  am_cv_CC_dependencies_compiler_type=none
 
3777
fi
 
3778
 
 
3779
fi
 
3780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3781
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3782
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3783
 
 
3784
 if
 
3785
  test "x$enable_dependency_tracking" != xno \
 
3786
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3787
  am__fastdepCC_TRUE=
 
3788
  am__fastdepCC_FALSE='#'
 
3789
else
 
3790
  am__fastdepCC_TRUE='#'
 
3791
  am__fastdepCC_FALSE=
 
3792
fi
 
3793
 
 
3794
 
 
3795
 
 
3796
ac_ext=c
 
3797
ac_cpp='$CPP $CPPFLAGS'
 
3798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3802
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3803
# On Suns, sometimes $CPP names a directory.
 
3804
if test -n "$CPP" && test -d "$CPP"; then
 
3805
  CPP=
 
3806
fi
 
3807
if test -z "$CPP"; then
 
3808
  if ${ac_cv_prog_CPP+:} false; then :
 
3809
  $as_echo_n "(cached) " >&6
 
3810
else
 
3811
      # Double quotes because CPP needs to be expanded
 
3812
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3813
    do
 
3814
      ac_preproc_ok=false
 
3815
for ac_c_preproc_warn_flag in '' yes
 
3816
do
 
3817
  # Use a header file that comes with gcc, so configuring glibc
 
3818
  # with a fresh cross-compiler works.
 
3819
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3820
  # <limits.h> exists even on freestanding compilers.
 
3821
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3822
  # not just through cpp. "Syntax error" is here to catch this case.
 
3823
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3824
/* end confdefs.h.  */
 
3825
#ifdef __STDC__
 
3826
# include <limits.h>
 
3827
#else
 
3828
# include <assert.h>
 
3829
#endif
 
3830
                     Syntax error
 
3831
_ACEOF
 
3832
if ac_fn_c_try_cpp "$LINENO"; then :
 
3833
 
 
3834
else
 
3835
  # Broken: fails on valid input.
 
3836
continue
 
3837
fi
 
3838
rm -f conftest.err conftest.i conftest.$ac_ext
 
3839
 
 
3840
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3841
  # can be detected and how.
 
3842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3843
/* end confdefs.h.  */
 
3844
#include <ac_nonexistent.h>
 
3845
_ACEOF
 
3846
if ac_fn_c_try_cpp "$LINENO"; then :
 
3847
  # Broken: success on invalid input.
 
3848
continue
 
3849
else
 
3850
  # Passes both tests.
 
3851
ac_preproc_ok=:
 
3852
break
 
3853
fi
 
3854
rm -f conftest.err conftest.i conftest.$ac_ext
 
3855
 
 
3856
done
 
3857
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3858
rm -f conftest.i conftest.err conftest.$ac_ext
 
3859
if $ac_preproc_ok; then :
 
3860
  break
 
3861
fi
 
3862
 
 
3863
    done
 
3864
    ac_cv_prog_CPP=$CPP
 
3865
 
 
3866
fi
 
3867
  CPP=$ac_cv_prog_CPP
 
3868
else
 
3869
  ac_cv_prog_CPP=$CPP
 
3870
fi
 
3871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3872
$as_echo "$CPP" >&6; }
 
3873
ac_preproc_ok=false
 
3874
for ac_c_preproc_warn_flag in '' yes
 
3875
do
 
3876
  # Use a header file that comes with gcc, so configuring glibc
 
3877
  # with a fresh cross-compiler works.
 
3878
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3879
  # <limits.h> exists even on freestanding compilers.
 
3880
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3881
  # not just through cpp. "Syntax error" is here to catch this case.
 
3882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3883
/* end confdefs.h.  */
 
3884
#ifdef __STDC__
 
3885
# include <limits.h>
 
3886
#else
 
3887
# include <assert.h>
 
3888
#endif
 
3889
                     Syntax error
 
3890
_ACEOF
 
3891
if ac_fn_c_try_cpp "$LINENO"; then :
 
3892
 
 
3893
else
 
3894
  # Broken: fails on valid input.
 
3895
continue
 
3896
fi
 
3897
rm -f conftest.err conftest.i conftest.$ac_ext
 
3898
 
 
3899
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3900
  # can be detected and how.
 
3901
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3902
/* end confdefs.h.  */
 
3903
#include <ac_nonexistent.h>
 
3904
_ACEOF
 
3905
if ac_fn_c_try_cpp "$LINENO"; then :
 
3906
  # Broken: success on invalid input.
 
3907
continue
 
3908
else
 
3909
  # Passes both tests.
 
3910
ac_preproc_ok=:
 
3911
break
 
3912
fi
 
3913
rm -f conftest.err conftest.i conftest.$ac_ext
 
3914
 
 
3915
done
 
3916
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3917
rm -f conftest.i conftest.err conftest.$ac_ext
 
3918
if $ac_preproc_ok; then :
 
3919
 
 
3920
else
 
3921
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3922
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3923
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3924
See \`config.log' for more details" "$LINENO" 5; }
 
3925
fi
 
3926
 
 
3927
ac_ext=c
 
3928
ac_cpp='$CPP $CPPFLAGS'
 
3929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3932
 
 
3933
 
 
3934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3935
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3936
if ${ac_cv_path_GREP+:} false; then :
 
3937
  $as_echo_n "(cached) " >&6
 
3938
else
 
3939
  if test -z "$GREP"; then
 
3940
  ac_path_GREP_found=false
 
3941
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3942
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3943
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3944
do
 
3945
  IFS=$as_save_IFS
 
3946
  test -z "$as_dir" && as_dir=.
 
3947
    for ac_prog in grep ggrep; do
 
3948
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3949
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3950
      as_fn_executable_p "$ac_path_GREP" || continue
 
3951
# Check for GNU ac_path_GREP and select it if it is found.
 
3952
  # Check for GNU $ac_path_GREP
 
3953
case `"$ac_path_GREP" --version 2>&1` in
 
3954
*GNU*)
 
3955
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3956
*)
 
3957
  ac_count=0
 
3958
  $as_echo_n 0123456789 >"conftest.in"
 
3959
  while :
 
3960
  do
 
3961
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3962
    mv "conftest.tmp" "conftest.in"
 
3963
    cp "conftest.in" "conftest.nl"
 
3964
    $as_echo 'GREP' >> "conftest.nl"
 
3965
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3966
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3967
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3968
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3969
      # Best one so far, save it but keep looking for a better one
 
3970
      ac_cv_path_GREP="$ac_path_GREP"
 
3971
      ac_path_GREP_max=$ac_count
 
3972
    fi
 
3973
    # 10*(2^10) chars as input seems more than enough
 
3974
    test $ac_count -gt 10 && break
 
3975
  done
 
3976
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3977
esac
 
3978
 
 
3979
      $ac_path_GREP_found && break 3
 
3980
    done
 
3981
  done
 
3982
  done
 
3983
IFS=$as_save_IFS
 
3984
  if test -z "$ac_cv_path_GREP"; then
 
3985
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3986
  fi
 
3987
else
 
3988
  ac_cv_path_GREP=$GREP
 
3989
fi
 
3990
 
 
3991
fi
 
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3993
$as_echo "$ac_cv_path_GREP" >&6; }
 
3994
 GREP="$ac_cv_path_GREP"
 
3995
 
 
3996
 
 
3997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3998
$as_echo_n "checking for egrep... " >&6; }
 
3999
if ${ac_cv_path_EGREP+:} false; then :
 
4000
  $as_echo_n "(cached) " >&6
 
4001
else
 
4002
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4003
   then ac_cv_path_EGREP="$GREP -E"
 
4004
   else
 
4005
     if test -z "$EGREP"; then
 
4006
  ac_path_EGREP_found=false
 
4007
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4008
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4010
do
 
4011
  IFS=$as_save_IFS
 
4012
  test -z "$as_dir" && as_dir=.
 
4013
    for ac_prog in egrep; do
 
4014
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4015
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4016
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4017
# Check for GNU ac_path_EGREP and select it if it is found.
 
4018
  # Check for GNU $ac_path_EGREP
 
4019
case `"$ac_path_EGREP" --version 2>&1` in
 
4020
*GNU*)
 
4021
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4022
*)
 
4023
  ac_count=0
 
4024
  $as_echo_n 0123456789 >"conftest.in"
 
4025
  while :
 
4026
  do
 
4027
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4028
    mv "conftest.tmp" "conftest.in"
 
4029
    cp "conftest.in" "conftest.nl"
 
4030
    $as_echo 'EGREP' >> "conftest.nl"
 
4031
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4032
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4033
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4034
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4035
      # Best one so far, save it but keep looking for a better one
 
4036
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4037
      ac_path_EGREP_max=$ac_count
 
4038
    fi
 
4039
    # 10*(2^10) chars as input seems more than enough
 
4040
    test $ac_count -gt 10 && break
 
4041
  done
 
4042
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4043
esac
 
4044
 
 
4045
      $ac_path_EGREP_found && break 3
 
4046
    done
 
4047
  done
 
4048
  done
 
4049
IFS=$as_save_IFS
 
4050
  if test -z "$ac_cv_path_EGREP"; then
 
4051
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4052
  fi
 
4053
else
 
4054
  ac_cv_path_EGREP=$EGREP
 
4055
fi
 
4056
 
 
4057
   fi
 
4058
fi
 
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4060
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4061
 EGREP="$ac_cv_path_EGREP"
 
4062
 
 
4063
 
 
4064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4065
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4066
if ${ac_cv_header_stdc+:} false; then :
 
4067
  $as_echo_n "(cached) " >&6
 
4068
else
 
4069
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4070
/* end confdefs.h.  */
 
4071
#include <stdlib.h>
 
4072
#include <stdarg.h>
 
4073
#include <string.h>
 
4074
#include <float.h>
 
4075
 
 
4076
int
 
4077
main ()
 
4078
{
 
4079
 
 
4080
  ;
 
4081
  return 0;
 
4082
}
 
4083
_ACEOF
 
4084
if ac_fn_c_try_compile "$LINENO"; then :
 
4085
  ac_cv_header_stdc=yes
 
4086
else
 
4087
  ac_cv_header_stdc=no
 
4088
fi
 
4089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4090
 
 
4091
if test $ac_cv_header_stdc = yes; then
 
4092
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4093
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4094
/* end confdefs.h.  */
 
4095
#include <string.h>
 
4096
 
 
4097
_ACEOF
 
4098
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4099
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4100
 
 
4101
else
 
4102
  ac_cv_header_stdc=no
 
4103
fi
 
4104
rm -f conftest*
 
4105
 
 
4106
fi
 
4107
 
 
4108
if test $ac_cv_header_stdc = yes; then
 
4109
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4110
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4111
/* end confdefs.h.  */
 
4112
#include <stdlib.h>
 
4113
 
 
4114
_ACEOF
 
4115
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4116
  $EGREP "free" >/dev/null 2>&1; then :
 
4117
 
 
4118
else
 
4119
  ac_cv_header_stdc=no
 
4120
fi
 
4121
rm -f conftest*
 
4122
 
 
4123
fi
 
4124
 
 
4125
if test $ac_cv_header_stdc = yes; then
 
4126
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4127
  if test "$cross_compiling" = yes; then :
3206
4128
  :
3207
4129
else
3208
 
  echo "$as_me: failed program was:" >&5
3209
 
sed 's/^/| /' conftest.$ac_ext >&5
3210
 
 
3211
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4130
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4131
/* end confdefs.h.  */
 
4132
#include <ctype.h>
 
4133
#include <stdlib.h>
 
4134
#if ((' ' & 0x0FF) == 0x020)
 
4135
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4136
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4137
#else
 
4138
# define ISLOWER(c) \
 
4139
                   (('a' <= (c) && (c) <= 'i') \
 
4140
                     || ('j' <= (c) && (c) <= 'r') \
 
4141
                     || ('s' <= (c) && (c) <= 'z'))
 
4142
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4143
#endif
 
4144
 
 
4145
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4146
int
 
4147
main ()
 
4148
{
 
4149
  int i;
 
4150
  for (i = 0; i < 256; i++)
 
4151
    if (XOR (islower (i), ISLOWER (i))
 
4152
        || toupper (i) != TOUPPER (i))
 
4153
      return 2;
 
4154
  return 0;
 
4155
}
 
4156
_ACEOF
 
4157
if ac_fn_c_try_run "$LINENO"; then :
 
4158
 
 
4159
else
 
4160
  ac_cv_header_stdc=no
 
4161
fi
 
4162
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4163
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4164
fi
 
4165
 
 
4166
fi
 
4167
fi
 
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4169
$as_echo "$ac_cv_header_stdc" >&6; }
 
4170
if test $ac_cv_header_stdc = yes; then
 
4171
 
 
4172
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4173
 
 
4174
fi
 
4175
 
 
4176
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4177
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4178
                  inttypes.h stdint.h unistd.h
 
4179
do :
 
4180
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4181
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4182
"
 
4183
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4184
  cat >>confdefs.h <<_ACEOF
 
4185
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4186
_ACEOF
 
4187
 
 
4188
fi
 
4189
 
 
4190
done
 
4191
 
 
4192
 
 
4193
 
 
4194
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4195
if test "x$ac_cv_header_minix_config_h" = xyes; then :
 
4196
  MINIX=yes
 
4197
else
 
4198
  MINIX=
 
4199
fi
 
4200
 
 
4201
 
 
4202
  if test "$MINIX" = yes; then
 
4203
 
 
4204
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4205
 
 
4206
 
 
4207
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4208
 
 
4209
 
 
4210
$as_echo "#define _MINIX 1" >>confdefs.h
 
4211
 
 
4212
  fi
 
4213
 
 
4214
 
 
4215
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4216
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4217
if ${ac_cv_safe_to_define___extensions__+:} false; then :
 
4218
  $as_echo_n "(cached) " >&6
 
4219
else
 
4220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4221
/* end confdefs.h.  */
 
4222
 
 
4223
#         define __EXTENSIONS__ 1
 
4224
          $ac_includes_default
 
4225
int
 
4226
main ()
 
4227
{
 
4228
 
 
4229
  ;
 
4230
  return 0;
 
4231
}
 
4232
_ACEOF
 
4233
if ac_fn_c_try_compile "$LINENO"; then :
 
4234
  ac_cv_safe_to_define___extensions__=yes
 
4235
else
 
4236
  ac_cv_safe_to_define___extensions__=no
 
4237
fi
 
4238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4239
fi
 
4240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4241
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4242
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4243
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4244
 
 
4245
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4246
 
 
4247
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4248
 
 
4249
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4250
 
 
4251
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4252
 
 
4253
 
 
4254
 
 
4255
 
 
4256
# Checks for programs.
 
4257
ac_ext=c
 
4258
ac_cpp='$CPP $CPPFLAGS'
 
4259
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4260
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4261
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4262
if test -n "$ac_tool_prefix"; then
 
4263
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4264
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4266
$as_echo_n "checking for $ac_word... " >&6; }
 
4267
if ${ac_cv_prog_CC+:} false; then :
 
4268
  $as_echo_n "(cached) " >&6
 
4269
else
 
4270
  if test -n "$CC"; then
 
4271
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4272
else
 
4273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4274
for as_dir in $PATH
 
4275
do
 
4276
  IFS=$as_save_IFS
 
4277
  test -z "$as_dir" && as_dir=.
 
4278
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4279
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4280
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4281
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4282
    break 2
 
4283
  fi
 
4284
done
 
4285
  done
 
4286
IFS=$as_save_IFS
 
4287
 
 
4288
fi
 
4289
fi
 
4290
CC=$ac_cv_prog_CC
 
4291
if test -n "$CC"; then
 
4292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4293
$as_echo "$CC" >&6; }
 
4294
else
 
4295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4296
$as_echo "no" >&6; }
 
4297
fi
 
4298
 
 
4299
 
 
4300
fi
 
4301
if test -z "$ac_cv_prog_CC"; then
 
4302
  ac_ct_CC=$CC
 
4303
  # Extract the first word of "gcc", so it can be a program name with args.
 
4304
set dummy gcc; ac_word=$2
 
4305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4306
$as_echo_n "checking for $ac_word... " >&6; }
 
4307
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4308
  $as_echo_n "(cached) " >&6
 
4309
else
 
4310
  if test -n "$ac_ct_CC"; then
 
4311
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4312
else
 
4313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4314
for as_dir in $PATH
 
4315
do
 
4316
  IFS=$as_save_IFS
 
4317
  test -z "$as_dir" && as_dir=.
 
4318
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4319
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4320
    ac_cv_prog_ac_ct_CC="gcc"
 
4321
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4322
    break 2
 
4323
  fi
 
4324
done
 
4325
  done
 
4326
IFS=$as_save_IFS
 
4327
 
 
4328
fi
 
4329
fi
 
4330
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4331
if test -n "$ac_ct_CC"; then
 
4332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4333
$as_echo "$ac_ct_CC" >&6; }
 
4334
else
 
4335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4336
$as_echo "no" >&6; }
 
4337
fi
 
4338
 
 
4339
  if test "x$ac_ct_CC" = x; then
 
4340
    CC=""
 
4341
  else
 
4342
    case $cross_compiling:$ac_tool_warned in
 
4343
yes:)
 
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4345
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4346
ac_tool_warned=yes ;;
 
4347
esac
 
4348
    CC=$ac_ct_CC
 
4349
  fi
 
4350
else
 
4351
  CC="$ac_cv_prog_CC"
 
4352
fi
 
4353
 
 
4354
if test -z "$CC"; then
 
4355
          if test -n "$ac_tool_prefix"; then
 
4356
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4357
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4359
$as_echo_n "checking for $ac_word... " >&6; }
 
4360
if ${ac_cv_prog_CC+:} false; then :
 
4361
  $as_echo_n "(cached) " >&6
 
4362
else
 
4363
  if test -n "$CC"; then
 
4364
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4365
else
 
4366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4367
for as_dir in $PATH
 
4368
do
 
4369
  IFS=$as_save_IFS
 
4370
  test -z "$as_dir" && as_dir=.
 
4371
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4372
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4373
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4374
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4375
    break 2
 
4376
  fi
 
4377
done
 
4378
  done
 
4379
IFS=$as_save_IFS
 
4380
 
 
4381
fi
 
4382
fi
 
4383
CC=$ac_cv_prog_CC
 
4384
if test -n "$CC"; then
 
4385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4386
$as_echo "$CC" >&6; }
 
4387
else
 
4388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4389
$as_echo "no" >&6; }
 
4390
fi
 
4391
 
 
4392
 
 
4393
  fi
 
4394
fi
 
4395
if test -z "$CC"; then
 
4396
  # Extract the first word of "cc", so it can be a program name with args.
 
4397
set dummy cc; ac_word=$2
 
4398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4399
$as_echo_n "checking for $ac_word... " >&6; }
 
4400
if ${ac_cv_prog_CC+:} false; then :
 
4401
  $as_echo_n "(cached) " >&6
 
4402
else
 
4403
  if test -n "$CC"; then
 
4404
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4405
else
 
4406
  ac_prog_rejected=no
 
4407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4408
for as_dir in $PATH
 
4409
do
 
4410
  IFS=$as_save_IFS
 
4411
  test -z "$as_dir" && as_dir=.
 
4412
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4413
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4414
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4415
       ac_prog_rejected=yes
 
4416
       continue
 
4417
     fi
 
4418
    ac_cv_prog_CC="cc"
 
4419
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4420
    break 2
 
4421
  fi
 
4422
done
 
4423
  done
 
4424
IFS=$as_save_IFS
 
4425
 
 
4426
if test $ac_prog_rejected = yes; then
 
4427
  # We found a bogon in the path, so make sure we never use it.
 
4428
  set dummy $ac_cv_prog_CC
 
4429
  shift
 
4430
  if test $# != 0; then
 
4431
    # We chose a different compiler from the bogus one.
 
4432
    # However, it has the same basename, so the bogon will be chosen
 
4433
    # first if we set CC to just the basename; use the full file name.
 
4434
    shift
 
4435
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4436
  fi
 
4437
fi
 
4438
fi
 
4439
fi
 
4440
CC=$ac_cv_prog_CC
 
4441
if test -n "$CC"; then
 
4442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4443
$as_echo "$CC" >&6; }
 
4444
else
 
4445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4446
$as_echo "no" >&6; }
 
4447
fi
 
4448
 
 
4449
 
 
4450
fi
 
4451
if test -z "$CC"; then
 
4452
  if test -n "$ac_tool_prefix"; then
 
4453
  for ac_prog in cl.exe
 
4454
  do
 
4455
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4456
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4458
$as_echo_n "checking for $ac_word... " >&6; }
 
4459
if ${ac_cv_prog_CC+:} false; then :
 
4460
  $as_echo_n "(cached) " >&6
 
4461
else
 
4462
  if test -n "$CC"; then
 
4463
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4464
else
 
4465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4466
for as_dir in $PATH
 
4467
do
 
4468
  IFS=$as_save_IFS
 
4469
  test -z "$as_dir" && as_dir=.
 
4470
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4471
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4472
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4474
    break 2
 
4475
  fi
 
4476
done
 
4477
  done
 
4478
IFS=$as_save_IFS
 
4479
 
 
4480
fi
 
4481
fi
 
4482
CC=$ac_cv_prog_CC
 
4483
if test -n "$CC"; then
 
4484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4485
$as_echo "$CC" >&6; }
 
4486
else
 
4487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4488
$as_echo "no" >&6; }
 
4489
fi
 
4490
 
 
4491
 
 
4492
    test -n "$CC" && break
 
4493
  done
 
4494
fi
 
4495
if test -z "$CC"; then
 
4496
  ac_ct_CC=$CC
 
4497
  for ac_prog in cl.exe
 
4498
do
 
4499
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4500
set dummy $ac_prog; ac_word=$2
 
4501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4502
$as_echo_n "checking for $ac_word... " >&6; }
 
4503
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4504
  $as_echo_n "(cached) " >&6
 
4505
else
 
4506
  if test -n "$ac_ct_CC"; then
 
4507
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4508
else
 
4509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4510
for as_dir in $PATH
 
4511
do
 
4512
  IFS=$as_save_IFS
 
4513
  test -z "$as_dir" && as_dir=.
 
4514
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4515
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4516
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4518
    break 2
 
4519
  fi
 
4520
done
 
4521
  done
 
4522
IFS=$as_save_IFS
 
4523
 
 
4524
fi
 
4525
fi
 
4526
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4527
if test -n "$ac_ct_CC"; then
 
4528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4529
$as_echo "$ac_ct_CC" >&6; }
 
4530
else
 
4531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4532
$as_echo "no" >&6; }
 
4533
fi
 
4534
 
 
4535
 
 
4536
  test -n "$ac_ct_CC" && break
 
4537
done
 
4538
 
 
4539
  if test "x$ac_ct_CC" = x; then
 
4540
    CC=""
 
4541
  else
 
4542
    case $cross_compiling:$ac_tool_warned in
 
4543
yes:)
 
4544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4545
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4546
ac_tool_warned=yes ;;
 
4547
esac
 
4548
    CC=$ac_ct_CC
 
4549
  fi
 
4550
fi
 
4551
 
 
4552
fi
 
4553
 
 
4554
 
 
4555
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4556
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4557
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4558
See \`config.log' for more details" "$LINENO" 5; }
 
4559
 
 
4560
# Provide some information about the compiler.
 
4561
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4562
set X $ac_compile
 
4563
ac_compiler=$2
 
4564
for ac_option in --version -v -V -qversion; do
 
4565
  { { ac_try="$ac_compiler $ac_option >&5"
 
4566
case "(($ac_try" in
 
4567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4568
  *) ac_try_echo=$ac_try;;
 
4569
esac
 
4570
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4571
$as_echo "$ac_try_echo"; } >&5
 
4572
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4573
  ac_status=$?
 
4574
  if test -s conftest.err; then
 
4575
    sed '10a\
 
4576
... rest of stderr output deleted ...
 
4577
         10q' conftest.err >conftest.er1
 
4578
    cat conftest.er1 >&5
 
4579
  fi
 
4580
  rm -f conftest.er1 conftest.err
 
4581
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4582
  test $ac_status = 0; }
 
4583
done
 
4584
 
 
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4586
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4587
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4588
  $as_echo_n "(cached) " >&6
 
4589
else
 
4590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4591
/* end confdefs.h.  */
 
4592
 
 
4593
int
 
4594
main ()
 
4595
{
 
4596
#ifndef __GNUC__
 
4597
       choke me
 
4598
#endif
 
4599
 
 
4600
  ;
 
4601
  return 0;
 
4602
}
 
4603
_ACEOF
 
4604
if ac_fn_c_try_compile "$LINENO"; then :
 
4605
  ac_compiler_gnu=yes
 
4606
else
 
4607
  ac_compiler_gnu=no
 
4608
fi
 
4609
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4610
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4611
 
 
4612
fi
 
4613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4614
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4615
if test $ac_compiler_gnu = yes; then
 
4616
  GCC=yes
 
4617
else
 
4618
  GCC=
 
4619
fi
 
4620
ac_test_CFLAGS=${CFLAGS+set}
 
4621
ac_save_CFLAGS=$CFLAGS
 
4622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4623
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4624
if ${ac_cv_prog_cc_g+:} false; then :
 
4625
  $as_echo_n "(cached) " >&6
 
4626
else
 
4627
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4628
   ac_c_werror_flag=yes
 
4629
   ac_cv_prog_cc_g=no
 
4630
   CFLAGS="-g"
 
4631
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4632
/* end confdefs.h.  */
 
4633
 
 
4634
int
 
4635
main ()
 
4636
{
 
4637
 
 
4638
  ;
 
4639
  return 0;
 
4640
}
 
4641
_ACEOF
 
4642
if ac_fn_c_try_compile "$LINENO"; then :
 
4643
  ac_cv_prog_cc_g=yes
 
4644
else
 
4645
  CFLAGS=""
 
4646
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4647
/* end confdefs.h.  */
 
4648
 
 
4649
int
 
4650
main ()
 
4651
{
 
4652
 
 
4653
  ;
 
4654
  return 0;
 
4655
}
 
4656
_ACEOF
 
4657
if ac_fn_c_try_compile "$LINENO"; then :
 
4658
 
 
4659
else
 
4660
  ac_c_werror_flag=$ac_save_c_werror_flag
3212
4661
         CFLAGS="-g"
3213
 
         cat >conftest.$ac_ext <<_ACEOF
3214
 
/* confdefs.h.  */
3215
 
_ACEOF
3216
 
cat confdefs.h >>conftest.$ac_ext
3217
 
cat >>conftest.$ac_ext <<_ACEOF
 
4662
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218
4663
/* end confdefs.h.  */
3219
4664
 
3220
4665
int
3225
4670
  return 0;
3226
4671
}
3227
4672
_ACEOF
3228
 
rm -f conftest.$ac_objext
3229
 
if { (ac_try="$ac_compile"
3230
 
case "(($ac_try" in
3231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232
 
  *) ac_try_echo=$ac_try;;
3233
 
esac
3234
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235
 
  (eval "$ac_compile") 2>conftest.er1
3236
 
  ac_status=$?
3237
 
  grep -v '^ *+' conftest.er1 >conftest.err
3238
 
  rm -f conftest.er1
3239
 
  cat conftest.err >&5
3240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241
 
  (exit $ac_status); } && {
3242
 
         test -z "$ac_c_werror_flag" ||
3243
 
         test ! -s conftest.err
3244
 
       } && test -s conftest.$ac_objext; then
 
4673
if ac_fn_c_try_compile "$LINENO"; then :
3245
4674
  ac_cv_prog_cc_g=yes
3246
 
else
3247
 
  echo "$as_me: failed program was:" >&5
3248
 
sed 's/^/| /' conftest.$ac_ext >&5
3249
 
 
3250
 
 
3251
 
fi
3252
 
 
3253
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254
 
fi
3255
 
 
3256
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257
 
fi
3258
 
 
 
4675
fi
 
4676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4677
fi
 
4678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4679
fi
3259
4680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260
4681
   ac_c_werror_flag=$ac_save_c_werror_flag
3261
4682
fi
3262
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4684
$as_echo "$ac_cv_prog_cc_g" >&6; }
3264
4685
if test "$ac_test_CFLAGS" = set; then
3265
4686
  CFLAGS=$ac_save_CFLAGS
3266
4687
elif test $ac_cv_prog_cc_g = yes; then
3276
4697
    CFLAGS=
3277
4698
  fi
3278
4699
fi
3279
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3280
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3281
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3282
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4701
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4702
if ${ac_cv_prog_cc_c89+:} false; then :
 
4703
  $as_echo_n "(cached) " >&6
3283
4704
else
3284
4705
  ac_cv_prog_cc_c89=no
3285
4706
ac_save_CC=$CC
3286
 
cat >conftest.$ac_ext <<_ACEOF
3287
 
/* confdefs.h.  */
3288
 
_ACEOF
3289
 
cat confdefs.h >>conftest.$ac_ext
3290
 
cat >>conftest.$ac_ext <<_ACEOF
 
4707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291
4708
/* end confdefs.h.  */
3292
4709
#include <stdarg.h>
3293
4710
#include <stdio.h>
3294
 
#include <sys/types.h>
3295
 
#include <sys/stat.h>
 
4711
struct stat;
3296
4712
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3297
4713
struct buf { int x; };
3298
4714
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344
4760
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345
4761
do
3346
4762
  CC="$ac_save_CC $ac_arg"
3347
 
  rm -f conftest.$ac_objext
3348
 
if { (ac_try="$ac_compile"
3349
 
case "(($ac_try" in
3350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351
 
  *) ac_try_echo=$ac_try;;
3352
 
esac
3353
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354
 
  (eval "$ac_compile") 2>conftest.er1
3355
 
  ac_status=$?
3356
 
  grep -v '^ *+' conftest.er1 >conftest.err
3357
 
  rm -f conftest.er1
3358
 
  cat conftest.err >&5
3359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360
 
  (exit $ac_status); } && {
3361
 
         test -z "$ac_c_werror_flag" ||
3362
 
         test ! -s conftest.err
3363
 
       } && test -s conftest.$ac_objext; then
 
4763
  if ac_fn_c_try_compile "$LINENO"; then :
3364
4764
  ac_cv_prog_cc_c89=$ac_arg
3365
 
else
3366
 
  echo "$as_me: failed program was:" >&5
3367
 
sed 's/^/| /' conftest.$ac_ext >&5
3368
 
 
3369
 
 
3370
4765
fi
3371
 
 
3372
4766
rm -f core conftest.err conftest.$ac_objext
3373
4767
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3374
4768
done
3379
4773
# AC_CACHE_VAL
3380
4774
case "x$ac_cv_prog_cc_c89" in
3381
4775
  x)
3382
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3383
 
echo "${ECHO_T}none needed" >&6; } ;;
 
4776
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4777
$as_echo "none needed" >&6; } ;;
3384
4778
  xno)
3385
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3386
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
4779
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4780
$as_echo "unsupported" >&6; } ;;
3387
4781
  *)
3388
4782
    CC="$CC $ac_cv_prog_cc_c89"
3389
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3390
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4783
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4784
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391
4785
esac
 
4786
if test "x$ac_cv_prog_cc_c89" != xno; then :
3392
4787
 
 
4788
fi
3393
4789
 
3394
4790
ac_ext=c
3395
4791
ac_cpp='$CPP $CPPFLAGS'
3396
4792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397
4793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398
4794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
 
DEPDIR="${am__leading_dot}deps"
3400
 
 
3401
 
ac_config_commands="$ac_config_commands depfiles"
3402
 
 
3403
 
 
3404
 
am_make=${MAKE-make}
3405
 
cat > confinc << 'END'
3406
 
am__doit:
3407
 
        @echo done
3408
 
.PHONY: am__doit
3409
 
END
3410
 
# If we don't find an include directive, just comment out the code.
3411
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3412
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3413
 
am__include="#"
3414
 
am__quote=
3415
 
_am_result=none
3416
 
# First try GNU make style include.
3417
 
echo "include confinc" > confmf
3418
 
# We grep out `Entering directory' and `Leaving directory'
3419
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3420
 
# In particular we don't look at `^make:' because GNU make might
3421
 
# be invoked under some other name (usually "gmake"), in which
3422
 
# case it prints its new name instead of `make'.
3423
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3424
 
   am__include=include
3425
 
   am__quote=
3426
 
   _am_result=GNU
3427
 
fi
3428
 
# Now try BSD make style include.
3429
 
if test "$am__include" = "#"; then
3430
 
   echo '.include "confinc"' > confmf
3431
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3432
 
      am__include=.include
3433
 
      am__quote="\""
3434
 
      _am_result=BSD
3435
 
   fi
3436
 
fi
3437
 
 
3438
 
 
3439
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3440
 
echo "${ECHO_T}$_am_result" >&6; }
3441
 
rm -f confinc confmf
3442
 
 
3443
 
# Check whether --enable-dependency-tracking was given.
3444
 
if test "${enable_dependency_tracking+set}" = set; then
3445
 
  enableval=$enable_dependency_tracking;
3446
 
fi
3447
 
 
3448
 
if test "x$enable_dependency_tracking" != xno; then
3449
 
  am_depcomp="$ac_aux_dir/depcomp"
3450
 
  AMDEPBACKSLASH='\'
3451
 
fi
3452
 
 if test "x$enable_dependency_tracking" != xno; then
3453
 
  AMDEP_TRUE=
3454
 
  AMDEP_FALSE='#'
3455
 
else
3456
 
  AMDEP_TRUE='#'
3457
 
  AMDEP_FALSE=
3458
 
fi
3459
 
 
3460
 
 
3461
4795
 
3462
4796
depcc="$CC"   am_compiler_list=
3463
4797
 
3464
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3465
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3466
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3467
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4799
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4800
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4801
  $as_echo_n "(cached) " >&6
3468
4802
else
3469
4803
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3470
4804
  # We make a subdir and do the tests there.  Otherwise we can end up
3472
4806
  # instance it was reported that on HP-UX the gcc test will end up
3473
4807
  # making a dummy file named `D' -- because `-MD' means `put the output
3474
4808
  # in D'.
 
4809
  rm -rf conftest.dir
3475
4810
  mkdir conftest.dir
3476
4811
  # Copy depcomp to subdir because otherwise we won't find it if we're
3477
4812
  # using a relative directory.
3489
4824
  if test "$am_compiler_list" = ""; then
3490
4825
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3491
4826
  fi
 
4827
  am__universal=false
 
4828
  case " $depcc " in #(
 
4829
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4830
     esac
 
4831
 
3492
4832
  for depmode in $am_compiler_list; do
3493
4833
    # Setup a source with many dependencies, because some compilers
3494
4834
    # like to wrap large dependency lists on column 80 (with \), and
3506
4846
    done
3507
4847
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3508
4848
 
 
4849
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4850
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4851
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4852
    # versions had trouble with output in subdirs
 
4853
    am__obj=sub/conftest.${OBJEXT-o}
 
4854
    am__minus_obj="-o $am__obj"
3509
4855
    case $depmode in
 
4856
    gcc)
 
4857
      # This depmode causes a compiler race in universal mode.
 
4858
      test "$am__universal" = false || continue
 
4859
      ;;
3510
4860
    nosideeffect)
3511
4861
      # after this tag, mechanisms are not by side-effect, so they'll
3512
4862
      # only be used when explicitly requested
3516
4866
        break
3517
4867
      fi
3518
4868
      ;;
 
4869
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4870
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4871
      # not run yet.  These depmodes are late enough in the game, and
 
4872
      # so weak that their functioning should not be impacted.
 
4873
      am__obj=conftest.${OBJEXT-o}
 
4874
      am__minus_obj=
 
4875
      ;;
3519
4876
    none) break ;;
3520
4877
    esac
3521
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3522
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3523
 
    # handle `-M -o', and we need to detect this.
3524
4878
    if depmode=$depmode \
3525
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4879
       source=sub/conftest.c object=$am__obj \
3526
4880
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3527
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4881
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3528
4882
         >/dev/null 2>conftest.err &&
3529
4883
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3530
4884
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3531
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4885
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3532
4886
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3533
4887
      # icc doesn't choke on unknown options, it will just issue warnings
3534
4888
      # or remarks (even with -Werror).  So we grep stderr for any message
3552
4906
fi
3553
4907
 
3554
4908
fi
3555
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3556
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4910
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3557
4911
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3558
4912
 
3559
4913
 if
3567
4921
fi
3568
4922
 
3569
4923
 
3570
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3571
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4925
$as_echo_n "checking whether ln -s works... " >&6; }
3572
4926
LN_S=$as_ln_s
3573
4927
if test "$LN_S" = "ln -s"; then
3574
 
  { echo "$as_me:$LINENO: result: yes" >&5
3575
 
echo "${ECHO_T}yes" >&6; }
3576
 
else
3577
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3578
 
echo "${ECHO_T}no, using $LN_S" >&6; }
3579
 
fi
3580
 
 
3581
 
# Check whether --enable-shared was given.
3582
 
if test "${enable_shared+set}" = set; then
3583
 
  enableval=$enable_shared; p=${PACKAGE-default}
3584
 
    case $enableval in
3585
 
    yes) enable_shared=yes ;;
3586
 
    no) enable_shared=no ;;
3587
 
    *)
3588
 
      enable_shared=no
3589
 
      # Look at the argument we got.  We use all the common list separators.
3590
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591
 
      for pkg in $enableval; do
3592
 
        IFS="$lt_save_ifs"
3593
 
        if test "X$pkg" = "X$p"; then
3594
 
          enable_shared=yes
3595
 
        fi
3596
 
      done
3597
 
      IFS="$lt_save_ifs"
3598
 
      ;;
3599
 
    esac
3600
 
else
3601
 
  enable_shared=yes
3602
 
fi
3603
 
 
3604
 
 
3605
 
# Check whether --enable-static was given.
3606
 
if test "${enable_static+set}" = set; then
3607
 
  enableval=$enable_static; p=${PACKAGE-default}
3608
 
    case $enableval in
3609
 
    yes) enable_static=yes ;;
3610
 
    no) enable_static=no ;;
3611
 
    *)
3612
 
     enable_static=no
3613
 
      # Look at the argument we got.  We use all the common list separators.
3614
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3615
 
      for pkg in $enableval; do
3616
 
        IFS="$lt_save_ifs"
3617
 
        if test "X$pkg" = "X$p"; then
3618
 
          enable_static=yes
3619
 
        fi
3620
 
      done
3621
 
      IFS="$lt_save_ifs"
3622
 
      ;;
3623
 
    esac
3624
 
else
3625
 
  enable_static=yes
3626
 
fi
3627
 
 
3628
 
 
3629
 
# Check whether --enable-fast-install was given.
3630
 
if test "${enable_fast_install+set}" = set; then
3631
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
3632
 
    case $enableval in
3633
 
    yes) enable_fast_install=yes ;;
3634
 
    no) enable_fast_install=no ;;
3635
 
    *)
3636
 
      enable_fast_install=no
3637
 
      # Look at the argument we got.  We use all the common list separators.
3638
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3639
 
      for pkg in $enableval; do
3640
 
        IFS="$lt_save_ifs"
3641
 
        if test "X$pkg" = "X$p"; then
3642
 
          enable_fast_install=yes
3643
 
        fi
3644
 
      done
3645
 
      IFS="$lt_save_ifs"
3646
 
      ;;
3647
 
    esac
3648
 
else
3649
 
  enable_fast_install=yes
3650
 
fi
3651
 
 
 
4928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4929
$as_echo "yes" >&6; }
 
4930
else
 
4931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4932
$as_echo "no, using $LN_S" >&6; }
 
4933
fi
 
4934
 
 
4935
case `pwd` in
 
4936
  *\ * | *\     *)
 
4937
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4938
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4939
esac
 
4940
 
 
4941
 
 
4942
 
 
4943
macro_version='2.4.2'
 
4944
macro_revision='1.3337'
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
 
4957
 
 
4958
ltmain="$ac_aux_dir/ltmain.sh"
3652
4959
 
3653
4960
# Make sure we can run config.sub.
3654
4961
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3655
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3656
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3657
 
   { (exit 1); exit 1; }; }
 
4962
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3658
4963
 
3659
 
{ echo "$as_me:$LINENO: checking build system type" >&5
3660
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3661
 
if test "${ac_cv_build+set}" = set; then
3662
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4965
$as_echo_n "checking build system type... " >&6; }
 
4966
if ${ac_cv_build+:} false; then :
 
4967
  $as_echo_n "(cached) " >&6
3663
4968
else
3664
4969
  ac_build_alias=$build_alias
3665
4970
test "x$ac_build_alias" = x &&
3666
4971
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3667
4972
test "x$ac_build_alias" = x &&
3668
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3669
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3670
 
   { (exit 1); exit 1; }; }
 
4973
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3671
4974
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3672
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3673
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3674
 
   { (exit 1); exit 1; }; }
 
4975
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3675
4976
 
3676
4977
fi
3677
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3678
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4979
$as_echo "$ac_cv_build" >&6; }
3679
4980
case $ac_cv_build in
3680
4981
*-*-*) ;;
3681
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3682
 
echo "$as_me: error: invalid value of canonical build" >&2;}
3683
 
   { (exit 1); exit 1; }; };;
 
4982
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3684
4983
esac
3685
4984
build=$ac_cv_build
3686
4985
ac_save_IFS=$IFS; IFS='-'
3696
4995
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3697
4996
 
3698
4997
 
3699
 
{ echo "$as_me:$LINENO: checking host system type" >&5
3700
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3701
 
if test "${ac_cv_host+set}" = set; then
3702
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4999
$as_echo_n "checking host system type... " >&6; }
 
5000
if ${ac_cv_host+:} false; then :
 
5001
  $as_echo_n "(cached) " >&6
3703
5002
else
3704
5003
  if test "x$host_alias" = x; then
3705
5004
  ac_cv_host=$ac_cv_build
3706
5005
else
3707
5006
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3708
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3709
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3710
 
   { (exit 1); exit 1; }; }
 
5007
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3711
5008
fi
3712
5009
 
3713
5010
fi
3714
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3715
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
5011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5012
$as_echo "$ac_cv_host" >&6; }
3716
5013
case $ac_cv_host in
3717
5014
*-*-*) ;;
3718
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3719
 
echo "$as_me: error: invalid value of canonical host" >&2;}
3720
 
   { (exit 1); exit 1; }; };;
 
5015
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3721
5016
esac
3722
5017
host=$ac_cv_host
3723
5018
ac_save_IFS=$IFS; IFS='-'
3733
5028
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3734
5029
 
3735
5030
 
3736
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3737
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3738
 
if test "${lt_cv_path_SED+set}" = set; then
3739
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3740
 
else
3741
 
  # Loop through the user's path and test for sed and gsed.
3742
 
# Then use that list of sed's as ones to test for truncation.
3743
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5031
# Backslashify metacharacters that are still active within
 
5032
# double-quoted strings.
 
5033
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
5034
 
 
5035
# Same as above, but do not quote variable references.
 
5036
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
5037
 
 
5038
# Sed substitution to delay expansion of an escaped shell variable in a
 
5039
# double_quote_subst'ed string.
 
5040
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5041
 
 
5042
# Sed substitution to delay expansion of an escaped single quote.
 
5043
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5044
 
 
5045
# Sed substitution to avoid accidental globbing in evaled expressions
 
5046
no_glob_subst='s/\*/\\\*/g'
 
5047
 
 
5048
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5049
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5050
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5051
 
 
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5053
$as_echo_n "checking how to print strings... " >&6; }
 
5054
# Test print first, because it will be a builtin if present.
 
5055
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5056
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5057
  ECHO='print -r --'
 
5058
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5059
  ECHO='printf %s\n'
 
5060
else
 
5061
  # Use this function as a fallback that always works.
 
5062
  func_fallback_echo ()
 
5063
  {
 
5064
    eval 'cat <<_LTECHO_EOF
 
5065
$1
 
5066
_LTECHO_EOF'
 
5067
  }
 
5068
  ECHO='func_fallback_echo'
 
5069
fi
 
5070
 
 
5071
# func_echo_all arg...
 
5072
# Invoke $ECHO with all args, space-separated.
 
5073
func_echo_all ()
 
5074
{
 
5075
    $ECHO ""
 
5076
}
 
5077
 
 
5078
case "$ECHO" in
 
5079
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5080
$as_echo "printf" >&6; } ;;
 
5081
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5082
$as_echo "print -r" >&6; } ;;
 
5083
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5084
$as_echo "cat" >&6; } ;;
 
5085
esac
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5101
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5102
if ${ac_cv_path_SED+:} false; then :
 
5103
  $as_echo_n "(cached) " >&6
 
5104
else
 
5105
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5106
     for ac_i in 1 2 3 4 5 6 7; do
 
5107
       ac_script="$ac_script$as_nl$ac_script"
 
5108
     done
 
5109
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5110
     { ac_script=; unset ac_script;}
 
5111
     if test -z "$SED"; then
 
5112
  ac_path_SED_found=false
 
5113
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5114
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744
5115
for as_dir in $PATH
3745
5116
do
3746
5117
  IFS=$as_save_IFS
3747
5118
  test -z "$as_dir" && as_dir=.
3748
 
  for lt_ac_prog in sed gsed; do
 
5119
    for ac_prog in sed gsed; do
3749
5120
    for ac_exec_ext in '' $ac_executable_extensions; do
3750
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3751
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3752
 
      fi
3753
 
    done
3754
 
  done
3755
 
done
3756
 
IFS=$as_save_IFS
3757
 
lt_ac_max=0
3758
 
lt_ac_count=0
3759
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3760
 
# along with /bin/sed that truncates output.
3761
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3762
 
  test ! -f $lt_ac_sed && continue
3763
 
  cat /dev/null > conftest.in
3764
 
  lt_ac_count=0
3765
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3766
 
  # Check for GNU sed and select it if it is found.
3767
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3768
 
    lt_cv_path_SED=$lt_ac_sed
3769
 
    break
3770
 
  fi
3771
 
  while true; do
3772
 
    cat conftest.in conftest.in >conftest.tmp
3773
 
    mv conftest.tmp conftest.in
3774
 
    cp conftest.in conftest.nl
3775
 
    echo >>conftest.nl
3776
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3777
 
    cmp -s conftest.out conftest.nl || break
3778
 
    # 10000 chars as input seems more than enough
3779
 
    test $lt_ac_count -gt 10 && break
3780
 
    lt_ac_count=`expr $lt_ac_count + 1`
3781
 
    if test $lt_ac_count -gt $lt_ac_max; then
3782
 
      lt_ac_max=$lt_ac_count
3783
 
      lt_cv_path_SED=$lt_ac_sed
3784
 
    fi
3785
 
  done
3786
 
done
3787
 
 
3788
 
fi
3789
 
 
3790
 
SED=$lt_cv_path_SED
3791
 
 
3792
 
{ echo "$as_me:$LINENO: result: $SED" >&5
3793
 
echo "${ECHO_T}$SED" >&6; }
3794
 
 
3795
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3796
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3797
 
if test "${ac_cv_path_GREP+set}" = set; then
3798
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3799
 
else
3800
 
  # Extract the first word of "grep ggrep" to use in msg output
3801
 
if test -z "$GREP"; then
3802
 
set dummy grep ggrep; ac_prog_name=$2
3803
 
if test "${ac_cv_path_GREP+set}" = set; then
3804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3805
 
else
3806
 
  ac_path_GREP_found=false
3807
 
# Loop through the user's path and test for each of PROGNAME-LIST
3808
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810
 
do
3811
 
  IFS=$as_save_IFS
3812
 
  test -z "$as_dir" && as_dir=.
3813
 
  for ac_prog in grep ggrep; do
3814
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3815
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3816
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3817
 
    # Check for GNU ac_path_GREP and select it if it is found.
3818
 
  # Check for GNU $ac_path_GREP
3819
 
case `"$ac_path_GREP" --version 2>&1` in
 
5121
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5122
      as_fn_executable_p "$ac_path_SED" || continue
 
5123
# Check for GNU ac_path_SED and select it if it is found.
 
5124
  # Check for GNU $ac_path_SED
 
5125
case `"$ac_path_SED" --version 2>&1` in
3820
5126
*GNU*)
3821
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5127
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3822
5128
*)
3823
5129
  ac_count=0
3824
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5130
  $as_echo_n 0123456789 >"conftest.in"
3825
5131
  while :
3826
5132
  do
3827
5133
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3828
5134
    mv "conftest.tmp" "conftest.in"
3829
5135
    cp "conftest.in" "conftest.nl"
3830
 
    echo 'GREP' >> "conftest.nl"
3831
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5136
    $as_echo '' >> "conftest.nl"
 
5137
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3832
5138
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3833
 
    ac_count=`expr $ac_count + 1`
3834
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5139
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5140
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3835
5141
      # Best one so far, save it but keep looking for a better one
3836
 
      ac_cv_path_GREP="$ac_path_GREP"
3837
 
      ac_path_GREP_max=$ac_count
 
5142
      ac_cv_path_SED="$ac_path_SED"
 
5143
      ac_path_SED_max=$ac_count
3838
5144
    fi
3839
5145
    # 10*(2^10) chars as input seems more than enough
3840
5146
    test $ac_count -gt 10 && break
3842
5148
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843
5149
esac
3844
5150
 
3845
 
 
3846
 
    $ac_path_GREP_found && break 3
3847
 
  done
3848
 
done
3849
 
 
3850
 
done
 
5151
      $ac_path_SED_found && break 3
 
5152
    done
 
5153
  done
 
5154
  done
3851
5155
IFS=$as_save_IFS
3852
 
 
3853
 
 
3854
 
fi
3855
 
 
3856
 
GREP="$ac_cv_path_GREP"
3857
 
if test -z "$GREP"; then
3858
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3859
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3860
 
   { (exit 1); exit 1; }; }
3861
 
fi
3862
 
 
3863
 
else
3864
 
  ac_cv_path_GREP=$GREP
3865
 
fi
3866
 
 
3867
 
 
3868
 
fi
3869
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3870
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3871
 
 GREP="$ac_cv_path_GREP"
3872
 
 
3873
 
 
3874
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3875
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3876
 
if test "${ac_cv_path_EGREP+set}" = set; then
3877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3878
 
else
3879
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3880
 
   then ac_cv_path_EGREP="$GREP -E"
 
5156
  if test -z "$ac_cv_path_SED"; then
 
5157
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5158
  fi
 
5159
else
 
5160
  ac_cv_path_SED=$SED
 
5161
fi
 
5162
 
 
5163
fi
 
5164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5165
$as_echo "$ac_cv_path_SED" >&6; }
 
5166
 SED="$ac_cv_path_SED"
 
5167
  rm -f conftest.sed
 
5168
 
 
5169
test -z "$SED" && SED=sed
 
5170
Xsed="$SED -e 1s/^X//"
 
5171
 
 
5172
 
 
5173
 
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5183
$as_echo_n "checking for fgrep... " >&6; }
 
5184
if ${ac_cv_path_FGREP+:} false; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5188
   then ac_cv_path_FGREP="$GREP -F"
3881
5189
   else
3882
 
     # Extract the first word of "egrep" to use in msg output
3883
 
if test -z "$EGREP"; then
3884
 
set dummy egrep; ac_prog_name=$2
3885
 
if test "${ac_cv_path_EGREP+set}" = set; then
3886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3887
 
else
3888
 
  ac_path_EGREP_found=false
3889
 
# Loop through the user's path and test for each of PROGNAME-LIST
3890
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5190
     if test -z "$FGREP"; then
 
5191
  ac_path_FGREP_found=false
 
5192
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891
5194
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892
5195
do
3893
5196
  IFS=$as_save_IFS
3894
5197
  test -z "$as_dir" && as_dir=.
3895
 
  for ac_prog in egrep; do
3896
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3897
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3898
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3899
 
    # Check for GNU ac_path_EGREP and select it if it is found.
3900
 
  # Check for GNU $ac_path_EGREP
3901
 
case `"$ac_path_EGREP" --version 2>&1` in
 
5198
    for ac_prog in fgrep; do
 
5199
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5200
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5201
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5202
# Check for GNU ac_path_FGREP and select it if it is found.
 
5203
  # Check for GNU $ac_path_FGREP
 
5204
case `"$ac_path_FGREP" --version 2>&1` in
3902
5205
*GNU*)
3903
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5206
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3904
5207
*)
3905
5208
  ac_count=0
3906
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5209
  $as_echo_n 0123456789 >"conftest.in"
3907
5210
  while :
3908
5211
  do
3909
5212
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3910
5213
    mv "conftest.tmp" "conftest.in"
3911
5214
    cp "conftest.in" "conftest.nl"
3912
 
    echo 'EGREP' >> "conftest.nl"
3913
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5215
    $as_echo 'FGREP' >> "conftest.nl"
 
5216
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914
5217
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915
 
    ac_count=`expr $ac_count + 1`
3916
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5218
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5219
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3917
5220
      # Best one so far, save it but keep looking for a better one
3918
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3919
 
      ac_path_EGREP_max=$ac_count
 
5221
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5222
      ac_path_FGREP_max=$ac_count
3920
5223
    fi
3921
5224
    # 10*(2^10) chars as input seems more than enough
3922
5225
    test $ac_count -gt 10 && break
3924
5227
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925
5228
esac
3926
5229
 
3927
 
 
3928
 
    $ac_path_EGREP_found && break 3
3929
 
  done
3930
 
done
3931
 
 
3932
 
done
 
5230
      $ac_path_FGREP_found && break 3
 
5231
    done
 
5232
  done
 
5233
  done
3933
5234
IFS=$as_save_IFS
3934
 
 
3935
 
 
3936
 
fi
3937
 
 
3938
 
EGREP="$ac_cv_path_EGREP"
3939
 
if test -z "$EGREP"; then
3940
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942
 
   { (exit 1); exit 1; }; }
3943
 
fi
3944
 
 
 
5235
  if test -z "$ac_cv_path_FGREP"; then
 
5236
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5237
  fi
3945
5238
else
3946
 
  ac_cv_path_EGREP=$EGREP
 
5239
  ac_cv_path_FGREP=$FGREP
3947
5240
fi
3948
5241
 
3949
 
 
3950
5242
   fi
3951
5243
fi
3952
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3953
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3954
 
 EGREP="$ac_cv_path_EGREP"
 
5244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5245
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5246
 FGREP="$ac_cv_path_FGREP"
 
5247
 
 
5248
 
 
5249
test -z "$GREP" && GREP=grep
 
5250
 
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
3955
5266
 
3956
5267
 
3957
5268
 
3958
5269
# Check whether --with-gnu-ld was given.
3959
 
if test "${with_gnu_ld+set}" = set; then
 
5270
if test "${with_gnu_ld+set}" = set; then :
3960
5271
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3961
5272
else
3962
5273
  with_gnu_ld=no
3965
5276
ac_prog=ld
3966
5277
if test "$GCC" = yes; then
3967
5278
  # Check if gcc -print-prog-name=ld gives a path.
3968
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3969
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
5279
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5280
$as_echo_n "checking for ld used by $CC... " >&6; }
3970
5281
  case $host in
3971
5282
  *-*-mingw*)
3972
5283
    # gcc leaves a trailing carriage return which upsets mingw
3979
5290
    [\\/]* | ?:[\\/]*)
3980
5291
      re_direlt='/[^/][^/]*/\.\./'
3981
5292
      # Canonicalize the pathname of ld
3982
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3983
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3984
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5293
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5294
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5295
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3985
5296
      done
3986
5297
      test -z "$LD" && LD="$ac_prog"
3987
5298
      ;;
3995
5306
    ;;
3996
5307
  esac
3997
5308
elif test "$with_gnu_ld" = yes; then
3998
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3999
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
5309
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5310
$as_echo_n "checking for GNU ld... " >&6; }
4000
5311
else
4001
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4002
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
5312
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5313
$as_echo_n "checking for non-GNU ld... " >&6; }
4003
5314
fi
4004
 
if test "${lt_cv_path_LD+set}" = set; then
4005
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5315
if ${lt_cv_path_LD+:} false; then :
 
5316
  $as_echo_n "(cached) " >&6
4006
5317
else
4007
5318
  if test -z "$LD"; then
4008
5319
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4032
5343
 
4033
5344
LD="$lt_cv_path_LD"
4034
5345
if test -n "$LD"; then
4035
 
  { echo "$as_me:$LINENO: result: $LD" >&5
4036
 
echo "${ECHO_T}$LD" >&6; }
 
5346
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5347
$as_echo "$LD" >&6; }
4037
5348
else
4038
 
  { echo "$as_me:$LINENO: result: no" >&5
4039
 
echo "${ECHO_T}no" >&6; }
 
5349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5350
$as_echo "no" >&6; }
4040
5351
fi
4041
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4042
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4043
 
   { (exit 1); exit 1; }; }
4044
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4045
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4046
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5352
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5354
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5355
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5356
  $as_echo_n "(cached) " >&6
4048
5357
else
4049
5358
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4050
5359
case `$LD -v 2>&1 </dev/null` in
4056
5365
  ;;
4057
5366
esac
4058
5367
fi
4059
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4060
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
5368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5369
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4061
5370
with_gnu_ld=$lt_cv_prog_gnu_ld
4062
5371
 
4063
5372
 
4064
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4065
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4066
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4068
 
else
4069
 
  lt_cv_ld_reload_flag='-r'
4070
 
fi
4071
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4072
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4073
 
reload_flag=$lt_cv_ld_reload_flag
4074
 
case $reload_flag in
4075
 
"" | " "*) ;;
4076
 
*) reload_flag=" $reload_flag" ;;
4077
 
esac
4078
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4079
 
case $host_os in
4080
 
  darwin*)
4081
 
    if test "$GCC" = yes; then
4082
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4083
 
    else
4084
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4085
 
    fi
4086
 
    ;;
4087
 
esac
4088
 
 
4089
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4090
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4091
 
if test "${lt_cv_path_NM+set}" = set; then
4092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5381
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5382
if ${lt_cv_path_NM+:} false; then :
 
5383
  $as_echo_n "(cached) " >&6
4093
5384
else
4094
5385
  if test -n "$NM"; then
4095
5386
  # Let the user override the test.
4132
5423
    done
4133
5424
    IFS="$lt_save_ifs"
4134
5425
  done
4135
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4136
 
fi
4137
 
fi
4138
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4139
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4140
 
NM="$lt_cv_path_NM"
4141
 
 
4142
 
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4143
 
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4144
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4145
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5426
  : ${lt_cv_path_NM=no}
 
5427
fi
 
5428
fi
 
5429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5430
$as_echo "$lt_cv_path_NM" >&6; }
 
5431
if test "$lt_cv_path_NM" != "no"; then
 
5432
  NM="$lt_cv_path_NM"
 
5433
else
 
5434
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5435
  if test -n "$DUMPBIN"; then :
 
5436
    # Let the user override the test.
 
5437
  else
 
5438
    if test -n "$ac_tool_prefix"; then
 
5439
  for ac_prog in dumpbin "link -dump"
 
5440
  do
 
5441
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5442
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5444
$as_echo_n "checking for $ac_word... " >&6; }
 
5445
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5446
  $as_echo_n "(cached) " >&6
 
5447
else
 
5448
  if test -n "$DUMPBIN"; then
 
5449
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5450
else
 
5451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5452
for as_dir in $PATH
 
5453
do
 
5454
  IFS=$as_save_IFS
 
5455
  test -z "$as_dir" && as_dir=.
 
5456
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5457
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5458
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5460
    break 2
 
5461
  fi
 
5462
done
 
5463
  done
 
5464
IFS=$as_save_IFS
 
5465
 
 
5466
fi
 
5467
fi
 
5468
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5469
if test -n "$DUMPBIN"; then
 
5470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5471
$as_echo "$DUMPBIN" >&6; }
 
5472
else
 
5473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5474
$as_echo "no" >&6; }
 
5475
fi
 
5476
 
 
5477
 
 
5478
    test -n "$DUMPBIN" && break
 
5479
  done
 
5480
fi
 
5481
if test -z "$DUMPBIN"; then
 
5482
  ac_ct_DUMPBIN=$DUMPBIN
 
5483
  for ac_prog in dumpbin "link -dump"
 
5484
do
 
5485
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5486
set dummy $ac_prog; ac_word=$2
 
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5488
$as_echo_n "checking for $ac_word... " >&6; }
 
5489
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5490
  $as_echo_n "(cached) " >&6
 
5491
else
 
5492
  if test -n "$ac_ct_DUMPBIN"; then
 
5493
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5494
else
 
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5496
for as_dir in $PATH
 
5497
do
 
5498
  IFS=$as_save_IFS
 
5499
  test -z "$as_dir" && as_dir=.
 
5500
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5501
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5502
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5503
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5504
    break 2
 
5505
  fi
 
5506
done
 
5507
  done
 
5508
IFS=$as_save_IFS
 
5509
 
 
5510
fi
 
5511
fi
 
5512
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5513
if test -n "$ac_ct_DUMPBIN"; then
 
5514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5515
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5516
else
 
5517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5518
$as_echo "no" >&6; }
 
5519
fi
 
5520
 
 
5521
 
 
5522
  test -n "$ac_ct_DUMPBIN" && break
 
5523
done
 
5524
 
 
5525
  if test "x$ac_ct_DUMPBIN" = x; then
 
5526
    DUMPBIN=":"
 
5527
  else
 
5528
    case $cross_compiling:$ac_tool_warned in
 
5529
yes:)
 
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5531
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5532
ac_tool_warned=yes ;;
 
5533
esac
 
5534
    DUMPBIN=$ac_ct_DUMPBIN
 
5535
  fi
 
5536
fi
 
5537
 
 
5538
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5539
    *COFF*)
 
5540
      DUMPBIN="$DUMPBIN -symbols"
 
5541
      ;;
 
5542
    *)
 
5543
      DUMPBIN=:
 
5544
      ;;
 
5545
    esac
 
5546
  fi
 
5547
 
 
5548
  if test "$DUMPBIN" != ":"; then
 
5549
    NM="$DUMPBIN"
 
5550
  fi
 
5551
fi
 
5552
test -z "$NM" && NM=nm
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5560
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5561
if ${lt_cv_nm_interface+:} false; then :
 
5562
  $as_echo_n "(cached) " >&6
 
5563
else
 
5564
  lt_cv_nm_interface="BSD nm"
 
5565
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5566
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5567
  (eval "$ac_compile" 2>conftest.err)
 
5568
  cat conftest.err >&5
 
5569
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5570
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5571
  cat conftest.err >&5
 
5572
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5573
  cat conftest.out >&5
 
5574
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5575
    lt_cv_nm_interface="MS dumpbin"
 
5576
  fi
 
5577
  rm -f conftest*
 
5578
fi
 
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5580
$as_echo "$lt_cv_nm_interface" >&6; }
 
5581
 
 
5582
# find the maximum length of command line arguments
 
5583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5584
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5585
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5586
  $as_echo_n "(cached) " >&6
 
5587
else
 
5588
    i=0
 
5589
  teststring="ABCD"
 
5590
 
 
5591
  case $build_os in
 
5592
  msdosdjgpp*)
 
5593
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5594
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5595
    # during glob expansion).  Even if it were fixed, the result of this
 
5596
    # check would be larger than it should be.
 
5597
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5598
    ;;
 
5599
 
 
5600
  gnu*)
 
5601
    # Under GNU Hurd, this test is not required because there is
 
5602
    # no limit to the length of command line arguments.
 
5603
    # Libtool will interpret -1 as no limit whatsoever
 
5604
    lt_cv_sys_max_cmd_len=-1;
 
5605
    ;;
 
5606
 
 
5607
  cygwin* | mingw* | cegcc*)
 
5608
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5609
    # about 5 minutes as the teststring grows exponentially.
 
5610
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5611
    # you end up with a "frozen" computer, even though with patience
 
5612
    # the test eventually succeeds (with a max line length of 256k).
 
5613
    # Instead, let's just punt: use the minimum linelength reported by
 
5614
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5615
    lt_cv_sys_max_cmd_len=8192;
 
5616
    ;;
 
5617
 
 
5618
  mint*)
 
5619
    # On MiNT this can take a long time and run out of memory.
 
5620
    lt_cv_sys_max_cmd_len=8192;
 
5621
    ;;
 
5622
 
 
5623
  amigaos*)
 
5624
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5625
    # So we just punt and use a minimum line length of 8192.
 
5626
    lt_cv_sys_max_cmd_len=8192;
 
5627
    ;;
 
5628
 
 
5629
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5630
    # This has been around since 386BSD, at least.  Likely further.
 
5631
    if test -x /sbin/sysctl; then
 
5632
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5633
    elif test -x /usr/sbin/sysctl; then
 
5634
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5635
    else
 
5636
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5637
    fi
 
5638
    # And add a safety zone
 
5639
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5640
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5641
    ;;
 
5642
 
 
5643
  interix*)
 
5644
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5645
    lt_cv_sys_max_cmd_len=196608
 
5646
    ;;
 
5647
 
 
5648
  os2*)
 
5649
    # The test takes a long time on OS/2.
 
5650
    lt_cv_sys_max_cmd_len=8192
 
5651
    ;;
 
5652
 
 
5653
  osf*)
 
5654
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5655
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5656
    # nice to cause kernel panics so lets avoid the loop below.
 
5657
    # First set a reasonable default.
 
5658
    lt_cv_sys_max_cmd_len=16384
 
5659
    #
 
5660
    if test -x /sbin/sysconfig; then
 
5661
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5662
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5663
      esac
 
5664
    fi
 
5665
    ;;
 
5666
  sco3.2v5*)
 
5667
    lt_cv_sys_max_cmd_len=102400
 
5668
    ;;
 
5669
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5670
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5671
    if test -n "$kargmax"; then
 
5672
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5673
    else
 
5674
      lt_cv_sys_max_cmd_len=32768
 
5675
    fi
 
5676
    ;;
 
5677
  *)
 
5678
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5679
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5680
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5681
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5682
    else
 
5683
      # Make teststring a little bigger before we do anything with it.
 
5684
      # a 1K string should be a reasonable start.
 
5685
      for i in 1 2 3 4 5 6 7 8 ; do
 
5686
        teststring=$teststring$teststring
 
5687
      done
 
5688
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5689
      # If test is not a shell built-in, we'll probably end up computing a
 
5690
      # maximum length that is only half of the actual maximum length, but
 
5691
      # we can't tell.
 
5692
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5693
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5694
              test $i != 17 # 1/2 MB should be enough
 
5695
      do
 
5696
        i=`expr $i + 1`
 
5697
        teststring=$teststring$teststring
 
5698
      done
 
5699
      # Only check the string length outside the loop.
 
5700
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5701
      teststring=
 
5702
      # Add a significant safety factor because C++ compilers can tack on
 
5703
      # massive amounts of additional arguments before passing them to the
 
5704
      # linker.  It appears as though 1/2 is a usable value.
 
5705
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5706
    fi
 
5707
    ;;
 
5708
  esac
 
5709
 
 
5710
fi
 
5711
 
 
5712
if test -n $lt_cv_sys_max_cmd_len ; then
 
5713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5714
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5715
else
 
5716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5717
$as_echo "none" >&6; }
 
5718
fi
 
5719
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5720
 
 
5721
 
 
5722
 
 
5723
 
 
5724
 
 
5725
 
 
5726
: ${CP="cp -f"}
 
5727
: ${MV="mv -f"}
 
5728
: ${RM="rm -f"}
 
5729
 
 
5730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5731
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5732
# Try some XSI features
 
5733
xsi_shell=no
 
5734
( _lt_dummy="a/b/c"
 
5735
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5736
      = c,a/b,b/c, \
 
5737
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5738
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5739
  && xsi_shell=yes
 
5740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5741
$as_echo "$xsi_shell" >&6; }
 
5742
 
 
5743
 
 
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5745
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5746
lt_shell_append=no
 
5747
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5748
    >/dev/null 2>&1 \
 
5749
  && lt_shell_append=yes
 
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5751
$as_echo "$lt_shell_append" >&6; }
 
5752
 
 
5753
 
 
5754
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5755
  lt_unset=unset
 
5756
else
 
5757
  lt_unset=false
 
5758
fi
 
5759
 
 
5760
 
 
5761
 
 
5762
 
 
5763
 
 
5764
# test EBCDIC or ASCII
 
5765
case `echo X|tr X '\101'` in
 
5766
 A) # ASCII based system
 
5767
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5768
  lt_SP2NL='tr \040 \012'
 
5769
  lt_NL2SP='tr \015\012 \040\040'
 
5770
  ;;
 
5771
 *) # EBCDIC based system
 
5772
  lt_SP2NL='tr \100 \n'
 
5773
  lt_NL2SP='tr \r\n \100\100'
 
5774
  ;;
 
5775
esac
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
5783
 
 
5784
 
 
5785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5786
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5787
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5788
  $as_echo_n "(cached) " >&6
 
5789
else
 
5790
  case $host in
 
5791
  *-*-mingw* )
 
5792
    case $build in
 
5793
      *-*-mingw* ) # actually msys
 
5794
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5795
        ;;
 
5796
      *-*-cygwin* )
 
5797
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5798
        ;;
 
5799
      * ) # otherwise, assume *nix
 
5800
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5801
        ;;
 
5802
    esac
 
5803
    ;;
 
5804
  *-*-cygwin* )
 
5805
    case $build in
 
5806
      *-*-mingw* ) # actually msys
 
5807
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5808
        ;;
 
5809
      *-*-cygwin* )
 
5810
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5811
        ;;
 
5812
      * ) # otherwise, assume *nix
 
5813
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5814
        ;;
 
5815
    esac
 
5816
    ;;
 
5817
  * ) # unhandled hosts (and "normal" native builds)
 
5818
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5819
    ;;
 
5820
esac
 
5821
 
 
5822
fi
 
5823
 
 
5824
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5826
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5833
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5834
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5835
  $as_echo_n "(cached) " >&6
 
5836
else
 
5837
  #assume ordinary cross tools, or native build.
 
5838
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5839
case $host in
 
5840
  *-*-mingw* )
 
5841
    case $build in
 
5842
      *-*-mingw* ) # actually msys
 
5843
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5844
        ;;
 
5845
    esac
 
5846
    ;;
 
5847
esac
 
5848
 
 
5849
fi
 
5850
 
 
5851
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5853
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5860
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5861
if ${lt_cv_ld_reload_flag+:} false; then :
 
5862
  $as_echo_n "(cached) " >&6
 
5863
else
 
5864
  lt_cv_ld_reload_flag='-r'
 
5865
fi
 
5866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5867
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5868
reload_flag=$lt_cv_ld_reload_flag
 
5869
case $reload_flag in
 
5870
"" | " "*) ;;
 
5871
*) reload_flag=" $reload_flag" ;;
 
5872
esac
 
5873
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5874
case $host_os in
 
5875
  cygwin* | mingw* | pw32* | cegcc*)
 
5876
    if test "$GCC" != yes; then
 
5877
      reload_cmds=false
 
5878
    fi
 
5879
    ;;
 
5880
  darwin*)
 
5881
    if test "$GCC" = yes; then
 
5882
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5883
    else
 
5884
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5885
    fi
 
5886
    ;;
 
5887
esac
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
 
 
5897
if test -n "$ac_tool_prefix"; then
 
5898
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5899
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5901
$as_echo_n "checking for $ac_word... " >&6; }
 
5902
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5903
  $as_echo_n "(cached) " >&6
 
5904
else
 
5905
  if test -n "$OBJDUMP"; then
 
5906
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5907
else
 
5908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5909
for as_dir in $PATH
 
5910
do
 
5911
  IFS=$as_save_IFS
 
5912
  test -z "$as_dir" && as_dir=.
 
5913
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5914
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5915
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5917
    break 2
 
5918
  fi
 
5919
done
 
5920
  done
 
5921
IFS=$as_save_IFS
 
5922
 
 
5923
fi
 
5924
fi
 
5925
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5926
if test -n "$OBJDUMP"; then
 
5927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5928
$as_echo "$OBJDUMP" >&6; }
 
5929
else
 
5930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5931
$as_echo "no" >&6; }
 
5932
fi
 
5933
 
 
5934
 
 
5935
fi
 
5936
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5937
  ac_ct_OBJDUMP=$OBJDUMP
 
5938
  # Extract the first word of "objdump", so it can be a program name with args.
 
5939
set dummy objdump; ac_word=$2
 
5940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5941
$as_echo_n "checking for $ac_word... " >&6; }
 
5942
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5943
  $as_echo_n "(cached) " >&6
 
5944
else
 
5945
  if test -n "$ac_ct_OBJDUMP"; then
 
5946
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5947
else
 
5948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5949
for as_dir in $PATH
 
5950
do
 
5951
  IFS=$as_save_IFS
 
5952
  test -z "$as_dir" && as_dir=.
 
5953
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5954
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5955
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5956
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5957
    break 2
 
5958
  fi
 
5959
done
 
5960
  done
 
5961
IFS=$as_save_IFS
 
5962
 
 
5963
fi
 
5964
fi
 
5965
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5966
if test -n "$ac_ct_OBJDUMP"; then
 
5967
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5968
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5969
else
 
5970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5971
$as_echo "no" >&6; }
 
5972
fi
 
5973
 
 
5974
  if test "x$ac_ct_OBJDUMP" = x; then
 
5975
    OBJDUMP="false"
 
5976
  else
 
5977
    case $cross_compiling:$ac_tool_warned in
 
5978
yes:)
 
5979
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5980
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5981
ac_tool_warned=yes ;;
 
5982
esac
 
5983
    OBJDUMP=$ac_ct_OBJDUMP
 
5984
  fi
 
5985
else
 
5986
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5987
fi
 
5988
 
 
5989
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6000
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6001
if ${lt_cv_deplibs_check_method+:} false; then :
 
6002
  $as_echo_n "(cached) " >&6
4146
6003
else
4147
6004
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4148
6005
lt_cv_file_magic_test_file=
4183
6040
  # Base MSYS/MinGW do not provide the 'file' command needed by
4184
6041
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4185
6042
  # unless we find 'file', for example because we are cross-compiling.
4186
 
  if ( file / ) >/dev/null 2>&1; then
 
6043
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6044
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4187
6045
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4188
6046
    lt_cv_file_magic_cmd='func_win32_libid'
4189
6047
  else
4190
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6048
    # Keep this pattern in sync with the one in func_win32_libid.
 
6049
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4191
6050
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4192
6051
  fi
4193
6052
  ;;
4194
6053
 
 
6054
cegcc*)
 
6055
  # use the weaker test based on 'objdump'. See mingw*.
 
6056
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6057
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6058
  ;;
 
6059
 
4195
6060
darwin* | rhapsody*)
4196
6061
  lt_cv_deplibs_check_method=pass_all
4197
6062
  ;;
4198
6063
 
4199
6064
freebsd* | dragonfly*)
4200
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6065
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4201
6066
    case $host_cpu in
4202
6067
    i*86 )
4203
6068
      # Not sure whether the presence of OpenBSD here was a mistake.
4216
6081
  lt_cv_deplibs_check_method=pass_all
4217
6082
  ;;
4218
6083
 
 
6084
haiku*)
 
6085
  lt_cv_deplibs_check_method=pass_all
 
6086
  ;;
 
6087
 
4219
6088
hpux10.20* | hpux11*)
4220
6089
  lt_cv_file_magic_cmd=/usr/bin/file
4221
6090
  case $host_cpu in
4224
6093
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4225
6094
    ;;
4226
6095
  hppa*64*)
4227
 
    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]'
 
6096
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4228
6097
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4229
6098
    ;;
4230
6099
  *)
4231
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6100
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4232
6101
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4233
6102
    ;;
4234
6103
  esac
4249
6118
  lt_cv_deplibs_check_method=pass_all
4250
6119
  ;;
4251
6120
 
4252
 
# This must be Linux ELF.
4253
 
linux* | k*bsd*-gnu)
 
6121
# This must be glibc/ELF.
 
6122
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4254
6123
  lt_cv_deplibs_check_method=pass_all
4255
6124
  ;;
4256
6125
 
4257
6126
netbsd* | netbsdelf*-gnu)
4258
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6127
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4259
6128
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4260
6129
  else
4261
6130
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4268
6137
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4269
6138
  ;;
4270
6139
 
4271
 
nto-qnx*)
4272
 
  lt_cv_deplibs_check_method=unknown
 
6140
*nto* | *qnx*)
 
6141
  lt_cv_deplibs_check_method=pass_all
4273
6142
  ;;
4274
6143
 
4275
6144
openbsd*)
4276
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6145
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4277
6146
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4278
6147
  else
4279
6148
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4292
6161
  lt_cv_deplibs_check_method=pass_all
4293
6162
  ;;
4294
6163
 
 
6164
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6165
  lt_cv_deplibs_check_method=pass_all
 
6166
  ;;
 
6167
 
4295
6168
sysv4 | sysv4.3*)
4296
6169
  case $host_vendor in
4297
6170
  motorola)
4319
6192
  esac
4320
6193
  ;;
4321
6194
 
4322
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6195
tpf*)
4323
6196
  lt_cv_deplibs_check_method=pass_all
4324
6197
  ;;
4325
6198
esac
4326
6199
 
4327
6200
fi
4328
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4329
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6202
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6203
 
 
6204
file_magic_glob=
 
6205
want_nocaseglob=no
 
6206
if test "$build" = "$host"; then
 
6207
  case $host_os in
 
6208
  mingw* | pw32*)
 
6209
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6210
      want_nocaseglob=yes
 
6211
    else
 
6212
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6213
    fi
 
6214
    ;;
 
6215
  esac
 
6216
fi
 
6217
 
4330
6218
file_magic_cmd=$lt_cv_file_magic_cmd
4331
6219
deplibs_check_method=$lt_cv_deplibs_check_method
4332
6220
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4334
6222
 
4335
6223
 
4336
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
 
 
6236
 
 
6237
 
 
6238
 
 
6239
 
 
6240
 
 
6241
 
 
6242
 
 
6243
if test -n "$ac_tool_prefix"; then
 
6244
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6245
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6247
$as_echo_n "checking for $ac_word... " >&6; }
 
6248
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6249
  $as_echo_n "(cached) " >&6
 
6250
else
 
6251
  if test -n "$DLLTOOL"; then
 
6252
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6253
else
 
6254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6255
for as_dir in $PATH
 
6256
do
 
6257
  IFS=$as_save_IFS
 
6258
  test -z "$as_dir" && as_dir=.
 
6259
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6260
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6261
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6262
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6263
    break 2
 
6264
  fi
 
6265
done
 
6266
  done
 
6267
IFS=$as_save_IFS
 
6268
 
 
6269
fi
 
6270
fi
 
6271
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6272
if test -n "$DLLTOOL"; then
 
6273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6274
$as_echo "$DLLTOOL" >&6; }
 
6275
else
 
6276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6277
$as_echo "no" >&6; }
 
6278
fi
 
6279
 
 
6280
 
 
6281
fi
 
6282
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6283
  ac_ct_DLLTOOL=$DLLTOOL
 
6284
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6285
set dummy dlltool; ac_word=$2
 
6286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6287
$as_echo_n "checking for $ac_word... " >&6; }
 
6288
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6289
  $as_echo_n "(cached) " >&6
 
6290
else
 
6291
  if test -n "$ac_ct_DLLTOOL"; then
 
6292
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6293
else
 
6294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6295
for as_dir in $PATH
 
6296
do
 
6297
  IFS=$as_save_IFS
 
6298
  test -z "$as_dir" && as_dir=.
 
6299
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6300
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6301
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6303
    break 2
 
6304
  fi
 
6305
done
 
6306
  done
 
6307
IFS=$as_save_IFS
 
6308
 
 
6309
fi
 
6310
fi
 
6311
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6312
if test -n "$ac_ct_DLLTOOL"; then
 
6313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6314
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6315
else
 
6316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6317
$as_echo "no" >&6; }
 
6318
fi
 
6319
 
 
6320
  if test "x$ac_ct_DLLTOOL" = x; then
 
6321
    DLLTOOL="false"
 
6322
  else
 
6323
    case $cross_compiling:$ac_tool_warned in
 
6324
yes:)
 
6325
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6326
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6327
ac_tool_warned=yes ;;
 
6328
esac
 
6329
    DLLTOOL=$ac_ct_DLLTOOL
 
6330
  fi
 
6331
else
 
6332
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6333
fi
 
6334
 
 
6335
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6347
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6348
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6349
  $as_echo_n "(cached) " >&6
 
6350
else
 
6351
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6352
 
 
6353
case $host_os in
 
6354
cygwin* | mingw* | pw32* | cegcc*)
 
6355
  # two different shell functions defined in ltmain.sh
 
6356
  # decide which to use based on capabilities of $DLLTOOL
 
6357
  case `$DLLTOOL --help 2>&1` in
 
6358
  *--identify-strict*)
 
6359
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6360
    ;;
 
6361
  *)
 
6362
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6363
    ;;
 
6364
  esac
 
6365
  ;;
 
6366
*)
 
6367
  # fallback: assume linklib IS sharedlib
 
6368
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6369
  ;;
 
6370
esac
 
6371
 
 
6372
fi
 
6373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6374
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6375
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6376
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6377
 
 
6378
 
 
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
if test -n "$ac_tool_prefix"; then
 
6385
  for ac_prog in ar
 
6386
  do
 
6387
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6388
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6390
$as_echo_n "checking for $ac_word... " >&6; }
 
6391
if ${ac_cv_prog_AR+:} false; then :
 
6392
  $as_echo_n "(cached) " >&6
 
6393
else
 
6394
  if test -n "$AR"; then
 
6395
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6396
else
 
6397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6398
for as_dir in $PATH
 
6399
do
 
6400
  IFS=$as_save_IFS
 
6401
  test -z "$as_dir" && as_dir=.
 
6402
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6403
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6404
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6405
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6406
    break 2
 
6407
  fi
 
6408
done
 
6409
  done
 
6410
IFS=$as_save_IFS
 
6411
 
 
6412
fi
 
6413
fi
 
6414
AR=$ac_cv_prog_AR
 
6415
if test -n "$AR"; then
 
6416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6417
$as_echo "$AR" >&6; }
 
6418
else
 
6419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6420
$as_echo "no" >&6; }
 
6421
fi
 
6422
 
 
6423
 
 
6424
    test -n "$AR" && break
 
6425
  done
 
6426
fi
 
6427
if test -z "$AR"; then
 
6428
  ac_ct_AR=$AR
 
6429
  for ac_prog in ar
 
6430
do
 
6431
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6432
set dummy $ac_prog; ac_word=$2
 
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6434
$as_echo_n "checking for $ac_word... " >&6; }
 
6435
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6436
  $as_echo_n "(cached) " >&6
 
6437
else
 
6438
  if test -n "$ac_ct_AR"; then
 
6439
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6440
else
 
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6442
for as_dir in $PATH
 
6443
do
 
6444
  IFS=$as_save_IFS
 
6445
  test -z "$as_dir" && as_dir=.
 
6446
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6447
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6448
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6450
    break 2
 
6451
  fi
 
6452
done
 
6453
  done
 
6454
IFS=$as_save_IFS
 
6455
 
 
6456
fi
 
6457
fi
 
6458
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6459
if test -n "$ac_ct_AR"; then
 
6460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6461
$as_echo "$ac_ct_AR" >&6; }
 
6462
else
 
6463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6464
$as_echo "no" >&6; }
 
6465
fi
 
6466
 
 
6467
 
 
6468
  test -n "$ac_ct_AR" && break
 
6469
done
 
6470
 
 
6471
  if test "x$ac_ct_AR" = x; then
 
6472
    AR="false"
 
6473
  else
 
6474
    case $cross_compiling:$ac_tool_warned in
 
6475
yes:)
 
6476
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6477
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6478
ac_tool_warned=yes ;;
 
6479
esac
 
6480
    AR=$ac_ct_AR
 
6481
  fi
 
6482
fi
 
6483
 
 
6484
: ${AR=ar}
 
6485
: ${AR_FLAGS=cru}
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
 
 
6497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6498
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6499
if ${lt_cv_ar_at_file+:} false; then :
 
6500
  $as_echo_n "(cached) " >&6
 
6501
else
 
6502
  lt_cv_ar_at_file=no
 
6503
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6504
/* end confdefs.h.  */
 
6505
 
 
6506
int
 
6507
main ()
 
6508
{
 
6509
 
 
6510
  ;
 
6511
  return 0;
 
6512
}
 
6513
_ACEOF
 
6514
if ac_fn_c_try_compile "$LINENO"; then :
 
6515
  echo conftest.$ac_objext > conftest.lst
 
6516
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6517
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6518
  (eval $lt_ar_try) 2>&5
 
6519
  ac_status=$?
 
6520
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6521
  test $ac_status = 0; }
 
6522
      if test "$ac_status" -eq 0; then
 
6523
        # Ensure the archiver fails upon bogus file names.
 
6524
        rm -f conftest.$ac_objext libconftest.a
 
6525
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6526
  (eval $lt_ar_try) 2>&5
 
6527
  ac_status=$?
 
6528
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6529
  test $ac_status = 0; }
 
6530
        if test "$ac_status" -ne 0; then
 
6531
          lt_cv_ar_at_file=@
 
6532
        fi
 
6533
      fi
 
6534
      rm -f conftest.* libconftest.a
 
6535
 
 
6536
fi
 
6537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6538
 
 
6539
fi
 
6540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6541
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6542
 
 
6543
if test "x$lt_cv_ar_at_file" = xno; then
 
6544
  archiver_list_spec=
 
6545
else
 
6546
  archiver_list_spec=$lt_cv_ar_at_file
 
6547
fi
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
if test -n "$ac_tool_prefix"; then
 
6556
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6557
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6559
$as_echo_n "checking for $ac_word... " >&6; }
 
6560
if ${ac_cv_prog_STRIP+:} false; then :
 
6561
  $as_echo_n "(cached) " >&6
 
6562
else
 
6563
  if test -n "$STRIP"; then
 
6564
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6565
else
 
6566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6567
for as_dir in $PATH
 
6568
do
 
6569
  IFS=$as_save_IFS
 
6570
  test -z "$as_dir" && as_dir=.
 
6571
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6572
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6573
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6575
    break 2
 
6576
  fi
 
6577
done
 
6578
  done
 
6579
IFS=$as_save_IFS
 
6580
 
 
6581
fi
 
6582
fi
 
6583
STRIP=$ac_cv_prog_STRIP
 
6584
if test -n "$STRIP"; then
 
6585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6586
$as_echo "$STRIP" >&6; }
 
6587
else
 
6588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6589
$as_echo "no" >&6; }
 
6590
fi
 
6591
 
 
6592
 
 
6593
fi
 
6594
if test -z "$ac_cv_prog_STRIP"; then
 
6595
  ac_ct_STRIP=$STRIP
 
6596
  # Extract the first word of "strip", so it can be a program name with args.
 
6597
set dummy strip; ac_word=$2
 
6598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6599
$as_echo_n "checking for $ac_word... " >&6; }
 
6600
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6601
  $as_echo_n "(cached) " >&6
 
6602
else
 
6603
  if test -n "$ac_ct_STRIP"; then
 
6604
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6605
else
 
6606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6607
for as_dir in $PATH
 
6608
do
 
6609
  IFS=$as_save_IFS
 
6610
  test -z "$as_dir" && as_dir=.
 
6611
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6612
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6613
    ac_cv_prog_ac_ct_STRIP="strip"
 
6614
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6615
    break 2
 
6616
  fi
 
6617
done
 
6618
  done
 
6619
IFS=$as_save_IFS
 
6620
 
 
6621
fi
 
6622
fi
 
6623
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6624
if test -n "$ac_ct_STRIP"; then
 
6625
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6626
$as_echo "$ac_ct_STRIP" >&6; }
 
6627
else
 
6628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6629
$as_echo "no" >&6; }
 
6630
fi
 
6631
 
 
6632
  if test "x$ac_ct_STRIP" = x; then
 
6633
    STRIP=":"
 
6634
  else
 
6635
    case $cross_compiling:$ac_tool_warned in
 
6636
yes:)
 
6637
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6638
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6639
ac_tool_warned=yes ;;
 
6640
esac
 
6641
    STRIP=$ac_ct_STRIP
 
6642
  fi
 
6643
else
 
6644
  STRIP="$ac_cv_prog_STRIP"
 
6645
fi
 
6646
 
 
6647
test -z "$STRIP" && STRIP=:
 
6648
 
 
6649
 
 
6650
 
 
6651
 
 
6652
 
 
6653
 
 
6654
if test -n "$ac_tool_prefix"; then
 
6655
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6656
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6658
$as_echo_n "checking for $ac_word... " >&6; }
 
6659
if ${ac_cv_prog_RANLIB+:} false; then :
 
6660
  $as_echo_n "(cached) " >&6
 
6661
else
 
6662
  if test -n "$RANLIB"; then
 
6663
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6664
else
 
6665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6666
for as_dir in $PATH
 
6667
do
 
6668
  IFS=$as_save_IFS
 
6669
  test -z "$as_dir" && as_dir=.
 
6670
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6671
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6672
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6674
    break 2
 
6675
  fi
 
6676
done
 
6677
  done
 
6678
IFS=$as_save_IFS
 
6679
 
 
6680
fi
 
6681
fi
 
6682
RANLIB=$ac_cv_prog_RANLIB
 
6683
if test -n "$RANLIB"; then
 
6684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6685
$as_echo "$RANLIB" >&6; }
 
6686
else
 
6687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6688
$as_echo "no" >&6; }
 
6689
fi
 
6690
 
 
6691
 
 
6692
fi
 
6693
if test -z "$ac_cv_prog_RANLIB"; then
 
6694
  ac_ct_RANLIB=$RANLIB
 
6695
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6696
set dummy ranlib; ac_word=$2
 
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6698
$as_echo_n "checking for $ac_word... " >&6; }
 
6699
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6700
  $as_echo_n "(cached) " >&6
 
6701
else
 
6702
  if test -n "$ac_ct_RANLIB"; then
 
6703
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6704
else
 
6705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6706
for as_dir in $PATH
 
6707
do
 
6708
  IFS=$as_save_IFS
 
6709
  test -z "$as_dir" && as_dir=.
 
6710
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6711
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6712
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6713
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6714
    break 2
 
6715
  fi
 
6716
done
 
6717
  done
 
6718
IFS=$as_save_IFS
 
6719
 
 
6720
fi
 
6721
fi
 
6722
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6723
if test -n "$ac_ct_RANLIB"; then
 
6724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6725
$as_echo "$ac_ct_RANLIB" >&6; }
 
6726
else
 
6727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6728
$as_echo "no" >&6; }
 
6729
fi
 
6730
 
 
6731
  if test "x$ac_ct_RANLIB" = x; then
 
6732
    RANLIB=":"
 
6733
  else
 
6734
    case $cross_compiling:$ac_tool_warned in
 
6735
yes:)
 
6736
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6737
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6738
ac_tool_warned=yes ;;
 
6739
esac
 
6740
    RANLIB=$ac_ct_RANLIB
 
6741
  fi
 
6742
else
 
6743
  RANLIB="$ac_cv_prog_RANLIB"
 
6744
fi
 
6745
 
 
6746
test -z "$RANLIB" && RANLIB=:
 
6747
 
 
6748
 
 
6749
 
 
6750
 
 
6751
 
 
6752
 
 
6753
# Determine commands to create old-style static archives.
 
6754
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6755
old_postinstall_cmds='chmod 644 $oldlib'
 
6756
old_postuninstall_cmds=
 
6757
 
 
6758
if test -n "$RANLIB"; then
 
6759
  case $host_os in
 
6760
  openbsd*)
 
6761
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6762
    ;;
 
6763
  *)
 
6764
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6765
    ;;
 
6766
  esac
 
6767
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6768
fi
 
6769
 
 
6770
case $host_os in
 
6771
  darwin*)
 
6772
    lock_old_archive_extraction=yes ;;
 
6773
  *)
 
6774
    lock_old_archive_extraction=no ;;
 
6775
esac
 
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
 
 
6785
 
 
6786
 
 
6787
 
 
6788
 
 
6789
 
 
6790
 
 
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
 
6797
 
 
6798
 
 
6799
 
 
6800
 
 
6801
 
 
6802
 
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
4337
6815
# If no C compiler was specified, use CC.
4338
6816
LTCC=${LTCC-"$CC"}
4339
6817
 
4344
6822
compiler=$CC
4345
6823
 
4346
6824
 
4347
 
# Check whether --enable-libtool-lock was given.
4348
 
if test "${enable_libtool_lock+set}" = set; then
4349
 
  enableval=$enable_libtool_lock;
4350
 
fi
4351
 
 
4352
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4353
 
 
4354
 
# Some flags need to be propagated to the compiler or linker for good
4355
 
# libtool support.
4356
 
case $host in
4357
 
ia64-*-hpux*)
4358
 
  # Find out which ABI we are using.
4359
 
  echo 'int i;' > conftest.$ac_ext
4360
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361
 
  (eval $ac_compile) 2>&5
4362
 
  ac_status=$?
4363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364
 
  (exit $ac_status); }; then
4365
 
    case `/usr/bin/file conftest.$ac_objext` in
4366
 
    *ELF-32*)
4367
 
      HPUX_IA64_MODE="32"
4368
 
      ;;
4369
 
    *ELF-64*)
4370
 
      HPUX_IA64_MODE="64"
4371
 
      ;;
4372
 
    esac
4373
 
  fi
4374
 
  rm -rf conftest*
4375
 
  ;;
4376
 
*-*-irix6*)
4377
 
  # Find out which ABI we are using.
4378
 
  echo '#line 4378 "configure"' > conftest.$ac_ext
4379
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380
 
  (eval $ac_compile) 2>&5
4381
 
  ac_status=$?
4382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
 
  (exit $ac_status); }; then
4384
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4385
 
    case `/usr/bin/file conftest.$ac_objext` in
4386
 
    *32-bit*)
4387
 
      LD="${LD-ld} -melf32bsmip"
4388
 
      ;;
4389
 
    *N32*)
4390
 
      LD="${LD-ld} -melf32bmipn32"
4391
 
      ;;
4392
 
    *64-bit*)
4393
 
      LD="${LD-ld} -melf64bmip"
4394
 
      ;;
4395
 
    esac
4396
 
   else
4397
 
    case `/usr/bin/file conftest.$ac_objext` in
4398
 
    *32-bit*)
4399
 
      LD="${LD-ld} -32"
4400
 
      ;;
4401
 
    *N32*)
4402
 
      LD="${LD-ld} -n32"
4403
 
      ;;
4404
 
    *64-bit*)
4405
 
      LD="${LD-ld} -64"
4406
 
      ;;
4407
 
    esac
4408
 
   fi
4409
 
  fi
4410
 
  rm -rf conftest*
4411
 
  ;;
4412
 
 
4413
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4414
 
s390*-*linux*|sparc*-*linux*)
4415
 
  # Find out which ABI we are using.
4416
 
  echo 'int i;' > conftest.$ac_ext
4417
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418
 
  (eval $ac_compile) 2>&5
4419
 
  ac_status=$?
4420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421
 
  (exit $ac_status); }; then
4422
 
    case `/usr/bin/file conftest.o` in
4423
 
    *32-bit*)
4424
 
      case $host in
4425
 
        x86_64-*kfreebsd*-gnu)
4426
 
          LD="${LD-ld} -m elf_i386_fbsd"
4427
 
          ;;
4428
 
        x86_64-*linux*)
4429
 
          LD="${LD-ld} -m elf_i386"
4430
 
          ;;
4431
 
        ppc64-*linux*|powerpc64-*linux*)
4432
 
          LD="${LD-ld} -m elf32ppclinux"
4433
 
          ;;
4434
 
        s390x-*linux*)
4435
 
          LD="${LD-ld} -m elf_s390"
4436
 
          ;;
4437
 
        sparc64-*linux*)
4438
 
          LD="${LD-ld} -m elf32_sparc"
4439
 
          ;;
4440
 
      esac
4441
 
      ;;
4442
 
    *64-bit*)
4443
 
      case $host in
4444
 
        x86_64-*kfreebsd*-gnu)
4445
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4446
 
          ;;
4447
 
        x86_64-*linux*)
4448
 
          LD="${LD-ld} -m elf_x86_64"
4449
 
          ;;
4450
 
        ppc*-*linux*|powerpc*-*linux*)
4451
 
          LD="${LD-ld} -m elf64ppc"
4452
 
          ;;
4453
 
        s390*-*linux*)
4454
 
          LD="${LD-ld} -m elf64_s390"
4455
 
          ;;
4456
 
        sparc*-*linux*)
4457
 
          LD="${LD-ld} -m elf64_sparc"
4458
 
          ;;
4459
 
      esac
4460
 
      ;;
4461
 
    esac
4462
 
  fi
4463
 
  rm -rf conftest*
4464
 
  ;;
4465
 
 
4466
 
*-*-sco3.2v5*)
4467
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4468
 
  SAVE_CFLAGS="$CFLAGS"
4469
 
  CFLAGS="$CFLAGS -belf"
4470
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4471
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4472
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4474
 
else
4475
 
  ac_ext=c
4476
 
ac_cpp='$CPP $CPPFLAGS'
4477
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
 
 
4481
 
     cat >conftest.$ac_ext <<_ACEOF
4482
 
/* confdefs.h.  */
4483
 
_ACEOF
4484
 
cat confdefs.h >>conftest.$ac_ext
4485
 
cat >>conftest.$ac_ext <<_ACEOF
4486
 
/* end confdefs.h.  */
4487
 
 
4488
 
int
4489
 
main ()
4490
 
{
4491
 
 
4492
 
  ;
4493
 
  return 0;
4494
 
}
4495
 
_ACEOF
4496
 
rm -f conftest.$ac_objext conftest$ac_exeext
4497
 
if { (ac_try="$ac_link"
4498
 
case "(($ac_try" in
4499
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500
 
  *) ac_try_echo=$ac_try;;
4501
 
esac
4502
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503
 
  (eval "$ac_link") 2>conftest.er1
4504
 
  ac_status=$?
4505
 
  grep -v '^ *+' conftest.er1 >conftest.err
4506
 
  rm -f conftest.er1
4507
 
  cat conftest.err >&5
4508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
 
  (exit $ac_status); } && {
4510
 
         test -z "$ac_c_werror_flag" ||
4511
 
         test ! -s conftest.err
4512
 
       } && test -s conftest$ac_exeext &&
4513
 
       $as_test_x conftest$ac_exeext; then
4514
 
  lt_cv_cc_needs_belf=yes
4515
 
else
4516
 
  echo "$as_me: failed program was:" >&5
4517
 
sed 's/^/| /' conftest.$ac_ext >&5
4518
 
 
4519
 
        lt_cv_cc_needs_belf=no
4520
 
fi
4521
 
 
4522
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4523
 
      conftest$ac_exeext conftest.$ac_ext
4524
 
     ac_ext=c
4525
 
ac_cpp='$CPP $CPPFLAGS'
4526
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
 
 
4530
 
fi
4531
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4532
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4533
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4534
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4535
 
    CFLAGS="$SAVE_CFLAGS"
4536
 
  fi
4537
 
  ;;
4538
 
sparc*-*solaris*)
4539
 
  # Find out which ABI we are using.
4540
 
  echo 'int i;' > conftest.$ac_ext
4541
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542
 
  (eval $ac_compile) 2>&5
4543
 
  ac_status=$?
4544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545
 
  (exit $ac_status); }; then
4546
 
    case `/usr/bin/file conftest.o` in
4547
 
    *64-bit*)
4548
 
      case $lt_cv_prog_gnu_ld in
4549
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4550
 
      *)
4551
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4552
 
          LD="${LD-ld} -64"
4553
 
        fi
4554
 
        ;;
4555
 
      esac
4556
 
      ;;
4557
 
    esac
4558
 
  fi
4559
 
  rm -rf conftest*
4560
 
  ;;
4561
 
 
4562
 
 
4563
 
esac
4564
 
 
4565
 
need_locks="$enable_libtool_lock"
4566
 
 
4567
 
 
4568
 
ac_ext=c
4569
 
ac_cpp='$CPP $CPPFLAGS'
4570
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4574
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4575
 
# On Suns, sometimes $CPP names a directory.
4576
 
if test -n "$CPP" && test -d "$CPP"; then
4577
 
  CPP=
4578
 
fi
4579
 
if test -z "$CPP"; then
4580
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4582
 
else
4583
 
      # Double quotes because CPP needs to be expanded
4584
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4585
 
    do
4586
 
      ac_preproc_ok=false
4587
 
for ac_c_preproc_warn_flag in '' yes
4588
 
do
4589
 
  # Use a header file that comes with gcc, so configuring glibc
4590
 
  # with a fresh cross-compiler works.
4591
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592
 
  # <limits.h> exists even on freestanding compilers.
4593
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4594
 
  # not just through cpp. "Syntax error" is here to catch this case.
4595
 
  cat >conftest.$ac_ext <<_ACEOF
4596
 
/* confdefs.h.  */
4597
 
_ACEOF
4598
 
cat confdefs.h >>conftest.$ac_ext
4599
 
cat >>conftest.$ac_ext <<_ACEOF
4600
 
/* end confdefs.h.  */
4601
 
#ifdef __STDC__
4602
 
# include <limits.h>
4603
 
#else
4604
 
# include <assert.h>
4605
 
#endif
4606
 
                     Syntax error
4607
 
_ACEOF
4608
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4609
 
case "(($ac_try" in
4610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611
 
  *) ac_try_echo=$ac_try;;
4612
 
esac
4613
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4615
 
  ac_status=$?
4616
 
  grep -v '^ *+' conftest.er1 >conftest.err
4617
 
  rm -f conftest.er1
4618
 
  cat conftest.err >&5
4619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620
 
  (exit $ac_status); } >/dev/null && {
4621
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4622
 
         test ! -s conftest.err
4623
 
       }; then
4624
 
  :
4625
 
else
4626
 
  echo "$as_me: failed program was:" >&5
4627
 
sed 's/^/| /' conftest.$ac_ext >&5
4628
 
 
4629
 
  # Broken: fails on valid input.
4630
 
continue
4631
 
fi
4632
 
 
4633
 
rm -f conftest.err conftest.$ac_ext
4634
 
 
4635
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4636
 
  # can be detected and how.
4637
 
  cat >conftest.$ac_ext <<_ACEOF
4638
 
/* confdefs.h.  */
4639
 
_ACEOF
4640
 
cat confdefs.h >>conftest.$ac_ext
4641
 
cat >>conftest.$ac_ext <<_ACEOF
4642
 
/* end confdefs.h.  */
4643
 
#include <ac_nonexistent.h>
4644
 
_ACEOF
4645
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4646
 
case "(($ac_try" in
4647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648
 
  *) ac_try_echo=$ac_try;;
4649
 
esac
4650
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652
 
  ac_status=$?
4653
 
  grep -v '^ *+' conftest.er1 >conftest.err
4654
 
  rm -f conftest.er1
4655
 
  cat conftest.err >&5
4656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657
 
  (exit $ac_status); } >/dev/null && {
4658
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4659
 
         test ! -s conftest.err
4660
 
       }; then
4661
 
  # Broken: success on invalid input.
4662
 
continue
4663
 
else
4664
 
  echo "$as_me: failed program was:" >&5
4665
 
sed 's/^/| /' conftest.$ac_ext >&5
4666
 
 
4667
 
  # Passes both tests.
4668
 
ac_preproc_ok=:
4669
 
break
4670
 
fi
4671
 
 
4672
 
rm -f conftest.err conftest.$ac_ext
4673
 
 
4674
 
done
4675
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676
 
rm -f conftest.err conftest.$ac_ext
4677
 
if $ac_preproc_ok; then
4678
 
  break
4679
 
fi
4680
 
 
4681
 
    done
4682
 
    ac_cv_prog_CPP=$CPP
4683
 
 
4684
 
fi
4685
 
  CPP=$ac_cv_prog_CPP
4686
 
else
4687
 
  ac_cv_prog_CPP=$CPP
4688
 
fi
4689
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4690
 
echo "${ECHO_T}$CPP" >&6; }
4691
 
ac_preproc_ok=false
4692
 
for ac_c_preproc_warn_flag in '' yes
4693
 
do
4694
 
  # Use a header file that comes with gcc, so configuring glibc
4695
 
  # with a fresh cross-compiler works.
4696
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697
 
  # <limits.h> exists even on freestanding compilers.
4698
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4699
 
  # not just through cpp. "Syntax error" is here to catch this case.
4700
 
  cat >conftest.$ac_ext <<_ACEOF
4701
 
/* confdefs.h.  */
4702
 
_ACEOF
4703
 
cat confdefs.h >>conftest.$ac_ext
4704
 
cat >>conftest.$ac_ext <<_ACEOF
4705
 
/* end confdefs.h.  */
4706
 
#ifdef __STDC__
4707
 
# include <limits.h>
4708
 
#else
4709
 
# include <assert.h>
4710
 
#endif
4711
 
                     Syntax error
4712
 
_ACEOF
4713
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4714
 
case "(($ac_try" in
4715
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716
 
  *) ac_try_echo=$ac_try;;
4717
 
esac
4718
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4720
 
  ac_status=$?
4721
 
  grep -v '^ *+' conftest.er1 >conftest.err
4722
 
  rm -f conftest.er1
4723
 
  cat conftest.err >&5
4724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725
 
  (exit $ac_status); } >/dev/null && {
4726
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4727
 
         test ! -s conftest.err
4728
 
       }; then
4729
 
  :
4730
 
else
4731
 
  echo "$as_me: failed program was:" >&5
4732
 
sed 's/^/| /' conftest.$ac_ext >&5
4733
 
 
4734
 
  # Broken: fails on valid input.
4735
 
continue
4736
 
fi
4737
 
 
4738
 
rm -f conftest.err conftest.$ac_ext
4739
 
 
4740
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4741
 
  # can be detected and how.
4742
 
  cat >conftest.$ac_ext <<_ACEOF
4743
 
/* confdefs.h.  */
4744
 
_ACEOF
4745
 
cat confdefs.h >>conftest.$ac_ext
4746
 
cat >>conftest.$ac_ext <<_ACEOF
4747
 
/* end confdefs.h.  */
4748
 
#include <ac_nonexistent.h>
4749
 
_ACEOF
4750
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4751
 
case "(($ac_try" in
4752
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753
 
  *) ac_try_echo=$ac_try;;
4754
 
esac
4755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757
 
  ac_status=$?
4758
 
  grep -v '^ *+' conftest.er1 >conftest.err
4759
 
  rm -f conftest.er1
4760
 
  cat conftest.err >&5
4761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
 
  (exit $ac_status); } >/dev/null && {
4763
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764
 
         test ! -s conftest.err
4765
 
       }; then
4766
 
  # Broken: success on invalid input.
4767
 
continue
4768
 
else
4769
 
  echo "$as_me: failed program was:" >&5
4770
 
sed 's/^/| /' conftest.$ac_ext >&5
4771
 
 
4772
 
  # Passes both tests.
4773
 
ac_preproc_ok=:
4774
 
break
4775
 
fi
4776
 
 
4777
 
rm -f conftest.err conftest.$ac_ext
4778
 
 
4779
 
done
4780
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4781
 
rm -f conftest.err conftest.$ac_ext
4782
 
if $ac_preproc_ok; then
4783
 
  :
4784
 
else
4785
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4786
 
See \`config.log' for more details." >&5
4787
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4788
 
See \`config.log' for more details." >&2;}
4789
 
   { (exit 1); exit 1; }; }
4790
 
fi
4791
 
 
4792
 
ac_ext=c
4793
 
ac_cpp='$CPP $CPPFLAGS'
4794
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
 
 
4798
 
 
4799
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4800
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4801
 
if test "${ac_cv_header_stdc+set}" = set; then
4802
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4803
 
else
4804
 
  cat >conftest.$ac_ext <<_ACEOF
4805
 
/* confdefs.h.  */
4806
 
_ACEOF
4807
 
cat confdefs.h >>conftest.$ac_ext
4808
 
cat >>conftest.$ac_ext <<_ACEOF
4809
 
/* end confdefs.h.  */
4810
 
#include <stdlib.h>
4811
 
#include <stdarg.h>
4812
 
#include <string.h>
4813
 
#include <float.h>
4814
 
 
4815
 
int
4816
 
main ()
4817
 
{
4818
 
 
4819
 
  ;
4820
 
  return 0;
4821
 
}
4822
 
_ACEOF
4823
 
rm -f conftest.$ac_objext
4824
 
if { (ac_try="$ac_compile"
4825
 
case "(($ac_try" in
4826
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827
 
  *) ac_try_echo=$ac_try;;
4828
 
esac
4829
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830
 
  (eval "$ac_compile") 2>conftest.er1
4831
 
  ac_status=$?
4832
 
  grep -v '^ *+' conftest.er1 >conftest.err
4833
 
  rm -f conftest.er1
4834
 
  cat conftest.err >&5
4835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
 
  (exit $ac_status); } && {
4837
 
         test -z "$ac_c_werror_flag" ||
4838
 
         test ! -s conftest.err
4839
 
       } && test -s conftest.$ac_objext; then
4840
 
  ac_cv_header_stdc=yes
4841
 
else
4842
 
  echo "$as_me: failed program was:" >&5
4843
 
sed 's/^/| /' conftest.$ac_ext >&5
4844
 
 
4845
 
        ac_cv_header_stdc=no
4846
 
fi
4847
 
 
4848
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849
 
 
4850
 
if test $ac_cv_header_stdc = yes; then
4851
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4852
 
  cat >conftest.$ac_ext <<_ACEOF
4853
 
/* confdefs.h.  */
4854
 
_ACEOF
4855
 
cat confdefs.h >>conftest.$ac_ext
4856
 
cat >>conftest.$ac_ext <<_ACEOF
4857
 
/* end confdefs.h.  */
4858
 
#include <string.h>
4859
 
 
4860
 
_ACEOF
4861
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4862
 
  $EGREP "memchr" >/dev/null 2>&1; then
4863
 
  :
4864
 
else
4865
 
  ac_cv_header_stdc=no
4866
 
fi
4867
 
rm -f conftest*
4868
 
 
4869
 
fi
4870
 
 
4871
 
if test $ac_cv_header_stdc = yes; then
4872
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4873
 
  cat >conftest.$ac_ext <<_ACEOF
4874
 
/* confdefs.h.  */
4875
 
_ACEOF
4876
 
cat confdefs.h >>conftest.$ac_ext
4877
 
cat >>conftest.$ac_ext <<_ACEOF
4878
 
/* end confdefs.h.  */
4879
 
#include <stdlib.h>
4880
 
 
4881
 
_ACEOF
4882
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883
 
  $EGREP "free" >/dev/null 2>&1; then
4884
 
  :
4885
 
else
4886
 
  ac_cv_header_stdc=no
4887
 
fi
4888
 
rm -f conftest*
4889
 
 
4890
 
fi
4891
 
 
4892
 
if test $ac_cv_header_stdc = yes; then
4893
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4894
 
  if test "$cross_compiling" = yes; then
4895
 
  :
4896
 
else
4897
 
  cat >conftest.$ac_ext <<_ACEOF
4898
 
/* confdefs.h.  */
4899
 
_ACEOF
4900
 
cat confdefs.h >>conftest.$ac_ext
4901
 
cat >>conftest.$ac_ext <<_ACEOF
4902
 
/* end confdefs.h.  */
4903
 
#include <ctype.h>
4904
 
#include <stdlib.h>
4905
 
#if ((' ' & 0x0FF) == 0x020)
4906
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4907
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4908
 
#else
4909
 
# define ISLOWER(c) \
4910
 
                   (('a' <= (c) && (c) <= 'i') \
4911
 
                     || ('j' <= (c) && (c) <= 'r') \
4912
 
                     || ('s' <= (c) && (c) <= 'z'))
4913
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4914
 
#endif
4915
 
 
4916
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4917
 
int
4918
 
main ()
4919
 
{
4920
 
  int i;
4921
 
  for (i = 0; i < 256; i++)
4922
 
    if (XOR (islower (i), ISLOWER (i))
4923
 
        || toupper (i) != TOUPPER (i))
4924
 
      return 2;
4925
 
  return 0;
4926
 
}
4927
 
_ACEOF
4928
 
rm -f conftest$ac_exeext
4929
 
if { (ac_try="$ac_link"
4930
 
case "(($ac_try" in
4931
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932
 
  *) ac_try_echo=$ac_try;;
4933
 
esac
4934
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935
 
  (eval "$ac_link") 2>&5
4936
 
  ac_status=$?
4937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4939
 
  { (case "(($ac_try" in
4940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941
 
  *) ac_try_echo=$ac_try;;
4942
 
esac
4943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944
 
  (eval "$ac_try") 2>&5
4945
 
  ac_status=$?
4946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
 
  (exit $ac_status); }; }; then
4948
 
  :
4949
 
else
4950
 
  echo "$as_me: program exited with status $ac_status" >&5
4951
 
echo "$as_me: failed program was:" >&5
4952
 
sed 's/^/| /' conftest.$ac_ext >&5
4953
 
 
4954
 
( exit $ac_status )
4955
 
ac_cv_header_stdc=no
4956
 
fi
4957
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958
 
fi
4959
 
 
4960
 
 
4961
 
fi
4962
 
fi
4963
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4965
 
if test $ac_cv_header_stdc = yes; then
4966
 
 
4967
 
cat >>confdefs.h <<\_ACEOF
4968
 
#define STDC_HEADERS 1
4969
 
_ACEOF
4970
 
 
4971
 
fi
4972
 
 
4973
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974
 
 
4975
 
 
4976
 
 
4977
 
 
4978
 
 
4979
 
 
4980
 
 
4981
 
 
4982
 
 
4983
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984
 
                  inttypes.h stdint.h unistd.h
4985
 
do
4986
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4988
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4989
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4991
 
else
4992
 
  cat >conftest.$ac_ext <<_ACEOF
4993
 
/* confdefs.h.  */
4994
 
_ACEOF
4995
 
cat confdefs.h >>conftest.$ac_ext
4996
 
cat >>conftest.$ac_ext <<_ACEOF
4997
 
/* end confdefs.h.  */
4998
 
$ac_includes_default
4999
 
 
5000
 
#include <$ac_header>
5001
 
_ACEOF
5002
 
rm -f conftest.$ac_objext
5003
 
if { (ac_try="$ac_compile"
5004
 
case "(($ac_try" in
5005
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006
 
  *) ac_try_echo=$ac_try;;
5007
 
esac
5008
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009
 
  (eval "$ac_compile") 2>conftest.er1
5010
 
  ac_status=$?
5011
 
  grep -v '^ *+' conftest.er1 >conftest.err
5012
 
  rm -f conftest.er1
5013
 
  cat conftest.err >&5
5014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
 
  (exit $ac_status); } && {
5016
 
         test -z "$ac_c_werror_flag" ||
5017
 
         test ! -s conftest.err
5018
 
       } && test -s conftest.$ac_objext; then
5019
 
  eval "$as_ac_Header=yes"
5020
 
else
5021
 
  echo "$as_me: failed program was:" >&5
5022
 
sed 's/^/| /' conftest.$ac_ext >&5
5023
 
 
5024
 
        eval "$as_ac_Header=no"
5025
 
fi
5026
 
 
5027
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028
 
fi
5029
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5030
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5031
 
echo "${ECHO_T}$ac_res" >&6; }
5032
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033
 
  cat >>confdefs.h <<_ACEOF
5034
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035
 
_ACEOF
5036
 
 
5037
 
fi
5038
 
 
5039
 
done
5040
 
 
5041
 
 
5042
 
 
5043
 
for ac_header in dlfcn.h
5044
 
do
5045
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5048
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5049
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5050
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5051
 
fi
5052
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5053
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5054
 
echo "${ECHO_T}$ac_res" >&6; }
5055
 
else
5056
 
  # Is the header compilable?
5057
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5059
 
cat >conftest.$ac_ext <<_ACEOF
5060
 
/* confdefs.h.  */
5061
 
_ACEOF
5062
 
cat confdefs.h >>conftest.$ac_ext
5063
 
cat >>conftest.$ac_ext <<_ACEOF
5064
 
/* end confdefs.h.  */
5065
 
$ac_includes_default
5066
 
#include <$ac_header>
5067
 
_ACEOF
5068
 
rm -f conftest.$ac_objext
5069
 
if { (ac_try="$ac_compile"
5070
 
case "(($ac_try" in
5071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072
 
  *) ac_try_echo=$ac_try;;
5073
 
esac
5074
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075
 
  (eval "$ac_compile") 2>conftest.er1
5076
 
  ac_status=$?
5077
 
  grep -v '^ *+' conftest.er1 >conftest.err
5078
 
  rm -f conftest.er1
5079
 
  cat conftest.err >&5
5080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081
 
  (exit $ac_status); } && {
5082
 
         test -z "$ac_c_werror_flag" ||
5083
 
         test ! -s conftest.err
5084
 
       } && test -s conftest.$ac_objext; then
5085
 
  ac_header_compiler=yes
5086
 
else
5087
 
  echo "$as_me: failed program was:" >&5
5088
 
sed 's/^/| /' conftest.$ac_ext >&5
5089
 
 
5090
 
        ac_header_compiler=no
5091
 
fi
5092
 
 
5093
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5095
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5096
 
 
5097
 
# Is the header present?
5098
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5099
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5100
 
cat >conftest.$ac_ext <<_ACEOF
5101
 
/* confdefs.h.  */
5102
 
_ACEOF
5103
 
cat confdefs.h >>conftest.$ac_ext
5104
 
cat >>conftest.$ac_ext <<_ACEOF
5105
 
/* end confdefs.h.  */
5106
 
#include <$ac_header>
5107
 
_ACEOF
5108
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5109
 
case "(($ac_try" in
5110
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111
 
  *) ac_try_echo=$ac_try;;
5112
 
esac
5113
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115
 
  ac_status=$?
5116
 
  grep -v '^ *+' conftest.er1 >conftest.err
5117
 
  rm -f conftest.er1
5118
 
  cat conftest.err >&5
5119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
 
  (exit $ac_status); } >/dev/null && {
5121
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122
 
         test ! -s conftest.err
5123
 
       }; then
5124
 
  ac_header_preproc=yes
5125
 
else
5126
 
  echo "$as_me: failed program was:" >&5
5127
 
sed 's/^/| /' conftest.$ac_ext >&5
5128
 
 
5129
 
  ac_header_preproc=no
5130
 
fi
5131
 
 
5132
 
rm -f conftest.err conftest.$ac_ext
5133
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5135
 
 
5136
 
# So?  What about this header?
5137
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5138
 
  yes:no: )
5139
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5140
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5142
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5143
 
    ac_header_preproc=yes
5144
 
    ;;
5145
 
  no:yes:* )
5146
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5147
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5148
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5149
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5150
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5151
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5152
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5153
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5154
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5155
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5157
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5158
 
    ( cat <<\_ASBOX
5159
 
## -------------------------------- ##
5160
 
## Report this to mathew@eisbox.net ##
5161
 
## -------------------------------- ##
5162
 
_ASBOX
5163
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5164
 
    ;;
5165
 
esac
5166
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5167
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5168
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5170
 
else
5171
 
  eval "$as_ac_Header=\$ac_header_preproc"
5172
 
fi
5173
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5174
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5175
 
echo "${ECHO_T}$ac_res" >&6; }
5176
 
 
5177
 
fi
5178
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5179
 
  cat >>confdefs.h <<_ACEOF
5180
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5181
 
_ACEOF
5182
 
 
5183
 
fi
5184
 
 
5185
 
done
5186
 
 
5187
 
ac_ext=cpp
5188
 
ac_cpp='$CXXCPP $CPPFLAGS'
5189
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5192
 
if test -z "$CXX"; then
5193
 
  if test -n "$CCC"; then
5194
 
    CXX=$CCC
5195
 
  else
5196
 
    if test -n "$ac_tool_prefix"; then
5197
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5198
 
  do
5199
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5202
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5203
 
if test "${ac_cv_prog_CXX+set}" = set; then
5204
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5205
 
else
5206
 
  if test -n "$CXX"; then
5207
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5208
 
else
5209
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210
 
for as_dir in $PATH
5211
 
do
5212
 
  IFS=$as_save_IFS
5213
 
  test -z "$as_dir" && as_dir=.
5214
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5215
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5217
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218
 
    break 2
5219
 
  fi
5220
 
done
5221
 
done
5222
 
IFS=$as_save_IFS
5223
 
 
5224
 
fi
5225
 
fi
5226
 
CXX=$ac_cv_prog_CXX
5227
 
if test -n "$CXX"; then
5228
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
5229
 
echo "${ECHO_T}$CXX" >&6; }
5230
 
else
5231
 
  { echo "$as_me:$LINENO: result: no" >&5
5232
 
echo "${ECHO_T}no" >&6; }
5233
 
fi
5234
 
 
5235
 
 
5236
 
    test -n "$CXX" && break
5237
 
  done
5238
 
fi
5239
 
if test -z "$CXX"; then
5240
 
  ac_ct_CXX=$CXX
5241
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5242
 
do
5243
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5244
 
set dummy $ac_prog; ac_word=$2
5245
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5246
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5249
 
else
5250
 
  if test -n "$ac_ct_CXX"; then
5251
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5252
 
else
5253
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254
 
for as_dir in $PATH
5255
 
do
5256
 
  IFS=$as_save_IFS
5257
 
  test -z "$as_dir" && as_dir=.
5258
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5259
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5261
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262
 
    break 2
5263
 
  fi
5264
 
done
5265
 
done
5266
 
IFS=$as_save_IFS
5267
 
 
5268
 
fi
5269
 
fi
5270
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5271
 
if test -n "$ac_ct_CXX"; then
5272
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5273
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5274
 
else
5275
 
  { echo "$as_me:$LINENO: result: no" >&5
5276
 
echo "${ECHO_T}no" >&6; }
5277
 
fi
5278
 
 
5279
 
 
5280
 
  test -n "$ac_ct_CXX" && break
5281
 
done
5282
 
 
5283
 
  if test "x$ac_ct_CXX" = x; then
5284
 
    CXX="g++"
5285
 
  else
5286
 
    case $cross_compiling:$ac_tool_warned in
5287
 
yes:)
5288
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5289
 
whose name does not start with the host triplet.  If you think this
5290
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5291
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5292
 
whose name does not start with the host triplet.  If you think this
5293
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5294
 
ac_tool_warned=yes ;;
5295
 
esac
5296
 
    CXX=$ac_ct_CXX
5297
 
  fi
5298
 
fi
5299
 
 
5300
 
  fi
5301
 
fi
5302
 
# Provide some information about the compiler.
5303
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5304
 
ac_compiler=`set X $ac_compile; echo $2`
5305
 
{ (ac_try="$ac_compiler --version >&5"
5306
 
case "(($ac_try" in
5307
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308
 
  *) ac_try_echo=$ac_try;;
5309
 
esac
5310
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311
 
  (eval "$ac_compiler --version >&5") 2>&5
5312
 
  ac_status=$?
5313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
 
  (exit $ac_status); }
5315
 
{ (ac_try="$ac_compiler -v >&5"
5316
 
case "(($ac_try" in
5317
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318
 
  *) ac_try_echo=$ac_try;;
5319
 
esac
5320
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321
 
  (eval "$ac_compiler -v >&5") 2>&5
5322
 
  ac_status=$?
5323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324
 
  (exit $ac_status); }
5325
 
{ (ac_try="$ac_compiler -V >&5"
5326
 
case "(($ac_try" in
5327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328
 
  *) ac_try_echo=$ac_try;;
5329
 
esac
5330
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331
 
  (eval "$ac_compiler -V >&5") 2>&5
5332
 
  ac_status=$?
5333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334
 
  (exit $ac_status); }
5335
 
 
5336
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5337
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5338
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5340
 
else
5341
 
  cat >conftest.$ac_ext <<_ACEOF
5342
 
/* confdefs.h.  */
5343
 
_ACEOF
5344
 
cat confdefs.h >>conftest.$ac_ext
5345
 
cat >>conftest.$ac_ext <<_ACEOF
5346
 
/* end confdefs.h.  */
5347
 
 
5348
 
int
5349
 
main ()
5350
 
{
5351
 
#ifndef __GNUC__
5352
 
       choke me
5353
 
#endif
5354
 
 
5355
 
  ;
5356
 
  return 0;
5357
 
}
5358
 
_ACEOF
5359
 
rm -f conftest.$ac_objext
5360
 
if { (ac_try="$ac_compile"
5361
 
case "(($ac_try" in
5362
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363
 
  *) ac_try_echo=$ac_try;;
5364
 
esac
5365
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366
 
  (eval "$ac_compile") 2>conftest.er1
5367
 
  ac_status=$?
5368
 
  grep -v '^ *+' conftest.er1 >conftest.err
5369
 
  rm -f conftest.er1
5370
 
  cat conftest.err >&5
5371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
 
  (exit $ac_status); } && {
5373
 
         test -z "$ac_cxx_werror_flag" ||
5374
 
         test ! -s conftest.err
5375
 
       } && test -s conftest.$ac_objext; then
5376
 
  ac_compiler_gnu=yes
5377
 
else
5378
 
  echo "$as_me: failed program was:" >&5
5379
 
sed 's/^/| /' conftest.$ac_ext >&5
5380
 
 
5381
 
        ac_compiler_gnu=no
5382
 
fi
5383
 
 
5384
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5386
 
 
5387
 
fi
5388
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5389
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5390
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5391
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5392
 
ac_save_CXXFLAGS=$CXXFLAGS
5393
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5394
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5395
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5396
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5397
 
else
5398
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5399
 
   ac_cxx_werror_flag=yes
5400
 
   ac_cv_prog_cxx_g=no
5401
 
   CXXFLAGS="-g"
5402
 
   cat >conftest.$ac_ext <<_ACEOF
5403
 
/* confdefs.h.  */
5404
 
_ACEOF
5405
 
cat confdefs.h >>conftest.$ac_ext
5406
 
cat >>conftest.$ac_ext <<_ACEOF
5407
 
/* end confdefs.h.  */
5408
 
 
5409
 
int
5410
 
main ()
5411
 
{
5412
 
 
5413
 
  ;
5414
 
  return 0;
5415
 
}
5416
 
_ACEOF
5417
 
rm -f conftest.$ac_objext
5418
 
if { (ac_try="$ac_compile"
5419
 
case "(($ac_try" in
5420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421
 
  *) ac_try_echo=$ac_try;;
5422
 
esac
5423
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424
 
  (eval "$ac_compile") 2>conftest.er1
5425
 
  ac_status=$?
5426
 
  grep -v '^ *+' conftest.er1 >conftest.err
5427
 
  rm -f conftest.er1
5428
 
  cat conftest.err >&5
5429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
 
  (exit $ac_status); } && {
5431
 
         test -z "$ac_cxx_werror_flag" ||
5432
 
         test ! -s conftest.err
5433
 
       } && test -s conftest.$ac_objext; then
5434
 
  ac_cv_prog_cxx_g=yes
5435
 
else
5436
 
  echo "$as_me: failed program was:" >&5
5437
 
sed 's/^/| /' conftest.$ac_ext >&5
5438
 
 
5439
 
        CXXFLAGS=""
5440
 
      cat >conftest.$ac_ext <<_ACEOF
5441
 
/* confdefs.h.  */
5442
 
_ACEOF
5443
 
cat confdefs.h >>conftest.$ac_ext
5444
 
cat >>conftest.$ac_ext <<_ACEOF
5445
 
/* end confdefs.h.  */
5446
 
 
5447
 
int
5448
 
main ()
5449
 
{
5450
 
 
5451
 
  ;
5452
 
  return 0;
5453
 
}
5454
 
_ACEOF
5455
 
rm -f conftest.$ac_objext
5456
 
if { (ac_try="$ac_compile"
5457
 
case "(($ac_try" in
5458
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459
 
  *) ac_try_echo=$ac_try;;
5460
 
esac
5461
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462
 
  (eval "$ac_compile") 2>conftest.er1
5463
 
  ac_status=$?
5464
 
  grep -v '^ *+' conftest.er1 >conftest.err
5465
 
  rm -f conftest.er1
5466
 
  cat conftest.err >&5
5467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468
 
  (exit $ac_status); } && {
5469
 
         test -z "$ac_cxx_werror_flag" ||
5470
 
         test ! -s conftest.err
5471
 
       } && test -s conftest.$ac_objext; then
5472
 
  :
5473
 
else
5474
 
  echo "$as_me: failed program was:" >&5
5475
 
sed 's/^/| /' conftest.$ac_ext >&5
5476
 
 
5477
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5478
 
         CXXFLAGS="-g"
5479
 
         cat >conftest.$ac_ext <<_ACEOF
5480
 
/* confdefs.h.  */
5481
 
_ACEOF
5482
 
cat confdefs.h >>conftest.$ac_ext
5483
 
cat >>conftest.$ac_ext <<_ACEOF
5484
 
/* end confdefs.h.  */
5485
 
 
5486
 
int
5487
 
main ()
5488
 
{
5489
 
 
5490
 
  ;
5491
 
  return 0;
5492
 
}
5493
 
_ACEOF
5494
 
rm -f conftest.$ac_objext
5495
 
if { (ac_try="$ac_compile"
5496
 
case "(($ac_try" in
5497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498
 
  *) ac_try_echo=$ac_try;;
5499
 
esac
5500
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501
 
  (eval "$ac_compile") 2>conftest.er1
5502
 
  ac_status=$?
5503
 
  grep -v '^ *+' conftest.er1 >conftest.err
5504
 
  rm -f conftest.er1
5505
 
  cat conftest.err >&5
5506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507
 
  (exit $ac_status); } && {
5508
 
         test -z "$ac_cxx_werror_flag" ||
5509
 
         test ! -s conftest.err
5510
 
       } && test -s conftest.$ac_objext; then
5511
 
  ac_cv_prog_cxx_g=yes
5512
 
else
5513
 
  echo "$as_me: failed program was:" >&5
5514
 
sed 's/^/| /' conftest.$ac_ext >&5
5515
 
 
5516
 
 
5517
 
fi
5518
 
 
5519
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520
 
fi
5521
 
 
5522
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523
 
fi
5524
 
 
5525
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5527
 
fi
5528
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5529
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5530
 
if test "$ac_test_CXXFLAGS" = set; then
5531
 
  CXXFLAGS=$ac_save_CXXFLAGS
5532
 
elif test $ac_cv_prog_cxx_g = yes; then
5533
 
  if test "$GXX" = yes; then
5534
 
    CXXFLAGS="-g -O2"
5535
 
  else
5536
 
    CXXFLAGS="-g"
5537
 
  fi
5538
 
else
5539
 
  if test "$GXX" = yes; then
5540
 
    CXXFLAGS="-O2"
5541
 
  else
5542
 
    CXXFLAGS=
5543
 
  fi
5544
 
fi
5545
 
ac_ext=cpp
5546
 
ac_cpp='$CXXCPP $CPPFLAGS'
5547
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5550
 
 
5551
 
depcc="$CXX"  am_compiler_list=
5552
 
 
5553
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5554
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5555
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5556
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5557
 
else
5558
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5559
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5560
 
  # making bogus files that we don't know about and never remove.  For
5561
 
  # instance it was reported that on HP-UX the gcc test will end up
5562
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5563
 
  # in D'.
5564
 
  mkdir conftest.dir
5565
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5566
 
  # using a relative directory.
5567
 
  cp "$am_depcomp" conftest.dir
5568
 
  cd conftest.dir
5569
 
  # We will build objects and dependencies in a subdirectory because
5570
 
  # it helps to detect inapplicable dependency modes.  For instance
5571
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5572
 
  # side effect of compilation, but ICC will put the dependencies in
5573
 
  # the current directory while Tru64 will put them in the object
5574
 
  # directory.
5575
 
  mkdir sub
5576
 
 
5577
 
  am_cv_CXX_dependencies_compiler_type=none
5578
 
  if test "$am_compiler_list" = ""; then
5579
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5580
 
  fi
5581
 
  for depmode in $am_compiler_list; do
5582
 
    # Setup a source with many dependencies, because some compilers
5583
 
    # like to wrap large dependency lists on column 80 (with \), and
5584
 
    # we should not choose a depcomp mode which is confused by this.
5585
 
    #
5586
 
    # We need to recreate these files for each test, as the compiler may
5587
 
    # overwrite some of them when testing with obscure command lines.
5588
 
    # This happens at least with the AIX C compiler.
5589
 
    : > sub/conftest.c
5590
 
    for i in 1 2 3 4 5 6; do
5591
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5592
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5593
 
      # Solaris 8's {/usr,}/bin/sh.
5594
 
      touch sub/conftst$i.h
5595
 
    done
5596
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5597
 
 
5598
 
    case $depmode in
5599
 
    nosideeffect)
5600
 
      # after this tag, mechanisms are not by side-effect, so they'll
5601
 
      # only be used when explicitly requested
5602
 
      if test "x$enable_dependency_tracking" = xyes; then
5603
 
        continue
5604
 
      else
5605
 
        break
5606
 
      fi
5607
 
      ;;
5608
 
    none) break ;;
5609
 
    esac
5610
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5611
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5612
 
    # handle `-M -o', and we need to detect this.
5613
 
    if depmode=$depmode \
5614
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5615
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5616
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5617
 
         >/dev/null 2>conftest.err &&
5618
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5619
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5620
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5621
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5622
 
      # icc doesn't choke on unknown options, it will just issue warnings
5623
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5624
 
      # that says an option was ignored or not supported.
5625
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5626
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5627
 
      # The diagnosis changed in icc 8.0:
5628
 
      #   icc: Command line remark: option '-MP' not supported
5629
 
      if (grep 'ignoring option' conftest.err ||
5630
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5631
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5632
 
        break
5633
 
      fi
5634
 
    fi
5635
 
  done
5636
 
 
5637
 
  cd ..
5638
 
  rm -rf conftest.dir
5639
 
else
5640
 
  am_cv_CXX_dependencies_compiler_type=none
5641
 
fi
5642
 
 
5643
 
fi
5644
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5645
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5646
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5647
 
 
5648
 
 if
5649
 
  test "x$enable_dependency_tracking" != xno \
5650
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5651
 
  am__fastdepCXX_TRUE=
5652
 
  am__fastdepCXX_FALSE='#'
5653
 
else
5654
 
  am__fastdepCXX_TRUE='#'
5655
 
  am__fastdepCXX_FALSE=
5656
 
fi
5657
 
 
5658
 
 
5659
 
 
5660
 
 
5661
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5662
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5663
 
    (test "X$CXX" != "Xg++"))) ; then
5664
 
  ac_ext=cpp
5665
 
ac_cpp='$CXXCPP $CPPFLAGS'
5666
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5670
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5671
 
if test -z "$CXXCPP"; then
5672
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5674
 
else
5675
 
      # Double quotes because CXXCPP needs to be expanded
5676
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5677
 
    do
5678
 
      ac_preproc_ok=false
5679
 
for ac_cxx_preproc_warn_flag in '' yes
5680
 
do
5681
 
  # Use a header file that comes with gcc, so configuring glibc
5682
 
  # with a fresh cross-compiler works.
5683
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684
 
  # <limits.h> exists even on freestanding compilers.
5685
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5686
 
  # not just through cpp. "Syntax error" is here to catch this case.
5687
 
  cat >conftest.$ac_ext <<_ACEOF
5688
 
/* confdefs.h.  */
5689
 
_ACEOF
5690
 
cat confdefs.h >>conftest.$ac_ext
5691
 
cat >>conftest.$ac_ext <<_ACEOF
5692
 
/* end confdefs.h.  */
5693
 
#ifdef __STDC__
5694
 
# include <limits.h>
5695
 
#else
5696
 
# include <assert.h>
5697
 
#endif
5698
 
                     Syntax error
5699
 
_ACEOF
5700
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5701
 
case "(($ac_try" in
5702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703
 
  *) ac_try_echo=$ac_try;;
5704
 
esac
5705
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5707
 
  ac_status=$?
5708
 
  grep -v '^ *+' conftest.er1 >conftest.err
5709
 
  rm -f conftest.er1
5710
 
  cat conftest.err >&5
5711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
 
  (exit $ac_status); } >/dev/null && {
5713
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5714
 
         test ! -s conftest.err
5715
 
       }; then
5716
 
  :
5717
 
else
5718
 
  echo "$as_me: failed program was:" >&5
5719
 
sed 's/^/| /' conftest.$ac_ext >&5
5720
 
 
5721
 
  # Broken: fails on valid input.
5722
 
continue
5723
 
fi
5724
 
 
5725
 
rm -f conftest.err conftest.$ac_ext
5726
 
 
5727
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5728
 
  # can be detected and how.
5729
 
  cat >conftest.$ac_ext <<_ACEOF
5730
 
/* confdefs.h.  */
5731
 
_ACEOF
5732
 
cat confdefs.h >>conftest.$ac_ext
5733
 
cat >>conftest.$ac_ext <<_ACEOF
5734
 
/* end confdefs.h.  */
5735
 
#include <ac_nonexistent.h>
5736
 
_ACEOF
5737
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5738
 
case "(($ac_try" in
5739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740
 
  *) ac_try_echo=$ac_try;;
5741
 
esac
5742
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5744
 
  ac_status=$?
5745
 
  grep -v '^ *+' conftest.er1 >conftest.err
5746
 
  rm -f conftest.er1
5747
 
  cat conftest.err >&5
5748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749
 
  (exit $ac_status); } >/dev/null && {
5750
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5751
 
         test ! -s conftest.err
5752
 
       }; then
5753
 
  # Broken: success on invalid input.
5754
 
continue
5755
 
else
5756
 
  echo "$as_me: failed program was:" >&5
5757
 
sed 's/^/| /' conftest.$ac_ext >&5
5758
 
 
5759
 
  # Passes both tests.
5760
 
ac_preproc_ok=:
5761
 
break
5762
 
fi
5763
 
 
5764
 
rm -f conftest.err conftest.$ac_ext
5765
 
 
5766
 
done
5767
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768
 
rm -f conftest.err conftest.$ac_ext
5769
 
if $ac_preproc_ok; then
5770
 
  break
5771
 
fi
5772
 
 
5773
 
    done
5774
 
    ac_cv_prog_CXXCPP=$CXXCPP
5775
 
 
5776
 
fi
5777
 
  CXXCPP=$ac_cv_prog_CXXCPP
5778
 
else
5779
 
  ac_cv_prog_CXXCPP=$CXXCPP
5780
 
fi
5781
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5782
 
echo "${ECHO_T}$CXXCPP" >&6; }
5783
 
ac_preproc_ok=false
5784
 
for ac_cxx_preproc_warn_flag in '' yes
5785
 
do
5786
 
  # Use a header file that comes with gcc, so configuring glibc
5787
 
  # with a fresh cross-compiler works.
5788
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789
 
  # <limits.h> exists even on freestanding compilers.
5790
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5791
 
  # not just through cpp. "Syntax error" is here to catch this case.
5792
 
  cat >conftest.$ac_ext <<_ACEOF
5793
 
/* confdefs.h.  */
5794
 
_ACEOF
5795
 
cat confdefs.h >>conftest.$ac_ext
5796
 
cat >>conftest.$ac_ext <<_ACEOF
5797
 
/* end confdefs.h.  */
5798
 
#ifdef __STDC__
5799
 
# include <limits.h>
5800
 
#else
5801
 
# include <assert.h>
5802
 
#endif
5803
 
                     Syntax error
5804
 
_ACEOF
5805
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5806
 
case "(($ac_try" in
5807
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808
 
  *) ac_try_echo=$ac_try;;
5809
 
esac
5810
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812
 
  ac_status=$?
5813
 
  grep -v '^ *+' conftest.er1 >conftest.err
5814
 
  rm -f conftest.er1
5815
 
  cat conftest.err >&5
5816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817
 
  (exit $ac_status); } >/dev/null && {
5818
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5819
 
         test ! -s conftest.err
5820
 
       }; then
5821
 
  :
5822
 
else
5823
 
  echo "$as_me: failed program was:" >&5
5824
 
sed 's/^/| /' conftest.$ac_ext >&5
5825
 
 
5826
 
  # Broken: fails on valid input.
5827
 
continue
5828
 
fi
5829
 
 
5830
 
rm -f conftest.err conftest.$ac_ext
5831
 
 
5832
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5833
 
  # can be detected and how.
5834
 
  cat >conftest.$ac_ext <<_ACEOF
5835
 
/* confdefs.h.  */
5836
 
_ACEOF
5837
 
cat confdefs.h >>conftest.$ac_ext
5838
 
cat >>conftest.$ac_ext <<_ACEOF
5839
 
/* end confdefs.h.  */
5840
 
#include <ac_nonexistent.h>
5841
 
_ACEOF
5842
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5843
 
case "(($ac_try" in
5844
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845
 
  *) ac_try_echo=$ac_try;;
5846
 
esac
5847
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849
 
  ac_status=$?
5850
 
  grep -v '^ *+' conftest.er1 >conftest.err
5851
 
  rm -f conftest.er1
5852
 
  cat conftest.err >&5
5853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854
 
  (exit $ac_status); } >/dev/null && {
5855
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5856
 
         test ! -s conftest.err
5857
 
       }; then
5858
 
  # Broken: success on invalid input.
5859
 
continue
5860
 
else
5861
 
  echo "$as_me: failed program was:" >&5
5862
 
sed 's/^/| /' conftest.$ac_ext >&5
5863
 
 
5864
 
  # Passes both tests.
5865
 
ac_preproc_ok=:
5866
 
break
5867
 
fi
5868
 
 
5869
 
rm -f conftest.err conftest.$ac_ext
5870
 
 
5871
 
done
5872
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5873
 
rm -f conftest.err conftest.$ac_ext
5874
 
if $ac_preproc_ok; then
5875
 
  :
5876
 
else
5877
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5878
 
See \`config.log' for more details." >&5
5879
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5880
 
See \`config.log' for more details." >&2;}
5881
 
   { (exit 1); exit 1; }; }
5882
 
fi
5883
 
 
5884
 
ac_ext=cpp
5885
 
ac_cpp='$CXXCPP $CPPFLAGS'
5886
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889
 
 
5890
 
fi
5891
 
 
5892
 
 
5893
 
ac_ext=f
5894
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5895
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5897
 
if test -n "$ac_tool_prefix"; then
5898
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5899
 
  do
5900
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5901
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5902
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904
 
if test "${ac_cv_prog_F77+set}" = set; then
5905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5906
 
else
5907
 
  if test -n "$F77"; then
5908
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5909
 
else
5910
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911
 
for as_dir in $PATH
5912
 
do
5913
 
  IFS=$as_save_IFS
5914
 
  test -z "$as_dir" && as_dir=.
5915
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5916
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5918
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919
 
    break 2
5920
 
  fi
5921
 
done
5922
 
done
5923
 
IFS=$as_save_IFS
5924
 
 
5925
 
fi
5926
 
fi
5927
 
F77=$ac_cv_prog_F77
5928
 
if test -n "$F77"; then
5929
 
  { echo "$as_me:$LINENO: result: $F77" >&5
5930
 
echo "${ECHO_T}$F77" >&6; }
5931
 
else
5932
 
  { echo "$as_me:$LINENO: result: no" >&5
5933
 
echo "${ECHO_T}no" >&6; }
5934
 
fi
5935
 
 
5936
 
 
5937
 
    test -n "$F77" && break
5938
 
  done
5939
 
fi
5940
 
if test -z "$F77"; then
5941
 
  ac_ct_F77=$F77
5942
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5943
 
do
5944
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5945
 
set dummy $ac_prog; ac_word=$2
5946
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5950
 
else
5951
 
  if test -n "$ac_ct_F77"; then
5952
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5953
 
else
5954
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955
 
for as_dir in $PATH
5956
 
do
5957
 
  IFS=$as_save_IFS
5958
 
  test -z "$as_dir" && as_dir=.
5959
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5960
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5962
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963
 
    break 2
5964
 
  fi
5965
 
done
5966
 
done
5967
 
IFS=$as_save_IFS
5968
 
 
5969
 
fi
5970
 
fi
5971
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5972
 
if test -n "$ac_ct_F77"; then
5973
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5974
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
5975
 
else
5976
 
  { echo "$as_me:$LINENO: result: no" >&5
5977
 
echo "${ECHO_T}no" >&6; }
5978
 
fi
5979
 
 
5980
 
 
5981
 
  test -n "$ac_ct_F77" && break
5982
 
done
5983
 
 
5984
 
  if test "x$ac_ct_F77" = x; then
5985
 
    F77=""
5986
 
  else
5987
 
    case $cross_compiling:$ac_tool_warned in
5988
 
yes:)
5989
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5990
 
whose name does not start with the host triplet.  If you think this
5991
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5992
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5993
 
whose name does not start with the host triplet.  If you think this
5994
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5995
 
ac_tool_warned=yes ;;
5996
 
esac
5997
 
    F77=$ac_ct_F77
5998
 
  fi
5999
 
fi
6000
 
 
6001
 
 
6002
 
# Provide some information about the compiler.
6003
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6004
 
ac_compiler=`set X $ac_compile; echo $2`
6005
 
{ (ac_try="$ac_compiler --version >&5"
6006
 
case "(($ac_try" in
6007
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008
 
  *) ac_try_echo=$ac_try;;
6009
 
esac
6010
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011
 
  (eval "$ac_compiler --version >&5") 2>&5
6012
 
  ac_status=$?
6013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014
 
  (exit $ac_status); }
6015
 
{ (ac_try="$ac_compiler -v >&5"
6016
 
case "(($ac_try" in
6017
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018
 
  *) ac_try_echo=$ac_try;;
6019
 
esac
6020
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021
 
  (eval "$ac_compiler -v >&5") 2>&5
6022
 
  ac_status=$?
6023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
 
  (exit $ac_status); }
6025
 
{ (ac_try="$ac_compiler -V >&5"
6026
 
case "(($ac_try" in
6027
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028
 
  *) ac_try_echo=$ac_try;;
6029
 
esac
6030
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031
 
  (eval "$ac_compiler -V >&5") 2>&5
6032
 
  ac_status=$?
6033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034
 
  (exit $ac_status); }
6035
 
rm -f a.out
6036
 
 
6037
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6038
 
# input file.  (Note that this only needs to work for GNU compilers.)
6039
 
ac_save_ext=$ac_ext
6040
 
ac_ext=F
6041
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6042
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6043
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6045
 
else
6046
 
  cat >conftest.$ac_ext <<_ACEOF
6047
 
      program main
6048
 
#ifndef __GNUC__
6049
 
       choke me
6050
 
#endif
6051
 
 
6052
 
      end
6053
 
_ACEOF
6054
 
rm -f conftest.$ac_objext
6055
 
if { (ac_try="$ac_compile"
6056
 
case "(($ac_try" in
6057
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058
 
  *) ac_try_echo=$ac_try;;
6059
 
esac
6060
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061
 
  (eval "$ac_compile") 2>conftest.er1
6062
 
  ac_status=$?
6063
 
  grep -v '^ *+' conftest.er1 >conftest.err
6064
 
  rm -f conftest.er1
6065
 
  cat conftest.err >&5
6066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
 
  (exit $ac_status); } && {
6068
 
         test -z "$ac_f77_werror_flag" ||
6069
 
         test ! -s conftest.err
6070
 
       } && test -s conftest.$ac_objext; then
6071
 
  ac_compiler_gnu=yes
6072
 
else
6073
 
  echo "$as_me: failed program was:" >&5
6074
 
sed 's/^/| /' conftest.$ac_ext >&5
6075
 
 
6076
 
        ac_compiler_gnu=no
6077
 
fi
6078
 
 
6079
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6081
 
 
6082
 
fi
6083
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6084
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6085
 
ac_ext=$ac_save_ext
6086
 
ac_test_FFLAGS=${FFLAGS+set}
6087
 
ac_save_FFLAGS=$FFLAGS
6088
 
FFLAGS=
6089
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6090
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6091
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6093
 
else
6094
 
  FFLAGS=-g
6095
 
cat >conftest.$ac_ext <<_ACEOF
6096
 
      program main
6097
 
 
6098
 
      end
6099
 
_ACEOF
6100
 
rm -f conftest.$ac_objext
6101
 
if { (ac_try="$ac_compile"
6102
 
case "(($ac_try" in
6103
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104
 
  *) ac_try_echo=$ac_try;;
6105
 
esac
6106
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107
 
  (eval "$ac_compile") 2>conftest.er1
6108
 
  ac_status=$?
6109
 
  grep -v '^ *+' conftest.er1 >conftest.err
6110
 
  rm -f conftest.er1
6111
 
  cat conftest.err >&5
6112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113
 
  (exit $ac_status); } && {
6114
 
         test -z "$ac_f77_werror_flag" ||
6115
 
         test ! -s conftest.err
6116
 
       } && test -s conftest.$ac_objext; then
6117
 
  ac_cv_prog_f77_g=yes
6118
 
else
6119
 
  echo "$as_me: failed program was:" >&5
6120
 
sed 's/^/| /' conftest.$ac_ext >&5
6121
 
 
6122
 
        ac_cv_prog_f77_g=no
6123
 
fi
6124
 
 
6125
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126
 
 
6127
 
fi
6128
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6129
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6130
 
if test "$ac_test_FFLAGS" = set; then
6131
 
  FFLAGS=$ac_save_FFLAGS
6132
 
elif test $ac_cv_prog_f77_g = yes; then
6133
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6134
 
    FFLAGS="-g -O2"
6135
 
  else
6136
 
    FFLAGS="-g"
6137
 
  fi
6138
 
else
6139
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6140
 
    FFLAGS="-O2"
6141
 
  else
6142
 
    FFLAGS=
6143
 
  fi
6144
 
fi
6145
 
 
6146
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6147
 
ac_ext=c
6148
 
ac_cpp='$CPP $CPPFLAGS'
6149
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
 
 
6153
 
 
6154
 
 
6155
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6156
 
# find the maximum length of command line arguments
6157
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6158
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6159
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6160
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6161
 
else
6162
 
    i=0
6163
 
  teststring="ABCD"
6164
 
 
6165
 
  case $build_os in
6166
 
  msdosdjgpp*)
6167
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6168
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6169
 
    # during glob expansion).  Even if it were fixed, the result of this
6170
 
    # check would be larger than it should be.
6171
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6172
 
    ;;
6173
 
 
6174
 
  gnu*)
6175
 
    # Under GNU Hurd, this test is not required because there is
6176
 
    # no limit to the length of command line arguments.
6177
 
    # Libtool will interpret -1 as no limit whatsoever
6178
 
    lt_cv_sys_max_cmd_len=-1;
6179
 
    ;;
6180
 
 
6181
 
  cygwin* | mingw*)
6182
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6183
 
    # about 5 minutes as the teststring grows exponentially.
6184
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6185
 
    # you end up with a "frozen" computer, even though with patience
6186
 
    # the test eventually succeeds (with a max line length of 256k).
6187
 
    # Instead, let's just punt: use the minimum linelength reported by
6188
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6189
 
    lt_cv_sys_max_cmd_len=8192;
6190
 
    ;;
6191
 
 
6192
 
  amigaos*)
6193
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6194
 
    # So we just punt and use a minimum line length of 8192.
6195
 
    lt_cv_sys_max_cmd_len=8192;
6196
 
    ;;
6197
 
 
6198
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199
 
    # This has been around since 386BSD, at least.  Likely further.
6200
 
    if test -x /sbin/sysctl; then
6201
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202
 
    elif test -x /usr/sbin/sysctl; then
6203
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204
 
    else
6205
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6206
 
    fi
6207
 
    # And add a safety zone
6208
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210
 
    ;;
6211
 
 
6212
 
  interix*)
6213
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214
 
    lt_cv_sys_max_cmd_len=196608
6215
 
    ;;
6216
 
 
6217
 
  osf*)
6218
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220
 
    # nice to cause kernel panics so lets avoid the loop below.
6221
 
    # First set a reasonable default.
6222
 
    lt_cv_sys_max_cmd_len=16384
6223
 
    #
6224
 
    if test -x /sbin/sysconfig; then
6225
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227
 
      esac
6228
 
    fi
6229
 
    ;;
6230
 
  sco3.2v5*)
6231
 
    lt_cv_sys_max_cmd_len=102400
6232
 
    ;;
6233
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6234
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235
 
    if test -n "$kargmax"; then
6236
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6237
 
    else
6238
 
      lt_cv_sys_max_cmd_len=32768
6239
 
    fi
6240
 
    ;;
6241
 
  *)
6242
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6244
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246
 
    else
6247
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6249
 
               = "XX$teststring") >/dev/null 2>&1 &&
6250
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6251
 
              lt_cv_sys_max_cmd_len=$new_result &&
6252
 
              test $i != 17 # 1/2 MB should be enough
6253
 
      do
6254
 
        i=`expr $i + 1`
6255
 
        teststring=$teststring$teststring
6256
 
      done
6257
 
      teststring=
6258
 
      # Add a significant safety factor because C++ compilers can tack on massive
6259
 
      # amounts of additional arguments before passing them to the linker.
6260
 
      # It appears as though 1/2 is a usable value.
6261
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262
 
    fi
6263
 
    ;;
6264
 
  esac
6265
 
 
6266
 
fi
6267
 
 
6268
 
if test -n $lt_cv_sys_max_cmd_len ; then
6269
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6270
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6271
 
else
6272
 
  { echo "$as_me:$LINENO: result: none" >&5
6273
 
echo "${ECHO_T}none" >&6; }
6274
 
fi
6275
 
 
6276
 
 
6277
 
 
6278
 
 
6279
 
 
6280
6825
# Check for command to grab the raw symbol name followed by C symbol from nm.
6281
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6282
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6283
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6284
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6827
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6828
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6829
  $as_echo_n "(cached) " >&6
6285
6830
else
6286
6831
 
6287
6832
# These are sane defaults that work on at least a few old systems.
6293
6838
# Regexp to match symbols that can be accessed directly from C.
6294
6839
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6840
 
6296
 
# Transform an extracted symbol line into a proper C declaration
6297
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6298
 
 
6299
 
# Transform an extracted symbol line into symbol name and symbol address
6300
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6301
 
 
6302
6841
# Define system-specific variables.
6303
6842
case $host_os in
6304
6843
aix*)
6305
6844
  symcode='[BCDT]'
6306
6845
  ;;
6307
 
cygwin* | mingw* | pw32*)
 
6846
cygwin* | mingw* | pw32* | cegcc*)
6308
6847
  symcode='[ABCDGISTW]'
6309
6848
  ;;
6310
 
hpux*) # Its linker distinguishes data from code symbols
 
6849
hpux*)
6311
6850
  if test "$host_cpu" = ia64; then
6312
6851
    symcode='[ABCDEGRST]'
6313
6852
  fi
6314
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6316
 
  ;;
6317
 
linux* | k*bsd*-gnu)
6318
 
  if test "$host_cpu" = ia64; then
6319
 
    symcode='[ABCDGIRSTW]'
6320
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6322
 
  fi
6323
6853
  ;;
6324
6854
irix* | nonstopux*)
6325
6855
  symcode='[BCDEGRST]'
6344
6874
  ;;
6345
6875
esac
6346
6876
 
 
6877
# If we're using GNU nm, then use its standard symbol codes.
 
6878
case `$NM -V 2>&1` in
 
6879
*GNU* | *'with BFD'*)
 
6880
  symcode='[ABCDGIRSTW]' ;;
 
6881
esac
 
6882
 
 
6883
# Transform an extracted symbol line into a proper C declaration.
 
6884
# Some systems (esp. on ia64) link data and code symbols differently,
 
6885
# so use this general approach.
 
6886
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6887
 
 
6888
# Transform an extracted symbol line into symbol name and symbol address
 
6889
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6890
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'"
 
6891
 
6347
6892
# Handle CRLF in mingw tool chain
6348
6893
opt_cr=
6349
6894
case $build_os in
6350
6895
mingw*)
6351
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6896
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352
6897
  ;;
6353
6898
esac
6354
6899
 
6355
 
# If we're using GNU nm, then use its standard symbol codes.
6356
 
case `$NM -V 2>&1` in
6357
 
*GNU* | *'with BFD'*)
6358
 
  symcode='[ABCDGIRSTW]' ;;
6359
 
esac
6360
 
 
6361
 
# Try without a prefix undercore, then with it.
 
6900
# Try without a prefix underscore, then with it.
6362
6901
for ac_symprfx in "" "_"; do
6363
6902
 
6364
6903
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365
6904
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
6905
 
6367
6906
  # Write the raw and C identifiers.
6368
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6907
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6908
    # Fake it for dumpbin and say T for any non-static function
 
6909
    # and D for any global variable.
 
6910
    # Also find C++ and __fastcall symbols from MSVC++,
 
6911
    # which start with @ or ?.
 
6912
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6913
"     {last_section=section; section=\$ 3};"\
 
6914
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6915
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6916
"     \$ 0!~/External *\|/{next};"\
 
6917
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6918
"     {if(hide[section]) next};"\
 
6919
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6920
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6921
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6922
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6923
"     ' prfx=^$ac_symprfx"
 
6924
  else
 
6925
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6926
  fi
 
6927
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6369
6928
 
6370
6929
  # Check to see that the pipe works correctly.
6371
6930
  pipe_works=no
6372
6931
 
6373
6932
  rm -f conftest*
6374
 
  cat > conftest.$ac_ext <<EOF
 
6933
  cat > conftest.$ac_ext <<_LT_EOF
6375
6934
#ifdef __cplusplus
6376
6935
extern "C" {
6377
6936
#endif
6378
6937
char nm_test_var;
6379
 
void nm_test_func(){}
 
6938
void nm_test_func(void);
 
6939
void nm_test_func(void){}
6380
6940
#ifdef __cplusplus
6381
6941
}
6382
6942
#endif
6383
6943
int main(){nm_test_var='a';nm_test_func();return(0);}
6384
 
EOF
 
6944
_LT_EOF
6385
6945
 
6386
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6946
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387
6947
  (eval $ac_compile) 2>&5
6388
6948
  ac_status=$?
6389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390
 
  (exit $ac_status); }; then
 
6949
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6950
  test $ac_status = 0; }; then
6391
6951
    # Now try to grab the symbols.
6392
6952
    nlist=conftest.nm
6393
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6394
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6953
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6954
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6395
6955
  ac_status=$?
6396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397
 
  (exit $ac_status); } && test -s "$nlist"; then
 
6956
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6957
  test $ac_status = 0; } && test -s "$nlist"; then
6398
6958
      # Try sorting and uniquifying the output.
6399
6959
      if sort "$nlist" | uniq > "$nlist"T; then
6400
6960
        mv -f "$nlist"T "$nlist"
6403
6963
      fi
6404
6964
 
6405
6965
      # Make sure that we snagged all the symbols we need.
6406
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408
 
          cat <<EOF > conftest.$ac_ext
 
6966
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6967
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6968
          cat <<_LT_EOF > conftest.$ac_ext
 
6969
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6970
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6971
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6972
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6973
# define LT_DLSYM_CONST
 
6974
#elif defined(__osf__)
 
6975
/* This system does not cope well with relocations in const data.  */
 
6976
# define LT_DLSYM_CONST
 
6977
#else
 
6978
# define LT_DLSYM_CONST const
 
6979
#endif
 
6980
 
6409
6981
#ifdef __cplusplus
6410
6982
extern "C" {
6411
6983
#endif
6412
6984
 
6413
 
EOF
 
6985
_LT_EOF
6414
6986
          # Now generate the symbol file.
6415
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6416
 
 
6417
 
          cat <<EOF >> conftest.$ac_ext
6418
 
#if defined (__STDC__) && __STDC__
6419
 
# define lt_ptr_t void *
6420
 
#else
6421
 
# define lt_ptr_t char *
6422
 
# define const
6423
 
#endif
6424
 
 
6425
 
/* The mapping between symbol names and symbols. */
6426
 
const struct {
 
6987
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6988
 
 
6989
          cat <<_LT_EOF >> conftest.$ac_ext
 
6990
 
 
6991
/* The mapping between symbol names and symbols.  */
 
6992
LT_DLSYM_CONST struct {
6427
6993
  const char *name;
6428
 
  lt_ptr_t address;
 
6994
  void       *address;
6429
6995
}
6430
 
lt_preloaded_symbols[] =
 
6996
lt__PROGRAM__LTX_preloaded_symbols[] =
6431
6997
{
6432
 
EOF
6433
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434
 
          cat <<\EOF >> conftest.$ac_ext
6435
 
  {0, (lt_ptr_t) 0}
 
6998
  { "@PROGRAM@", (void *) 0 },
 
6999
_LT_EOF
 
7000
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7001
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7002
  {0, (void *) 0}
6436
7003
};
6437
7004
 
 
7005
/* This works around a problem in FreeBSD linker */
 
7006
#ifdef FREEBSD_WORKAROUND
 
7007
static const void *lt_preloaded_setup() {
 
7008
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7009
}
 
7010
#endif
 
7011
 
6438
7012
#ifdef __cplusplus
6439
7013
}
6440
7014
#endif
6441
 
EOF
 
7015
_LT_EOF
6442
7016
          # Now try linking the two files.
6443
7017
          mv conftest.$ac_objext conftstm.$ac_objext
6444
 
          lt_save_LIBS="$LIBS"
6445
 
          lt_save_CFLAGS="$CFLAGS"
 
7018
          lt_globsym_save_LIBS=$LIBS
 
7019
          lt_globsym_save_CFLAGS=$CFLAGS
6446
7020
          LIBS="conftstm.$ac_objext"
6447
7021
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7022
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6449
7023
  (eval $ac_link) 2>&5
6450
7024
  ac_status=$?
6451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7025
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7026
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6453
7027
            pipe_works=yes
6454
7028
          fi
6455
 
          LIBS="$lt_save_LIBS"
6456
 
          CFLAGS="$lt_save_CFLAGS"
 
7029
          LIBS=$lt_globsym_save_LIBS
 
7030
          CFLAGS=$lt_globsym_save_CFLAGS
6457
7031
        else
6458
7032
          echo "cannot find nm_test_func in $nlist" >&5
6459
7033
        fi
6483
7057
  lt_cv_sys_global_symbol_to_cdecl=
6484
7058
fi
6485
7059
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486
 
  { echo "$as_me:$LINENO: result: failed" >&5
6487
 
echo "${ECHO_T}failed" >&6; }
6488
 
else
6489
 
  { echo "$as_me:$LINENO: result: ok" >&5
6490
 
echo "${ECHO_T}ok" >&6; }
6491
 
fi
6492
 
 
6493
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
6494
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6495
 
if test "${lt_cv_objdir+set}" = set; then
6496
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6497
 
else
6498
 
  rm -f .libs 2>/dev/null
6499
 
mkdir .libs 2>/dev/null
6500
 
if test -d .libs; then
6501
 
  lt_cv_objdir=.libs
6502
 
else
6503
 
  # MS-DOS does not allow filenames that begin with a dot.
6504
 
  lt_cv_objdir=_libs
6505
 
fi
6506
 
rmdir .libs 2>/dev/null
6507
 
fi
6508
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6509
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6510
 
objdir=$lt_cv_objdir
6511
 
 
6512
 
 
6513
 
 
6514
 
 
6515
 
 
6516
 
case $host_os in
6517
 
aix3*)
6518
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6519
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6520
 
  # vanish in a puff of smoke.
6521
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6522
 
    COLLECT_NAMES=
6523
 
    export COLLECT_NAMES
6524
 
  fi
6525
 
  ;;
6526
 
esac
6527
 
 
6528
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6529
 
# metacharacters that are still active within double-quoted strings.
6530
 
Xsed='sed -e 1s/^X//'
6531
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6532
 
 
6533
 
# Same as above, but do not quote variable references.
6534
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6535
 
 
6536
 
# Sed substitution to delay expansion of an escaped shell variable in a
6537
 
# double_quote_subst'ed string.
6538
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6539
 
 
6540
 
# Sed substitution to avoid accidental globbing in evaled expressions
6541
 
no_glob_subst='s/\*/\\\*/g'
6542
 
 
6543
 
# Constants:
6544
 
rm="rm -f"
6545
 
 
6546
 
# Global variables:
6547
 
default_ofile=libtool
6548
 
can_build_shared=yes
6549
 
 
6550
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6551
 
# which needs '.lib').
6552
 
libext=a
6553
 
ltmain="$ac_aux_dir/ltmain.sh"
6554
 
ofile="$default_ofile"
6555
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6556
 
 
6557
 
if test -n "$ac_tool_prefix"; then
6558
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6560
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6561
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562
 
if test "${ac_cv_prog_AR+set}" = set; then
6563
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6564
 
else
6565
 
  if test -n "$AR"; then
6566
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6567
 
else
6568
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569
 
for as_dir in $PATH
6570
 
do
6571
 
  IFS=$as_save_IFS
6572
 
  test -z "$as_dir" && as_dir=.
6573
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6574
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6576
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577
 
    break 2
6578
 
  fi
6579
 
done
6580
 
done
6581
 
IFS=$as_save_IFS
6582
 
 
6583
 
fi
6584
 
fi
6585
 
AR=$ac_cv_prog_AR
6586
 
if test -n "$AR"; then
6587
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6588
 
echo "${ECHO_T}$AR" >&6; }
6589
 
else
6590
 
  { echo "$as_me:$LINENO: result: no" >&5
6591
 
echo "${ECHO_T}no" >&6; }
6592
 
fi
6593
 
 
6594
 
 
6595
 
fi
6596
 
if test -z "$ac_cv_prog_AR"; then
6597
 
  ac_ct_AR=$AR
6598
 
  # Extract the first word of "ar", so it can be a program name with args.
6599
 
set dummy ar; ac_word=$2
6600
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6604
 
else
6605
 
  if test -n "$ac_ct_AR"; then
6606
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607
 
else
6608
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609
 
for as_dir in $PATH
6610
 
do
6611
 
  IFS=$as_save_IFS
6612
 
  test -z "$as_dir" && as_dir=.
6613
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6614
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615
 
    ac_cv_prog_ac_ct_AR="ar"
6616
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617
 
    break 2
6618
 
  fi
6619
 
done
6620
 
done
6621
 
IFS=$as_save_IFS
6622
 
 
6623
 
fi
6624
 
fi
6625
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626
 
if test -n "$ac_ct_AR"; then
6627
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
6629
 
else
6630
 
  { echo "$as_me:$LINENO: result: no" >&5
6631
 
echo "${ECHO_T}no" >&6; }
6632
 
fi
6633
 
 
6634
 
  if test "x$ac_ct_AR" = x; then
6635
 
    AR="false"
6636
 
  else
6637
 
    case $cross_compiling:$ac_tool_warned in
6638
 
yes:)
6639
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6640
 
whose name does not start with the host triplet.  If you think this
6641
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6642
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6643
 
whose name does not start with the host triplet.  If you think this
6644
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6645
 
ac_tool_warned=yes ;;
6646
 
esac
6647
 
    AR=$ac_ct_AR
6648
 
  fi
6649
 
else
6650
 
  AR="$ac_cv_prog_AR"
6651
 
fi
6652
 
 
6653
 
if test -n "$ac_tool_prefix"; then
6654
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6660
 
else
6661
 
  if test -n "$RANLIB"; then
6662
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663
 
else
6664
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665
 
for as_dir in $PATH
6666
 
do
6667
 
  IFS=$as_save_IFS
6668
 
  test -z "$as_dir" && as_dir=.
6669
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6670
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673
 
    break 2
6674
 
  fi
6675
 
done
6676
 
done
6677
 
IFS=$as_save_IFS
6678
 
 
6679
 
fi
6680
 
fi
6681
 
RANLIB=$ac_cv_prog_RANLIB
6682
 
if test -n "$RANLIB"; then
6683
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6684
 
echo "${ECHO_T}$RANLIB" >&6; }
6685
 
else
6686
 
  { echo "$as_me:$LINENO: result: no" >&5
6687
 
echo "${ECHO_T}no" >&6; }
6688
 
fi
6689
 
 
6690
 
 
6691
 
fi
6692
 
if test -z "$ac_cv_prog_RANLIB"; then
6693
 
  ac_ct_RANLIB=$RANLIB
6694
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6695
 
set dummy ranlib; ac_word=$2
6696
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6700
 
else
6701
 
  if test -n "$ac_ct_RANLIB"; then
6702
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703
 
else
6704
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705
 
for as_dir in $PATH
6706
 
do
6707
 
  IFS=$as_save_IFS
6708
 
  test -z "$as_dir" && as_dir=.
6709
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6710
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6712
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713
 
    break 2
6714
 
  fi
6715
 
done
6716
 
done
6717
 
IFS=$as_save_IFS
6718
 
 
6719
 
fi
6720
 
fi
6721
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722
 
if test -n "$ac_ct_RANLIB"; then
6723
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6724
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6725
 
else
6726
 
  { echo "$as_me:$LINENO: result: no" >&5
6727
 
echo "${ECHO_T}no" >&6; }
6728
 
fi
6729
 
 
6730
 
  if test "x$ac_ct_RANLIB" = x; then
6731
 
    RANLIB=":"
6732
 
  else
6733
 
    case $cross_compiling:$ac_tool_warned in
6734
 
yes:)
6735
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6736
 
whose name does not start with the host triplet.  If you think this
6737
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6738
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6739
 
whose name does not start with the host triplet.  If you think this
6740
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6741
 
ac_tool_warned=yes ;;
6742
 
esac
6743
 
    RANLIB=$ac_ct_RANLIB
6744
 
  fi
6745
 
else
6746
 
  RANLIB="$ac_cv_prog_RANLIB"
6747
 
fi
6748
 
 
6749
 
if test -n "$ac_tool_prefix"; then
6750
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6752
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6755
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6756
 
else
6757
 
  if test -n "$STRIP"; then
6758
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759
 
else
6760
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761
 
for as_dir in $PATH
6762
 
do
6763
 
  IFS=$as_save_IFS
6764
 
  test -z "$as_dir" && as_dir=.
6765
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6766
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769
 
    break 2
6770
 
  fi
6771
 
done
6772
 
done
6773
 
IFS=$as_save_IFS
6774
 
 
6775
 
fi
6776
 
fi
6777
 
STRIP=$ac_cv_prog_STRIP
6778
 
if test -n "$STRIP"; then
6779
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6780
 
echo "${ECHO_T}$STRIP" >&6; }
6781
 
else
6782
 
  { echo "$as_me:$LINENO: result: no" >&5
6783
 
echo "${ECHO_T}no" >&6; }
6784
 
fi
6785
 
 
6786
 
 
6787
 
fi
6788
 
if test -z "$ac_cv_prog_STRIP"; then
6789
 
  ac_ct_STRIP=$STRIP
6790
 
  # Extract the first word of "strip", so it can be a program name with args.
6791
 
set dummy strip; ac_word=$2
6792
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6793
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6795
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6796
 
else
6797
 
  if test -n "$ac_ct_STRIP"; then
6798
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799
 
else
6800
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801
 
for as_dir in $PATH
6802
 
do
6803
 
  IFS=$as_save_IFS
6804
 
  test -z "$as_dir" && as_dir=.
6805
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6806
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807
 
    ac_cv_prog_ac_ct_STRIP="strip"
6808
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809
 
    break 2
6810
 
  fi
6811
 
done
6812
 
done
6813
 
IFS=$as_save_IFS
6814
 
 
6815
 
fi
6816
 
fi
6817
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818
 
if test -n "$ac_ct_STRIP"; then
6819
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6820
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6821
 
else
6822
 
  { echo "$as_me:$LINENO: result: no" >&5
6823
 
echo "${ECHO_T}no" >&6; }
6824
 
fi
6825
 
 
6826
 
  if test "x$ac_ct_STRIP" = x; then
6827
 
    STRIP=":"
6828
 
  else
6829
 
    case $cross_compiling:$ac_tool_warned in
6830
 
yes:)
6831
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832
 
whose name does not start with the host triplet.  If you think this
6833
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6834
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835
 
whose name does not start with the host triplet.  If you think this
6836
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837
 
ac_tool_warned=yes ;;
6838
 
esac
6839
 
    STRIP=$ac_ct_STRIP
6840
 
  fi
6841
 
else
6842
 
  STRIP="$ac_cv_prog_STRIP"
6843
 
fi
6844
 
 
6845
 
 
6846
 
old_CC="$CC"
6847
 
old_CFLAGS="$CFLAGS"
6848
 
 
6849
 
# Set sane defaults for various variables
6850
 
test -z "$AR" && AR=ar
6851
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6852
 
test -z "$AS" && AS=as
6853
 
test -z "$CC" && CC=cc
6854
 
test -z "$LTCC" && LTCC=$CC
6855
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6856
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6857
 
test -z "$LD" && LD=ld
6858
 
test -z "$LN_S" && LN_S="ln -s"
6859
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860
 
test -z "$NM" && NM=nm
6861
 
test -z "$SED" && SED=sed
6862
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6863
 
test -z "$RANLIB" && RANLIB=:
6864
 
test -z "$STRIP" && STRIP=:
6865
 
test -z "$ac_objext" && ac_objext=o
6866
 
 
6867
 
# Determine commands to create old-style static archives.
6868
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6869
 
old_postinstall_cmds='chmod 644 $oldlib'
6870
 
old_postuninstall_cmds=
6871
 
 
6872
 
if test -n "$RANLIB"; then
6873
 
  case $host_os in
6874
 
  openbsd*)
6875
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6876
 
    ;;
6877
 
  *)
6878
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6879
 
    ;;
6880
 
  esac
6881
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6882
 
fi
6883
 
 
6884
 
for cc_temp in $compiler""; do
6885
 
  case $cc_temp in
6886
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6887
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6888
 
    \-*) ;;
6889
 
    *) break;;
6890
 
  esac
6891
 
done
6892
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6893
 
 
6894
 
 
6895
 
# Only perform the check for file, if the check method requires it
6896
 
case $deplibs_check_method in
6897
 
file_magic*)
6898
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6899
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6900
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6901
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6903
 
else
6904
 
  case $MAGIC_CMD in
6905
 
[\\/*] |  ?:[\\/]*)
6906
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6907
 
  ;;
6908
 
*)
6909
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6910
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912
 
  for ac_dir in $ac_dummy; do
6913
 
    IFS="$lt_save_ifs"
6914
 
    test -z "$ac_dir" && ac_dir=.
6915
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
6916
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6917
 
      if test -n "$file_magic_test_file"; then
6918
 
        case $deplibs_check_method in
6919
 
        "file_magic "*)
6920
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923
 
            $EGREP "$file_magic_regex" > /dev/null; then
6924
 
            :
6925
 
          else
6926
 
            cat <<EOF 1>&2
6927
 
 
6928
 
*** Warning: the command libtool uses to detect shared libraries,
6929
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6930
 
*** The result is that libtool may fail to recognize shared libraries
6931
 
*** as such.  This will affect the creation of libtool libraries that
6932
 
*** depend on shared libraries, but programs linked with such libtool
6933
 
*** libraries will work regardless of this problem.  Nevertheless, you
6934
 
*** may want to report the problem to your system manager and/or to
6935
 
*** bug-libtool@gnu.org
6936
 
 
6937
 
EOF
6938
 
          fi ;;
6939
 
        esac
6940
 
      fi
6941
 
      break
6942
 
    fi
6943
 
  done
6944
 
  IFS="$lt_save_ifs"
6945
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6946
 
  ;;
6947
 
esac
6948
 
fi
6949
 
 
6950
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951
 
if test -n "$MAGIC_CMD"; then
6952
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6953
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6954
 
else
6955
 
  { echo "$as_me:$LINENO: result: no" >&5
6956
 
echo "${ECHO_T}no" >&6; }
6957
 
fi
6958
 
 
6959
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
6960
 
  if test -n "$ac_tool_prefix"; then
6961
 
    { echo "$as_me:$LINENO: checking for file" >&5
6962
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6963
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6964
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6965
 
else
6966
 
  case $MAGIC_CMD in
6967
 
[\\/*] |  ?:[\\/]*)
6968
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6969
 
  ;;
6970
 
*)
6971
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6972
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974
 
  for ac_dir in $ac_dummy; do
6975
 
    IFS="$lt_save_ifs"
6976
 
    test -z "$ac_dir" && ac_dir=.
6977
 
    if test -f $ac_dir/file; then
6978
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6979
 
      if test -n "$file_magic_test_file"; then
6980
 
        case $deplibs_check_method in
6981
 
        "file_magic "*)
6982
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6983
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985
 
            $EGREP "$file_magic_regex" > /dev/null; then
6986
 
            :
6987
 
          else
6988
 
            cat <<EOF 1>&2
6989
 
 
6990
 
*** Warning: the command libtool uses to detect shared libraries,
6991
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6992
 
*** The result is that libtool may fail to recognize shared libraries
6993
 
*** as such.  This will affect the creation of libtool libraries that
6994
 
*** depend on shared libraries, but programs linked with such libtool
6995
 
*** libraries will work regardless of this problem.  Nevertheless, you
6996
 
*** may want to report the problem to your system manager and/or to
6997
 
*** bug-libtool@gnu.org
6998
 
 
6999
 
EOF
7000
 
          fi ;;
7001
 
        esac
7002
 
      fi
7003
 
      break
7004
 
    fi
7005
 
  done
7006
 
  IFS="$lt_save_ifs"
7007
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7008
 
  ;;
7009
 
esac
7010
 
fi
7011
 
 
7012
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013
 
if test -n "$MAGIC_CMD"; then
7014
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7015
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7016
 
else
7017
 
  { echo "$as_me:$LINENO: result: no" >&5
7018
 
echo "${ECHO_T}no" >&6; }
7019
 
fi
7020
 
 
7021
 
  else
7022
 
    MAGIC_CMD=:
7023
 
  fi
7024
 
fi
7025
 
 
7026
 
  fi
7027
 
  ;;
7028
 
esac
 
7060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7061
$as_echo "failed" >&6; }
 
7062
else
 
7063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7064
$as_echo "ok" >&6; }
 
7065
fi
 
7066
 
 
7067
# Response file support.
 
7068
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7069
  nm_file_list_spec='@'
 
7070
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7071
  nm_file_list_spec='@'
 
7072
fi
 
7073
 
 
7074
 
 
7075
 
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7101
$as_echo_n "checking for sysroot... " >&6; }
 
7102
 
 
7103
# Check whether --with-sysroot was given.
 
7104
if test "${with_sysroot+set}" = set; then :
 
7105
  withval=$with_sysroot;
 
7106
else
 
7107
  with_sysroot=no
 
7108
fi
 
7109
 
 
7110
 
 
7111
lt_sysroot=
 
7112
case ${with_sysroot} in #(
 
7113
 yes)
 
7114
   if test "$GCC" = yes; then
 
7115
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7116
   fi
 
7117
   ;; #(
 
7118
 /*)
 
7119
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7120
   ;; #(
 
7121
 no|'')
 
7122
   ;; #(
 
7123
 *)
 
7124
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7125
$as_echo "${with_sysroot}" >&6; }
 
7126
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7127
   ;;
 
7128
esac
 
7129
 
 
7130
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7131
$as_echo "${lt_sysroot:-no}" >&6; }
 
7132
 
 
7133
 
 
7134
 
 
7135
 
 
7136
 
 
7137
# Check whether --enable-libtool-lock was given.
 
7138
if test "${enable_libtool_lock+set}" = set; then :
 
7139
  enableval=$enable_libtool_lock;
 
7140
fi
 
7141
 
 
7142
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7143
 
 
7144
# Some flags need to be propagated to the compiler or linker for good
 
7145
# libtool support.
 
7146
case $host in
 
7147
ia64-*-hpux*)
 
7148
  # Find out which ABI we are using.
 
7149
  echo 'int i;' > conftest.$ac_ext
 
7150
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7151
  (eval $ac_compile) 2>&5
 
7152
  ac_status=$?
 
7153
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7154
  test $ac_status = 0; }; then
 
7155
    case `/usr/bin/file conftest.$ac_objext` in
 
7156
      *ELF-32*)
 
7157
        HPUX_IA64_MODE="32"
 
7158
        ;;
 
7159
      *ELF-64*)
 
7160
        HPUX_IA64_MODE="64"
 
7161
        ;;
 
7162
    esac
 
7163
  fi
 
7164
  rm -rf conftest*
 
7165
  ;;
 
7166
*-*-irix6*)
 
7167
  # Find out which ABI we are using.
 
7168
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7169
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7170
  (eval $ac_compile) 2>&5
 
7171
  ac_status=$?
 
7172
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7173
  test $ac_status = 0; }; then
 
7174
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7175
      case `/usr/bin/file conftest.$ac_objext` in
 
7176
        *32-bit*)
 
7177
          LD="${LD-ld} -melf32bsmip"
 
7178
          ;;
 
7179
        *N32*)
 
7180
          LD="${LD-ld} -melf32bmipn32"
 
7181
          ;;
 
7182
        *64-bit*)
 
7183
          LD="${LD-ld} -melf64bmip"
 
7184
        ;;
 
7185
      esac
 
7186
    else
 
7187
      case `/usr/bin/file conftest.$ac_objext` in
 
7188
        *32-bit*)
 
7189
          LD="${LD-ld} -32"
 
7190
          ;;
 
7191
        *N32*)
 
7192
          LD="${LD-ld} -n32"
 
7193
          ;;
 
7194
        *64-bit*)
 
7195
          LD="${LD-ld} -64"
 
7196
          ;;
 
7197
      esac
 
7198
    fi
 
7199
  fi
 
7200
  rm -rf conftest*
 
7201
  ;;
 
7202
 
 
7203
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7204
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7205
  # Find out which ABI we are using.
 
7206
  echo 'int i;' > conftest.$ac_ext
 
7207
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7208
  (eval $ac_compile) 2>&5
 
7209
  ac_status=$?
 
7210
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7211
  test $ac_status = 0; }; then
 
7212
    case `/usr/bin/file conftest.o` in
 
7213
      *32-bit*)
 
7214
        case $host in
 
7215
          x86_64-*kfreebsd*-gnu)
 
7216
            LD="${LD-ld} -m elf_i386_fbsd"
 
7217
            ;;
 
7218
          x86_64-*linux*)
 
7219
            LD="${LD-ld} -m elf_i386"
 
7220
            ;;
 
7221
          ppc64-*linux*|powerpc64-*linux*)
 
7222
            LD="${LD-ld} -m elf32ppclinux"
 
7223
            ;;
 
7224
          s390x-*linux*)
 
7225
            LD="${LD-ld} -m elf_s390"
 
7226
            ;;
 
7227
          sparc64-*linux*)
 
7228
            LD="${LD-ld} -m elf32_sparc"
 
7229
            ;;
 
7230
        esac
 
7231
        ;;
 
7232
      *64-bit*)
 
7233
        case $host in
 
7234
          x86_64-*kfreebsd*-gnu)
 
7235
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7236
            ;;
 
7237
          x86_64-*linux*)
 
7238
            LD="${LD-ld} -m elf_x86_64"
 
7239
            ;;
 
7240
          ppc*-*linux*|powerpc*-*linux*)
 
7241
            LD="${LD-ld} -m elf64ppc"
 
7242
            ;;
 
7243
          s390*-*linux*|s390*-*tpf*)
 
7244
            LD="${LD-ld} -m elf64_s390"
 
7245
            ;;
 
7246
          sparc*-*linux*)
 
7247
            LD="${LD-ld} -m elf64_sparc"
 
7248
            ;;
 
7249
        esac
 
7250
        ;;
 
7251
    esac
 
7252
  fi
 
7253
  rm -rf conftest*
 
7254
  ;;
 
7255
 
 
7256
*-*-sco3.2v5*)
 
7257
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7258
  SAVE_CFLAGS="$CFLAGS"
 
7259
  CFLAGS="$CFLAGS -belf"
 
7260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7261
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7262
if ${lt_cv_cc_needs_belf+:} false; then :
 
7263
  $as_echo_n "(cached) " >&6
 
7264
else
 
7265
  ac_ext=c
 
7266
ac_cpp='$CPP $CPPFLAGS'
 
7267
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7268
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7269
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7270
 
 
7271
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7272
/* end confdefs.h.  */
 
7273
 
 
7274
int
 
7275
main ()
 
7276
{
 
7277
 
 
7278
  ;
 
7279
  return 0;
 
7280
}
 
7281
_ACEOF
 
7282
if ac_fn_c_try_link "$LINENO"; then :
 
7283
  lt_cv_cc_needs_belf=yes
 
7284
else
 
7285
  lt_cv_cc_needs_belf=no
 
7286
fi
 
7287
rm -f core conftest.err conftest.$ac_objext \
 
7288
    conftest$ac_exeext conftest.$ac_ext
 
7289
     ac_ext=c
 
7290
ac_cpp='$CPP $CPPFLAGS'
 
7291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7294
 
 
7295
fi
 
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7297
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7298
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7299
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7300
    CFLAGS="$SAVE_CFLAGS"
 
7301
  fi
 
7302
  ;;
 
7303
*-*solaris*)
 
7304
  # Find out which ABI we are using.
 
7305
  echo 'int i;' > conftest.$ac_ext
 
7306
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7307
  (eval $ac_compile) 2>&5
 
7308
  ac_status=$?
 
7309
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7310
  test $ac_status = 0; }; then
 
7311
    case `/usr/bin/file conftest.o` in
 
7312
    *64-bit*)
 
7313
      case $lt_cv_prog_gnu_ld in
 
7314
      yes*)
 
7315
        case $host in
 
7316
        i?86-*-solaris*)
 
7317
          LD="${LD-ld} -m elf_x86_64"
 
7318
          ;;
 
7319
        sparc*-*-solaris*)
 
7320
          LD="${LD-ld} -m elf64_sparc"
 
7321
          ;;
 
7322
        esac
 
7323
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7324
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7325
          LD="${LD-ld}_sol2"
 
7326
        fi
 
7327
        ;;
 
7328
      *)
 
7329
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7330
          LD="${LD-ld} -64"
 
7331
        fi
 
7332
        ;;
 
7333
      esac
 
7334
      ;;
 
7335
    esac
 
7336
  fi
 
7337
  rm -rf conftest*
 
7338
  ;;
 
7339
esac
 
7340
 
 
7341
need_locks="$enable_libtool_lock"
 
7342
 
 
7343
if test -n "$ac_tool_prefix"; then
 
7344
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7345
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7347
$as_echo_n "checking for $ac_word... " >&6; }
 
7348
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7349
  $as_echo_n "(cached) " >&6
 
7350
else
 
7351
  if test -n "$MANIFEST_TOOL"; then
 
7352
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7353
else
 
7354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7355
for as_dir in $PATH
 
7356
do
 
7357
  IFS=$as_save_IFS
 
7358
  test -z "$as_dir" && as_dir=.
 
7359
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7360
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7361
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7363
    break 2
 
7364
  fi
 
7365
done
 
7366
  done
 
7367
IFS=$as_save_IFS
 
7368
 
 
7369
fi
 
7370
fi
 
7371
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7372
if test -n "$MANIFEST_TOOL"; then
 
7373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7374
$as_echo "$MANIFEST_TOOL" >&6; }
 
7375
else
 
7376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7377
$as_echo "no" >&6; }
 
7378
fi
 
7379
 
 
7380
 
 
7381
fi
 
7382
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7383
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7384
  # Extract the first word of "mt", so it can be a program name with args.
 
7385
set dummy mt; ac_word=$2
 
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7387
$as_echo_n "checking for $ac_word... " >&6; }
 
7388
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7389
  $as_echo_n "(cached) " >&6
 
7390
else
 
7391
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7392
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7393
else
 
7394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7395
for as_dir in $PATH
 
7396
do
 
7397
  IFS=$as_save_IFS
 
7398
  test -z "$as_dir" && as_dir=.
 
7399
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7400
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7401
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7402
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7403
    break 2
 
7404
  fi
 
7405
done
 
7406
  done
 
7407
IFS=$as_save_IFS
 
7408
 
 
7409
fi
 
7410
fi
 
7411
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7412
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7414
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7415
else
 
7416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7417
$as_echo "no" >&6; }
 
7418
fi
 
7419
 
 
7420
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7421
    MANIFEST_TOOL=":"
 
7422
  else
 
7423
    case $cross_compiling:$ac_tool_warned in
 
7424
yes:)
 
7425
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7426
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7427
ac_tool_warned=yes ;;
 
7428
esac
 
7429
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7430
  fi
 
7431
else
 
7432
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7433
fi
 
7434
 
 
7435
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7437
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7438
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7439
  $as_echo_n "(cached) " >&6
 
7440
else
 
7441
  lt_cv_path_mainfest_tool=no
 
7442
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7443
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7444
  cat conftest.err >&5
 
7445
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7446
    lt_cv_path_mainfest_tool=yes
 
7447
  fi
 
7448
  rm -f conftest*
 
7449
fi
 
7450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7451
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7452
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7453
  MANIFEST_TOOL=:
 
7454
fi
 
7455
 
 
7456
 
 
7457
 
 
7458
 
7029
7459
 
7030
7460
 
7031
7461
  case $host_os in
7033
7463
    if test -n "$ac_tool_prefix"; then
7034
7464
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7035
7465
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7036
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7467
$as_echo_n "checking for $ac_word... " >&6; }
 
7468
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7469
  $as_echo_n "(cached) " >&6
7040
7470
else
7041
7471
  if test -n "$DSYMUTIL"; then
7042
7472
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046
7476
do
7047
7477
  IFS=$as_save_IFS
7048
7478
  test -z "$as_dir" && as_dir=.
7049
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7050
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7479
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7480
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051
7481
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7052
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053
7483
    break 2
7054
7484
  fi
7055
7485
done
7056
 
done
 
7486
  done
7057
7487
IFS=$as_save_IFS
7058
7488
 
7059
7489
fi
7060
7490
fi
7061
7491
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7062
7492
if test -n "$DSYMUTIL"; then
7063
 
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7064
 
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7494
$as_echo "$DSYMUTIL" >&6; }
7065
7495
else
7066
 
  { echo "$as_me:$LINENO: result: no" >&5
7067
 
echo "${ECHO_T}no" >&6; }
 
7496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7497
$as_echo "no" >&6; }
7068
7498
fi
7069
7499
 
7070
7500
 
7073
7503
  ac_ct_DSYMUTIL=$DSYMUTIL
7074
7504
  # Extract the first word of "dsymutil", so it can be a program name with args.
7075
7505
set dummy dsymutil; ac_word=$2
7076
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7077
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7507
$as_echo_n "checking for $ac_word... " >&6; }
 
7508
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7509
  $as_echo_n "(cached) " >&6
7080
7510
else
7081
7511
  if test -n "$ac_ct_DSYMUTIL"; then
7082
7512
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086
7516
do
7087
7517
  IFS=$as_save_IFS
7088
7518
  test -z "$as_dir" && as_dir=.
7089
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7090
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7519
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7520
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091
7521
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7092
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7522
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093
7523
    break 2
7094
7524
  fi
7095
7525
done
7096
 
done
 
7526
  done
7097
7527
IFS=$as_save_IFS
7098
7528
 
7099
7529
fi
7100
7530
fi
7101
7531
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7102
7532
if test -n "$ac_ct_DSYMUTIL"; then
7103
 
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7104
 
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7534
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7105
7535
else
7106
 
  { echo "$as_me:$LINENO: result: no" >&5
7107
 
echo "${ECHO_T}no" >&6; }
 
7536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7537
$as_echo "no" >&6; }
7108
7538
fi
7109
7539
 
7110
7540
  if test "x$ac_ct_DSYMUTIL" = x; then
7112
7542
  else
7113
7543
    case $cross_compiling:$ac_tool_warned in
7114
7544
yes:)
7115
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7116
 
whose name does not start with the host triplet.  If you think this
7117
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7118
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7119
 
whose name does not start with the host triplet.  If you think this
7120
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121
7547
ac_tool_warned=yes ;;
7122
7548
esac
7123
7549
    DSYMUTIL=$ac_ct_DSYMUTIL
7129
7555
    if test -n "$ac_tool_prefix"; then
7130
7556
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7131
7557
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7132
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7559
$as_echo_n "checking for $ac_word... " >&6; }
 
7560
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7561
  $as_echo_n "(cached) " >&6
7136
7562
else
7137
7563
  if test -n "$NMEDIT"; then
7138
7564
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7142
7568
do
7143
7569
  IFS=$as_save_IFS
7144
7570
  test -z "$as_dir" && as_dir=.
7145
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7146
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7571
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7572
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147
7573
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7148
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149
7575
    break 2
7150
7576
  fi
7151
7577
done
7152
 
done
 
7578
  done
7153
7579
IFS=$as_save_IFS
7154
7580
 
7155
7581
fi
7156
7582
fi
7157
7583
NMEDIT=$ac_cv_prog_NMEDIT
7158
7584
if test -n "$NMEDIT"; then
7159
 
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7160
 
echo "${ECHO_T}$NMEDIT" >&6; }
 
7585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7586
$as_echo "$NMEDIT" >&6; }
7161
7587
else
7162
 
  { echo "$as_me:$LINENO: result: no" >&5
7163
 
echo "${ECHO_T}no" >&6; }
 
7588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7589
$as_echo "no" >&6; }
7164
7590
fi
7165
7591
 
7166
7592
 
7169
7595
  ac_ct_NMEDIT=$NMEDIT
7170
7596
  # Extract the first word of "nmedit", so it can be a program name with args.
7171
7597
set dummy nmedit; ac_word=$2
7172
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7599
$as_echo_n "checking for $ac_word... " >&6; }
 
7600
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7601
  $as_echo_n "(cached) " >&6
7176
7602
else
7177
7603
  if test -n "$ac_ct_NMEDIT"; then
7178
7604
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7182
7608
do
7183
7609
  IFS=$as_save_IFS
7184
7610
  test -z "$as_dir" && as_dir=.
7185
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7186
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7611
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7612
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187
7613
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7188
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7614
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189
7615
    break 2
7190
7616
  fi
7191
7617
done
7192
 
done
 
7618
  done
7193
7619
IFS=$as_save_IFS
7194
7620
 
7195
7621
fi
7196
7622
fi
7197
7623
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7198
7624
if test -n "$ac_ct_NMEDIT"; then
7199
 
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7200
 
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7625
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7626
$as_echo "$ac_ct_NMEDIT" >&6; }
7201
7627
else
7202
 
  { echo "$as_me:$LINENO: result: no" >&5
7203
 
echo "${ECHO_T}no" >&6; }
 
7628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7629
$as_echo "no" >&6; }
7204
7630
fi
7205
7631
 
7206
7632
  if test "x$ac_ct_NMEDIT" = x; then
7208
7634
  else
7209
7635
    case $cross_compiling:$ac_tool_warned in
7210
7636
yes:)
7211
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212
 
whose name does not start with the host triplet.  If you think this
7213
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7214
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215
 
whose name does not start with the host triplet.  If you think this
7216
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7637
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7638
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217
7639
ac_tool_warned=yes ;;
7218
7640
esac
7219
7641
    NMEDIT=$ac_ct_NMEDIT
7222
7644
  NMEDIT="$ac_cv_prog_NMEDIT"
7223
7645
fi
7224
7646
 
7225
 
 
7226
 
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7227
 
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7228
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7229
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7647
    if test -n "$ac_tool_prefix"; then
 
7648
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7649
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7651
$as_echo_n "checking for $ac_word... " >&6; }
 
7652
if ${ac_cv_prog_LIPO+:} false; then :
 
7653
  $as_echo_n "(cached) " >&6
 
7654
else
 
7655
  if test -n "$LIPO"; then
 
7656
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7657
else
 
7658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7659
for as_dir in $PATH
 
7660
do
 
7661
  IFS=$as_save_IFS
 
7662
  test -z "$as_dir" && as_dir=.
 
7663
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7664
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7665
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7666
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7667
    break 2
 
7668
  fi
 
7669
done
 
7670
  done
 
7671
IFS=$as_save_IFS
 
7672
 
 
7673
fi
 
7674
fi
 
7675
LIPO=$ac_cv_prog_LIPO
 
7676
if test -n "$LIPO"; then
 
7677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7678
$as_echo "$LIPO" >&6; }
 
7679
else
 
7680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7681
$as_echo "no" >&6; }
 
7682
fi
 
7683
 
 
7684
 
 
7685
fi
 
7686
if test -z "$ac_cv_prog_LIPO"; then
 
7687
  ac_ct_LIPO=$LIPO
 
7688
  # Extract the first word of "lipo", so it can be a program name with args.
 
7689
set dummy lipo; ac_word=$2
 
7690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7691
$as_echo_n "checking for $ac_word... " >&6; }
 
7692
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7693
  $as_echo_n "(cached) " >&6
 
7694
else
 
7695
  if test -n "$ac_ct_LIPO"; then
 
7696
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7697
else
 
7698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7699
for as_dir in $PATH
 
7700
do
 
7701
  IFS=$as_save_IFS
 
7702
  test -z "$as_dir" && as_dir=.
 
7703
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7704
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7705
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7706
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7707
    break 2
 
7708
  fi
 
7709
done
 
7710
  done
 
7711
IFS=$as_save_IFS
 
7712
 
 
7713
fi
 
7714
fi
 
7715
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7716
if test -n "$ac_ct_LIPO"; then
 
7717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7718
$as_echo "$ac_ct_LIPO" >&6; }
 
7719
else
 
7720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7721
$as_echo "no" >&6; }
 
7722
fi
 
7723
 
 
7724
  if test "x$ac_ct_LIPO" = x; then
 
7725
    LIPO=":"
 
7726
  else
 
7727
    case $cross_compiling:$ac_tool_warned in
 
7728
yes:)
 
7729
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7730
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7731
ac_tool_warned=yes ;;
 
7732
esac
 
7733
    LIPO=$ac_ct_LIPO
 
7734
  fi
 
7735
else
 
7736
  LIPO="$ac_cv_prog_LIPO"
 
7737
fi
 
7738
 
 
7739
    if test -n "$ac_tool_prefix"; then
 
7740
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7741
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7743
$as_echo_n "checking for $ac_word... " >&6; }
 
7744
if ${ac_cv_prog_OTOOL+:} false; then :
 
7745
  $as_echo_n "(cached) " >&6
 
7746
else
 
7747
  if test -n "$OTOOL"; then
 
7748
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7749
else
 
7750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7751
for as_dir in $PATH
 
7752
do
 
7753
  IFS=$as_save_IFS
 
7754
  test -z "$as_dir" && as_dir=.
 
7755
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7756
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7757
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7759
    break 2
 
7760
  fi
 
7761
done
 
7762
  done
 
7763
IFS=$as_save_IFS
 
7764
 
 
7765
fi
 
7766
fi
 
7767
OTOOL=$ac_cv_prog_OTOOL
 
7768
if test -n "$OTOOL"; then
 
7769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7770
$as_echo "$OTOOL" >&6; }
 
7771
else
 
7772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7773
$as_echo "no" >&6; }
 
7774
fi
 
7775
 
 
7776
 
 
7777
fi
 
7778
if test -z "$ac_cv_prog_OTOOL"; then
 
7779
  ac_ct_OTOOL=$OTOOL
 
7780
  # Extract the first word of "otool", so it can be a program name with args.
 
7781
set dummy otool; ac_word=$2
 
7782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7783
$as_echo_n "checking for $ac_word... " >&6; }
 
7784
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7785
  $as_echo_n "(cached) " >&6
 
7786
else
 
7787
  if test -n "$ac_ct_OTOOL"; then
 
7788
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7789
else
 
7790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7791
for as_dir in $PATH
 
7792
do
 
7793
  IFS=$as_save_IFS
 
7794
  test -z "$as_dir" && as_dir=.
 
7795
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7796
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7797
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7798
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7799
    break 2
 
7800
  fi
 
7801
done
 
7802
  done
 
7803
IFS=$as_save_IFS
 
7804
 
 
7805
fi
 
7806
fi
 
7807
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7808
if test -n "$ac_ct_OTOOL"; then
 
7809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7810
$as_echo "$ac_ct_OTOOL" >&6; }
 
7811
else
 
7812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7813
$as_echo "no" >&6; }
 
7814
fi
 
7815
 
 
7816
  if test "x$ac_ct_OTOOL" = x; then
 
7817
    OTOOL=":"
 
7818
  else
 
7819
    case $cross_compiling:$ac_tool_warned in
 
7820
yes:)
 
7821
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7822
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7823
ac_tool_warned=yes ;;
 
7824
esac
 
7825
    OTOOL=$ac_ct_OTOOL
 
7826
  fi
 
7827
else
 
7828
  OTOOL="$ac_cv_prog_OTOOL"
 
7829
fi
 
7830
 
 
7831
    if test -n "$ac_tool_prefix"; then
 
7832
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7833
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7835
$as_echo_n "checking for $ac_word... " >&6; }
 
7836
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7837
  $as_echo_n "(cached) " >&6
 
7838
else
 
7839
  if test -n "$OTOOL64"; then
 
7840
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7841
else
 
7842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7843
for as_dir in $PATH
 
7844
do
 
7845
  IFS=$as_save_IFS
 
7846
  test -z "$as_dir" && as_dir=.
 
7847
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7848
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7849
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7850
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7851
    break 2
 
7852
  fi
 
7853
done
 
7854
  done
 
7855
IFS=$as_save_IFS
 
7856
 
 
7857
fi
 
7858
fi
 
7859
OTOOL64=$ac_cv_prog_OTOOL64
 
7860
if test -n "$OTOOL64"; then
 
7861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7862
$as_echo "$OTOOL64" >&6; }
 
7863
else
 
7864
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7865
$as_echo "no" >&6; }
 
7866
fi
 
7867
 
 
7868
 
 
7869
fi
 
7870
if test -z "$ac_cv_prog_OTOOL64"; then
 
7871
  ac_ct_OTOOL64=$OTOOL64
 
7872
  # Extract the first word of "otool64", so it can be a program name with args.
 
7873
set dummy otool64; ac_word=$2
 
7874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7875
$as_echo_n "checking for $ac_word... " >&6; }
 
7876
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7877
  $as_echo_n "(cached) " >&6
 
7878
else
 
7879
  if test -n "$ac_ct_OTOOL64"; then
 
7880
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7881
else
 
7882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7883
for as_dir in $PATH
 
7884
do
 
7885
  IFS=$as_save_IFS
 
7886
  test -z "$as_dir" && as_dir=.
 
7887
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7888
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7889
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7890
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7891
    break 2
 
7892
  fi
 
7893
done
 
7894
  done
 
7895
IFS=$as_save_IFS
 
7896
 
 
7897
fi
 
7898
fi
 
7899
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7900
if test -n "$ac_ct_OTOOL64"; then
 
7901
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7902
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7903
else
 
7904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7905
$as_echo "no" >&6; }
 
7906
fi
 
7907
 
 
7908
  if test "x$ac_ct_OTOOL64" = x; then
 
7909
    OTOOL64=":"
 
7910
  else
 
7911
    case $cross_compiling:$ac_tool_warned in
 
7912
yes:)
 
7913
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7914
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7915
ac_tool_warned=yes ;;
 
7916
esac
 
7917
    OTOOL64=$ac_ct_OTOOL64
 
7918
  fi
 
7919
else
 
7920
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7921
fi
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7950
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7951
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7952
  $as_echo_n "(cached) " >&6
7230
7953
else
7231
7954
  lt_cv_apple_cc_single_mod=no
7232
7955
      if test -z "${LT_MULTI_MODULE}"; then
7233
 
   # By default we will add the -single_module flag. You can override
7234
 
   # by either setting the environment variable LT_MULTI_MODULE
7235
 
   # non-empty at configure time, or by adding -multi_module to the
7236
 
   # link flags.
7237
 
   echo "int foo(void){return 1;}" > conftest.c
7238
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7239
 
     -dynamiclib ${wl}-single_module conftest.c
7240
 
   if test -f libconftest.dylib; then
7241
 
     lt_cv_apple_cc_single_mod=yes
7242
 
     rm -rf libconftest.dylib*
7243
 
   fi
7244
 
   rm conftest.c
 
7956
        # By default we will add the -single_module flag. You can override
 
7957
        # by either setting the environment variable LT_MULTI_MODULE
 
7958
        # non-empty at configure time, or by adding -multi_module to the
 
7959
        # link flags.
 
7960
        rm -rf libconftest.dylib*
 
7961
        echo "int foo(void){return 1;}" > conftest.c
 
7962
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7963
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7964
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7965
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7966
        _lt_result=$?
 
7967
        # If there is a non-empty error log, and "single_module"
 
7968
        # appears in it, assume the flag caused a linker warning
 
7969
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7970
          cat conftest.err >&5
 
7971
        # Otherwise, if the output was created with a 0 exit code from
 
7972
        # the compiler, it worked.
 
7973
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7974
          lt_cv_apple_cc_single_mod=yes
 
7975
        else
 
7976
          cat conftest.err >&5
 
7977
        fi
 
7978
        rm -rf libconftest.dylib*
 
7979
        rm -f conftest.*
7245
7980
      fi
7246
7981
fi
7247
 
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7248
 
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7249
 
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7250
 
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7251
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7983
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7984
 
 
7985
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7986
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7987
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7988
  $as_echo_n "(cached) " >&6
7253
7989
else
7254
7990
  lt_cv_ld_exported_symbols_list=no
7255
7991
      save_LDFLAGS=$LDFLAGS
7256
7992
      echo "_main" > conftest.sym
7257
7993
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7258
 
      cat >conftest.$ac_ext <<_ACEOF
7259
 
/* confdefs.h.  */
7260
 
_ACEOF
7261
 
cat confdefs.h >>conftest.$ac_ext
7262
 
cat >>conftest.$ac_ext <<_ACEOF
 
7994
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263
7995
/* end confdefs.h.  */
7264
7996
 
7265
7997
int
7270
8002
  return 0;
7271
8003
}
7272
8004
_ACEOF
7273
 
rm -f conftest.$ac_objext conftest$ac_exeext
7274
 
if { (ac_try="$ac_link"
7275
 
case "(($ac_try" in
7276
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277
 
  *) ac_try_echo=$ac_try;;
7278
 
esac
7279
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280
 
  (eval "$ac_link") 2>conftest.er1
7281
 
  ac_status=$?
7282
 
  grep -v '^ *+' conftest.er1 >conftest.err
7283
 
  rm -f conftest.er1
7284
 
  cat conftest.err >&5
7285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286
 
  (exit $ac_status); } && {
7287
 
         test -z "$ac_c_werror_flag" ||
7288
 
         test ! -s conftest.err
7289
 
       } && test -s conftest$ac_exeext &&
7290
 
       $as_test_x conftest$ac_exeext; then
 
8005
if ac_fn_c_try_link "$LINENO"; then :
7291
8006
  lt_cv_ld_exported_symbols_list=yes
7292
8007
else
7293
 
  echo "$as_me: failed program was:" >&5
7294
 
sed 's/^/| /' conftest.$ac_ext >&5
7295
 
 
7296
 
        lt_cv_ld_exported_symbols_list=no
7297
 
fi
7298
 
 
7299
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7300
 
      conftest$ac_exeext conftest.$ac_ext
7301
 
   LDFLAGS="$save_LDFLAGS"
7302
 
 
7303
 
fi
7304
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7305
 
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
8008
  lt_cv_ld_exported_symbols_list=no
 
8009
fi
 
8010
rm -f core conftest.err conftest.$ac_objext \
 
8011
    conftest$ac_exeext conftest.$ac_ext
 
8012
        LDFLAGS="$save_LDFLAGS"
 
8013
 
 
8014
fi
 
8015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8016
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8017
 
 
8018
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8019
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8020
if ${lt_cv_ld_force_load+:} false; then :
 
8021
  $as_echo_n "(cached) " >&6
 
8022
else
 
8023
  lt_cv_ld_force_load=no
 
8024
      cat > conftest.c << _LT_EOF
 
8025
int forced_loaded() { return 2;}
 
8026
_LT_EOF
 
8027
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8028
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8029
      echo "$AR cru libconftest.a conftest.o" >&5
 
8030
      $AR cru libconftest.a conftest.o 2>&5
 
8031
      echo "$RANLIB libconftest.a" >&5
 
8032
      $RANLIB libconftest.a 2>&5
 
8033
      cat > conftest.c << _LT_EOF
 
8034
int main() { return 0;}
 
8035
_LT_EOF
 
8036
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8037
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8038
      _lt_result=$?
 
8039
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8040
        cat conftest.err >&5
 
8041
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
8042
        lt_cv_ld_force_load=yes
 
8043
      else
 
8044
        cat conftest.err >&5
 
8045
      fi
 
8046
        rm -f conftest.err libconftest.a conftest conftest.c
 
8047
        rm -rf conftest.dSYM
 
8048
 
 
8049
fi
 
8050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8051
$as_echo "$lt_cv_ld_force_load" >&6; }
7306
8052
    case $host_os in
7307
 
    rhapsody* | darwin1.[0123])
 
8053
    rhapsody* | darwin1.[012])
7308
8054
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7309
8055
    darwin1.*)
7310
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7311
 
    darwin*)
 
8056
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8057
    darwin*) # darwin 5.x on
7312
8058
      # if running on 10.5 or later, the deployment target defaults
7313
8059
      # to the OS version, if on x86, and 10.4, the deployment
7314
8060
      # target defaults to 10.4. Don't you love it?
7315
8061
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7316
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7317
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7318
 
   10.[012]*)
7319
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320
 
   10.*)
7321
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8062
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8063
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8064
        10.[012]*)
 
8065
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8066
        10.*)
 
8067
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7322
8068
      esac
7323
8069
    ;;
7324
8070
  esac
7328
8074
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7329
8075
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7330
8076
    else
7331
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
8077
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7332
8078
    fi
7333
 
    if test "$DSYMUTIL" != ":"; then
7334
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
8079
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8080
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7335
8081
    else
7336
8082
      _lt_dsymutil=
7337
8083
    fi
7338
8084
    ;;
7339
8085
  esac
7340
8086
 
7341
 
 
7342
 
enable_dlopen=no
7343
 
enable_win32_dll=no
7344
 
 
7345
 
# Check whether --enable-libtool-lock was given.
7346
 
if test "${enable_libtool_lock+set}" = set; then
7347
 
  enableval=$enable_libtool_lock;
7348
 
fi
7349
 
 
7350
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8087
for ac_header in dlfcn.h
 
8088
do :
 
8089
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8090
"
 
8091
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8092
  cat >>confdefs.h <<_ACEOF
 
8093
#define HAVE_DLFCN_H 1
 
8094
_ACEOF
 
8095
 
 
8096
fi
 
8097
 
 
8098
done
 
8099
 
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
# Set options
 
8105
 
 
8106
 
 
8107
 
 
8108
        enable_dlopen=no
 
8109
 
 
8110
 
 
8111
  enable_win32_dll=no
 
8112
 
 
8113
 
 
8114
            # Check whether --enable-shared was given.
 
8115
if test "${enable_shared+set}" = set; then :
 
8116
  enableval=$enable_shared; p=${PACKAGE-default}
 
8117
    case $enableval in
 
8118
    yes) enable_shared=yes ;;
 
8119
    no) enable_shared=no ;;
 
8120
    *)
 
8121
      enable_shared=no
 
8122
      # Look at the argument we got.  We use all the common list separators.
 
8123
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8124
      for pkg in $enableval; do
 
8125
        IFS="$lt_save_ifs"
 
8126
        if test "X$pkg" = "X$p"; then
 
8127
          enable_shared=yes
 
8128
        fi
 
8129
      done
 
8130
      IFS="$lt_save_ifs"
 
8131
      ;;
 
8132
    esac
 
8133
else
 
8134
  enable_shared=yes
 
8135
fi
 
8136
 
 
8137
 
 
8138
 
 
8139
 
 
8140
 
 
8141
 
 
8142
 
 
8143
 
 
8144
 
 
8145
  # Check whether --enable-static was given.
 
8146
if test "${enable_static+set}" = set; then :
 
8147
  enableval=$enable_static; p=${PACKAGE-default}
 
8148
    case $enableval in
 
8149
    yes) enable_static=yes ;;
 
8150
    no) enable_static=no ;;
 
8151
    *)
 
8152
     enable_static=no
 
8153
      # Look at the argument we got.  We use all the common list separators.
 
8154
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8155
      for pkg in $enableval; do
 
8156
        IFS="$lt_save_ifs"
 
8157
        if test "X$pkg" = "X$p"; then
 
8158
          enable_static=yes
 
8159
        fi
 
8160
      done
 
8161
      IFS="$lt_save_ifs"
 
8162
      ;;
 
8163
    esac
 
8164
else
 
8165
  enable_static=yes
 
8166
fi
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
7351
8175
 
7352
8176
 
7353
8177
# Check whether --with-pic was given.
7354
 
if test "${with_pic+set}" = set; then
7355
 
  withval=$with_pic; pic_mode="$withval"
 
8178
if test "${with_pic+set}" = set; then :
 
8179
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8180
    case $withval in
 
8181
    yes|no) pic_mode=$withval ;;
 
8182
    *)
 
8183
      pic_mode=default
 
8184
      # Look at the argument we got.  We use all the common list separators.
 
8185
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8186
      for lt_pkg in $withval; do
 
8187
        IFS="$lt_save_ifs"
 
8188
        if test "X$lt_pkg" = "X$lt_p"; then
 
8189
          pic_mode=yes
 
8190
        fi
 
8191
      done
 
8192
      IFS="$lt_save_ifs"
 
8193
      ;;
 
8194
    esac
7356
8195
else
7357
8196
  pic_mode=default
7358
8197
fi
7359
8198
 
 
8199
 
7360
8200
test -z "$pic_mode" && pic_mode=default
7361
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
  # Check whether --enable-fast-install was given.
 
8209
if test "${enable_fast_install+set}" = set; then :
 
8210
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8211
    case $enableval in
 
8212
    yes) enable_fast_install=yes ;;
 
8213
    no) enable_fast_install=no ;;
 
8214
    *)
 
8215
      enable_fast_install=no
 
8216
      # Look at the argument we got.  We use all the common list separators.
 
8217
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8218
      for pkg in $enableval; do
 
8219
        IFS="$lt_save_ifs"
 
8220
        if test "X$pkg" = "X$p"; then
 
8221
          enable_fast_install=yes
 
8222
        fi
 
8223
      done
 
8224
      IFS="$lt_save_ifs"
 
8225
      ;;
 
8226
    esac
 
8227
else
 
8228
  enable_fast_install=yes
 
8229
fi
 
8230
 
 
8231
 
 
8232
 
 
8233
 
 
8234
 
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
 
 
8240
 
 
8241
# This can be used to rebuild libtool when needed
 
8242
LIBTOOL_DEPS="$ltmain"
 
8243
 
 
8244
# Always use our own libtool.
 
8245
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8246
 
 
8247
 
 
8248
 
 
8249
 
 
8250
 
 
8251
 
 
8252
 
 
8253
 
 
8254
 
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
 
 
8260
 
 
8261
 
 
8262
 
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
 
 
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
 
 
8274
 
 
8275
 
 
8276
test -z "$LN_S" && LN_S="ln -s"
 
8277
 
 
8278
 
 
8279
 
 
8280
 
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
 
 
8291
if test -n "${ZSH_VERSION+set}" ; then
 
8292
   setopt NO_GLOB_SUBST
 
8293
fi
 
8294
 
 
8295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8296
$as_echo_n "checking for objdir... " >&6; }
 
8297
if ${lt_cv_objdir+:} false; then :
 
8298
  $as_echo_n "(cached) " >&6
 
8299
else
 
8300
  rm -f .libs 2>/dev/null
 
8301
mkdir .libs 2>/dev/null
 
8302
if test -d .libs; then
 
8303
  lt_cv_objdir=.libs
 
8304
else
 
8305
  # MS-DOS does not allow filenames that begin with a dot.
 
8306
  lt_cv_objdir=_libs
 
8307
fi
 
8308
rmdir .libs 2>/dev/null
 
8309
fi
 
8310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8311
$as_echo "$lt_cv_objdir" >&6; }
 
8312
objdir=$lt_cv_objdir
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
cat >>confdefs.h <<_ACEOF
 
8319
#define LT_OBJDIR "$lt_cv_objdir/"
 
8320
_ACEOF
 
8321
 
 
8322
 
 
8323
 
 
8324
 
 
8325
case $host_os in
 
8326
aix3*)
 
8327
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8328
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8329
  # vanish in a puff of smoke.
 
8330
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8331
    COLLECT_NAMES=
 
8332
    export COLLECT_NAMES
 
8333
  fi
 
8334
  ;;
 
8335
esac
 
8336
 
 
8337
# Global variables:
 
8338
ofile=libtool
 
8339
can_build_shared=yes
 
8340
 
 
8341
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8342
# which needs '.lib').
 
8343
libext=a
 
8344
 
 
8345
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8346
 
 
8347
old_CC="$CC"
 
8348
old_CFLAGS="$CFLAGS"
 
8349
 
 
8350
# Set sane defaults for various variables
 
8351
test -z "$CC" && CC=cc
 
8352
test -z "$LTCC" && LTCC=$CC
 
8353
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8354
test -z "$LD" && LD=ld
 
8355
test -z "$ac_objext" && ac_objext=o
 
8356
 
 
8357
for cc_temp in $compiler""; do
 
8358
  case $cc_temp in
 
8359
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8360
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8361
    \-*) ;;
 
8362
    *) break;;
 
8363
  esac
 
8364
done
 
8365
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8366
 
 
8367
 
 
8368
# Only perform the check for file, if the check method requires it
 
8369
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8370
case $deplibs_check_method in
 
8371
file_magic*)
 
8372
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8373
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8374
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8375
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8376
  $as_echo_n "(cached) " >&6
 
8377
else
 
8378
  case $MAGIC_CMD in
 
8379
[\\/*] |  ?:[\\/]*)
 
8380
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8381
  ;;
 
8382
*)
 
8383
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8384
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8385
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8386
  for ac_dir in $ac_dummy; do
 
8387
    IFS="$lt_save_ifs"
 
8388
    test -z "$ac_dir" && ac_dir=.
 
8389
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8390
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8391
      if test -n "$file_magic_test_file"; then
 
8392
        case $deplibs_check_method in
 
8393
        "file_magic "*)
 
8394
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8395
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8396
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8397
            $EGREP "$file_magic_regex" > /dev/null; then
 
8398
            :
 
8399
          else
 
8400
            cat <<_LT_EOF 1>&2
 
8401
 
 
8402
*** Warning: the command libtool uses to detect shared libraries,
 
8403
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8404
*** The result is that libtool may fail to recognize shared libraries
 
8405
*** as such.  This will affect the creation of libtool libraries that
 
8406
*** depend on shared libraries, but programs linked with such libtool
 
8407
*** libraries will work regardless of this problem.  Nevertheless, you
 
8408
*** may want to report the problem to your system manager and/or to
 
8409
*** bug-libtool@gnu.org
 
8410
 
 
8411
_LT_EOF
 
8412
          fi ;;
 
8413
        esac
 
8414
      fi
 
8415
      break
 
8416
    fi
 
8417
  done
 
8418
  IFS="$lt_save_ifs"
 
8419
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8420
  ;;
 
8421
esac
 
8422
fi
 
8423
 
 
8424
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8425
if test -n "$MAGIC_CMD"; then
 
8426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8427
$as_echo "$MAGIC_CMD" >&6; }
 
8428
else
 
8429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8430
$as_echo "no" >&6; }
 
8431
fi
 
8432
 
 
8433
 
 
8434
 
 
8435
 
 
8436
 
 
8437
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8438
  if test -n "$ac_tool_prefix"; then
 
8439
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8440
$as_echo_n "checking for file... " >&6; }
 
8441
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8442
  $as_echo_n "(cached) " >&6
 
8443
else
 
8444
  case $MAGIC_CMD in
 
8445
[\\/*] |  ?:[\\/]*)
 
8446
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8447
  ;;
 
8448
*)
 
8449
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8450
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8451
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8452
  for ac_dir in $ac_dummy; do
 
8453
    IFS="$lt_save_ifs"
 
8454
    test -z "$ac_dir" && ac_dir=.
 
8455
    if test -f $ac_dir/file; then
 
8456
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8457
      if test -n "$file_magic_test_file"; then
 
8458
        case $deplibs_check_method in
 
8459
        "file_magic "*)
 
8460
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8461
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8462
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8463
            $EGREP "$file_magic_regex" > /dev/null; then
 
8464
            :
 
8465
          else
 
8466
            cat <<_LT_EOF 1>&2
 
8467
 
 
8468
*** Warning: the command libtool uses to detect shared libraries,
 
8469
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8470
*** The result is that libtool may fail to recognize shared libraries
 
8471
*** as such.  This will affect the creation of libtool libraries that
 
8472
*** depend on shared libraries, but programs linked with such libtool
 
8473
*** libraries will work regardless of this problem.  Nevertheless, you
 
8474
*** may want to report the problem to your system manager and/or to
 
8475
*** bug-libtool@gnu.org
 
8476
 
 
8477
_LT_EOF
 
8478
          fi ;;
 
8479
        esac
 
8480
      fi
 
8481
      break
 
8482
    fi
 
8483
  done
 
8484
  IFS="$lt_save_ifs"
 
8485
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8486
  ;;
 
8487
esac
 
8488
fi
 
8489
 
 
8490
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8491
if test -n "$MAGIC_CMD"; then
 
8492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8493
$as_echo "$MAGIC_CMD" >&6; }
 
8494
else
 
8495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8496
$as_echo "no" >&6; }
 
8497
fi
 
8498
 
 
8499
 
 
8500
  else
 
8501
    MAGIC_CMD=:
 
8502
  fi
 
8503
fi
 
8504
 
 
8505
  fi
 
8506
  ;;
 
8507
esac
 
8508
 
7362
8509
# Use C for the default configuration in the libtool script
7363
 
tagname=
 
8510
 
7364
8511
lt_save_CC="$CC"
7365
8512
ac_ext=c
7366
8513
ac_cpp='$CPP $CPPFLAGS'
7383
8530
lt_simple_link_test_code='int main(){return(0);}'
7384
8531
 
7385
8532
 
 
8533
 
 
8534
 
 
8535
 
 
8536
 
 
8537
 
7386
8538
# If no C compiler was specified, use CC.
7387
8539
LTCC=${LTCC-"$CC"}
7388
8540
 
7392
8544
# Allow CC to be a program name with arguments.
7393
8545
compiler=$CC
7394
8546
 
 
8547
# Save the default compiler, since it gets overwritten when the other
 
8548
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8549
compiler_DEFAULT=$CC
7395
8550
 
7396
8551
# save warnings/boilerplate of simple test code
7397
8552
ac_outfile=conftest.$ac_objext
7398
8553
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7399
8554
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7400
8555
_lt_compiler_boilerplate=`cat conftest.err`
7401
 
$rm conftest*
 
8556
$RM conftest*
7402
8557
 
7403
8558
ac_outfile=conftest.$ac_objext
7404
8559
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7405
8560
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7406
8561
_lt_linker_boilerplate=`cat conftest.err`
7407
 
$rm -r conftest*
7408
 
 
7409
 
 
 
8562
$RM -r conftest*
 
8563
 
 
8564
 
 
8565
## CAVEAT EMPTOR:
 
8566
## There is no encapsulation within the following macros, do not change
 
8567
## the running order or otherwise move them around unless you know exactly
 
8568
## what you are doing...
 
8569
if test -n "$compiler"; then
7410
8570
 
7411
8571
lt_prog_compiler_no_builtin_flag=
7412
8572
 
7413
8573
if test "$GCC" = yes; then
7414
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7415
 
 
7416
 
 
7417
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7418
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7419
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7420
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8574
  case $cc_basename in
 
8575
  nvcc*)
 
8576
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8577
  *)
 
8578
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8579
  esac
 
8580
 
 
8581
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8582
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8583
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8584
  $as_echo_n "(cached) " >&6
7421
8585
else
7422
8586
  lt_cv_prog_compiler_rtti_exceptions=no
7423
 
  ac_outfile=conftest.$ac_objext
 
8587
   ac_outfile=conftest.$ac_objext
7424
8588
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425
8589
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7426
8590
   # Insert the option either (1) after the last *FLAGS variable, or
7432
8596
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433
8597
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434
8598
   -e 's:$: $lt_compiler_flag:'`
7435
 
   (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
 
8599
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7436
8600
   (eval "$lt_compile" 2>conftest.err)
7437
8601
   ac_status=$?
7438
8602
   cat conftest.err >&5
7439
 
   echo "$as_me:7439: \$? = $ac_status" >&5
 
8603
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440
8604
   if (exit $ac_status) && test -s "$ac_outfile"; then
7441
8605
     # The compiler can only warn and ignore the option if not recognized
7442
8606
     # So say no if there are warnings other than the usual output.
7443
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8607
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7444
8608
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445
8609
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446
8610
       lt_cv_prog_compiler_rtti_exceptions=yes
7447
8611
     fi
7448
8612
   fi
7449
 
   $rm conftest*
 
8613
   $RM conftest*
7450
8614
 
7451
8615
fi
7452
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7453
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8617
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7454
8618
 
7455
8619
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7456
8620
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7460
8624
 
7461
8625
fi
7462
8626
 
7463
 
lt_prog_compiler_wl=
 
8627
 
 
8628
 
 
8629
 
 
8630
 
 
8631
 
 
8632
  lt_prog_compiler_wl=
7464
8633
lt_prog_compiler_pic=
7465
8634
lt_prog_compiler_static=
7466
8635
 
7467
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7468
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7469
8636
 
7470
8637
  if test "$GCC" = yes; then
7471
8638
    lt_prog_compiler_wl='-Wl,'
7481
8648
      ;;
7482
8649
 
7483
8650
    amigaos*)
7484
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7485
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7486
 
      # like `-m68040'.
7487
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8651
      case $host_cpu in
 
8652
      powerpc)
 
8653
            # see comment about AmigaOS4 .so support
 
8654
            lt_prog_compiler_pic='-fPIC'
 
8655
        ;;
 
8656
      m68k)
 
8657
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8658
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8659
            # like `-m68040'.
 
8660
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8661
        ;;
 
8662
      esac
7488
8663
      ;;
7489
8664
 
7490
8665
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7491
8666
      # PIC is the default for these OSes.
7492
8667
      ;;
7493
8668
 
7494
 
    mingw* | cygwin* | pw32* | os2*)
 
8669
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7495
8670
      # This hack is so that the source file can tell whether it is being
7496
8671
      # built for inclusion in a dll (and should export symbols for example).
7497
8672
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7505
8680
      lt_prog_compiler_pic='-fno-common'
7506
8681
      ;;
7507
8682
 
 
8683
    haiku*)
 
8684
      # PIC is the default for Haiku.
 
8685
      # The "-static" flag exists, but is broken.
 
8686
      lt_prog_compiler_static=
 
8687
      ;;
 
8688
 
 
8689
    hpux*)
 
8690
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8691
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8692
      # sets the default TLS model and affects inlining.
 
8693
      case $host_cpu in
 
8694
      hppa*64*)
 
8695
        # +Z the default
 
8696
        ;;
 
8697
      *)
 
8698
        lt_prog_compiler_pic='-fPIC'
 
8699
        ;;
 
8700
      esac
 
8701
      ;;
 
8702
 
7508
8703
    interix[3-9]*)
7509
8704
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7510
8705
      # Instead, we relocate shared libraries at runtime.
7517
8712
      enable_shared=no
7518
8713
      ;;
7519
8714
 
 
8715
    *nto* | *qnx*)
 
8716
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8717
      # it will coredump.
 
8718
      lt_prog_compiler_pic='-fPIC -shared'
 
8719
      ;;
 
8720
 
7520
8721
    sysv4*MP*)
7521
8722
      if test -d /usr/nec; then
7522
8723
        lt_prog_compiler_pic=-Kconform_pic
7523
8724
      fi
7524
8725
      ;;
7525
8726
 
7526
 
    hpux*)
7527
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7528
 
      # not for PA HP-UX.
7529
 
      case $host_cpu in
7530
 
      hppa*64*|ia64*)
7531
 
        # +Z the default
7532
 
        ;;
7533
 
      *)
7534
 
        lt_prog_compiler_pic='-fPIC'
7535
 
        ;;
7536
 
      esac
7537
 
      ;;
7538
 
 
7539
8727
    *)
7540
8728
      lt_prog_compiler_pic='-fPIC'
7541
8729
      ;;
7542
8730
    esac
 
8731
 
 
8732
    case $cc_basename in
 
8733
    nvcc*) # Cuda Compiler Driver 2.2
 
8734
      lt_prog_compiler_wl='-Xlinker '
 
8735
      if test -n "$lt_prog_compiler_pic"; then
 
8736
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8737
      fi
 
8738
      ;;
 
8739
    esac
7543
8740
  else
7544
8741
    # PORTME Check for flag to pass linker flags through the system compiler.
7545
8742
    case $host_os in
7552
8749
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553
8750
      fi
7554
8751
      ;;
7555
 
      darwin*)
7556
 
        # PIC is the default on this platform
7557
 
        # Common symbols not allowed in MH_DYLIB files
7558
 
       case $cc_basename in
7559
 
         xlc*)
7560
 
         lt_prog_compiler_pic='-qnocommon'
7561
 
         lt_prog_compiler_wl='-Wl,'
7562
 
         ;;
7563
 
       esac
7564
 
       ;;
7565
8752
 
7566
 
    mingw* | cygwin* | pw32* | os2*)
 
8753
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7567
8754
      # This hack is so that the source file can tell whether it is being
7568
8755
      # built for inclusion in a dll (and should export symbols for example).
7569
8756
      lt_prog_compiler_pic='-DDLL_EXPORT'
7591
8778
      lt_prog_compiler_static='-non_shared'
7592
8779
      ;;
7593
8780
 
7594
 
    newsos6)
7595
 
      lt_prog_compiler_pic='-KPIC'
7596
 
      lt_prog_compiler_static='-Bstatic'
7597
 
      ;;
7598
 
 
7599
 
    linux* | k*bsd*-gnu)
 
8781
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7600
8782
      case $cc_basename in
7601
 
      icc* | ecc*)
 
8783
      # old Intel for x86_64 which still supported -KPIC.
 
8784
      ecc*)
7602
8785
        lt_prog_compiler_wl='-Wl,'
7603
8786
        lt_prog_compiler_pic='-KPIC'
7604
8787
        lt_prog_compiler_static='-static'
7605
8788
        ;;
7606
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8789
      # icc used to be incompatible with GCC.
 
8790
      # ICC 10 doesn't accept -KPIC any more.
 
8791
      icc* | ifort*)
 
8792
        lt_prog_compiler_wl='-Wl,'
 
8793
        lt_prog_compiler_pic='-fPIC'
 
8794
        lt_prog_compiler_static='-static'
 
8795
        ;;
 
8796
      # Lahey Fortran 8.1.
 
8797
      lf95*)
 
8798
        lt_prog_compiler_wl='-Wl,'
 
8799
        lt_prog_compiler_pic='--shared'
 
8800
        lt_prog_compiler_static='--static'
 
8801
        ;;
 
8802
      nagfor*)
 
8803
        # NAG Fortran compiler
 
8804
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8805
        lt_prog_compiler_pic='-PIC'
 
8806
        lt_prog_compiler_static='-Bstatic'
 
8807
        ;;
 
8808
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7607
8809
        # Portland Group compilers (*not* the Pentium gcc compiler,
7608
8810
        # which looks to be a dead project)
7609
8811
        lt_prog_compiler_wl='-Wl,'
7615
8817
        # All Alpha code is PIC.
7616
8818
        lt_prog_compiler_static='-non_shared'
7617
8819
        ;;
 
8820
      xl* | bgxl* | bgf* | mpixl*)
 
8821
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8822
        lt_prog_compiler_wl='-Wl,'
 
8823
        lt_prog_compiler_pic='-qpic'
 
8824
        lt_prog_compiler_static='-qstaticlink'
 
8825
        ;;
7618
8826
      *)
7619
 
        case `$CC -V 2>&1 | sed 5q` in
7620
 
        *Sun\ C*)
7621
 
          # Sun C 5.9
7622
 
          lt_prog_compiler_pic='-KPIC'
7623
 
          lt_prog_compiler_static='-Bstatic'
7624
 
          lt_prog_compiler_wl='-Wl,'
7625
 
          ;;
7626
 
        *Sun\ F*)
 
8827
        case `$CC -V 2>&1 | sed 5q` in
 
8828
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7627
8829
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7628
8830
          lt_prog_compiler_pic='-KPIC'
7629
8831
          lt_prog_compiler_static='-Bstatic'
7630
8832
          lt_prog_compiler_wl=''
7631
8833
          ;;
 
8834
        *Sun\ F* | *Sun*Fortran*)
 
8835
          lt_prog_compiler_pic='-KPIC'
 
8836
          lt_prog_compiler_static='-Bstatic'
 
8837
          lt_prog_compiler_wl='-Qoption ld '
 
8838
          ;;
 
8839
        *Sun\ C*)
 
8840
          # Sun C 5.9
 
8841
          lt_prog_compiler_pic='-KPIC'
 
8842
          lt_prog_compiler_static='-Bstatic'
 
8843
          lt_prog_compiler_wl='-Wl,'
 
8844
          ;;
 
8845
        *Intel*\ [CF]*Compiler*)
 
8846
          lt_prog_compiler_wl='-Wl,'
 
8847
          lt_prog_compiler_pic='-fPIC'
 
8848
          lt_prog_compiler_static='-static'
 
8849
          ;;
 
8850
        *Portland\ Group*)
 
8851
          lt_prog_compiler_wl='-Wl,'
 
8852
          lt_prog_compiler_pic='-fpic'
 
8853
          lt_prog_compiler_static='-Bstatic'
 
8854
          ;;
7632
8855
        esac
7633
8856
        ;;
7634
8857
      esac
7635
8858
      ;;
7636
8859
 
 
8860
    newsos6)
 
8861
      lt_prog_compiler_pic='-KPIC'
 
8862
      lt_prog_compiler_static='-Bstatic'
 
8863
      ;;
 
8864
 
 
8865
    *nto* | *qnx*)
 
8866
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8867
      # it will coredump.
 
8868
      lt_prog_compiler_pic='-fPIC -shared'
 
8869
      ;;
 
8870
 
7637
8871
    osf3* | osf4* | osf5*)
7638
8872
      lt_prog_compiler_wl='-Wl,'
7639
8873
      # All OSF/1 code is PIC.
7648
8882
      lt_prog_compiler_pic='-KPIC'
7649
8883
      lt_prog_compiler_static='-Bstatic'
7650
8884
      case $cc_basename in
7651
 
      f77* | f90* | f95*)
 
8885
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7652
8886
        lt_prog_compiler_wl='-Qoption ld ';;
7653
8887
      *)
7654
8888
        lt_prog_compiler_wl='-Wl,';;
7696
8930
    esac
7697
8931
  fi
7698
8932
 
7699
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7700
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8933
case $host_os in
 
8934
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8935
  *djgpp*)
 
8936
    lt_prog_compiler_pic=
 
8937
    ;;
 
8938
  *)
 
8939
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8940
    ;;
 
8941
esac
 
8942
 
 
8943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8944
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8945
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8946
  $as_echo_n "(cached) " >&6
 
8947
else
 
8948
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8949
fi
 
8950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8951
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8952
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7701
8953
 
7702
8954
#
7703
8955
# Check to make sure the PIC flag actually works.
7704
8956
#
7705
8957
if test -n "$lt_prog_compiler_pic"; then
7706
 
 
7707
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7708
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7709
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7710
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8958
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8959
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8960
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8961
  $as_echo_n "(cached) " >&6
7711
8962
else
7712
8963
  lt_cv_prog_compiler_pic_works=no
7713
 
  ac_outfile=conftest.$ac_objext
 
8964
   ac_outfile=conftest.$ac_objext
7714
8965
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715
8966
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7716
8967
   # Insert the option either (1) after the last *FLAGS variable, or
7722
8973
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723
8974
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724
8975
   -e 's:$: $lt_compiler_flag:'`
7725
 
   (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
 
8976
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726
8977
   (eval "$lt_compile" 2>conftest.err)
7727
8978
   ac_status=$?
7728
8979
   cat conftest.err >&5
7729
 
   echo "$as_me:7729: \$? = $ac_status" >&5
 
8980
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730
8981
   if (exit $ac_status) && test -s "$ac_outfile"; then
7731
8982
     # The compiler can only warn and ignore the option if not recognized
7732
8983
     # So say no if there are warnings other than the usual output.
7733
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8984
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734
8985
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735
8986
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736
8987
       lt_cv_prog_compiler_pic_works=yes
7737
8988
     fi
7738
8989
   fi
7739
 
   $rm conftest*
 
8990
   $RM conftest*
7740
8991
 
7741
8992
fi
7742
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7743
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
8993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8994
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7744
8995
 
7745
8996
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7746
8997
    case $lt_prog_compiler_pic in
7753
9004
fi
7754
9005
 
7755
9006
fi
7756
 
case $host_os in
7757
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7758
 
  *djgpp*)
7759
 
    lt_prog_compiler_pic=
7760
 
    ;;
7761
 
  *)
7762
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7763
 
    ;;
7764
 
esac
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
 
 
9013
 
 
9014
 
 
9015
 
 
9016
 
7765
9017
 
7766
9018
#
7767
9019
# Check to make sure the static flag actually works.
7768
9020
#
7769
9021
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7770
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7771
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7772
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7773
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9023
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9024
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9025
  $as_echo_n "(cached) " >&6
7774
9026
else
7775
9027
  lt_cv_prog_compiler_static_works=no
7776
9028
   save_LDFLAGS="$LDFLAGS"
7782
9034
     if test -s conftest.err; then
7783
9035
       # Append any errors to the config.log.
7784
9036
       cat conftest.err 1>&5
7785
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9037
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7786
9038
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7787
9039
       if diff conftest.exp conftest.er2 >/dev/null; then
7788
9040
         lt_cv_prog_compiler_static_works=yes
7791
9043
       lt_cv_prog_compiler_static_works=yes
7792
9044
     fi
7793
9045
   fi
7794
 
   $rm -r conftest*
 
9046
   $RM -r conftest*
7795
9047
   LDFLAGS="$save_LDFLAGS"
7796
9048
 
7797
9049
fi
7798
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7799
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
9050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9051
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7800
9052
 
7801
9053
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7802
9054
    :
7805
9057
fi
7806
9058
 
7807
9059
 
7808
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7809
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7810
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7811
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7812
 
else
7813
 
  lt_cv_prog_compiler_c_o=no
7814
 
   $rm -r conftest 2>/dev/null
7815
 
   mkdir conftest
7816
 
   cd conftest
7817
 
   mkdir out
7818
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819
 
 
7820
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7821
 
   # Insert the option either (1) after the last *FLAGS variable, or
7822
 
   # (2) before a word containing "conftest.", or (3) at the end.
7823
 
   # Note that $ac_compile itself does not contain backslashes and begins
7824
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7825
 
   lt_compile=`echo "$ac_compile" | $SED \
7826
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828
 
   -e 's:$: $lt_compiler_flag:'`
7829
 
   (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830
 
   (eval "$lt_compile" 2>out/conftest.err)
7831
 
   ac_status=$?
7832
 
   cat out/conftest.err >&5
7833
 
   echo "$as_me:7833: \$? = $ac_status" >&5
7834
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7835
 
   then
7836
 
     # The compiler can only warn and ignore the option if not recognized
7837
 
     # So say no if there are warnings
7838
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7839
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7840
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7841
 
       lt_cv_prog_compiler_c_o=yes
7842
 
     fi
7843
 
   fi
7844
 
   chmod u+w . 2>&5
7845
 
   $rm conftest*
7846
 
   # SGI C++ compiler will create directory out/ii_files/ for
7847
 
   # template instantiation
7848
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7849
 
   $rm out/* && rmdir out
7850
 
   cd ..
7851
 
   rmdir conftest
7852
 
   $rm conftest*
7853
 
 
7854
 
fi
7855
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7856
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9060
 
 
9061
 
 
9062
 
 
9063
 
 
9064
 
 
9065
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9066
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9067
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9068
  $as_echo_n "(cached) " >&6
 
9069
else
 
9070
  lt_cv_prog_compiler_c_o=no
 
9071
   $RM -r conftest 2>/dev/null
 
9072
   mkdir conftest
 
9073
   cd conftest
 
9074
   mkdir out
 
9075
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9076
 
 
9077
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9078
   # Insert the option either (1) after the last *FLAGS variable, or
 
9079
   # (2) before a word containing "conftest.", or (3) at the end.
 
9080
   # Note that $ac_compile itself does not contain backslashes and begins
 
9081
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9082
   lt_compile=`echo "$ac_compile" | $SED \
 
9083
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9084
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9085
   -e 's:$: $lt_compiler_flag:'`
 
9086
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9087
   (eval "$lt_compile" 2>out/conftest.err)
 
9088
   ac_status=$?
 
9089
   cat out/conftest.err >&5
 
9090
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9091
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9092
   then
 
9093
     # The compiler can only warn and ignore the option if not recognized
 
9094
     # So say no if there are warnings
 
9095
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9096
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9097
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9098
       lt_cv_prog_compiler_c_o=yes
 
9099
     fi
 
9100
   fi
 
9101
   chmod u+w . 2>&5
 
9102
   $RM conftest*
 
9103
   # SGI C++ compiler will create directory out/ii_files/ for
 
9104
   # template instantiation
 
9105
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9106
   $RM out/* && rmdir out
 
9107
   cd ..
 
9108
   $RM -r conftest
 
9109
   $RM conftest*
 
9110
 
 
9111
fi
 
9112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9113
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
 
 
9119
 
 
9120
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9121
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9122
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9123
  $as_echo_n "(cached) " >&6
 
9124
else
 
9125
  lt_cv_prog_compiler_c_o=no
 
9126
   $RM -r conftest 2>/dev/null
 
9127
   mkdir conftest
 
9128
   cd conftest
 
9129
   mkdir out
 
9130
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9131
 
 
9132
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9133
   # Insert the option either (1) after the last *FLAGS variable, or
 
9134
   # (2) before a word containing "conftest.", or (3) at the end.
 
9135
   # Note that $ac_compile itself does not contain backslashes and begins
 
9136
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9137
   lt_compile=`echo "$ac_compile" | $SED \
 
9138
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9139
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9140
   -e 's:$: $lt_compiler_flag:'`
 
9141
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9142
   (eval "$lt_compile" 2>out/conftest.err)
 
9143
   ac_status=$?
 
9144
   cat out/conftest.err >&5
 
9145
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9146
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9147
   then
 
9148
     # The compiler can only warn and ignore the option if not recognized
 
9149
     # So say no if there are warnings
 
9150
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9151
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9152
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9153
       lt_cv_prog_compiler_c_o=yes
 
9154
     fi
 
9155
   fi
 
9156
   chmod u+w . 2>&5
 
9157
   $RM conftest*
 
9158
   # SGI C++ compiler will create directory out/ii_files/ for
 
9159
   # template instantiation
 
9160
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9161
   $RM out/* && rmdir out
 
9162
   cd ..
 
9163
   $RM -r conftest
 
9164
   $RM conftest*
 
9165
 
 
9166
fi
 
9167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9168
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9169
 
 
9170
 
7857
9171
 
7858
9172
 
7859
9173
hard_links="nottested"
7860
9174
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7861
9175
  # do not overwrite the value of need_locks provided by the user
7862
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7863
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
9176
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9177
$as_echo_n "checking if we can lock with hard links... " >&6; }
7864
9178
  hard_links=yes
7865
 
  $rm conftest*
 
9179
  $RM conftest*
7866
9180
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867
9181
  touch conftest.a
7868
9182
  ln conftest.a conftest.b 2>&5 || hard_links=no
7869
9183
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7870
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7871
 
echo "${ECHO_T}$hard_links" >&6; }
 
9184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9185
$as_echo "$hard_links" >&6; }
7872
9186
  if test "$hard_links" = no; then
7873
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7874
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9187
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9188
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7875
9189
    need_locks=warn
7876
9190
  fi
7877
9191
else
7878
9192
  need_locks=no
7879
9193
fi
7880
9194
 
7881
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7882
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
9195
 
 
9196
 
 
9197
 
 
9198
 
 
9199
 
 
9200
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9201
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7883
9202
 
7884
9203
  runpath_var=
7885
9204
  allow_undefined_flag=
7886
 
  enable_shared_with_static_runtimes=no
 
9205
  always_export_symbols=no
7887
9206
  archive_cmds=
7888
9207
  archive_expsym_cmds=
7889
 
  old_archive_From_new_cmds=
7890
 
  old_archive_from_expsyms_cmds=
 
9208
  compiler_needs_object=no
 
9209
  enable_shared_with_static_runtimes=no
7891
9210
  export_dynamic_flag_spec=
7892
 
  whole_archive_flag_spec=
7893
 
  thread_safe_flag_spec=
 
9211
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9212
  hardcode_automatic=no
 
9213
  hardcode_direct=no
 
9214
  hardcode_direct_absolute=no
7894
9215
  hardcode_libdir_flag_spec=
7895
 
  hardcode_libdir_flag_spec_ld=
7896
9216
  hardcode_libdir_separator=
7897
 
  hardcode_direct=no
7898
9217
  hardcode_minus_L=no
7899
9218
  hardcode_shlibpath_var=unsupported
 
9219
  inherit_rpath=no
7900
9220
  link_all_deplibs=unknown
7901
 
  hardcode_automatic=no
7902
9221
  module_cmds=
7903
9222
  module_expsym_cmds=
7904
 
  always_export_symbols=no
7905
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9223
  old_archive_from_new_cmds=
 
9224
  old_archive_from_expsyms_cmds=
 
9225
  thread_safe_flag_spec=
 
9226
  whole_archive_flag_spec=
7906
9227
  # include_expsyms should be a list of space-separated symbols to be *always*
7907
9228
  # included in the symbol list
7908
9229
  include_expsyms=
7918
9239
  # preloaded symbol tables.
7919
9240
  # Exclude shared library initialization/finalization symbols.
7920
9241
  extract_expsyms_cmds=
7921
 
  # Just being paranoid about ensuring that cc_basename is set.
7922
 
  for cc_temp in $compiler""; do
7923
 
  case $cc_temp in
7924
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7925
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7926
 
    \-*) ;;
7927
 
    *) break;;
7928
 
  esac
7929
 
done
7930
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7931
9242
 
7932
9243
  case $host_os in
7933
 
  cygwin* | mingw* | pw32*)
 
9244
  cygwin* | mingw* | pw32* | cegcc*)
7934
9245
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7935
9246
    # When not using gcc, we currently assume that we are using
7936
9247
    # Microsoft Visual C++.
7945
9256
  openbsd*)
7946
9257
    with_gnu_ld=no
7947
9258
    ;;
 
9259
  linux* | k*bsd*-gnu | gnu*)
 
9260
    link_all_deplibs=no
 
9261
    ;;
7948
9262
  esac
7949
9263
 
7950
9264
  ld_shlibs=yes
 
9265
 
 
9266
  # On some targets, GNU ld is compatible enough with the native linker
 
9267
  # that we're better off using the native interface for both.
 
9268
  lt_use_gnu_ld_interface=no
7951
9269
  if test "$with_gnu_ld" = yes; then
 
9270
    case $host_os in
 
9271
      aix*)
 
9272
        # The AIX port of GNU ld has always aspired to compatibility
 
9273
        # with the native linker.  However, as the warning in the GNU ld
 
9274
        # block says, versions before 2.19.5* couldn't really create working
 
9275
        # shared libraries, regardless of the interface used.
 
9276
        case `$LD -v 2>&1` in
 
9277
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9278
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9279
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9280
          *)
 
9281
            lt_use_gnu_ld_interface=yes
 
9282
            ;;
 
9283
        esac
 
9284
        ;;
 
9285
      *)
 
9286
        lt_use_gnu_ld_interface=yes
 
9287
        ;;
 
9288
    esac
 
9289
  fi
 
9290
 
 
9291
  if test "$lt_use_gnu_ld_interface" = yes; then
7952
9292
    # If archive_cmds runs LD, not CC, wlarc should be empty
7953
9293
    wlarc='${wl}'
7954
9294
 
7956
9296
    # are reset later if shared libraries are not supported. Putting them
7957
9297
    # here allows them to be overridden if necessary.
7958
9298
    runpath_var=LD_RUN_PATH
7959
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9299
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7960
9300
    export_dynamic_flag_spec='${wl}--export-dynamic'
7961
9301
    # ancient GNU ld didn't support --whole-archive et. al.
7962
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7963
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7964
 
      else
7965
 
        whole_archive_flag_spec=
 
9302
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9303
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9304
    else
 
9305
      whole_archive_flag_spec=
7966
9306
    fi
7967
9307
    supports_anon_versioning=no
7968
 
    case `$LD -v 2>/dev/null` in
 
9308
    case `$LD -v 2>&1` in
 
9309
      *GNU\ gold*) supports_anon_versioning=yes ;;
7969
9310
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7970
9311
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7971
9312
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7979
9320
      # On AIX/PPC, the GNU linker is very broken
7980
9321
      if test "$host_cpu" != ia64; then
7981
9322
        ld_shlibs=no
7982
 
        cat <<EOF 1>&2
 
9323
        cat <<_LT_EOF 1>&2
7983
9324
 
7984
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9325
*** Warning: the GNU linker, at least up to release 2.19, is reported
7985
9326
*** to be unable to reliably create shared libraries on AIX.
7986
9327
*** Therefore, libtool is disabling shared libraries support.  If you
7987
 
*** really care for shared libraries, you may want to modify your PATH
7988
 
*** so that a non-GNU linker is found, and then restart.
 
9328
*** really care for shared libraries, you may want to install binutils
 
9329
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9330
*** You will then need to restart the configuration process.
7989
9331
 
7990
 
EOF
 
9332
_LT_EOF
7991
9333
      fi
7992
9334
      ;;
7993
9335
 
7994
9336
    amigaos*)
7995
 
      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)'
7996
 
      hardcode_libdir_flag_spec='-L$libdir'
7997
 
      hardcode_minus_L=yes
7998
 
 
7999
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8000
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8001
 
      # to version 4, is to share data among multiple programs linked
8002
 
      # with the same dynamic library.  Since this doesn't match the
8003
 
      # behavior of shared libraries on other platforms, we can't use
8004
 
      # them.
8005
 
      ld_shlibs=no
 
9337
      case $host_cpu in
 
9338
      powerpc)
 
9339
            # see comment about AmigaOS4 .so support
 
9340
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9341
            archive_expsym_cmds=''
 
9342
        ;;
 
9343
      m68k)
 
9344
            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)'
 
9345
            hardcode_libdir_flag_spec='-L$libdir'
 
9346
            hardcode_minus_L=yes
 
9347
        ;;
 
9348
      esac
8006
9349
      ;;
8007
9350
 
8008
9351
    beos*)
8009
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9352
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8010
9353
        allow_undefined_flag=unsupported
8011
9354
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012
9355
        # support --undefined.  This deserves some investigation.  FIXME
8016
9359
      fi
8017
9360
      ;;
8018
9361
 
8019
 
    cygwin* | mingw* | pw32*)
8020
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9362
    cygwin* | mingw* | pw32* | cegcc*)
 
9363
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021
9364
      # as there is no search path for DLLs.
8022
9365
      hardcode_libdir_flag_spec='-L$libdir'
 
9366
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8023
9367
      allow_undefined_flag=unsupported
8024
9368
      always_export_symbols=no
8025
9369
      enable_shared_with_static_runtimes=yes
8026
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9370
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9371
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8027
9372
 
8028
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9373
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8029
9374
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030
9375
        # If the export-symbols file already is a .def file (1st line
8031
9376
        # is EXPORTS), use it as is; otherwise, prepend...
8041
9386
      fi
8042
9387
      ;;
8043
9388
 
 
9389
    haiku*)
 
9390
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9391
      link_all_deplibs=yes
 
9392
      ;;
 
9393
 
8044
9394
    interix[3-9]*)
8045
9395
      hardcode_direct=no
8046
9396
      hardcode_shlibpath_var=no
8056
9406
      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'
8057
9407
      ;;
8058
9408
 
8059
 
    gnu* | linux* | k*bsd*-gnu)
8060
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061
 
        tmp_addflag=
 
9409
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9410
      tmp_diet=no
 
9411
      if test "$host_os" = linux-dietlibc; then
 
9412
        case $cc_basename in
 
9413
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9414
        esac
 
9415
      fi
 
9416
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9417
         && test "$tmp_diet" = no
 
9418
      then
 
9419
        tmp_addflag=' $pic_flag'
 
9420
        tmp_sharedflag='-shared'
8062
9421
        case $cc_basename,$host_cpu in
8063
 
        pgcc*)                          # Portland Group C compiler
8064
 
          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'
 
9422
        pgcc*)                          # Portland Group C compiler
 
9423
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8065
9424
          tmp_addflag=' $pic_flag'
8066
9425
          ;;
8067
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8068
 
          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'
 
9426
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9427
                                        # Portland Group f77 and f90 compilers
 
9428
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8069
9429
          tmp_addflag=' $pic_flag -Mnomain' ;;
8070
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
9430
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8071
9431
          tmp_addflag=' -i_dynamic' ;;
8072
9432
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8073
9433
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8074
9434
        ifc* | ifort*)                  # Intel Fortran compiler
8075
9435
          tmp_addflag=' -nofor_main' ;;
 
9436
        lf95*)                          # Lahey Fortran 8.1
 
9437
          whole_archive_flag_spec=
 
9438
          tmp_sharedflag='--shared' ;;
 
9439
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9440
          tmp_sharedflag='-qmkshrobj'
 
9441
          tmp_addflag= ;;
 
9442
        nvcc*)  # Cuda Compiler Driver 2.2
 
9443
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9444
          compiler_needs_object=yes
 
9445
          ;;
8076
9446
        esac
8077
9447
        case `$CC -V 2>&1 | sed 5q` in
8078
9448
        *Sun\ C*)                       # Sun C 5.9
8079
 
          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'
 
9449
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9450
          compiler_needs_object=yes
8080
9451
          tmp_sharedflag='-G' ;;
8081
9452
        *Sun\ F*)                       # Sun Fortran 8.3
8082
9453
          tmp_sharedflag='-G' ;;
8083
 
        *)
8084
 
          tmp_sharedflag='-shared' ;;
8085
9454
        esac
8086
9455
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8087
9456
 
8088
 
        if test $supports_anon_versioning = yes; then
8089
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8090
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8091
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8092
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8093
 
        fi
8094
 
        link_all_deplibs=no
 
9457
        if test "x$supports_anon_versioning" = xyes; then
 
9458
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9459
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9460
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9461
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9462
        fi
 
9463
 
 
9464
        case $cc_basename in
 
9465
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9466
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9467
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9468
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9469
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9470
          if test "x$supports_anon_versioning" = xyes; then
 
9471
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9472
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9473
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9474
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9475
          fi
 
9476
          ;;
 
9477
        esac
8095
9478
      else
8096
 
        ld_shlibs=no
 
9479
        ld_shlibs=no
8097
9480
      fi
8098
9481
      ;;
8099
9482
 
8100
9483
    netbsd* | netbsdelf*-gnu)
8101
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9484
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8102
9485
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8103
9486
        wlarc=
8104
9487
      else
8105
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9488
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9489
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8107
9490
      fi
8108
9491
      ;;
8109
9492
 
8110
9493
    solaris*)
8111
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9494
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8112
9495
        ld_shlibs=no
8113
 
        cat <<EOF 1>&2
 
9496
        cat <<_LT_EOF 1>&2
8114
9497
 
8115
9498
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8116
9499
*** create shared libraries on Solaris systems.  Therefore, libtool
8119
9502
*** your PATH or compiler configuration so that the native linker is
8120
9503
*** used, and then restart.
8121
9504
 
8122
 
EOF
8123
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8124
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9505
_LT_EOF
 
9506
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9507
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9508
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126
9509
      else
8127
9510
        ld_shlibs=no
8128
9511
      fi
8144
9527
_LT_EOF
8145
9528
        ;;
8146
9529
        *)
8147
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8148
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8149
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8150
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
9530
          # For security reasons, it is highly recommended that you always
 
9531
          # use absolute paths for naming shared libraries, and exclude the
 
9532
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9533
          # requires that you compile everything twice, which is a pain.
 
9534
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9535
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9536
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9537
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8151
9538
          else
8152
9539
            ld_shlibs=no
8153
9540
          fi
8163
9550
      ;;
8164
9551
 
8165
9552
    *)
8166
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8167
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8168
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9553
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9554
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9555
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8169
9556
      else
8170
9557
        ld_shlibs=no
8171
9558
      fi
8205
9592
      else
8206
9593
        # If we're using GNU nm, then we don't want the "-C" option.
8207
9594
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8208
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8209
 
          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'
 
9595
        # Also, AIX nm treats weak defined symbols like other global
 
9596
        # defined symbols, whereas GNU nm marks them as "W".
 
9597
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9598
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8210
9599
        else
8211
 
          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'
 
9600
          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'
8212
9601
        fi
8213
9602
        aix_use_runtimelinking=no
8214
9603
 
8217
9606
        # need to do runtime linking.
8218
9607
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8219
9608
          for ld_flag in $LDFLAGS; do
8220
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8221
 
            aix_use_runtimelinking=yes
8222
 
            break
8223
 
          fi
 
9609
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9610
            aix_use_runtimelinking=yes
 
9611
            break
 
9612
          fi
8224
9613
          done
8225
9614
          ;;
8226
9615
        esac
8237
9626
 
8238
9627
      archive_cmds=''
8239
9628
      hardcode_direct=yes
 
9629
      hardcode_direct_absolute=yes
8240
9630
      hardcode_libdir_separator=':'
8241
9631
      link_all_deplibs=yes
 
9632
      file_list_spec='${wl}-f,'
8242
9633
 
8243
9634
      if test "$GCC" = yes; then
8244
9635
        case $host_os in aix4.[012]|aix4.[012].*)
8245
9636
        # We only want to do this on AIX 4.2 and lower, the check
8246
9637
        # below for broken collect2 doesn't work under 4.3+
8247
9638
          collect2name=`${CC} -print-prog-name=collect2`
8248
 
          if test -f "$collect2name" && \
8249
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9639
          if test -f "$collect2name" &&
 
9640
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8250
9641
          then
8251
 
          # We have reworked collect2
8252
 
          :
 
9642
          # We have reworked collect2
 
9643
          :
8253
9644
          else
8254
 
          # We have old collect2
8255
 
          hardcode_direct=unsupported
8256
 
          # It fails to find uninstalled libraries when the uninstalled
8257
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8258
 
          # to unsupported forces relinking
8259
 
          hardcode_minus_L=yes
8260
 
          hardcode_libdir_flag_spec='-L$libdir'
8261
 
          hardcode_libdir_separator=
 
9645
          # We have old collect2
 
9646
          hardcode_direct=unsupported
 
9647
          # It fails to find uninstalled libraries when the uninstalled
 
9648
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9649
          # to unsupported forces relinking
 
9650
          hardcode_minus_L=yes
 
9651
          hardcode_libdir_flag_spec='-L$libdir'
 
9652
          hardcode_libdir_separator=
8262
9653
          fi
8263
9654
          ;;
8264
9655
        esac
8266
9657
        if test "$aix_use_runtimelinking" = yes; then
8267
9658
          shared_flag="$shared_flag "'${wl}-G'
8268
9659
        fi
 
9660
        link_all_deplibs=no
8269
9661
      else
8270
9662
        # not using gcc
8271
9663
        if test "$host_cpu" = ia64; then
8272
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8273
 
        # chokes on -Wl,-G. The following line is correct:
 
9664
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9665
        # chokes on -Wl,-G. The following line is correct:
8274
9666
          shared_flag='-G'
8275
9667
        else
8276
9668
          if test "$aix_use_runtimelinking" = yes; then
8281
9673
        fi
8282
9674
      fi
8283
9675
 
 
9676
      export_dynamic_flag_spec='${wl}-bexpall'
8284
9677
      # It seems that -bexpall does not export symbols beginning with
8285
9678
      # underscore (_), so it is better to generate a list of symbols to export.
8286
9679
      always_export_symbols=yes
8288
9681
        # Warning - without using the other runtime loading flags (-brtl),
8289
9682
        # -berok will link without error, but may produce a broken library.
8290
9683
        allow_undefined_flag='-berok'
8291
 
       # Determine the default libpath from the value encoded in an empty executable.
8292
 
       cat >conftest.$ac_ext <<_ACEOF
8293
 
/* confdefs.h.  */
8294
 
_ACEOF
8295
 
cat confdefs.h >>conftest.$ac_ext
8296
 
cat >>conftest.$ac_ext <<_ACEOF
 
9684
        # Determine the default libpath from the value encoded in an
 
9685
        # empty executable.
 
9686
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9687
  aix_libpath=$lt_cv_aix_libpath
 
9688
else
 
9689
  if ${lt_cv_aix_libpath_+:} false; then :
 
9690
  $as_echo_n "(cached) " >&6
 
9691
else
 
9692
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297
9693
/* end confdefs.h.  */
8298
9694
 
8299
9695
int
8304
9700
  return 0;
8305
9701
}
8306
9702
_ACEOF
8307
 
rm -f conftest.$ac_objext conftest$ac_exeext
8308
 
if { (ac_try="$ac_link"
8309
 
case "(($ac_try" in
8310
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311
 
  *) ac_try_echo=$ac_try;;
8312
 
esac
8313
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314
 
  (eval "$ac_link") 2>conftest.er1
8315
 
  ac_status=$?
8316
 
  grep -v '^ *+' conftest.er1 >conftest.err
8317
 
  rm -f conftest.er1
8318
 
  cat conftest.err >&5
8319
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320
 
  (exit $ac_status); } && {
8321
 
         test -z "$ac_c_werror_flag" ||
8322
 
         test ! -s conftest.err
8323
 
       } && test -s conftest$ac_exeext &&
8324
 
       $as_test_x conftest$ac_exeext; then
8325
 
 
8326
 
lt_aix_libpath_sed='
8327
 
    /Import File Strings/,/^$/ {
8328
 
        /^0/ {
8329
 
            s/^0  *\(.*\)$/\1/
8330
 
            p
8331
 
        }
8332
 
    }'
8333
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8334
 
# Check for a 64-bit object if we didn't find anything.
8335
 
if test -z "$aix_libpath"; then
8336
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8337
 
fi
8338
 
else
8339
 
  echo "$as_me: failed program was:" >&5
8340
 
sed 's/^/| /' conftest.$ac_ext >&5
8341
 
 
8342
 
 
8343
 
fi
8344
 
 
8345
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8346
 
      conftest$ac_exeext conftest.$ac_ext
8347
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8348
 
 
8349
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8350
 
        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8351
 
       else
 
9703
if ac_fn_c_try_link "$LINENO"; then :
 
9704
 
 
9705
  lt_aix_libpath_sed='
 
9706
      /Import File Strings/,/^$/ {
 
9707
          /^0/ {
 
9708
              s/^0  *\([^ ]*\) *$/\1/
 
9709
              p
 
9710
          }
 
9711
      }'
 
9712
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9713
  # Check for a 64-bit object if we didn't find anything.
 
9714
  if test -z "$lt_cv_aix_libpath_"; then
 
9715
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9716
  fi
 
9717
fi
 
9718
rm -f core conftest.err conftest.$ac_objext \
 
9719
    conftest$ac_exeext conftest.$ac_ext
 
9720
  if test -z "$lt_cv_aix_libpath_"; then
 
9721
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9722
  fi
 
9723
 
 
9724
fi
 
9725
 
 
9726
  aix_libpath=$lt_cv_aix_libpath_
 
9727
fi
 
9728
 
 
9729
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9730
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9731
      else
8352
9732
        if test "$host_cpu" = ia64; then
8353
9733
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8354
9734
          allow_undefined_flag="-z nodefs"
8355
9735
          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"
8356
9736
        else
8357
 
         # Determine the default libpath from the value encoded in an empty executable.
8358
 
         cat >conftest.$ac_ext <<_ACEOF
8359
 
/* confdefs.h.  */
8360
 
_ACEOF
8361
 
cat confdefs.h >>conftest.$ac_ext
8362
 
cat >>conftest.$ac_ext <<_ACEOF
 
9737
         # Determine the default libpath from the value encoded in an
 
9738
         # empty executable.
 
9739
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9740
  aix_libpath=$lt_cv_aix_libpath
 
9741
else
 
9742
  if ${lt_cv_aix_libpath_+:} false; then :
 
9743
  $as_echo_n "(cached) " >&6
 
9744
else
 
9745
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363
9746
/* end confdefs.h.  */
8364
9747
 
8365
9748
int
8370
9753
  return 0;
8371
9754
}
8372
9755
_ACEOF
8373
 
rm -f conftest.$ac_objext conftest$ac_exeext
8374
 
if { (ac_try="$ac_link"
8375
 
case "(($ac_try" in
8376
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377
 
  *) ac_try_echo=$ac_try;;
8378
 
esac
8379
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380
 
  (eval "$ac_link") 2>conftest.er1
8381
 
  ac_status=$?
8382
 
  grep -v '^ *+' conftest.er1 >conftest.err
8383
 
  rm -f conftest.er1
8384
 
  cat conftest.err >&5
8385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386
 
  (exit $ac_status); } && {
8387
 
         test -z "$ac_c_werror_flag" ||
8388
 
         test ! -s conftest.err
8389
 
       } && test -s conftest$ac_exeext &&
8390
 
       $as_test_x conftest$ac_exeext; then
8391
 
 
8392
 
lt_aix_libpath_sed='
8393
 
    /Import File Strings/,/^$/ {
8394
 
        /^0/ {
8395
 
            s/^0  *\(.*\)$/\1/
8396
 
            p
8397
 
        }
8398
 
    }'
8399
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400
 
# Check for a 64-bit object if we didn't find anything.
8401
 
if test -z "$aix_libpath"; then
8402
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403
 
fi
8404
 
else
8405
 
  echo "$as_me: failed program was:" >&5
8406
 
sed 's/^/| /' conftest.$ac_ext >&5
8407
 
 
8408
 
 
8409
 
fi
8410
 
 
8411
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8412
 
      conftest$ac_exeext conftest.$ac_ext
8413
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9756
if ac_fn_c_try_link "$LINENO"; then :
 
9757
 
 
9758
  lt_aix_libpath_sed='
 
9759
      /Import File Strings/,/^$/ {
 
9760
          /^0/ {
 
9761
              s/^0  *\([^ ]*\) *$/\1/
 
9762
              p
 
9763
          }
 
9764
      }'
 
9765
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9766
  # Check for a 64-bit object if we didn't find anything.
 
9767
  if test -z "$lt_cv_aix_libpath_"; then
 
9768
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9769
  fi
 
9770
fi
 
9771
rm -f core conftest.err conftest.$ac_objext \
 
9772
    conftest$ac_exeext conftest.$ac_ext
 
9773
  if test -z "$lt_cv_aix_libpath_"; then
 
9774
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9775
  fi
 
9776
 
 
9777
fi
 
9778
 
 
9779
  aix_libpath=$lt_cv_aix_libpath_
 
9780
fi
8414
9781
 
8415
9782
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8416
9783
          # Warning - without using the other run time loading flags,
8417
9784
          # -berok will link without error, but may produce a broken library.
8418
9785
          no_undefined_flag=' ${wl}-bernotok'
8419
9786
          allow_undefined_flag=' ${wl}-berok'
8420
 
          # Exported symbols can be pulled into shared objects from archives
8421
 
          whole_archive_flag_spec='$convenience'
 
9787
          if test "$with_gnu_ld" = yes; then
 
9788
            # We only use this code for GNU lds that support --whole-archive.
 
9789
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9790
          else
 
9791
            # Exported symbols can be pulled into shared objects from archives
 
9792
            whole_archive_flag_spec='$convenience'
 
9793
          fi
8422
9794
          archive_cmds_need_lc=yes
8423
9795
          # This is similar to how AIX traditionally builds its shared libraries.
8424
9796
          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'
8427
9799
      ;;
8428
9800
 
8429
9801
    amigaos*)
8430
 
      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)'
8431
 
      hardcode_libdir_flag_spec='-L$libdir'
8432
 
      hardcode_minus_L=yes
8433
 
      # see comment about different semantics on the GNU ld section
8434
 
      ld_shlibs=no
 
9802
      case $host_cpu in
 
9803
      powerpc)
 
9804
            # see comment about AmigaOS4 .so support
 
9805
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9806
            archive_expsym_cmds=''
 
9807
        ;;
 
9808
      m68k)
 
9809
            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)'
 
9810
            hardcode_libdir_flag_spec='-L$libdir'
 
9811
            hardcode_minus_L=yes
 
9812
        ;;
 
9813
      esac
8435
9814
      ;;
8436
9815
 
8437
9816
    bsdi[45]*)
8438
9817
      export_dynamic_flag_spec=-rdynamic
8439
9818
      ;;
8440
9819
 
8441
 
    cygwin* | mingw* | pw32*)
 
9820
    cygwin* | mingw* | pw32* | cegcc*)
8442
9821
      # When not using gcc, we currently assume that we are using
8443
9822
      # Microsoft Visual C++.
8444
9823
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8445
9824
      # no search path for DLLs.
8446
 
      hardcode_libdir_flag_spec=' '
8447
 
      allow_undefined_flag=unsupported
8448
 
      # Tell ltmain to make .lib files, not .a files.
8449
 
      libext=lib
8450
 
      # Tell ltmain to make .dll files, not .so files.
8451
 
      shrext_cmds=".dll"
8452
 
      # FIXME: Setting linknames here is a bad hack.
8453
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8454
 
      # The linker will automatically build a .lib file if we build a DLL.
8455
 
      old_archive_From_new_cmds='true'
8456
 
      # FIXME: Should let the user specify the lib program.
8457
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8458
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8459
 
      enable_shared_with_static_runtimes=yes
 
9825
      case $cc_basename in
 
9826
      cl*)
 
9827
        # Native MSVC
 
9828
        hardcode_libdir_flag_spec=' '
 
9829
        allow_undefined_flag=unsupported
 
9830
        always_export_symbols=yes
 
9831
        file_list_spec='@'
 
9832
        # Tell ltmain to make .lib files, not .a files.
 
9833
        libext=lib
 
9834
        # Tell ltmain to make .dll files, not .so files.
 
9835
        shrext_cmds=".dll"
 
9836
        # FIXME: Setting linknames here is a bad hack.
 
9837
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9838
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9839
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9840
          else
 
9841
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9842
          fi~
 
9843
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9844
          linknames='
 
9845
        # The linker will not automatically build a static lib if we build a DLL.
 
9846
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9847
        enable_shared_with_static_runtimes=yes
 
9848
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9849
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9850
        # Don't use ranlib
 
9851
        old_postinstall_cmds='chmod 644 $oldlib'
 
9852
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9853
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9854
          case $lt_outputfile in
 
9855
            *.exe|*.EXE) ;;
 
9856
            *)
 
9857
              lt_outputfile="$lt_outputfile.exe"
 
9858
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9859
              ;;
 
9860
          esac~
 
9861
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9862
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9863
            $RM "$lt_outputfile.manifest";
 
9864
          fi'
 
9865
        ;;
 
9866
      *)
 
9867
        # Assume MSVC wrapper
 
9868
        hardcode_libdir_flag_spec=' '
 
9869
        allow_undefined_flag=unsupported
 
9870
        # Tell ltmain to make .lib files, not .a files.
 
9871
        libext=lib
 
9872
        # Tell ltmain to make .dll files, not .so files.
 
9873
        shrext_cmds=".dll"
 
9874
        # FIXME: Setting linknames here is a bad hack.
 
9875
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9876
        # The linker will automatically build a .lib file if we build a DLL.
 
9877
        old_archive_from_new_cmds='true'
 
9878
        # FIXME: Should let the user specify the lib program.
 
9879
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9880
        enable_shared_with_static_runtimes=yes
 
9881
        ;;
 
9882
      esac
8460
9883
      ;;
8461
9884
 
8462
9885
    darwin* | rhapsody*)
8463
 
      case $host_os in
8464
 
        rhapsody* | darwin1.[012])
8465
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8466
 
         ;;
8467
 
       *) # Darwin 1.3 on
8468
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8469
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8470
 
         else
8471
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8472
 
             10.[012])
8473
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8474
 
               ;;
8475
 
             10.*)
8476
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8477
 
               ;;
8478
 
           esac
8479
 
         fi
8480
 
         ;;
8481
 
      esac
8482
 
      archive_cmds_need_lc=no
8483
 
      hardcode_direct=no
8484
 
      hardcode_automatic=yes
8485
 
      hardcode_shlibpath_var=unsupported
8486
 
      whole_archive_flag_spec=''
8487
 
      link_all_deplibs=yes
8488
 
    if test "$GCC" = yes ; then
8489
 
        output_verbose_link_cmd='echo'
8490
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8491
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8492
 
        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}"
8493
 
        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}"
8494
 
    else
8495
 
      case $cc_basename in
8496
 
        xlc*)
8497
 
         output_verbose_link_cmd='echo'
8498
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8499
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8501
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8502
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8503
 
          ;;
8504
 
       *)
8505
 
         ld_shlibs=no
8506
 
          ;;
8507
 
      esac
8508
 
    fi
 
9886
 
 
9887
 
 
9888
  archive_cmds_need_lc=no
 
9889
  hardcode_direct=no
 
9890
  hardcode_automatic=yes
 
9891
  hardcode_shlibpath_var=unsupported
 
9892
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9893
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9894
 
 
9895
  else
 
9896
    whole_archive_flag_spec=''
 
9897
  fi
 
9898
  link_all_deplibs=yes
 
9899
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9900
  case $cc_basename in
 
9901
     ifort*) _lt_dar_can_shared=yes ;;
 
9902
     *) _lt_dar_can_shared=$GCC ;;
 
9903
  esac
 
9904
  if test "$_lt_dar_can_shared" = "yes"; then
 
9905
    output_verbose_link_cmd=func_echo_all
 
9906
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9907
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9908
    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}"
 
9909
    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}"
 
9910
 
 
9911
  else
 
9912
  ld_shlibs=no
 
9913
  fi
 
9914
 
8509
9915
      ;;
8510
9916
 
8511
9917
    dgux*)
8514
9920
      hardcode_shlibpath_var=no
8515
9921
      ;;
8516
9922
 
8517
 
    freebsd1*)
8518
 
      ld_shlibs=no
8519
 
      ;;
8520
 
 
8521
9923
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8522
9924
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8523
9925
    # does not break anything, and helps significantly (at the cost of a little
8530
9932
      ;;
8531
9933
 
8532
9934
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8533
 
    freebsd2*)
 
9935
    freebsd2.*)
8534
9936
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8535
9937
      hardcode_direct=yes
8536
9938
      hardcode_minus_L=yes
8539
9941
 
8540
9942
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8541
9943
    freebsd* | dragonfly*)
8542
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9944
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8543
9945
      hardcode_libdir_flag_spec='-R$libdir'
8544
9946
      hardcode_direct=yes
8545
9947
      hardcode_shlibpath_var=no
8547
9949
 
8548
9950
    hpux9*)
8549
9951
      if test "$GCC" = yes; then
8550
 
        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'
 
9952
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8551
9953
      else
8552
 
        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'
 
9954
        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'
8553
9955
      fi
8554
9956
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8555
9957
      hardcode_libdir_separator=:
8562
9964
      ;;
8563
9965
 
8564
9966
    hpux10*)
8565
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8566
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9967
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9968
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567
9969
      else
8568
9970
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8569
9971
      fi
8570
9972
      if test "$with_gnu_ld" = no; then
8571
9973
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572
9974
        hardcode_libdir_separator=:
8573
 
 
8574
9975
        hardcode_direct=yes
 
9976
        hardcode_direct_absolute=yes
8575
9977
        export_dynamic_flag_spec='${wl}-E'
8576
 
 
8577
9978
        # hardcode_minus_L: Not really in the search PATH,
8578
9979
        # but as the default location of the library.
8579
9980
        hardcode_minus_L=yes
8581
9982
      ;;
8582
9983
 
8583
9984
    hpux11*)
8584
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9985
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8585
9986
        case $host_cpu in
8586
9987
        hppa*64*)
8587
9988
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8588
9989
          ;;
8589
9990
        ia64*)
8590
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9991
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8591
9992
          ;;
8592
9993
        *)
8593
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9994
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594
9995
          ;;
8595
9996
        esac
8596
9997
      else
8602
10003
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8603
10004
          ;;
8604
10005
        *)
8605
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10006
 
 
10007
          # Older versions of the 11.00 compiler do not understand -b yet
 
10008
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10009
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10010
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10011
if ${lt_cv_prog_compiler__b+:} false; then :
 
10012
  $as_echo_n "(cached) " >&6
 
10013
else
 
10014
  lt_cv_prog_compiler__b=no
 
10015
   save_LDFLAGS="$LDFLAGS"
 
10016
   LDFLAGS="$LDFLAGS -b"
 
10017
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10018
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10019
     # The linker can only warn and ignore the option if not recognized
 
10020
     # So say no if there are warnings
 
10021
     if test -s conftest.err; then
 
10022
       # Append any errors to the config.log.
 
10023
       cat conftest.err 1>&5
 
10024
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10025
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10026
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10027
         lt_cv_prog_compiler__b=yes
 
10028
       fi
 
10029
     else
 
10030
       lt_cv_prog_compiler__b=yes
 
10031
     fi
 
10032
   fi
 
10033
   $RM -r conftest*
 
10034
   LDFLAGS="$save_LDFLAGS"
 
10035
 
 
10036
fi
 
10037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10038
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10039
 
 
10040
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10041
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10042
else
 
10043
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10044
fi
 
10045
 
8606
10046
          ;;
8607
10047
        esac
8608
10048
      fi
8612
10052
 
8613
10053
        case $host_cpu in
8614
10054
        hppa*64*|ia64*)
8615
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8616
10055
          hardcode_direct=no
8617
10056
          hardcode_shlibpath_var=no
8618
10057
          ;;
8619
10058
        *)
8620
10059
          hardcode_direct=yes
 
10060
          hardcode_direct_absolute=yes
8621
10061
          export_dynamic_flag_spec='${wl}-E'
8622
10062
 
8623
10063
          # hardcode_minus_L: Not really in the search PATH,
8630
10070
 
8631
10071
    irix5* | irix6* | nonstopux*)
8632
10072
      if test "$GCC" = yes; then
8633
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10073
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10074
        # Try to use the -exported_symbol ld option, if it does not
 
10075
        # work, assume that -exports_file does not work either and
 
10076
        # implicitly export all symbols.
 
10077
        # This should be the same for all languages, so no per-tag cache variable.
 
10078
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10079
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10080
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10081
  $as_echo_n "(cached) " >&6
 
10082
else
 
10083
  save_LDFLAGS="$LDFLAGS"
 
10084
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10085
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10086
/* end confdefs.h.  */
 
10087
int foo (void) { return 0; }
 
10088
_ACEOF
 
10089
if ac_fn_c_try_link "$LINENO"; then :
 
10090
  lt_cv_irix_exported_symbol=yes
 
10091
else
 
10092
  lt_cv_irix_exported_symbol=no
 
10093
fi
 
10094
rm -f core conftest.err conftest.$ac_objext \
 
10095
    conftest$ac_exeext conftest.$ac_ext
 
10096
           LDFLAGS="$save_LDFLAGS"
 
10097
fi
 
10098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10099
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10100
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10101
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10102
        fi
8634
10103
      else
8635
 
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8636
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10104
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10105
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8637
10106
      fi
 
10107
      archive_cmds_need_lc='no'
8638
10108
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639
10109
      hardcode_libdir_separator=:
 
10110
      inherit_rpath=yes
8640
10111
      link_all_deplibs=yes
8641
10112
      ;;
8642
10113
 
8643
10114
    netbsd* | netbsdelf*-gnu)
8644
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10115
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8645
10116
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8646
10117
      else
8647
10118
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8659
10130
      hardcode_shlibpath_var=no
8660
10131
      ;;
8661
10132
 
 
10133
    *nto* | *qnx*)
 
10134
      ;;
 
10135
 
8662
10136
    openbsd*)
8663
10137
      if test -f /usr/libexec/ld.so; then
8664
10138
        hardcode_direct=yes
8665
10139
        hardcode_shlibpath_var=no
8666
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10140
        hardcode_direct_absolute=yes
 
10141
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8667
10142
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668
10143
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8669
10144
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679
10154
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8680
10155
             ;;
8681
10156
          esac
8682
 
        fi
 
10157
        fi
8683
10158
      else
8684
10159
        ld_shlibs=no
8685
10160
      fi
8689
10164
      hardcode_libdir_flag_spec='-L$libdir'
8690
10165
      hardcode_minus_L=yes
8691
10166
      allow_undefined_flag=unsupported
8692
 
      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'
8693
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10167
      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'
 
10168
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8694
10169
      ;;
8695
10170
 
8696
10171
    osf3*)
8697
10172
      if test "$GCC" = yes; then
8698
10173
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10174
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8700
10175
      else
8701
10176
        allow_undefined_flag=' -expect_unresolved \*'
8702
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10177
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8703
10178
      fi
 
10179
      archive_cmds_need_lc='no'
8704
10180
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705
10181
      hardcode_libdir_separator=:
8706
10182
      ;;
8708
10184
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8709
10185
      if test "$GCC" = yes; then
8710
10186
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8711
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10187
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8712
10188
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713
10189
      else
8714
10190
        allow_undefined_flag=' -expect_unresolved \*'
8715
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8716
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8717
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
10191
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10192
        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~
 
10193
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8718
10194
 
8719
10195
        # Both c and cxx compiler support -rpath directly
8720
10196
        hardcode_libdir_flag_spec='-rpath $libdir'
8721
10197
      fi
 
10198
      archive_cmds_need_lc='no'
8722
10199
      hardcode_libdir_separator=:
8723
10200
      ;;
8724
10201
 
8725
10202
    solaris*)
8726
 
      no_undefined_flag=' -z text'
 
10203
      no_undefined_flag=' -z defs'
8727
10204
      if test "$GCC" = yes; then
8728
10205
        wlarc='${wl}'
8729
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
10206
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10207
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10208
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8732
10209
      else
8733
 
        wlarc=''
8734
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10210
        case `$CC -V 2>&1` in
 
10211
        *"Compilers 5.0"*)
 
10212
          wlarc=''
 
10213
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10214
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10215
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10216
          ;;
 
10217
        *)
 
10218
          wlarc='${wl}'
 
10219
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10220
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10221
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10222
          ;;
 
10223
        esac
8737
10224
      fi
8738
10225
      hardcode_libdir_flag_spec='-R$libdir'
8739
10226
      hardcode_shlibpath_var=no
8743
10230
        # The compiler driver will combine and reorder linker options,
8744
10231
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8745
10232
        # but is careful enough not to reorder.
8746
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10233
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8747
10234
        if test "$GCC" = yes; then
8748
10235
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8749
10236
        else
8832
10319
      allow_undefined_flag='${wl}-z,nodefs'
8833
10320
      archive_cmds_need_lc=no
8834
10321
      hardcode_shlibpath_var=no
8835
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
10322
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8836
10323
      hardcode_libdir_separator=':'
8837
10324
      link_all_deplibs=yes
8838
10325
      export_dynamic_flag_spec='${wl}-Bexport'
8839
10326
      runpath_var='LD_RUN_PATH'
8840
10327
 
8841
10328
      if test "$GCC" = yes; then
8842
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10329
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10330
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844
10331
      else
8845
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10332
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10333
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847
10334
      fi
8848
10335
      ;;
8849
10336
 
8857
10344
      ld_shlibs=no
8858
10345
      ;;
8859
10346
    esac
 
10347
 
 
10348
    if test x$host_vendor = xsni; then
 
10349
      case $host in
 
10350
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10351
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10352
        ;;
 
10353
      esac
 
10354
    fi
8860
10355
  fi
8861
10356
 
8862
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8863
 
echo "${ECHO_T}$ld_shlibs" >&6; }
 
10357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10358
$as_echo "$ld_shlibs" >&6; }
8864
10359
test "$ld_shlibs" = no && can_build_shared=no
8865
10360
 
 
10361
with_gnu_ld=$with_gnu_ld
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
8866
10377
#
8867
10378
# Do we need to explicitly link libc?
8868
10379
#
8880
10391
      # Test whether the compiler implicitly links with -lc since on some
8881
10392
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8882
10393
      # to ld, don't add -lc before -lgcc.
8883
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8884
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8885
 
      $rm conftest*
8886
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10394
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10395
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10396
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10397
  $as_echo_n "(cached) " >&6
 
10398
else
 
10399
  $RM conftest*
 
10400
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887
10401
 
8888
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10402
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8889
10403
  (eval $ac_compile) 2>&5
8890
10404
  ac_status=$?
8891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892
 
  (exit $ac_status); } 2>conftest.err; then
8893
 
        soname=conftest
8894
 
        lib=conftest
8895
 
        libobjs=conftest.$ac_objext
8896
 
        deplibs=
8897
 
        wl=$lt_prog_compiler_wl
8898
 
        pic_flag=$lt_prog_compiler_pic
8899
 
        compiler_flags=-v
8900
 
        linker_flags=-v
8901
 
        verstring=
8902
 
        output_objdir=.
8903
 
        libname=conftest
8904
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
8905
 
        allow_undefined_flag=
8906
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8907
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10405
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10406
  test $ac_status = 0; } 2>conftest.err; then
 
10407
          soname=conftest
 
10408
          lib=conftest
 
10409
          libobjs=conftest.$ac_objext
 
10410
          deplibs=
 
10411
          wl=$lt_prog_compiler_wl
 
10412
          pic_flag=$lt_prog_compiler_pic
 
10413
          compiler_flags=-v
 
10414
          linker_flags=-v
 
10415
          verstring=
 
10416
          output_objdir=.
 
10417
          libname=conftest
 
10418
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10419
          allow_undefined_flag=
 
10420
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10421
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8908
10422
  ac_status=$?
8909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910
 
  (exit $ac_status); }
8911
 
        then
8912
 
          archive_cmds_need_lc=no
8913
 
        else
8914
 
          archive_cmds_need_lc=yes
8915
 
        fi
8916
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
8917
 
      else
8918
 
        cat conftest.err 1>&5
8919
 
      fi
8920
 
      $rm conftest*
8921
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8922
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
10423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10424
  test $ac_status = 0; }
 
10425
          then
 
10426
            lt_cv_archive_cmds_need_lc=no
 
10427
          else
 
10428
            lt_cv_archive_cmds_need_lc=yes
 
10429
          fi
 
10430
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10431
        else
 
10432
          cat conftest.err 1>&5
 
10433
        fi
 
10434
        $RM conftest*
 
10435
 
 
10436
fi
 
10437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10438
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10439
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8923
10440
      ;;
8924
10441
    esac
8925
10442
  fi
8926
10443
  ;;
8927
10444
esac
8928
10445
 
8929
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8930
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8931
 
library_names_spec=
8932
 
libname_spec='lib$name'
8933
 
soname_spec=
8934
 
shrext_cmds=".so"
8935
 
postinstall_cmds=
8936
 
postuninstall_cmds=
8937
 
finish_cmds=
8938
 
finish_eval=
8939
 
shlibpath_var=
8940
 
shlibpath_overrides_runpath=unknown
8941
 
version_type=none
8942
 
dynamic_linker="$host_os ld.so"
8943
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10446
 
 
10447
 
 
10448
 
 
10449
 
 
10450
 
 
10451
 
 
10452
 
 
10453
 
 
10454
 
 
10455
 
 
10456
 
 
10457
 
 
10458
 
 
10459
 
 
10460
 
 
10461
 
 
10462
 
 
10463
 
 
10464
 
 
10465
 
 
10466
 
 
10467
 
 
10468
 
 
10469
 
 
10470
 
 
10471
 
 
10472
 
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
 
 
10479
 
 
10480
 
 
10481
 
 
10482
 
 
10483
 
 
10484
 
 
10485
 
 
10486
 
 
10487
 
 
10488
 
 
10489
 
 
10490
 
 
10491
 
 
10492
 
 
10493
 
 
10494
 
 
10495
 
 
10496
 
 
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
 
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
 
 
10527
 
 
10528
 
 
10529
 
 
10530
 
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
 
 
10549
 
 
10550
 
 
10551
 
 
10552
 
 
10553
 
 
10554
 
 
10555
 
 
10556
 
 
10557
 
 
10558
 
 
10559
 
 
10560
 
 
10561
 
 
10562
 
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
 
10571
 
 
10572
 
 
10573
 
 
10574
 
 
10575
 
 
10576
 
 
10577
 
 
10578
 
 
10579
 
 
10580
 
 
10581
 
 
10582
 
 
10583
 
 
10584
 
 
10585
 
 
10586
 
 
10587
 
 
10588
 
 
10589
 
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
 
10596
 
 
10597
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10598
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8944
10599
 
8945
10600
if test "$GCC" = yes; then
8946
10601
  case $host_os in
8947
10602
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8948
10603
    *) lt_awk_arg="/^libraries:/" ;;
8949
10604
  esac
8950
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
10605
  case $host_os in
 
10606
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10607
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10608
  esac
 
10609
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10610
  case $lt_search_path_spec in
 
10611
  *\;*)
8952
10612
    # if the path contains ";" then we assume it to be the separator
8953
10613
    # otherwise default to the standard path separator (i.e. ":") - it is
8954
10614
    # assumed that no part of a normal pathname contains ";" but that should
8955
10615
    # okay in the real world where ";" in dirpaths is itself problematic.
8956
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8957
 
  else
8958
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8959
 
  fi
 
10616
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10617
    ;;
 
10618
  *)
 
10619
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10620
    ;;
 
10621
  esac
8960
10622
  # Ok, now we have the path, separated by spaces, we can step through it
8961
10623
  # and add multilib dir if necessary.
8962
10624
  lt_tmp_lt_search_path_spec=
8969
10631
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8970
10632
    fi
8971
10633
  done
8972
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
10634
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8973
10635
BEGIN {RS=" "; FS="/|\n";} {
8974
10636
  lt_foo="";
8975
10637
  lt_count=0;
8989
10651
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8990
10652
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8991
10653
}'`
8992
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
10654
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10655
  # for these hosts.
 
10656
  case $host_os in
 
10657
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10658
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10659
  esac
 
10660
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8993
10661
else
8994
10662
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8995
10663
fi
 
10664
library_names_spec=
 
10665
libname_spec='lib$name'
 
10666
soname_spec=
 
10667
shrext_cmds=".so"
 
10668
postinstall_cmds=
 
10669
postuninstall_cmds=
 
10670
finish_cmds=
 
10671
finish_eval=
 
10672
shlibpath_var=
 
10673
shlibpath_overrides_runpath=unknown
 
10674
version_type=none
 
10675
dynamic_linker="$host_os ld.so"
 
10676
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8996
10677
need_lib_prefix=unknown
8997
10678
hardcode_into_libs=no
8998
10679
 
9002
10683
 
9003
10684
case $host_os in
9004
10685
aix3*)
9005
 
  version_type=linux
 
10686
  version_type=linux # correct to gnu/linux during the next big refactor
9006
10687
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9007
10688
  shlibpath_var=LIBPATH
9008
10689
 
9011
10692
  ;;
9012
10693
 
9013
10694
aix[4-9]*)
9014
 
  version_type=linux
 
10695
  version_type=linux # correct to gnu/linux during the next big refactor
9015
10696
  need_lib_prefix=no
9016
10697
  need_version=no
9017
10698
  hardcode_into_libs=yes
9029
10710
      aix4 | aix4.[01] | aix4.[01].*)
9030
10711
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9031
10712
           echo ' yes '
9032
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10713
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9033
10714
        :
9034
10715
      else
9035
10716
        can_build_shared=no
9055
10736
  ;;
9056
10737
 
9057
10738
amigaos*)
9058
 
  library_names_spec='$libname.ixlibrary $libname.a'
9059
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9060
 
  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'
 
10739
  case $host_cpu in
 
10740
  powerpc)
 
10741
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10742
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10743
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10744
    ;;
 
10745
  m68k)
 
10746
    library_names_spec='$libname.ixlibrary $libname.a'
 
10747
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10748
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10749
    ;;
 
10750
  esac
9061
10751
  ;;
9062
10752
 
9063
10753
beos*)
9067
10757
  ;;
9068
10758
 
9069
10759
bsdi[45]*)
9070
 
  version_type=linux
 
10760
  version_type=linux # correct to gnu/linux during the next big refactor
9071
10761
  need_version=no
9072
10762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073
10763
  soname_spec='${libname}${release}${shared_ext}$major'
9080
10770
  # libtool to hard-code these into programs
9081
10771
  ;;
9082
10772
 
9083
 
cygwin* | mingw* | pw32*)
 
10773
cygwin* | mingw* | pw32* | cegcc*)
9084
10774
  version_type=windows
9085
10775
  shrext_cmds=".dll"
9086
10776
  need_version=no
9087
10777
  need_lib_prefix=no
9088
10778
 
9089
 
  case $GCC,$host_os in
9090
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10779
  case $GCC,$cc_basename in
 
10780
  yes,*)
 
10781
    # gcc
9091
10782
    library_names_spec='$libname.dll.a'
9092
10783
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9093
10784
    postinstall_cmds='base_file=`basename \${file}`~
9094
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10785
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9095
10786
      dldir=$destdir/`dirname \$dlpath`~
9096
10787
      test -d \$dldir || mkdir -p \$dldir~
9097
10788
      $install_prog $dir/$dlname \$dldir/$dlname~
9098
 
      chmod a+x \$dldir/$dlname'
 
10789
      chmod a+x \$dldir/$dlname~
 
10790
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10791
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10792
      fi'
9099
10793
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9100
10794
      dlpath=$dir/\$dldll~
9101
 
       $rm \$dlpath'
 
10795
       $RM \$dlpath'
9102
10796
    shlibpath_overrides_runpath=yes
9103
10797
 
9104
10798
    case $host_os in
9105
10799
    cygwin*)
9106
10800
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9107
10801
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10802
 
 
10803
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9109
10804
      ;;
9110
 
    mingw*)
 
10805
    mingw* | cegcc*)
9111
10806
      # MinGW DLLs use traditional 'lib' prefix
9112
10807
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9115
 
        # It is most probably a Windows format PATH printed by
9116
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9117
 
        # path with ; separators, and with drive letters. We can handle the
9118
 
        # drive letters (cygwin fileutils understands them), so leave them,
9119
 
        # especially as we might pass files found there to a mingw objdump,
9120
 
        # which wouldn't understand a cygwinified path. Ahh.
9121
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9122
 
      else
9123
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9124
 
      fi
9125
10808
      ;;
9126
10809
    pw32*)
9127
10810
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9128
10811
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129
10812
      ;;
9130
10813
    esac
 
10814
    dynamic_linker='Win32 ld.exe'
 
10815
    ;;
 
10816
 
 
10817
  *,cl*)
 
10818
    # Native MSVC
 
10819
    libname_spec='$name'
 
10820
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10821
    library_names_spec='${libname}.dll.lib'
 
10822
 
 
10823
    case $build_os in
 
10824
    mingw*)
 
10825
      sys_lib_search_path_spec=
 
10826
      lt_save_ifs=$IFS
 
10827
      IFS=';'
 
10828
      for lt_path in $LIB
 
10829
      do
 
10830
        IFS=$lt_save_ifs
 
10831
        # Let DOS variable expansion print the short 8.3 style file name.
 
10832
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10833
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10834
      done
 
10835
      IFS=$lt_save_ifs
 
10836
      # Convert to MSYS style.
 
10837
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10838
      ;;
 
10839
    cygwin*)
 
10840
      # Convert to unix form, then to dos form, then back to unix form
 
10841
      # but this time dos style (no spaces!) so that the unix form looks
 
10842
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10843
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10844
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10845
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10846
      ;;
 
10847
    *)
 
10848
      sys_lib_search_path_spec="$LIB"
 
10849
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10850
        # It is most probably a Windows format PATH.
 
10851
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10852
      else
 
10853
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10854
      fi
 
10855
      # FIXME: find the short name or the path components, as spaces are
 
10856
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10857
      ;;
 
10858
    esac
 
10859
 
 
10860
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10861
    postinstall_cmds='base_file=`basename \${file}`~
 
10862
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10863
      dldir=$destdir/`dirname \$dlpath`~
 
10864
      test -d \$dldir || mkdir -p \$dldir~
 
10865
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10866
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10867
      dlpath=$dir/\$dldll~
 
10868
       $RM \$dlpath'
 
10869
    shlibpath_overrides_runpath=yes
 
10870
    dynamic_linker='Win32 link.exe'
9131
10871
    ;;
9132
10872
 
9133
10873
  *)
 
10874
    # Assume MSVC wrapper
9134
10875
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10876
    dynamic_linker='Win32 ld.exe'
9135
10877
    ;;
9136
10878
  esac
9137
 
  dynamic_linker='Win32 ld.exe'
9138
10879
  # FIXME: first we should search . and the directory the executable is in
9139
10880
  shlibpath_var=PATH
9140
10881
  ;;
9144
10885
  version_type=darwin
9145
10886
  need_lib_prefix=no
9146
10887
  need_version=no
9147
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10888
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9148
10889
  soname_spec='${libname}${release}${major}$shared_ext'
9149
10890
  shlibpath_overrides_runpath=yes
9150
10891
  shlibpath_var=DYLD_LIBRARY_PATH
9155
10896
  ;;
9156
10897
 
9157
10898
dgux*)
9158
 
  version_type=linux
 
10899
  version_type=linux # correct to gnu/linux during the next big refactor
9159
10900
  need_lib_prefix=no
9160
10901
  need_version=no
9161
10902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9163
10904
  shlibpath_var=LD_LIBRARY_PATH
9164
10905
  ;;
9165
10906
 
9166
 
freebsd1*)
9167
 
  dynamic_linker=no
9168
 
  ;;
9169
 
 
9170
10907
freebsd* | dragonfly*)
9171
10908
  # DragonFly does not have aout.  When/if they implement a new
9172
10909
  # versioning mechanism, adjust this.
9174
10911
    objformat=`/usr/bin/objformat`
9175
10912
  else
9176
10913
    case $host_os in
9177
 
    freebsd[123]*) objformat=aout ;;
 
10914
    freebsd[23].*) objformat=aout ;;
9178
10915
    *) objformat=elf ;;
9179
10916
    esac
9180
10917
  fi
9192
10929
  esac
9193
10930
  shlibpath_var=LD_LIBRARY_PATH
9194
10931
  case $host_os in
9195
 
  freebsd2*)
 
10932
  freebsd2.*)
9196
10933
    shlibpath_overrides_runpath=yes
9197
10934
    ;;
9198
10935
  freebsd3.[01]* | freebsdelf3.[01]*)
9212
10949
  ;;
9213
10950
 
9214
10951
gnu*)
9215
 
  version_type=linux
 
10952
  version_type=linux # correct to gnu/linux during the next big refactor
9216
10953
  need_lib_prefix=no
9217
10954
  need_version=no
9218
10955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9219
10956
  soname_spec='${libname}${release}${shared_ext}$major'
9220
10957
  shlibpath_var=LD_LIBRARY_PATH
 
10958
  shlibpath_overrides_runpath=no
 
10959
  hardcode_into_libs=yes
 
10960
  ;;
 
10961
 
 
10962
haiku*)
 
10963
  version_type=linux # correct to gnu/linux during the next big refactor
 
10964
  need_lib_prefix=no
 
10965
  need_version=no
 
10966
  dynamic_linker="$host_os runtime_loader"
 
10967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10968
  soname_spec='${libname}${release}${shared_ext}$major'
 
10969
  shlibpath_var=LIBRARY_PATH
 
10970
  shlibpath_overrides_runpath=yes
 
10971
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9221
10972
  hardcode_into_libs=yes
9222
10973
  ;;
9223
10974
 
9243
10994
    fi
9244
10995
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245
10996
    ;;
9246
 
   hppa*64*)
9247
 
     shrext_cmds='.sl'
9248
 
     hardcode_into_libs=yes
9249
 
     dynamic_linker="$host_os dld.sl"
9250
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9251
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9252
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253
 
     soname_spec='${libname}${release}${shared_ext}$major'
9254
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9255
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9256
 
     ;;
9257
 
   *)
 
10997
  hppa*64*)
 
10998
    shrext_cmds='.sl'
 
10999
    hardcode_into_libs=yes
 
11000
    dynamic_linker="$host_os dld.sl"
 
11001
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11002
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11003
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11004
    soname_spec='${libname}${release}${shared_ext}$major'
 
11005
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11006
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11007
    ;;
 
11008
  *)
9258
11009
    shrext_cmds='.sl'
9259
11010
    dynamic_linker="$host_os dld.sl"
9260
11011
    shlibpath_var=SHLIB_PATH
9263
11014
    soname_spec='${libname}${release}${shared_ext}$major'
9264
11015
    ;;
9265
11016
  esac
9266
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11017
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9267
11018
  postinstall_cmds='chmod 555 $lib'
 
11019
  # or fails outright, so override atomically:
 
11020
  install_override_mode=555
9268
11021
  ;;
9269
11022
 
9270
11023
interix[3-9]*)
9271
 
  version_type=linux
 
11024
  version_type=linux # correct to gnu/linux during the next big refactor
9272
11025
  need_lib_prefix=no
9273
11026
  need_version=no
9274
11027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284
11037
    nonstopux*) version_type=nonstopux ;;
9285
11038
    *)
9286
11039
        if test "$lt_cv_prog_gnu_ld" = yes; then
9287
 
                version_type=linux
 
11040
                version_type=linux # correct to gnu/linux during the next big refactor
9288
11041
        else
9289
11042
                version_type=irix
9290
11043
        fi ;;
9321
11074
  dynamic_linker=no
9322
11075
  ;;
9323
11076
 
9324
 
# This must be Linux ELF.
9325
 
linux* | k*bsd*-gnu)
9326
 
  version_type=linux
 
11077
# This must be glibc/ELF.
 
11078
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
11079
  version_type=linux # correct to gnu/linux during the next big refactor
9327
11080
  need_lib_prefix=no
9328
11081
  need_version=no
9329
11082
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331
11084
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9332
11085
  shlibpath_var=LD_LIBRARY_PATH
9333
11086
  shlibpath_overrides_runpath=no
 
11087
 
 
11088
  # Some binutils ld are patched to set DT_RUNPATH
 
11089
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11090
  $as_echo_n "(cached) " >&6
 
11091
else
 
11092
  lt_cv_shlibpath_overrides_runpath=no
 
11093
    save_LDFLAGS=$LDFLAGS
 
11094
    save_libdir=$libdir
 
11095
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11096
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11097
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11098
/* end confdefs.h.  */
 
11099
 
 
11100
int
 
11101
main ()
 
11102
{
 
11103
 
 
11104
  ;
 
11105
  return 0;
 
11106
}
 
11107
_ACEOF
 
11108
if ac_fn_c_try_link "$LINENO"; then :
 
11109
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11110
  lt_cv_shlibpath_overrides_runpath=yes
 
11111
fi
 
11112
fi
 
11113
rm -f core conftest.err conftest.$ac_objext \
 
11114
    conftest$ac_exeext conftest.$ac_ext
 
11115
    LDFLAGS=$save_LDFLAGS
 
11116
    libdir=$save_libdir
 
11117
 
 
11118
fi
 
11119
 
 
11120
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11121
 
9334
11122
  # This implies no fast_install, which is unacceptable.
9335
11123
  # Some rework will be needed to allow for fast_install
9336
11124
  # before this can be enabled.
9338
11126
 
9339
11127
  # Append ld.so.conf contents to the search path
9340
11128
  if test -f /etc/ld.so.conf; then
9341
 
    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' ' '`
 
11129
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9342
11130
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9343
11131
  fi
9344
11132
 
9367
11155
  version_type=sunos
9368
11156
  need_lib_prefix=no
9369
11157
  need_version=no
9370
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11158
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9371
11159
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9372
11160
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9373
11161
    dynamic_linker='NetBSD (a.out) ld.so'
9382
11170
  ;;
9383
11171
 
9384
11172
newsos6)
9385
 
  version_type=linux
 
11173
  version_type=linux # correct to gnu/linux during the next big refactor
9386
11174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387
11175
  shlibpath_var=LD_LIBRARY_PATH
9388
11176
  shlibpath_overrides_runpath=yes
9389
11177
  ;;
9390
11178
 
9391
 
nto-qnx*)
9392
 
  version_type=linux
 
11179
*nto* | *qnx*)
 
11180
  version_type=qnx
9393
11181
  need_lib_prefix=no
9394
11182
  need_version=no
9395
11183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396
11184
  soname_spec='${libname}${release}${shared_ext}$major'
9397
11185
  shlibpath_var=LD_LIBRARY_PATH
9398
 
  shlibpath_overrides_runpath=yes
 
11186
  shlibpath_overrides_runpath=no
 
11187
  hardcode_into_libs=yes
 
11188
  dynamic_linker='ldqnx.so'
9399
11189
  ;;
9400
11190
 
9401
11191
openbsd*)
9404
11194
  need_lib_prefix=no
9405
11195
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9406
11196
  case $host_os in
9407
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9408
 
    *)                         need_version=no  ;;
 
11197
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11198
    *)                          need_version=no  ;;
9409
11199
  esac
9410
11200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9411
11201
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9412
11202
  shlibpath_var=LD_LIBRARY_PATH
9413
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11203
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9414
11204
    case $host_os in
9415
11205
      openbsd2.[89] | openbsd2.[89].*)
9416
11206
        shlibpath_overrides_runpath=no
9449
11239
  ;;
9450
11240
 
9451
11241
solaris*)
9452
 
  version_type=linux
 
11242
  version_type=linux # correct to gnu/linux during the next big refactor
9453
11243
  need_lib_prefix=no
9454
11244
  need_version=no
9455
11245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474
11264
  ;;
9475
11265
 
9476
11266
sysv4 | sysv4.3*)
9477
 
  version_type=linux
 
11267
  version_type=linux # correct to gnu/linux during the next big refactor
9478
11268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479
11269
  soname_spec='${libname}${release}${shared_ext}$major'
9480
11270
  shlibpath_var=LD_LIBRARY_PATH
9482
11272
    sni)
9483
11273
      shlibpath_overrides_runpath=no
9484
11274
      need_lib_prefix=no
9485
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9486
11275
      runpath_var=LD_RUN_PATH
9487
11276
      ;;
9488
11277
    siemens)
9499
11288
 
9500
11289
sysv4*MP*)
9501
11290
  if test -d /usr/nec ;then
9502
 
    version_type=linux
 
11291
    version_type=linux # correct to gnu/linux during the next big refactor
9503
11292
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9504
11293
    soname_spec='$libname${shared_ext}.$major'
9505
11294
    shlibpath_var=LD_LIBRARY_PATH
9513
11302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9514
11303
  soname_spec='${libname}${release}${shared_ext}$major'
9515
11304
  shlibpath_var=LD_LIBRARY_PATH
 
11305
  shlibpath_overrides_runpath=yes
9516
11306
  hardcode_into_libs=yes
9517
11307
  if test "$with_gnu_ld" = yes; then
9518
11308
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9519
 
    shlibpath_overrides_runpath=no
9520
11309
  else
9521
11310
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9522
 
    shlibpath_overrides_runpath=yes
9523
11311
    case $host_os in
9524
11312
      sco3.2v5*)
9525
11313
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9529
11317
  sys_lib_dlsearch_path_spec='/usr/lib'
9530
11318
  ;;
9531
11319
 
 
11320
tpf*)
 
11321
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11322
  version_type=linux # correct to gnu/linux during the next big refactor
 
11323
  need_lib_prefix=no
 
11324
  need_version=no
 
11325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11326
  shlibpath_var=LD_LIBRARY_PATH
 
11327
  shlibpath_overrides_runpath=no
 
11328
  hardcode_into_libs=yes
 
11329
  ;;
 
11330
 
9532
11331
uts4*)
9533
 
  version_type=linux
 
11332
  version_type=linux # correct to gnu/linux during the next big refactor
9534
11333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535
11334
  soname_spec='${libname}${release}${shared_ext}$major'
9536
11335
  shlibpath_var=LD_LIBRARY_PATH
9540
11339
  dynamic_linker=no
9541
11340
  ;;
9542
11341
esac
9543
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9544
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
11342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11343
$as_echo "$dynamic_linker" >&6; }
9545
11344
test "$dynamic_linker" = no && can_build_shared=no
9546
11345
 
9547
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9549
 
else
9550
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9551
 
fi
9552
 
 
9553
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9554
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9555
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9556
 
else
9557
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9558
 
fi
9559
 
 
9560
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9561
 
 
9562
11346
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9563
11347
if test "$GCC" = yes; then
9564
11348
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9565
11349
fi
9566
11350
 
9567
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9568
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
11351
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11352
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11353
fi
 
11354
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11355
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11356
fi
 
11357
 
 
11358
 
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
 
 
11390
 
 
11391
 
 
11392
 
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
 
 
11398
 
 
11399
 
 
11400
 
 
11401
 
 
11402
 
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
 
 
11408
 
 
11409
 
 
11410
 
 
11411
 
 
11412
 
 
11413
 
 
11414
 
 
11415
 
 
11416
 
 
11417
 
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
 
 
11427
 
 
11428
 
 
11429
 
 
11430
 
 
11431
 
 
11432
 
 
11433
 
 
11434
 
 
11435
 
 
11436
 
 
11437
 
 
11438
 
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
 
11447
 
 
11448
 
 
11449
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11450
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9569
11451
hardcode_action=
9570
 
if test -n "$hardcode_libdir_flag_spec" || \
9571
 
   test -n "$runpath_var" || \
 
11452
if test -n "$hardcode_libdir_flag_spec" ||
 
11453
   test -n "$runpath_var" ||
9572
11454
   test "X$hardcode_automatic" = "Xyes" ; then
9573
11455
 
9574
 
  # We can hardcode non-existant directories.
 
11456
  # We can hardcode non-existent directories.
9575
11457
  if test "$hardcode_direct" != no &&
9576
11458
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9577
11459
     # have to relink, otherwise we might link with an installed library
9578
11460
     # when we should be linking with a yet-to-be-installed one
9579
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11461
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9580
11462
     test "$hardcode_minus_L" != no; then
9581
11463
    # Linking always hardcodes the temporary library directory.
9582
11464
    hardcode_action=relink
9589
11471
  # directories.
9590
11472
  hardcode_action=unsupported
9591
11473
fi
9592
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9593
 
echo "${ECHO_T}$hardcode_action" >&6; }
 
11474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11475
$as_echo "$hardcode_action" >&6; }
9594
11476
 
9595
 
if test "$hardcode_action" = relink; then
 
11477
if test "$hardcode_action" = relink ||
 
11478
   test "$inherit_rpath" = yes; then
9596
11479
  # Fast installation is not supported
9597
11480
  enable_fast_install=no
9598
11481
elif test "$shlibpath_overrides_runpath" = yes ||
9601
11484
  enable_fast_install=needless
9602
11485
fi
9603
11486
 
9604
 
striplib=
9605
 
old_striplib=
9606
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9607
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9608
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9609
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9610
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9611
 
  { echo "$as_me:$LINENO: result: yes" >&5
9612
 
echo "${ECHO_T}yes" >&6; }
9613
 
else
9614
 
# FIXME - insert some real tests, host_os isn't really good enough
9615
 
  case $host_os in
9616
 
   darwin*)
9617
 
       if test -n "$STRIP" ; then
9618
 
         striplib="$STRIP -x"
9619
 
         old_striplib="$STRIP -S"
9620
 
         { echo "$as_me:$LINENO: result: yes" >&5
9621
 
echo "${ECHO_T}yes" >&6; }
9622
 
       else
9623
 
  { echo "$as_me:$LINENO: result: no" >&5
9624
 
echo "${ECHO_T}no" >&6; }
9625
 
fi
9626
 
       ;;
9627
 
   *)
9628
 
  { echo "$as_me:$LINENO: result: no" >&5
9629
 
echo "${ECHO_T}no" >&6; }
9630
 
    ;;
9631
 
  esac
9632
 
fi
9633
 
 
9634
 
if test "x$enable_dlopen" != xyes; then
 
11487
 
 
11488
 
 
11489
 
 
11490
 
 
11491
 
 
11492
  if test "x$enable_dlopen" != xyes; then
9635
11493
  enable_dlopen=unknown
9636
11494
  enable_dlopen_self=unknown
9637
11495
  enable_dlopen_self_static=unknown
9646
11504
    lt_cv_dlopen_self=yes
9647
11505
    ;;
9648
11506
 
9649
 
  mingw* | pw32*)
 
11507
  mingw* | pw32* | cegcc*)
9650
11508
    lt_cv_dlopen="LoadLibrary"
9651
11509
    lt_cv_dlopen_libs=
9652
 
   ;;
 
11510
    ;;
9653
11511
 
9654
11512
  cygwin*)
9655
11513
    lt_cv_dlopen="dlopen"
9656
11514
    lt_cv_dlopen_libs=
9657
 
   ;;
 
11515
    ;;
9658
11516
 
9659
11517
  darwin*)
9660
11518
  # if libdl is installed we need to link against it
9661
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9662
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9663
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9664
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11519
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11520
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11521
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11522
  $as_echo_n "(cached) " >&6
9665
11523
else
9666
11524
  ac_check_lib_save_LIBS=$LIBS
9667
11525
LIBS="-ldl  $LIBS"
9668
 
cat >conftest.$ac_ext <<_ACEOF
9669
 
/* confdefs.h.  */
9670
 
_ACEOF
9671
 
cat confdefs.h >>conftest.$ac_ext
9672
 
cat >>conftest.$ac_ext <<_ACEOF
 
11526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673
11527
/* end confdefs.h.  */
9674
11528
 
9675
11529
/* Override any GCC internal prototype to avoid an error.
9687
11541
  return 0;
9688
11542
}
9689
11543
_ACEOF
9690
 
rm -f conftest.$ac_objext conftest$ac_exeext
9691
 
if { (ac_try="$ac_link"
9692
 
case "(($ac_try" in
9693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694
 
  *) ac_try_echo=$ac_try;;
9695
 
esac
9696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697
 
  (eval "$ac_link") 2>conftest.er1
9698
 
  ac_status=$?
9699
 
  grep -v '^ *+' conftest.er1 >conftest.err
9700
 
  rm -f conftest.er1
9701
 
  cat conftest.err >&5
9702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703
 
  (exit $ac_status); } && {
9704
 
         test -z "$ac_c_werror_flag" ||
9705
 
         test ! -s conftest.err
9706
 
       } && test -s conftest$ac_exeext &&
9707
 
       $as_test_x conftest$ac_exeext; then
 
11544
if ac_fn_c_try_link "$LINENO"; then :
9708
11545
  ac_cv_lib_dl_dlopen=yes
9709
11546
else
9710
 
  echo "$as_me: failed program was:" >&5
9711
 
sed 's/^/| /' conftest.$ac_ext >&5
9712
 
 
9713
 
        ac_cv_lib_dl_dlopen=no
 
11547
  ac_cv_lib_dl_dlopen=no
9714
11548
fi
9715
 
 
9716
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717
 
      conftest$ac_exeext conftest.$ac_ext
 
11549
rm -f core conftest.err conftest.$ac_objext \
 
11550
    conftest$ac_exeext conftest.$ac_ext
9718
11551
LIBS=$ac_check_lib_save_LIBS
9719
11552
fi
9720
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9721
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9722
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
11553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11554
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11555
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9723
11556
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9724
11557
else
9725
11558
 
9729
11562
 
9730
11563
fi
9731
11564
 
9732
 
   ;;
 
11565
    ;;
9733
11566
 
9734
11567
  *)
9735
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9736
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9737
 
if test "${ac_cv_func_shl_load+set}" = set; then
9738
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9739
 
else
9740
 
  cat >conftest.$ac_ext <<_ACEOF
9741
 
/* confdefs.h.  */
9742
 
_ACEOF
9743
 
cat confdefs.h >>conftest.$ac_ext
9744
 
cat >>conftest.$ac_ext <<_ACEOF
9745
 
/* end confdefs.h.  */
9746
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9747
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9748
 
#define shl_load innocuous_shl_load
9749
 
 
9750
 
/* System header to define __stub macros and hopefully few prototypes,
9751
 
    which can conflict with char shl_load (); below.
9752
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9753
 
    <limits.h> exists even on freestanding compilers.  */
9754
 
 
9755
 
#ifdef __STDC__
9756
 
# include <limits.h>
9757
 
#else
9758
 
# include <assert.h>
9759
 
#endif
9760
 
 
9761
 
#undef shl_load
9762
 
 
9763
 
/* Override any GCC internal prototype to avoid an error.
9764
 
   Use char because int might match the return type of a GCC
9765
 
   builtin and then its argument prototype would still apply.  */
9766
 
#ifdef __cplusplus
9767
 
extern "C"
9768
 
#endif
9769
 
char shl_load ();
9770
 
/* The GNU C library defines this for functions which it implements
9771
 
    to always fail with ENOSYS.  Some functions are actually named
9772
 
    something starting with __ and the normal name is an alias.  */
9773
 
#if defined __stub_shl_load || defined __stub___shl_load
9774
 
choke me
9775
 
#endif
9776
 
 
9777
 
int
9778
 
main ()
9779
 
{
9780
 
return shl_load ();
9781
 
  ;
9782
 
  return 0;
9783
 
}
9784
 
_ACEOF
9785
 
rm -f conftest.$ac_objext conftest$ac_exeext
9786
 
if { (ac_try="$ac_link"
9787
 
case "(($ac_try" in
9788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789
 
  *) ac_try_echo=$ac_try;;
9790
 
esac
9791
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792
 
  (eval "$ac_link") 2>conftest.er1
9793
 
  ac_status=$?
9794
 
  grep -v '^ *+' conftest.er1 >conftest.err
9795
 
  rm -f conftest.er1
9796
 
  cat conftest.err >&5
9797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798
 
  (exit $ac_status); } && {
9799
 
         test -z "$ac_c_werror_flag" ||
9800
 
         test ! -s conftest.err
9801
 
       } && test -s conftest$ac_exeext &&
9802
 
       $as_test_x conftest$ac_exeext; then
9803
 
  ac_cv_func_shl_load=yes
9804
 
else
9805
 
  echo "$as_me: failed program was:" >&5
9806
 
sed 's/^/| /' conftest.$ac_ext >&5
9807
 
 
9808
 
        ac_cv_func_shl_load=no
9809
 
fi
9810
 
 
9811
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812
 
      conftest$ac_exeext conftest.$ac_ext
9813
 
fi
9814
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9815
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9816
 
if test $ac_cv_func_shl_load = yes; then
 
11568
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11569
if test "x$ac_cv_func_shl_load" = xyes; then :
9817
11570
  lt_cv_dlopen="shl_load"
9818
11571
else
9819
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9820
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9821
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9822
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11572
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11573
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11574
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11575
  $as_echo_n "(cached) " >&6
9823
11576
else
9824
11577
  ac_check_lib_save_LIBS=$LIBS
9825
11578
LIBS="-ldld  $LIBS"
9826
 
cat >conftest.$ac_ext <<_ACEOF
9827
 
/* confdefs.h.  */
9828
 
_ACEOF
9829
 
cat confdefs.h >>conftest.$ac_ext
9830
 
cat >>conftest.$ac_ext <<_ACEOF
 
11579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831
11580
/* end confdefs.h.  */
9832
11581
 
9833
11582
/* Override any GCC internal prototype to avoid an error.
9845
11594
  return 0;
9846
11595
}
9847
11596
_ACEOF
9848
 
rm -f conftest.$ac_objext conftest$ac_exeext
9849
 
if { (ac_try="$ac_link"
9850
 
case "(($ac_try" in
9851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852
 
  *) ac_try_echo=$ac_try;;
9853
 
esac
9854
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855
 
  (eval "$ac_link") 2>conftest.er1
9856
 
  ac_status=$?
9857
 
  grep -v '^ *+' conftest.er1 >conftest.err
9858
 
  rm -f conftest.er1
9859
 
  cat conftest.err >&5
9860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861
 
  (exit $ac_status); } && {
9862
 
         test -z "$ac_c_werror_flag" ||
9863
 
         test ! -s conftest.err
9864
 
       } && test -s conftest$ac_exeext &&
9865
 
       $as_test_x conftest$ac_exeext; then
 
11597
if ac_fn_c_try_link "$LINENO"; then :
9866
11598
  ac_cv_lib_dld_shl_load=yes
9867
11599
else
9868
 
  echo "$as_me: failed program was:" >&5
9869
 
sed 's/^/| /' conftest.$ac_ext >&5
9870
 
 
9871
 
        ac_cv_lib_dld_shl_load=no
 
11600
  ac_cv_lib_dld_shl_load=no
9872
11601
fi
9873
 
 
9874
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875
 
      conftest$ac_exeext conftest.$ac_ext
 
11602
rm -f core conftest.err conftest.$ac_objext \
 
11603
    conftest$ac_exeext conftest.$ac_ext
9876
11604
LIBS=$ac_check_lib_save_LIBS
9877
11605
fi
9878
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9879
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9880
 
if test $ac_cv_lib_dld_shl_load = yes; then
 
11606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11607
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11608
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9881
11609
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9882
11610
else
9883
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9884
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9885
 
if test "${ac_cv_func_dlopen+set}" = set; then
9886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9887
 
else
9888
 
  cat >conftest.$ac_ext <<_ACEOF
9889
 
/* confdefs.h.  */
9890
 
_ACEOF
9891
 
cat confdefs.h >>conftest.$ac_ext
9892
 
cat >>conftest.$ac_ext <<_ACEOF
9893
 
/* end confdefs.h.  */
9894
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9895
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9896
 
#define dlopen innocuous_dlopen
9897
 
 
9898
 
/* System header to define __stub macros and hopefully few prototypes,
9899
 
    which can conflict with char dlopen (); below.
9900
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9901
 
    <limits.h> exists even on freestanding compilers.  */
9902
 
 
9903
 
#ifdef __STDC__
9904
 
# include <limits.h>
9905
 
#else
9906
 
# include <assert.h>
9907
 
#endif
9908
 
 
9909
 
#undef dlopen
9910
 
 
9911
 
/* Override any GCC internal prototype to avoid an error.
9912
 
   Use char because int might match the return type of a GCC
9913
 
   builtin and then its argument prototype would still apply.  */
9914
 
#ifdef __cplusplus
9915
 
extern "C"
9916
 
#endif
9917
 
char dlopen ();
9918
 
/* The GNU C library defines this for functions which it implements
9919
 
    to always fail with ENOSYS.  Some functions are actually named
9920
 
    something starting with __ and the normal name is an alias.  */
9921
 
#if defined __stub_dlopen || defined __stub___dlopen
9922
 
choke me
9923
 
#endif
9924
 
 
9925
 
int
9926
 
main ()
9927
 
{
9928
 
return dlopen ();
9929
 
  ;
9930
 
  return 0;
9931
 
}
9932
 
_ACEOF
9933
 
rm -f conftest.$ac_objext conftest$ac_exeext
9934
 
if { (ac_try="$ac_link"
9935
 
case "(($ac_try" in
9936
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937
 
  *) ac_try_echo=$ac_try;;
9938
 
esac
9939
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940
 
  (eval "$ac_link") 2>conftest.er1
9941
 
  ac_status=$?
9942
 
  grep -v '^ *+' conftest.er1 >conftest.err
9943
 
  rm -f conftest.er1
9944
 
  cat conftest.err >&5
9945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946
 
  (exit $ac_status); } && {
9947
 
         test -z "$ac_c_werror_flag" ||
9948
 
         test ! -s conftest.err
9949
 
       } && test -s conftest$ac_exeext &&
9950
 
       $as_test_x conftest$ac_exeext; then
9951
 
  ac_cv_func_dlopen=yes
9952
 
else
9953
 
  echo "$as_me: failed program was:" >&5
9954
 
sed 's/^/| /' conftest.$ac_ext >&5
9955
 
 
9956
 
        ac_cv_func_dlopen=no
9957
 
fi
9958
 
 
9959
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960
 
      conftest$ac_exeext conftest.$ac_ext
9961
 
fi
9962
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9963
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9964
 
if test $ac_cv_func_dlopen = yes; then
 
11611
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11612
if test "x$ac_cv_func_dlopen" = xyes; then :
9965
11613
  lt_cv_dlopen="dlopen"
9966
11614
else
9967
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9968
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9969
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9970
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11615
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11616
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11617
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11618
  $as_echo_n "(cached) " >&6
9971
11619
else
9972
11620
  ac_check_lib_save_LIBS=$LIBS
9973
11621
LIBS="-ldl  $LIBS"
9974
 
cat >conftest.$ac_ext <<_ACEOF
9975
 
/* confdefs.h.  */
9976
 
_ACEOF
9977
 
cat confdefs.h >>conftest.$ac_ext
9978
 
cat >>conftest.$ac_ext <<_ACEOF
 
11622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979
11623
/* end confdefs.h.  */
9980
11624
 
9981
11625
/* Override any GCC internal prototype to avoid an error.
9993
11637
  return 0;
9994
11638
}
9995
11639
_ACEOF
9996
 
rm -f conftest.$ac_objext conftest$ac_exeext
9997
 
if { (ac_try="$ac_link"
9998
 
case "(($ac_try" in
9999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000
 
  *) ac_try_echo=$ac_try;;
10001
 
esac
10002
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003
 
  (eval "$ac_link") 2>conftest.er1
10004
 
  ac_status=$?
10005
 
  grep -v '^ *+' conftest.er1 >conftest.err
10006
 
  rm -f conftest.er1
10007
 
  cat conftest.err >&5
10008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009
 
  (exit $ac_status); } && {
10010
 
         test -z "$ac_c_werror_flag" ||
10011
 
         test ! -s conftest.err
10012
 
       } && test -s conftest$ac_exeext &&
10013
 
       $as_test_x conftest$ac_exeext; then
 
11640
if ac_fn_c_try_link "$LINENO"; then :
10014
11641
  ac_cv_lib_dl_dlopen=yes
10015
11642
else
10016
 
  echo "$as_me: failed program was:" >&5
10017
 
sed 's/^/| /' conftest.$ac_ext >&5
10018
 
 
10019
 
        ac_cv_lib_dl_dlopen=no
 
11643
  ac_cv_lib_dl_dlopen=no
10020
11644
fi
10021
 
 
10022
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023
 
      conftest$ac_exeext conftest.$ac_ext
 
11645
rm -f core conftest.err conftest.$ac_objext \
 
11646
    conftest$ac_exeext conftest.$ac_ext
10024
11647
LIBS=$ac_check_lib_save_LIBS
10025
11648
fi
10026
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
11649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11650
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11651
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10029
11652
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10030
11653
else
10031
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10032
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10033
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11655
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11656
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11657
  $as_echo_n "(cached) " >&6
10035
11658
else
10036
11659
  ac_check_lib_save_LIBS=$LIBS
10037
11660
LIBS="-lsvld  $LIBS"
10038
 
cat >conftest.$ac_ext <<_ACEOF
10039
 
/* confdefs.h.  */
10040
 
_ACEOF
10041
 
cat confdefs.h >>conftest.$ac_ext
10042
 
cat >>conftest.$ac_ext <<_ACEOF
 
11661
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043
11662
/* end confdefs.h.  */
10044
11663
 
10045
11664
/* Override any GCC internal prototype to avoid an error.
10057
11676
  return 0;
10058
11677
}
10059
11678
_ACEOF
10060
 
rm -f conftest.$ac_objext conftest$ac_exeext
10061
 
if { (ac_try="$ac_link"
10062
 
case "(($ac_try" in
10063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064
 
  *) ac_try_echo=$ac_try;;
10065
 
esac
10066
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067
 
  (eval "$ac_link") 2>conftest.er1
10068
 
  ac_status=$?
10069
 
  grep -v '^ *+' conftest.er1 >conftest.err
10070
 
  rm -f conftest.er1
10071
 
  cat conftest.err >&5
10072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
 
  (exit $ac_status); } && {
10074
 
         test -z "$ac_c_werror_flag" ||
10075
 
         test ! -s conftest.err
10076
 
       } && test -s conftest$ac_exeext &&
10077
 
       $as_test_x conftest$ac_exeext; then
 
11679
if ac_fn_c_try_link "$LINENO"; then :
10078
11680
  ac_cv_lib_svld_dlopen=yes
10079
11681
else
10080
 
  echo "$as_me: failed program was:" >&5
10081
 
sed 's/^/| /' conftest.$ac_ext >&5
10082
 
 
10083
 
        ac_cv_lib_svld_dlopen=no
 
11682
  ac_cv_lib_svld_dlopen=no
10084
11683
fi
10085
 
 
10086
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087
 
      conftest$ac_exeext conftest.$ac_ext
 
11684
rm -f core conftest.err conftest.$ac_objext \
 
11685
    conftest$ac_exeext conftest.$ac_ext
10088
11686
LIBS=$ac_check_lib_save_LIBS
10089
11687
fi
10090
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10091
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10092
 
if test $ac_cv_lib_svld_dlopen = yes; then
 
11688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11689
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11690
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10093
11691
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10094
11692
else
10095
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10096
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10097
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10098
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11694
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11695
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11696
  $as_echo_n "(cached) " >&6
10099
11697
else
10100
11698
  ac_check_lib_save_LIBS=$LIBS
10101
11699
LIBS="-ldld  $LIBS"
10102
 
cat >conftest.$ac_ext <<_ACEOF
10103
 
/* confdefs.h.  */
10104
 
_ACEOF
10105
 
cat confdefs.h >>conftest.$ac_ext
10106
 
cat >>conftest.$ac_ext <<_ACEOF
 
11700
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107
11701
/* end confdefs.h.  */
10108
11702
 
10109
11703
/* Override any GCC internal prototype to avoid an error.
10121
11715
  return 0;
10122
11716
}
10123
11717
_ACEOF
10124
 
rm -f conftest.$ac_objext conftest$ac_exeext
10125
 
if { (ac_try="$ac_link"
10126
 
case "(($ac_try" in
10127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128
 
  *) ac_try_echo=$ac_try;;
10129
 
esac
10130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131
 
  (eval "$ac_link") 2>conftest.er1
10132
 
  ac_status=$?
10133
 
  grep -v '^ *+' conftest.er1 >conftest.err
10134
 
  rm -f conftest.er1
10135
 
  cat conftest.err >&5
10136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137
 
  (exit $ac_status); } && {
10138
 
         test -z "$ac_c_werror_flag" ||
10139
 
         test ! -s conftest.err
10140
 
       } && test -s conftest$ac_exeext &&
10141
 
       $as_test_x conftest$ac_exeext; then
 
11718
if ac_fn_c_try_link "$LINENO"; then :
10142
11719
  ac_cv_lib_dld_dld_link=yes
10143
11720
else
10144
 
  echo "$as_me: failed program was:" >&5
10145
 
sed 's/^/| /' conftest.$ac_ext >&5
10146
 
 
10147
 
        ac_cv_lib_dld_dld_link=no
 
11721
  ac_cv_lib_dld_dld_link=no
10148
11722
fi
10149
 
 
10150
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151
 
      conftest$ac_exeext conftest.$ac_ext
 
11723
rm -f core conftest.err conftest.$ac_objext \
 
11724
    conftest$ac_exeext conftest.$ac_ext
10152
11725
LIBS=$ac_check_lib_save_LIBS
10153
11726
fi
10154
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10155
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10156
 
if test $ac_cv_lib_dld_dld_link = yes; then
 
11727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11728
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11729
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10157
11730
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10158
11731
fi
10159
11732
 
10192
11765
    save_LIBS="$LIBS"
10193
11766
    LIBS="$lt_cv_dlopen_libs $LIBS"
10194
11767
 
10195
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10196
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10197
 
if test "${lt_cv_dlopen_self+set}" = set; then
10198
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11768
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11769
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11770
if ${lt_cv_dlopen_self+:} false; then :
 
11771
  $as_echo_n "(cached) " >&6
10199
11772
else
10200
11773
          if test "$cross_compiling" = yes; then :
10201
11774
  lt_cv_dlopen_self=cross
10202
11775
else
10203
11776
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10204
11777
  lt_status=$lt_dlunknown
10205
 
  cat > conftest.$ac_ext <<EOF
10206
 
#line 10206 "configure"
 
11778
  cat > conftest.$ac_ext <<_LT_EOF
 
11779
#line $LINENO "configure"
10207
11780
#include "confdefs.h"
10208
11781
 
10209
11782
#if HAVE_DLFCN_H
10244
11817
#  endif
10245
11818
#endif
10246
11819
 
10247
 
#ifdef __cplusplus
10248
 
extern "C" void exit (int);
 
11820
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11821
   correspondingly for the symbols needed.  */
 
11822
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11823
int fnord () __attribute__((visibility("default")));
10249
11824
#endif
10250
11825
 
10251
 
void fnord() { int i=42;}
 
11826
int fnord () { return 42; }
10252
11827
int main ()
10253
11828
{
10254
11829
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10257
11832
  if (self)
10258
11833
    {
10259
11834
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10260
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11835
      else
 
11836
        {
 
11837
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11838
          else puts (dlerror ());
 
11839
        }
10261
11840
      /* dlclose (self); */
10262
11841
    }
10263
11842
  else
10264
11843
    puts (dlerror ());
10265
11844
 
10266
 
    exit (status);
 
11845
  return status;
10267
11846
}
10268
 
EOF
10269
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11847
_LT_EOF
 
11848
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10270
11849
  (eval $ac_link) 2>&5
10271
11850
  ac_status=$?
10272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11851
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11852
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10274
11853
    (./conftest; exit; ) >&5 2>/dev/null
10275
11854
    lt_status=$?
10276
11855
    case x$lt_status in
10287
11866
 
10288
11867
 
10289
11868
fi
10290
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10291
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
11869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11870
$as_echo "$lt_cv_dlopen_self" >&6; }
10292
11871
 
10293
11872
    if test "x$lt_cv_dlopen_self" = xyes; then
10294
11873
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10295
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10296
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10297
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11874
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11875
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11876
if ${lt_cv_dlopen_self_static+:} false; then :
 
11877
  $as_echo_n "(cached) " >&6
10299
11878
else
10300
11879
          if test "$cross_compiling" = yes; then :
10301
11880
  lt_cv_dlopen_self_static=cross
10302
11881
else
10303
11882
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10304
11883
  lt_status=$lt_dlunknown
10305
 
  cat > conftest.$ac_ext <<EOF
10306
 
#line 10306 "configure"
 
11884
  cat > conftest.$ac_ext <<_LT_EOF
 
11885
#line $LINENO "configure"
10307
11886
#include "confdefs.h"
10308
11887
 
10309
11888
#if HAVE_DLFCN_H
10344
11923
#  endif
10345
11924
#endif
10346
11925
 
10347
 
#ifdef __cplusplus
10348
 
extern "C" void exit (int);
 
11926
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11927
   correspondingly for the symbols needed.  */
 
11928
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11929
int fnord () __attribute__((visibility("default")));
10349
11930
#endif
10350
11931
 
10351
 
void fnord() { int i=42;}
 
11932
int fnord () { return 42; }
10352
11933
int main ()
10353
11934
{
10354
11935
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10357
11938
  if (self)
10358
11939
    {
10359
11940
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10360
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11941
      else
 
11942
        {
 
11943
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11944
          else puts (dlerror ());
 
11945
        }
10361
11946
      /* dlclose (self); */
10362
11947
    }
10363
11948
  else
10364
11949
    puts (dlerror ());
10365
11950
 
10366
 
    exit (status);
 
11951
  return status;
10367
11952
}
10368
 
EOF
10369
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11953
_LT_EOF
 
11954
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10370
11955
  (eval $ac_link) 2>&5
10371
11956
  ac_status=$?
10372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11957
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11958
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10374
11959
    (./conftest; exit; ) >&5 2>/dev/null
10375
11960
    lt_status=$?
10376
11961
    case x$lt_status in
10387
11972
 
10388
11973
 
10389
11974
fi
10390
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10391
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
11975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11976
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10392
11977
    fi
10393
11978
 
10394
11979
    CPPFLAGS="$save_CPPFLAGS"
10409
11994
fi
10410
11995
 
10411
11996
 
10412
 
# Report which library types will actually be built
10413
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10414
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10415
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10416
 
echo "${ECHO_T}$can_build_shared" >&6; }
10417
 
 
10418
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10419
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10420
 
test "$can_build_shared" = "no" && enable_shared=no
10421
 
 
10422
 
# On AIX, shared libraries and static libraries use the same namespace, and
10423
 
# are all built from PIC.
10424
 
case $host_os in
10425
 
aix3*)
10426
 
  test "$enable_shared" = yes && enable_static=no
10427
 
  if test -n "$RANLIB"; then
10428
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10429
 
    postinstall_cmds='$RANLIB $lib'
10430
 
  fi
10431
 
  ;;
10432
 
 
10433
 
aix[4-9]*)
10434
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10435
 
    test "$enable_shared" = yes && enable_static=no
10436
 
  fi
10437
 
    ;;
10438
 
esac
10439
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10440
 
echo "${ECHO_T}$enable_shared" >&6; }
10441
 
 
10442
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10443
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10444
 
# Make sure either enable_shared or enable_static is yes.
10445
 
test "$enable_shared" = yes || enable_static=yes
10446
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10447
 
echo "${ECHO_T}$enable_static" >&6; }
10448
 
 
10449
 
# The else clause should only fire when bootstrapping the
10450
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10451
 
# with your package, and you will get complaints that there are
10452
 
# no rules to generate ltmain.sh.
10453
 
if test -f "$ltmain"; then
10454
 
  # See if we are running on zsh, and set the options which allow our commands through
10455
 
  # without removal of \ escapes.
10456
 
  if test -n "${ZSH_VERSION+set}" ; then
10457
 
    setopt NO_GLOB_SUBST
10458
 
  fi
10459
 
  # Now quote all the things that may contain metacharacters while being
10460
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10461
 
  # variables and quote the copies for generation of the libtool script.
10462
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10463
 
    SED SHELL STRIP \
10464
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10465
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10466
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10467
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10468
 
    lt_cv_sys_global_symbol_to_c_name_address \
10469
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10470
 
    old_postinstall_cmds old_postuninstall_cmds \
10471
 
    compiler \
10472
 
    CC \
10473
 
    LD \
10474
 
    lt_prog_compiler_wl \
10475
 
    lt_prog_compiler_pic \
10476
 
    lt_prog_compiler_static \
10477
 
    lt_prog_compiler_no_builtin_flag \
10478
 
    export_dynamic_flag_spec \
10479
 
    thread_safe_flag_spec \
10480
 
    whole_archive_flag_spec \
10481
 
    enable_shared_with_static_runtimes \
10482
 
    old_archive_cmds \
10483
 
    old_archive_from_new_cmds \
10484
 
    predep_objects \
10485
 
    postdep_objects \
10486
 
    predeps \
10487
 
    postdeps \
10488
 
    compiler_lib_search_path \
10489
 
    compiler_lib_search_dirs \
10490
 
    archive_cmds \
10491
 
    archive_expsym_cmds \
10492
 
    postinstall_cmds \
10493
 
    postuninstall_cmds \
10494
 
    old_archive_from_expsyms_cmds \
10495
 
    allow_undefined_flag \
10496
 
    no_undefined_flag \
10497
 
    export_symbols_cmds \
10498
 
    hardcode_libdir_flag_spec \
10499
 
    hardcode_libdir_flag_spec_ld \
10500
 
    hardcode_libdir_separator \
10501
 
    hardcode_automatic \
10502
 
    module_cmds \
10503
 
    module_expsym_cmds \
10504
 
    lt_cv_prog_compiler_c_o \
10505
 
    fix_srcfile_path \
10506
 
    exclude_expsyms \
10507
 
    include_expsyms; do
10508
 
 
10509
 
    case $var in
10510
 
    old_archive_cmds | \
10511
 
    old_archive_from_new_cmds | \
10512
 
    archive_cmds | \
10513
 
    archive_expsym_cmds | \
10514
 
    module_cmds | \
10515
 
    module_expsym_cmds | \
10516
 
    old_archive_from_expsyms_cmds | \
10517
 
    export_symbols_cmds | \
10518
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10519
 
    postinstall_cmds | postuninstall_cmds | \
10520
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10521
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10522
 
      # Double-quote double-evaled strings.
10523
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10524
 
      ;;
10525
 
    *)
10526
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10527
 
      ;;
10528
 
    esac
10529
 
  done
10530
 
 
10531
 
  case $lt_echo in
10532
 
  *'\$0 --fallback-echo"')
10533
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10534
 
    ;;
10535
 
  esac
10536
 
 
10537
 
cfgfile="${ofile}T"
10538
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10539
 
  $rm -f "$cfgfile"
10540
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10541
 
echo "$as_me: creating $ofile" >&6;}
10542
 
 
10543
 
  cat <<__EOF__ >> "$cfgfile"
10544
 
#! $SHELL
10545
 
 
10546
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10547
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10548
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10549
 
#
10550
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10551
 
# Free Software Foundation, Inc.
10552
 
#
10553
 
# This file is part of GNU Libtool:
10554
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10555
 
#
10556
 
# This program is free software; you can redistribute it and/or modify
10557
 
# it under the terms of the GNU General Public License as published by
10558
 
# the Free Software Foundation; either version 2 of the License, or
10559
 
# (at your option) any later version.
10560
 
#
10561
 
# This program is distributed in the hope that it will be useful, but
10562
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10563
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10564
 
# General Public License for more details.
10565
 
#
10566
 
# You should have received a copy of the GNU General Public License
10567
 
# along with this program; if not, write to the Free Software
10568
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10569
 
#
10570
 
# As a special exception to the GNU General Public License, if you
10571
 
# distribute this file as part of a program that contains a
10572
 
# configuration script generated by Autoconf, you may include it under
10573
 
# the same distribution terms that you use for the rest of that program.
10574
 
 
10575
 
# A sed program that does not truncate output.
10576
 
SED=$lt_SED
10577
 
 
10578
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10579
 
Xsed="$SED -e 1s/^X//"
10580
 
 
10581
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10582
 
# if CDPATH is set.
10583
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10584
 
 
10585
 
# The names of the tagged configurations supported by this script.
10586
 
available_tags=
10587
 
 
10588
 
# ### BEGIN LIBTOOL CONFIG
10589
 
 
10590
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10591
 
 
10592
 
# Shell to use when invoking shell scripts.
10593
 
SHELL=$lt_SHELL
10594
 
 
10595
 
# Whether or not to build shared libraries.
10596
 
build_libtool_libs=$enable_shared
10597
 
 
10598
 
# Whether or not to build static libraries.
10599
 
build_old_libs=$enable_static
10600
 
 
10601
 
# Whether or not to add -lc for building shared libraries.
10602
 
build_libtool_need_lc=$archive_cmds_need_lc
10603
 
 
10604
 
# Whether or not to disallow shared libs when runtime libs are static
10605
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10606
 
 
10607
 
# Whether or not to optimize for fast installation.
10608
 
fast_install=$enable_fast_install
10609
 
 
10610
 
# The host system.
10611
 
host_alias=$host_alias
10612
 
host=$host
10613
 
host_os=$host_os
10614
 
 
10615
 
# The build system.
10616
 
build_alias=$build_alias
10617
 
build=$build
10618
 
build_os=$build_os
10619
 
 
10620
 
# An echo program that does not interpret backslashes.
10621
 
echo=$lt_echo
10622
 
 
10623
 
# The archiver.
10624
 
AR=$lt_AR
10625
 
AR_FLAGS=$lt_AR_FLAGS
10626
 
 
10627
 
# A C compiler.
10628
 
LTCC=$lt_LTCC
10629
 
 
10630
 
# LTCC compiler flags.
10631
 
LTCFLAGS=$lt_LTCFLAGS
10632
 
 
10633
 
# A language-specific compiler.
10634
 
CC=$lt_compiler
10635
 
 
10636
 
# Is the compiler the GNU C compiler?
10637
 
with_gcc=$GCC
10638
 
 
10639
 
# An ERE matcher.
10640
 
EGREP=$lt_EGREP
10641
 
 
10642
 
# The linker used to build libraries.
10643
 
LD=$lt_LD
10644
 
 
10645
 
# Whether we need hard or soft links.
10646
 
LN_S=$lt_LN_S
10647
 
 
10648
 
# A BSD-compatible nm program.
10649
 
NM=$lt_NM
10650
 
 
10651
 
# A symbol stripping program
10652
 
STRIP=$lt_STRIP
10653
 
 
10654
 
# Used to examine libraries when file_magic_cmd begins "file"
10655
 
MAGIC_CMD=$MAGIC_CMD
10656
 
 
10657
 
# Used on cygwin: DLL creation program.
10658
 
DLLTOOL="$DLLTOOL"
10659
 
 
10660
 
# Used on cygwin: object dumper.
10661
 
OBJDUMP="$OBJDUMP"
10662
 
 
10663
 
# Used on cygwin: assembler.
10664
 
AS="$AS"
10665
 
 
10666
 
# The name of the directory that contains temporary libtool files.
10667
 
objdir=$objdir
10668
 
 
10669
 
# How to create reloadable object files.
10670
 
reload_flag=$lt_reload_flag
10671
 
reload_cmds=$lt_reload_cmds
10672
 
 
10673
 
# How to pass a linker flag through the compiler.
10674
 
wl=$lt_lt_prog_compiler_wl
10675
 
 
10676
 
# Object file suffix (normally "o").
10677
 
objext="$ac_objext"
10678
 
 
10679
 
# Old archive suffix (normally "a").
10680
 
libext="$libext"
10681
 
 
10682
 
# Shared library suffix (normally ".so").
10683
 
shrext_cmds='$shrext_cmds'
10684
 
 
10685
 
# Executable file suffix (normally "").
10686
 
exeext="$exeext"
10687
 
 
10688
 
# Additional compiler flags for building library objects.
10689
 
pic_flag=$lt_lt_prog_compiler_pic
10690
 
pic_mode=$pic_mode
10691
 
 
10692
 
# What is the maximum length of a command?
10693
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10694
 
 
10695
 
# Does compiler simultaneously support -c and -o options?
10696
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10697
 
 
10698
 
# Must we lock files when doing compilation?
10699
 
need_locks=$lt_need_locks
10700
 
 
10701
 
# Do we need the lib prefix for modules?
10702
 
need_lib_prefix=$need_lib_prefix
10703
 
 
10704
 
# Do we need a version for libraries?
10705
 
need_version=$need_version
10706
 
 
10707
 
# Whether dlopen is supported.
10708
 
dlopen_support=$enable_dlopen
10709
 
 
10710
 
# Whether dlopen of programs is supported.
10711
 
dlopen_self=$enable_dlopen_self
10712
 
 
10713
 
# Whether dlopen of statically linked programs is supported.
10714
 
dlopen_self_static=$enable_dlopen_self_static
10715
 
 
10716
 
# Compiler flag to prevent dynamic linking.
10717
 
link_static_flag=$lt_lt_prog_compiler_static
10718
 
 
10719
 
# Compiler flag to turn off builtin functions.
10720
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10721
 
 
10722
 
# Compiler flag to allow reflexive dlopens.
10723
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10724
 
 
10725
 
# Compiler flag to generate shared objects directly from archives.
10726
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10727
 
 
10728
 
# Compiler flag to generate thread-safe objects.
10729
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10730
 
 
10731
 
# Library versioning type.
10732
 
version_type=$version_type
10733
 
 
10734
 
# Format of library name prefix.
10735
 
libname_spec=$lt_libname_spec
10736
 
 
10737
 
# List of archive names.  First name is the real one, the rest are links.
10738
 
# The last name is the one that the linker finds with -lNAME.
10739
 
library_names_spec=$lt_library_names_spec
10740
 
 
10741
 
# The coded name of the library, if different from the real name.
10742
 
soname_spec=$lt_soname_spec
10743
 
 
10744
 
# Commands used to build and install an old-style archive.
10745
 
RANLIB=$lt_RANLIB
10746
 
old_archive_cmds=$lt_old_archive_cmds
10747
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10748
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10749
 
 
10750
 
# Create an old-style archive from a shared archive.
10751
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10752
 
 
10753
 
# Create a temporary old-style archive to link instead of a shared archive.
10754
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10755
 
 
10756
 
# Commands used to build and install a shared archive.
10757
 
archive_cmds=$lt_archive_cmds
10758
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10759
 
postinstall_cmds=$lt_postinstall_cmds
10760
 
postuninstall_cmds=$lt_postuninstall_cmds
10761
 
 
10762
 
# Commands used to build a loadable module (assumed same as above if empty)
10763
 
module_cmds=$lt_module_cmds
10764
 
module_expsym_cmds=$lt_module_expsym_cmds
10765
 
 
10766
 
# Commands to strip libraries.
10767
 
old_striplib=$lt_old_striplib
10768
 
striplib=$lt_striplib
10769
 
 
10770
 
# Dependencies to place before the objects being linked to create a
10771
 
# shared library.
10772
 
predep_objects=$lt_predep_objects
10773
 
 
10774
 
# Dependencies to place after the objects being linked to create a
10775
 
# shared library.
10776
 
postdep_objects=$lt_postdep_objects
10777
 
 
10778
 
# Dependencies to place before the objects being linked to create a
10779
 
# shared library.
10780
 
predeps=$lt_predeps
10781
 
 
10782
 
# Dependencies to place after the objects being linked to create a
10783
 
# shared library.
10784
 
postdeps=$lt_postdeps
10785
 
 
10786
 
# The directories searched by this compiler when creating a shared
10787
 
# library
10788
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10789
 
 
10790
 
# The library search path used internally by the compiler when linking
10791
 
# a shared library.
10792
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10793
 
 
10794
 
# Method to check whether dependent libraries are shared objects.
10795
 
deplibs_check_method=$lt_deplibs_check_method
10796
 
 
10797
 
# Command to use when deplibs_check_method == file_magic.
10798
 
file_magic_cmd=$lt_file_magic_cmd
10799
 
 
10800
 
# Flag that allows shared libraries with undefined symbols to be built.
10801
 
allow_undefined_flag=$lt_allow_undefined_flag
10802
 
 
10803
 
# Flag that forces no undefined symbols.
10804
 
no_undefined_flag=$lt_no_undefined_flag
10805
 
 
10806
 
# Commands used to finish a libtool library installation in a directory.
10807
 
finish_cmds=$lt_finish_cmds
10808
 
 
10809
 
# Same as above, but a single script fragment to be evaled but not shown.
10810
 
finish_eval=$lt_finish_eval
10811
 
 
10812
 
# Take the output of nm and produce a listing of raw symbols and C names.
10813
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10814
 
 
10815
 
# Transform the output of nm in a proper C declaration
10816
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10817
 
 
10818
 
# Transform the output of nm in a C name address pair
10819
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10820
 
 
10821
 
# This is the shared library runtime path variable.
10822
 
runpath_var=$runpath_var
10823
 
 
10824
 
# This is the shared library path variable.
10825
 
shlibpath_var=$shlibpath_var
10826
 
 
10827
 
# Is shlibpath searched before the hard-coded library search path?
10828
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10829
 
 
10830
 
# How to hardcode a shared library path into an executable.
10831
 
hardcode_action=$hardcode_action
10832
 
 
10833
 
# Whether we should hardcode library paths into libraries.
10834
 
hardcode_into_libs=$hardcode_into_libs
10835
 
 
10836
 
# Flag to hardcode \$libdir into a binary during linking.
10837
 
# This must work even if \$libdir does not exist.
10838
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10839
 
 
10840
 
# If ld is used when linking, flag to hardcode \$libdir into
10841
 
# a binary during linking. This must work even if \$libdir does
10842
 
# not exist.
10843
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10844
 
 
10845
 
# Whether we need a single -rpath flag with a separated argument.
10846
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10847
 
 
10848
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10849
 
# resulting binary.
10850
 
hardcode_direct=$hardcode_direct
10851
 
 
10852
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10853
 
# resulting binary.
10854
 
hardcode_minus_L=$hardcode_minus_L
10855
 
 
10856
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10857
 
# the resulting binary.
10858
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10859
 
 
10860
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10861
 
# and all subsequent libraries and executables linked against it.
10862
 
hardcode_automatic=$hardcode_automatic
10863
 
 
10864
 
# Variables whose values should be saved in libtool wrapper scripts and
10865
 
# restored at relink time.
10866
 
variables_saved_for_relink="$variables_saved_for_relink"
10867
 
 
10868
 
# Whether libtool must link a program against all its dependency libraries.
10869
 
link_all_deplibs=$link_all_deplibs
10870
 
 
10871
 
# Compile-time system search path for libraries
10872
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10873
 
 
10874
 
# Run-time system search path for libraries
10875
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10876
 
 
10877
 
# Fix the shell variable \$srcfile for the compiler.
10878
 
fix_srcfile_path=$lt_fix_srcfile_path
10879
 
 
10880
 
# Set to yes if exported symbols are required.
10881
 
always_export_symbols=$always_export_symbols
10882
 
 
10883
 
# The commands to list exported symbols.
10884
 
export_symbols_cmds=$lt_export_symbols_cmds
10885
 
 
10886
 
# The commands to extract the exported symbol list from a shared archive.
10887
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10888
 
 
10889
 
# Symbols that should not be listed in the preloaded symbols.
10890
 
exclude_expsyms=$lt_exclude_expsyms
10891
 
 
10892
 
# Symbols that must always be exported.
10893
 
include_expsyms=$lt_include_expsyms
10894
 
 
10895
 
# ### END LIBTOOL CONFIG
10896
 
 
10897
 
__EOF__
10898
 
 
10899
 
 
10900
 
  case $host_os in
10901
 
  aix3*)
10902
 
    cat <<\EOF >> "$cfgfile"
10903
 
 
10904
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10905
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10906
 
# vanish in a puff of smoke.
10907
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10908
 
  COLLECT_NAMES=
10909
 
  export COLLECT_NAMES
10910
 
fi
10911
 
EOF
10912
 
    ;;
10913
 
  esac
10914
 
 
10915
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10916
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10917
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10918
 
  # is reportedly fixed, but why not run on old versions too?
10919
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10920
 
 
10921
 
  mv -f "$cfgfile" "$ofile" || \
10922
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10923
 
  chmod +x "$ofile"
10924
 
 
10925
 
else
10926
 
  # If there is no Makefile yet, we rely on a make rule to execute
10927
 
  # `config.status --recheck' to rerun these tests and create the
10928
 
  # libtool script then.
10929
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10930
 
  if test -f "$ltmain_in"; then
10931
 
    test -f Makefile && make "$ltmain"
10932
 
  fi
10933
 
fi
10934
 
 
10935
 
 
10936
 
ac_ext=c
10937
 
ac_cpp='$CPP $CPPFLAGS'
10938
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941
 
 
10942
 
CC="$lt_save_CC"
10943
 
 
10944
 
 
10945
 
# Check whether --with-tags was given.
10946
 
if test "${with_tags+set}" = set; then
10947
 
  withval=$with_tags; tagnames="$withval"
10948
 
fi
10949
 
 
10950
 
 
10951
 
if test -f "$ltmain" && test -n "$tagnames"; then
10952
 
  if test ! -f "${ofile}"; then
10953
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10954
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10955
 
  fi
10956
 
 
10957
 
  if test -z "$LTCC"; then
10958
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10959
 
    if test -z "$LTCC"; then
10960
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10961
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10962
 
    else
10963
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10964
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10965
 
    fi
10966
 
  fi
10967
 
  if test -z "$LTCFLAGS"; then
10968
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10969
 
  fi
10970
 
 
10971
 
  # Extract list of available tagged configurations in $ofile.
10972
 
  # Note that this assumes the entire list is on one line.
10973
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10974
 
 
10975
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10976
 
  for tagname in $tagnames; do
10977
 
    IFS="$lt_save_ifs"
10978
 
    # Check whether tagname contains only valid characters
10979
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10980
 
    "") ;;
10981
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10982
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10983
 
   { (exit 1); exit 1; }; }
10984
 
        ;;
10985
 
    esac
10986
 
 
10987
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10988
 
    then
10989
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10990
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10991
 
   { (exit 1); exit 1; }; }
10992
 
    fi
10993
 
 
10994
 
    # Update the list of available tags.
10995
 
    if test -n "$tagname"; then
10996
 
      echo appending configuration tag \"$tagname\" to $ofile
10997
 
 
10998
 
      case $tagname in
10999
 
      CXX)
11000
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11001
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11002
 
            (test "X$CXX" != "Xg++"))) ; then
11003
 
          ac_ext=cpp
11004
 
ac_cpp='$CXXCPP $CPPFLAGS'
11005
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11008
 
 
11009
 
 
11010
 
 
11011
 
 
11012
 
archive_cmds_need_lc_CXX=no
11013
 
allow_undefined_flag_CXX=
11014
 
always_export_symbols_CXX=no
11015
 
archive_expsym_cmds_CXX=
11016
 
export_dynamic_flag_spec_CXX=
11017
 
hardcode_direct_CXX=no
11018
 
hardcode_libdir_flag_spec_CXX=
11019
 
hardcode_libdir_flag_spec_ld_CXX=
11020
 
hardcode_libdir_separator_CXX=
11021
 
hardcode_minus_L_CXX=no
11022
 
hardcode_shlibpath_var_CXX=unsupported
11023
 
hardcode_automatic_CXX=no
11024
 
module_cmds_CXX=
11025
 
module_expsym_cmds_CXX=
11026
 
link_all_deplibs_CXX=unknown
11027
 
old_archive_cmds_CXX=$old_archive_cmds
11028
 
no_undefined_flag_CXX=
11029
 
whole_archive_flag_spec_CXX=
11030
 
enable_shared_with_static_runtimes_CXX=no
11031
 
 
11032
 
# Dependencies to place before and after the object being linked:
11033
 
predep_objects_CXX=
11034
 
postdep_objects_CXX=
11035
 
predeps_CXX=
11036
 
postdeps_CXX=
11037
 
compiler_lib_search_path_CXX=
11038
 
compiler_lib_search_dirs_CXX=
11039
 
 
11040
 
# Source file extension for C++ test sources.
11041
 
ac_ext=cpp
11042
 
 
11043
 
# Object file extension for compiled C++ test sources.
11044
 
objext=o
11045
 
objext_CXX=$objext
11046
 
 
11047
 
# Code to be used in simple compile tests
11048
 
lt_simple_compile_test_code="int some_variable = 0;"
11049
 
 
11050
 
# Code to be used in simple link tests
11051
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11052
 
 
11053
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054
 
 
11055
 
# If no C compiler was specified, use CC.
11056
 
LTCC=${LTCC-"$CC"}
11057
 
 
11058
 
# If no C compiler flags were specified, use CFLAGS.
11059
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11060
 
 
11061
 
# Allow CC to be a program name with arguments.
11062
 
compiler=$CC
11063
 
 
11064
 
 
11065
 
# save warnings/boilerplate of simple test code
11066
 
ac_outfile=conftest.$ac_objext
11067
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11068
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11069
 
_lt_compiler_boilerplate=`cat conftest.err`
11070
 
$rm conftest*
11071
 
 
11072
 
ac_outfile=conftest.$ac_objext
11073
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11074
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11075
 
_lt_linker_boilerplate=`cat conftest.err`
11076
 
$rm -r conftest*
11077
 
 
11078
 
 
11079
 
# Allow CC to be a program name with arguments.
11080
 
lt_save_CC=$CC
11081
 
lt_save_LD=$LD
11082
 
lt_save_GCC=$GCC
11083
 
GCC=$GXX
11084
 
lt_save_with_gnu_ld=$with_gnu_ld
11085
 
lt_save_path_LD=$lt_cv_path_LD
11086
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11087
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11088
 
else
11089
 
  $as_unset lt_cv_prog_gnu_ld
11090
 
fi
11091
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11092
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11093
 
else
11094
 
  $as_unset lt_cv_path_LD
11095
 
fi
11096
 
test -z "${LDCXX+set}" || LD=$LDCXX
11097
 
CC=${CXX-"c++"}
11098
 
compiler=$CC
11099
 
compiler_CXX=$CC
11100
 
for cc_temp in $compiler""; do
11101
 
  case $cc_temp in
11102
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11103
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11104
 
    \-*) ;;
11105
 
    *) break;;
11106
 
  esac
11107
 
done
11108
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11109
 
 
11110
 
 
11111
 
# We don't want -fno-exception wen compiling C++ code, so set the
11112
 
# no_builtin_flag separately
11113
 
if test "$GXX" = yes; then
11114
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11115
 
else
11116
 
  lt_prog_compiler_no_builtin_flag_CXX=
11117
 
fi
11118
 
 
11119
 
if test "$GXX" = yes; then
11120
 
  # Set up default GNU C++ configuration
11121
 
 
11122
 
 
11123
 
# Check whether --with-gnu-ld was given.
11124
 
if test "${with_gnu_ld+set}" = set; then
11125
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11126
 
else
11127
 
  with_gnu_ld=no
11128
 
fi
11129
 
 
11130
 
ac_prog=ld
11131
 
if test "$GCC" = yes; then
11132
 
  # Check if gcc -print-prog-name=ld gives a path.
11133
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11134
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11135
 
  case $host in
11136
 
  *-*-mingw*)
11137
 
    # gcc leaves a trailing carriage return which upsets mingw
11138
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11139
 
  *)
11140
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11141
 
  esac
11142
 
  case $ac_prog in
11143
 
    # Accept absolute paths.
11144
 
    [\\/]* | ?:[\\/]*)
11145
 
      re_direlt='/[^/][^/]*/\.\./'
11146
 
      # Canonicalize the pathname of ld
11147
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11148
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11149
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11150
 
      done
11151
 
      test -z "$LD" && LD="$ac_prog"
11152
 
      ;;
11153
 
  "")
11154
 
    # If it fails, then pretend we aren't using GCC.
11155
 
    ac_prog=ld
11156
 
    ;;
11157
 
  *)
11158
 
    # If it is relative, then search for the first ld in PATH.
11159
 
    with_gnu_ld=unknown
11160
 
    ;;
11161
 
  esac
11162
 
elif test "$with_gnu_ld" = yes; then
11163
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11164
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11165
 
else
11166
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11167
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11168
 
fi
11169
 
if test "${lt_cv_path_LD+set}" = set; then
11170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11171
 
else
11172
 
  if test -z "$LD"; then
11173
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11174
 
  for ac_dir in $PATH; do
11175
 
    IFS="$lt_save_ifs"
11176
 
    test -z "$ac_dir" && ac_dir=.
11177
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11178
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11179
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11180
 
      # but apparently some variants of GNU ld only accept -v.
11181
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11182
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11183
 
      *GNU* | *'with BFD'*)
11184
 
        test "$with_gnu_ld" != no && break
11185
 
        ;;
11186
 
      *)
11187
 
        test "$with_gnu_ld" != yes && break
11188
 
        ;;
11189
 
      esac
11190
 
    fi
11191
 
  done
11192
 
  IFS="$lt_save_ifs"
11193
 
else
11194
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11195
 
fi
11196
 
fi
11197
 
 
11198
 
LD="$lt_cv_path_LD"
11199
 
if test -n "$LD"; then
11200
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11201
 
echo "${ECHO_T}$LD" >&6; }
11202
 
else
11203
 
  { echo "$as_me:$LINENO: result: no" >&5
11204
 
echo "${ECHO_T}no" >&6; }
11205
 
fi
11206
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11207
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11208
 
   { (exit 1); exit 1; }; }
11209
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11210
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11211
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11212
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11213
 
else
11214
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11215
 
case `$LD -v 2>&1 </dev/null` in
11216
 
*GNU* | *'with BFD'*)
11217
 
  lt_cv_prog_gnu_ld=yes
11218
 
  ;;
11219
 
*)
11220
 
  lt_cv_prog_gnu_ld=no
11221
 
  ;;
11222
 
esac
11223
 
fi
11224
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11225
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11226
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11227
 
 
11228
 
 
11229
 
 
11230
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11231
 
  # archiving commands below assume that GNU ld is being used.
11232
 
  if test "$with_gnu_ld" = yes; then
11233
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11235
 
 
11236
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11237
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238
 
 
11239
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11240
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11241
 
    #     investigate it a little bit more. (MM)
11242
 
    wlarc='${wl}'
11243
 
 
11244
 
    # ancient GNU ld didn't support --whole-archive et. al.
11245
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11246
 
        grep 'no-whole-archive' > /dev/null; then
11247
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11248
 
    else
11249
 
      whole_archive_flag_spec_CXX=
11250
 
    fi
11251
 
  else
11252
 
    with_gnu_ld=no
11253
 
    wlarc=
11254
 
 
11255
 
    # A generic and very simple default shared library creation
11256
 
    # command for GNU C++ for the case where it uses the native
11257
 
    # linker, instead of GNU ld.  If possible, this setting should
11258
 
    # overridden to take advantage of the native linker features on
11259
 
    # the platform it is being used on.
11260
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11261
 
  fi
11262
 
 
11263
 
  # Commands to make compiler produce verbose output that lists
11264
 
  # what "hidden" libraries, object files and flags are used when
11265
 
  # linking a shared library.
11266
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11267
 
 
11268
 
else
11269
 
  GXX=no
11270
 
  with_gnu_ld=no
11271
 
  wlarc=
11272
 
fi
11273
 
 
11274
 
# PORTME: fill in a description of your system's C++ link characteristics
11275
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11276
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11277
 
ld_shlibs_CXX=yes
11278
 
case $host_os in
11279
 
  aix3*)
11280
 
    # FIXME: insert proper C++ library support
11281
 
    ld_shlibs_CXX=no
11282
 
    ;;
11283
 
  aix[4-9]*)
11284
 
    if test "$host_cpu" = ia64; then
11285
 
      # On IA64, the linker does run time linking by default, so we don't
11286
 
      # have to do anything special.
11287
 
      aix_use_runtimelinking=no
11288
 
      exp_sym_flag='-Bexport'
11289
 
      no_entry_flag=""
11290
 
    else
11291
 
      aix_use_runtimelinking=no
11292
 
 
11293
 
      # Test if we are trying to use run time linking or normal
11294
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295
 
      # need to do runtime linking.
11296
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11297
 
        for ld_flag in $LDFLAGS; do
11298
 
          case $ld_flag in
11299
 
          *-brtl*)
11300
 
            aix_use_runtimelinking=yes
11301
 
            break
11302
 
            ;;
11303
 
          esac
11304
 
        done
11305
 
        ;;
11306
 
      esac
11307
 
 
11308
 
      exp_sym_flag='-bexport'
11309
 
      no_entry_flag='-bnoentry'
11310
 
    fi
11311
 
 
11312
 
    # When large executables or shared objects are built, AIX ld can
11313
 
    # have problems creating the table of contents.  If linking a library
11314
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11315
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11316
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11317
 
 
11318
 
    archive_cmds_CXX=''
11319
 
    hardcode_direct_CXX=yes
11320
 
    hardcode_libdir_separator_CXX=':'
11321
 
    link_all_deplibs_CXX=yes
11322
 
 
11323
 
    if test "$GXX" = yes; then
11324
 
      case $host_os in aix4.[012]|aix4.[012].*)
11325
 
      # We only want to do this on AIX 4.2 and lower, the check
11326
 
      # below for broken collect2 doesn't work under 4.3+
11327
 
        collect2name=`${CC} -print-prog-name=collect2`
11328
 
        if test -f "$collect2name" && \
11329
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11330
 
        then
11331
 
          # We have reworked collect2
11332
 
          :
11333
 
        else
11334
 
          # We have old collect2
11335
 
          hardcode_direct_CXX=unsupported
11336
 
          # It fails to find uninstalled libraries when the uninstalled
11337
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11338
 
          # to unsupported forces relinking
11339
 
          hardcode_minus_L_CXX=yes
11340
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11341
 
          hardcode_libdir_separator_CXX=
11342
 
        fi
11343
 
        ;;
11344
 
      esac
11345
 
      shared_flag='-shared'
11346
 
      if test "$aix_use_runtimelinking" = yes; then
11347
 
        shared_flag="$shared_flag "'${wl}-G'
11348
 
      fi
11349
 
    else
11350
 
      # not using gcc
11351
 
      if test "$host_cpu" = ia64; then
11352
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353
 
        # chokes on -Wl,-G. The following line is correct:
11354
 
        shared_flag='-G'
11355
 
      else
11356
 
        if test "$aix_use_runtimelinking" = yes; then
11357
 
          shared_flag='${wl}-G'
11358
 
        else
11359
 
          shared_flag='${wl}-bM:SRE'
11360
 
        fi
11361
 
      fi
11362
 
    fi
11363
 
 
11364
 
    # It seems that -bexpall does not export symbols beginning with
11365
 
    # underscore (_), so it is better to generate a list of symbols to export.
11366
 
    always_export_symbols_CXX=yes
11367
 
    if test "$aix_use_runtimelinking" = yes; then
11368
 
      # Warning - without using the other runtime loading flags (-brtl),
11369
 
      # -berok will link without error, but may produce a broken library.
11370
 
      allow_undefined_flag_CXX='-berok'
11371
 
      # Determine the default libpath from the value encoded in an empty executable.
11372
 
      cat >conftest.$ac_ext <<_ACEOF
11373
 
/* confdefs.h.  */
11374
 
_ACEOF
11375
 
cat confdefs.h >>conftest.$ac_ext
11376
 
cat >>conftest.$ac_ext <<_ACEOF
11377
 
/* end confdefs.h.  */
11378
 
 
11379
 
int
11380
 
main ()
11381
 
{
11382
 
 
11383
 
  ;
11384
 
  return 0;
11385
 
}
11386
 
_ACEOF
11387
 
rm -f conftest.$ac_objext conftest$ac_exeext
11388
 
if { (ac_try="$ac_link"
11389
 
case "(($ac_try" in
11390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391
 
  *) ac_try_echo=$ac_try;;
11392
 
esac
11393
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394
 
  (eval "$ac_link") 2>conftest.er1
11395
 
  ac_status=$?
11396
 
  grep -v '^ *+' conftest.er1 >conftest.err
11397
 
  rm -f conftest.er1
11398
 
  cat conftest.err >&5
11399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400
 
  (exit $ac_status); } && {
11401
 
         test -z "$ac_cxx_werror_flag" ||
11402
 
         test ! -s conftest.err
11403
 
       } && test -s conftest$ac_exeext &&
11404
 
       $as_test_x conftest$ac_exeext; then
11405
 
 
11406
 
lt_aix_libpath_sed='
11407
 
    /Import File Strings/,/^$/ {
11408
 
        /^0/ {
11409
 
            s/^0  *\(.*\)$/\1/
11410
 
            p
11411
 
        }
11412
 
    }'
11413
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414
 
# Check for a 64-bit object if we didn't find anything.
11415
 
if test -z "$aix_libpath"; then
11416
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11417
 
fi
11418
 
else
11419
 
  echo "$as_me: failed program was:" >&5
11420
 
sed 's/^/| /' conftest.$ac_ext >&5
11421
 
 
11422
 
 
11423
 
fi
11424
 
 
11425
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426
 
      conftest$ac_exeext conftest.$ac_ext
11427
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11428
 
 
11429
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11430
 
 
11431
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11432
 
     else
11433
 
      if test "$host_cpu" = ia64; then
11434
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11435
 
        allow_undefined_flag_CXX="-z nodefs"
11436
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11437
 
      else
11438
 
        # Determine the default libpath from the value encoded in an empty executable.
11439
 
        cat >conftest.$ac_ext <<_ACEOF
11440
 
/* confdefs.h.  */
11441
 
_ACEOF
11442
 
cat confdefs.h >>conftest.$ac_ext
11443
 
cat >>conftest.$ac_ext <<_ACEOF
11444
 
/* end confdefs.h.  */
11445
 
 
11446
 
int
11447
 
main ()
11448
 
{
11449
 
 
11450
 
  ;
11451
 
  return 0;
11452
 
}
11453
 
_ACEOF
11454
 
rm -f conftest.$ac_objext conftest$ac_exeext
11455
 
if { (ac_try="$ac_link"
11456
 
case "(($ac_try" in
11457
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458
 
  *) ac_try_echo=$ac_try;;
11459
 
esac
11460
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461
 
  (eval "$ac_link") 2>conftest.er1
11462
 
  ac_status=$?
11463
 
  grep -v '^ *+' conftest.er1 >conftest.err
11464
 
  rm -f conftest.er1
11465
 
  cat conftest.err >&5
11466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467
 
  (exit $ac_status); } && {
11468
 
         test -z "$ac_cxx_werror_flag" ||
11469
 
         test ! -s conftest.err
11470
 
       } && test -s conftest$ac_exeext &&
11471
 
       $as_test_x conftest$ac_exeext; then
11472
 
 
11473
 
lt_aix_libpath_sed='
11474
 
    /Import File Strings/,/^$/ {
11475
 
        /^0/ {
11476
 
            s/^0  *\(.*\)$/\1/
11477
 
            p
11478
 
        }
11479
 
    }'
11480
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481
 
# Check for a 64-bit object if we didn't find anything.
11482
 
if test -z "$aix_libpath"; then
11483
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11484
 
fi
11485
 
else
11486
 
  echo "$as_me: failed program was:" >&5
11487
 
sed 's/^/| /' conftest.$ac_ext >&5
11488
 
 
11489
 
 
11490
 
fi
11491
 
 
11492
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493
 
      conftest$ac_exeext conftest.$ac_ext
11494
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11495
 
 
11496
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11497
 
        # Warning - without using the other run time loading flags,
11498
 
        # -berok will link without error, but may produce a broken library.
11499
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11500
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11501
 
        # Exported symbols can be pulled into shared objects from archives
11502
 
        whole_archive_flag_spec_CXX='$convenience'
11503
 
        archive_cmds_need_lc_CXX=yes
11504
 
        # This is similar to how AIX traditionally builds its shared libraries.
11505
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11506
 
      fi
11507
 
    fi
11508
 
    ;;
11509
 
 
11510
 
  beos*)
11511
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11512
 
      allow_undefined_flag_CXX=unsupported
11513
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11514
 
      # support --undefined.  This deserves some investigation.  FIXME
11515
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516
 
    else
11517
 
      ld_shlibs_CXX=no
11518
 
    fi
11519
 
    ;;
11520
 
 
11521
 
  chorus*)
11522
 
    case $cc_basename in
11523
 
      *)
11524
 
        # FIXME: insert proper C++ library support
11525
 
        ld_shlibs_CXX=no
11526
 
        ;;
11527
 
    esac
11528
 
    ;;
11529
 
 
11530
 
  cygwin* | mingw* | pw32*)
11531
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11532
 
    # as there is no search path for DLLs.
11533
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11534
 
    allow_undefined_flag_CXX=unsupported
11535
 
    always_export_symbols_CXX=no
11536
 
    enable_shared_with_static_runtimes_CXX=yes
11537
 
 
11538
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11539
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11540
 
      # If the export-symbols file already is a .def file (1st line
11541
 
      # is EXPORTS), use it as is; otherwise, prepend...
11542
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11543
 
        cp $export_symbols $output_objdir/$soname.def;
11544
 
      else
11545
 
        echo EXPORTS > $output_objdir/$soname.def;
11546
 
        cat $export_symbols >> $output_objdir/$soname.def;
11547
 
      fi~
11548
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11549
 
    else
11550
 
      ld_shlibs_CXX=no
11551
 
    fi
11552
 
  ;;
11553
 
      darwin* | rhapsody*)
11554
 
      archive_cmds_need_lc_CXX=no
11555
 
      hardcode_direct_CXX=no
11556
 
      hardcode_automatic_CXX=yes
11557
 
      hardcode_shlibpath_var_CXX=unsupported
11558
 
      whole_archive_flag_spec_CXX=''
11559
 
      link_all_deplibs_CXX=yes
11560
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11561
 
      if test "$GXX" = yes ; then
11562
 
      output_verbose_link_cmd='echo'
11563
 
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11564
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11565
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11566
 
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11567
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11568
 
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11569
 
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11570
 
      fi
11571
 
      else
11572
 
      case $cc_basename in
11573
 
        xlc*)
11574
 
         output_verbose_link_cmd='echo'
11575
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11576
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11577
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11578
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11579
 
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11580
 
          ;;
11581
 
       *)
11582
 
         ld_shlibs_CXX=no
11583
 
          ;;
11584
 
      esac
11585
 
      fi
11586
 
        ;;
11587
 
 
11588
 
  dgux*)
11589
 
    case $cc_basename in
11590
 
      ec++*)
11591
 
        # FIXME: insert proper C++ library support
11592
 
        ld_shlibs_CXX=no
11593
 
        ;;
11594
 
      ghcx*)
11595
 
        # Green Hills C++ Compiler
11596
 
        # FIXME: insert proper C++ library support
11597
 
        ld_shlibs_CXX=no
11598
 
        ;;
11599
 
      *)
11600
 
        # FIXME: insert proper C++ library support
11601
 
        ld_shlibs_CXX=no
11602
 
        ;;
11603
 
    esac
11604
 
    ;;
11605
 
  freebsd[12]*)
11606
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11607
 
    ld_shlibs_CXX=no
11608
 
    ;;
11609
 
  freebsd-elf*)
11610
 
    archive_cmds_need_lc_CXX=no
11611
 
    ;;
11612
 
  freebsd* | dragonfly*)
11613
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11614
 
    # conventions
11615
 
    ld_shlibs_CXX=yes
11616
 
    ;;
11617
 
  gnu*)
11618
 
    ;;
11619
 
  hpux9*)
11620
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11621
 
    hardcode_libdir_separator_CXX=:
11622
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11623
 
    hardcode_direct_CXX=yes
11624
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11625
 
                                # but as the default
11626
 
                                # location of the library.
11627
 
 
11628
 
    case $cc_basename in
11629
 
    CC*)
11630
 
      # FIXME: insert proper C++ library support
11631
 
      ld_shlibs_CXX=no
11632
 
      ;;
11633
 
    aCC*)
11634
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11635
 
      # Commands to make compiler produce verbose output that lists
11636
 
      # what "hidden" libraries, object files and flags are used when
11637
 
      # linking a shared library.
11638
 
      #
11639
 
      # There doesn't appear to be a way to prevent this compiler from
11640
 
      # explicitly linking system object files so we need to strip them
11641
 
      # from the output so that they don't get included in the library
11642
 
      # dependencies.
11643
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11644
 
      ;;
11645
 
    *)
11646
 
      if test "$GXX" = yes; then
11647
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11648
 
      else
11649
 
        # FIXME: insert proper C++ library support
11650
 
        ld_shlibs_CXX=no
11651
 
      fi
11652
 
      ;;
11653
 
    esac
11654
 
    ;;
11655
 
  hpux10*|hpux11*)
11656
 
    if test $with_gnu_ld = no; then
11657
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11658
 
      hardcode_libdir_separator_CXX=:
11659
 
 
11660
 
      case $host_cpu in
11661
 
      hppa*64*|ia64*) ;;
11662
 
      *)
11663
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11664
 
        ;;
11665
 
      esac
11666
 
    fi
11667
 
    case $host_cpu in
11668
 
    hppa*64*|ia64*)
11669
 
      hardcode_direct_CXX=no
11670
 
      hardcode_shlibpath_var_CXX=no
11671
 
      ;;
11672
 
    *)
11673
 
      hardcode_direct_CXX=yes
11674
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11675
 
                                              # but as the default
11676
 
                                              # location of the library.
11677
 
      ;;
11678
 
    esac
11679
 
 
11680
 
    case $cc_basename in
11681
 
      CC*)
11682
 
        # FIXME: insert proper C++ library support
11683
 
        ld_shlibs_CXX=no
11684
 
        ;;
11685
 
      aCC*)
11686
 
        case $host_cpu in
11687
 
        hppa*64*)
11688
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689
 
          ;;
11690
 
        ia64*)
11691
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692
 
          ;;
11693
 
        *)
11694
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11695
 
          ;;
11696
 
        esac
11697
 
        # Commands to make compiler produce verbose output that lists
11698
 
        # what "hidden" libraries, object files and flags are used when
11699
 
        # linking a shared library.
11700
 
        #
11701
 
        # There doesn't appear to be a way to prevent this compiler from
11702
 
        # explicitly linking system object files so we need to strip them
11703
 
        # from the output so that they don't get included in the library
11704
 
        # dependencies.
11705
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11706
 
        ;;
11707
 
      *)
11708
 
        if test "$GXX" = yes; then
11709
 
          if test $with_gnu_ld = no; then
11710
 
            case $host_cpu in
11711
 
            hppa*64*)
11712
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713
 
              ;;
11714
 
            ia64*)
11715
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11716
 
              ;;
11717
 
            *)
11718
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719
 
              ;;
11720
 
            esac
11721
 
          fi
11722
 
        else
11723
 
          # FIXME: insert proper C++ library support
11724
 
          ld_shlibs_CXX=no
11725
 
        fi
11726
 
        ;;
11727
 
    esac
11728
 
    ;;
11729
 
  interix[3-9]*)
11730
 
    hardcode_direct_CXX=no
11731
 
    hardcode_shlibpath_var_CXX=no
11732
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11734
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11735
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11736
 
    # default) and relocated if they conflict, which is a slow very memory
11737
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11738
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11739
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11740
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11741
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11742
 
    ;;
11743
 
  irix5* | irix6*)
11744
 
    case $cc_basename in
11745
 
      CC*)
11746
 
        # SGI C++
11747
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11748
 
 
11749
 
        # Archives containing C++ object files must be created using
11750
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11751
 
        # necessary to make sure instantiated templates are included
11752
 
        # in the archive.
11753
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11754
 
        ;;
11755
 
      *)
11756
 
        if test "$GXX" = yes; then
11757
 
          if test "$with_gnu_ld" = no; then
11758
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11759
 
          else
11760
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11761
 
          fi
11762
 
        fi
11763
 
        link_all_deplibs_CXX=yes
11764
 
        ;;
11765
 
    esac
11766
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11767
 
    hardcode_libdir_separator_CXX=:
11768
 
    ;;
11769
 
  linux* | k*bsd*-gnu)
11770
 
    case $cc_basename in
11771
 
      KCC*)
11772
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11773
 
 
11774
 
        # KCC will only create a shared library if the output file
11775
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11776
 
        # to its proper name (with version) after linking.
11777
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11778
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11779
 
        # Commands to make compiler produce verbose output that lists
11780
 
        # what "hidden" libraries, object files and flags are used when
11781
 
        # linking a shared library.
11782
 
        #
11783
 
        # There doesn't appear to be a way to prevent this compiler from
11784
 
        # explicitly linking system object files so we need to strip them
11785
 
        # from the output so that they don't get included in the library
11786
 
        # dependencies.
11787
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11788
 
 
11789
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11790
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11791
 
 
11792
 
        # Archives containing C++ object files must be created using
11793
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11794
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11795
 
        ;;
11796
 
      icpc*)
11797
 
        # Intel C++
11798
 
        with_gnu_ld=yes
11799
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11800
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11801
 
        # earlier do not add the objects themselves.
11802
 
        case `$CC -V 2>&1` in
11803
 
        *"Version 7."*)
11804
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11805
 
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11806
 
          ;;
11807
 
        *)  # Version 8.0 or newer
11808
 
          tmp_idyn=
11809
 
          case $host_cpu in
11810
 
            ia64*) tmp_idyn=' -i_dynamic';;
11811
 
          esac
11812
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11814
 
          ;;
11815
 
        esac
11816
 
        archive_cmds_need_lc_CXX=no
11817
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11818
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11819
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11820
 
        ;;
11821
 
      pgCC* | pgcpp*)
11822
 
        # Portland Group C++ compiler
11823
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11824
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11825
 
 
11826
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11827
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11828
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11829
 
        ;;
11830
 
      cxx*)
11831
 
        # Compaq C++
11832
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11833
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11834
 
 
11835
 
        runpath_var=LD_RUN_PATH
11836
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11837
 
        hardcode_libdir_separator_CXX=:
11838
 
 
11839
 
        # Commands to make compiler produce verbose output that lists
11840
 
        # what "hidden" libraries, object files and flags are used when
11841
 
        # linking a shared library.
11842
 
        #
11843
 
        # There doesn't appear to be a way to prevent this compiler from
11844
 
        # explicitly linking system object files so we need to strip them
11845
 
        # from the output so that they don't get included in the library
11846
 
        # dependencies.
11847
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11848
 
        ;;
11849
 
      *)
11850
 
        case `$CC -V 2>&1 | sed 5q` in
11851
 
        *Sun\ C*)
11852
 
          # Sun C++ 5.9
11853
 
          no_undefined_flag_CXX=' -zdefs'
11854
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11855
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11856
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
11857
 
          whole_archive_flag_spec_CXX='${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'
11858
 
 
11859
 
          # Not sure whether something based on
11860
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11861
 
          # would be better.
11862
 
          output_verbose_link_cmd='echo'
11863
 
 
11864
 
          # Archives containing C++ object files must be created using
11865
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11866
 
          # necessary to make sure instantiated templates are included
11867
 
          # in the archive.
11868
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11869
 
          ;;
11870
 
        esac
11871
 
        ;;
11872
 
    esac
11873
 
    ;;
11874
 
  lynxos*)
11875
 
    # FIXME: insert proper C++ library support
11876
 
    ld_shlibs_CXX=no
11877
 
    ;;
11878
 
  m88k*)
11879
 
    # FIXME: insert proper C++ library support
11880
 
    ld_shlibs_CXX=no
11881
 
    ;;
11882
 
  mvs*)
11883
 
    case $cc_basename in
11884
 
      cxx*)
11885
 
        # FIXME: insert proper C++ library support
11886
 
        ld_shlibs_CXX=no
11887
 
        ;;
11888
 
      *)
11889
 
        # FIXME: insert proper C++ library support
11890
 
        ld_shlibs_CXX=no
11891
 
        ;;
11892
 
    esac
11893
 
    ;;
11894
 
  netbsd* | netbsdelf*-gnu)
11895
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11896
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11897
 
      wlarc=
11898
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11899
 
      hardcode_direct_CXX=yes
11900
 
      hardcode_shlibpath_var_CXX=no
11901
 
    fi
11902
 
    # Workaround some broken pre-1.5 toolchains
11903
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11904
 
    ;;
11905
 
  openbsd2*)
11906
 
    # C++ shared libraries are fairly broken
11907
 
    ld_shlibs_CXX=no
11908
 
    ;;
11909
 
  openbsd*)
11910
 
    if test -f /usr/libexec/ld.so; then
11911
 
      hardcode_direct_CXX=yes
11912
 
      hardcode_shlibpath_var_CXX=no
11913
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11914
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11915
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11916
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11917
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11918
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11919
 
      fi
11920
 
      output_verbose_link_cmd='echo'
11921
 
    else
11922
 
      ld_shlibs_CXX=no
11923
 
    fi
11924
 
    ;;
11925
 
  osf3*)
11926
 
    case $cc_basename in
11927
 
      KCC*)
11928
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
 
 
11930
 
        # KCC will only create a shared library if the output file
11931
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
 
        # to its proper name (with version) after linking.
11933
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11934
 
 
11935
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11936
 
        hardcode_libdir_separator_CXX=:
11937
 
 
11938
 
        # Archives containing C++ object files must be created using
11939
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11940
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11941
 
 
11942
 
        ;;
11943
 
      RCC*)
11944
 
        # Rational C++ 2.4.1
11945
 
        # FIXME: insert proper C++ library support
11946
 
        ld_shlibs_CXX=no
11947
 
        ;;
11948
 
      cxx*)
11949
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11950
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11951
 
 
11952
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11953
 
        hardcode_libdir_separator_CXX=:
11954
 
 
11955
 
        # Commands to make compiler produce verbose output that lists
11956
 
        # what "hidden" libraries, object files and flags are used when
11957
 
        # linking a shared library.
11958
 
        #
11959
 
        # There doesn't appear to be a way to prevent this compiler from
11960
 
        # explicitly linking system object files so we need to strip them
11961
 
        # from the output so that they don't get included in the library
11962
 
        # dependencies.
11963
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11964
 
        ;;
11965
 
      *)
11966
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11967
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11968
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11969
 
 
11970
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11971
 
          hardcode_libdir_separator_CXX=:
11972
 
 
11973
 
          # Commands to make compiler produce verbose output that lists
11974
 
          # what "hidden" libraries, object files and flags are used when
11975
 
          # linking a shared library.
11976
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11977
 
 
11978
 
        else
11979
 
          # FIXME: insert proper C++ library support
11980
 
          ld_shlibs_CXX=no
11981
 
        fi
11982
 
        ;;
11983
 
    esac
11984
 
    ;;
11985
 
  osf4* | osf5*)
11986
 
    case $cc_basename in
11987
 
      KCC*)
11988
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11989
 
 
11990
 
        # KCC will only create a shared library if the output file
11991
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11992
 
        # to its proper name (with version) after linking.
11993
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11994
 
 
11995
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11996
 
        hardcode_libdir_separator_CXX=:
11997
 
 
11998
 
        # Archives containing C++ object files must be created using
11999
 
        # the KAI C++ compiler.
12000
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12001
 
        ;;
12002
 
      RCC*)
12003
 
        # Rational C++ 2.4.1
12004
 
        # FIXME: insert proper C++ library support
12005
 
        ld_shlibs_CXX=no
12006
 
        ;;
12007
 
      cxx*)
12008
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12009
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12010
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12011
 
          echo "-hidden">> $lib.exp~
12012
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12013
 
          $rm $lib.exp'
12014
 
 
12015
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12016
 
        hardcode_libdir_separator_CXX=:
12017
 
 
12018
 
        # Commands to make compiler produce verbose output that lists
12019
 
        # what "hidden" libraries, object files and flags are used when
12020
 
        # linking a shared library.
12021
 
        #
12022
 
        # There doesn't appear to be a way to prevent this compiler from
12023
 
        # explicitly linking system object files so we need to strip them
12024
 
        # from the output so that they don't get included in the library
12025
 
        # dependencies.
12026
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12027
 
        ;;
12028
 
      *)
12029
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12030
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12031
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12032
 
 
12033
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12034
 
          hardcode_libdir_separator_CXX=:
12035
 
 
12036
 
          # Commands to make compiler produce verbose output that lists
12037
 
          # what "hidden" libraries, object files and flags are used when
12038
 
          # linking a shared library.
12039
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12040
 
 
12041
 
        else
12042
 
          # FIXME: insert proper C++ library support
12043
 
          ld_shlibs_CXX=no
12044
 
        fi
12045
 
        ;;
12046
 
    esac
12047
 
    ;;
12048
 
  psos*)
12049
 
    # FIXME: insert proper C++ library support
12050
 
    ld_shlibs_CXX=no
12051
 
    ;;
12052
 
  sunos4*)
12053
 
    case $cc_basename in
12054
 
      CC*)
12055
 
        # Sun C++ 4.x
12056
 
        # FIXME: insert proper C++ library support
12057
 
        ld_shlibs_CXX=no
12058
 
        ;;
12059
 
      lcc*)
12060
 
        # Lucid
12061
 
        # FIXME: insert proper C++ library support
12062
 
        ld_shlibs_CXX=no
12063
 
        ;;
12064
 
      *)
12065
 
        # FIXME: insert proper C++ library support
12066
 
        ld_shlibs_CXX=no
12067
 
        ;;
12068
 
    esac
12069
 
    ;;
12070
 
  solaris*)
12071
 
    case $cc_basename in
12072
 
      CC*)
12073
 
        # Sun C++ 4.2, 5.x and Centerline C++
12074
 
        archive_cmds_need_lc_CXX=yes
12075
 
        no_undefined_flag_CXX=' -zdefs'
12076
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12077
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12078
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12079
 
 
12080
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12081
 
        hardcode_shlibpath_var_CXX=no
12082
 
        case $host_os in
12083
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12084
 
          *)
12085
 
            # The compiler driver will combine and reorder linker options,
12086
 
            # but understands `-z linker_flag'.
12087
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12088
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12089
 
            ;;
12090
 
        esac
12091
 
        link_all_deplibs_CXX=yes
12092
 
 
12093
 
        output_verbose_link_cmd='echo'
12094
 
 
12095
 
        # Archives containing C++ object files must be created using
12096
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12097
 
        # necessary to make sure instantiated templates are included
12098
 
        # in the archive.
12099
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12100
 
        ;;
12101
 
      gcx*)
12102
 
        # Green Hills C++ Compiler
12103
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12104
 
 
12105
 
        # The C++ compiler must be used to create the archive.
12106
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12107
 
        ;;
12108
 
      *)
12109
 
        # GNU C++ compiler with Solaris linker
12110
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12111
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12112
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12113
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12114
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12116
 
 
12117
 
            # Commands to make compiler produce verbose output that lists
12118
 
            # what "hidden" libraries, object files and flags are used when
12119
 
            # linking a shared library.
12120
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12121
 
          else
12122
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12123
 
            # platform.
12124
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12125
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12126
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12127
 
 
12128
 
            # Commands to make compiler produce verbose output that lists
12129
 
            # what "hidden" libraries, object files and flags are used when
12130
 
            # linking a shared library.
12131
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12132
 
          fi
12133
 
 
12134
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12135
 
          case $host_os in
12136
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12137
 
          *)
12138
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12139
 
            ;;
12140
 
          esac
12141
 
        fi
12142
 
        ;;
12143
 
    esac
12144
 
    ;;
12145
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12146
 
    no_undefined_flag_CXX='${wl}-z,text'
12147
 
    archive_cmds_need_lc_CXX=no
12148
 
    hardcode_shlibpath_var_CXX=no
12149
 
    runpath_var='LD_RUN_PATH'
12150
 
 
12151
 
    case $cc_basename in
12152
 
      CC*)
12153
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155
 
        ;;
12156
 
      *)
12157
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159
 
        ;;
12160
 
    esac
12161
 
    ;;
12162
 
  sysv5* | sco3.2v5* | sco5v6*)
12163
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12164
 
    # link with -lc, and that would cause any symbols used from libc to
12165
 
    # always be unresolved, which means just about no library would
12166
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12167
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12168
 
    # as -z defs.
12169
 
    # For security reasons, it is highly recommended that you always
12170
 
    # use absolute paths for naming shared libraries, and exclude the
12171
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12172
 
    # requires that you compile everything twice, which is a pain.
12173
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12174
 
    # non-empty value in the environment.  Most likely only useful for
12175
 
    # creating official distributions of packages.
12176
 
    # This is a hack until libtool officially supports absolute path
12177
 
    # names for shared libraries.
12178
 
    no_undefined_flag_CXX='${wl}-z,text'
12179
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12180
 
    archive_cmds_need_lc_CXX=no
12181
 
    hardcode_shlibpath_var_CXX=no
12182
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12183
 
    hardcode_libdir_separator_CXX=':'
12184
 
    link_all_deplibs_CXX=yes
12185
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12186
 
    runpath_var='LD_RUN_PATH'
12187
 
 
12188
 
    case $cc_basename in
12189
 
      CC*)
12190
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192
 
        ;;
12193
 
      *)
12194
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196
 
        ;;
12197
 
    esac
12198
 
    ;;
12199
 
  tandem*)
12200
 
    case $cc_basename in
12201
 
      NCC*)
12202
 
        # NonStop-UX NCC 3.20
12203
 
        # FIXME: insert proper C++ library support
12204
 
        ld_shlibs_CXX=no
12205
 
        ;;
12206
 
      *)
12207
 
        # FIXME: insert proper C++ library support
12208
 
        ld_shlibs_CXX=no
12209
 
        ;;
12210
 
    esac
12211
 
    ;;
12212
 
  vxworks*)
12213
 
    # FIXME: insert proper C++ library support
12214
 
    ld_shlibs_CXX=no
12215
 
    ;;
12216
 
  *)
12217
 
    # FIXME: insert proper C++ library support
12218
 
    ld_shlibs_CXX=no
12219
 
    ;;
12220
 
esac
12221
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12222
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12223
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12224
 
 
12225
 
GCC_CXX="$GXX"
12226
 
LD_CXX="$LD"
12227
 
 
12228
 
cat > conftest.$ac_ext <<EOF
12229
 
class Foo
12230
 
{
12231
 
public:
12232
 
  Foo (void) { a = 0; }
12233
 
private:
12234
 
  int a;
12235
 
};
12236
 
EOF
12237
 
 
12238
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239
 
  (eval $ac_compile) 2>&5
12240
 
  ac_status=$?
12241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242
 
  (exit $ac_status); }; then
12243
 
  # Parse the compiler output and extract the necessary
12244
 
  # objects, libraries and library flags.
12245
 
 
12246
 
  # Sentinel used to keep track of whether or not we are before
12247
 
  # the conftest object file.
12248
 
  pre_test_object_deps_done=no
12249
 
 
12250
 
  # The `*' in the case matches for architectures that use `case' in
12251
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12252
 
  # eval without this substitution.
12253
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12254
 
 
12255
 
  for p in `eval $output_verbose_link_cmd`; do
12256
 
    case $p in
12257
 
 
12258
 
    -L* | -R* | -l*)
12259
 
       # Some compilers place space between "-{L,R}" and the path.
12260
 
       # Remove the space.
12261
 
       if test $p = "-L" \
12262
 
          || test $p = "-R"; then
12263
 
         prev=$p
12264
 
         continue
12265
 
       else
12266
 
         prev=
12267
 
       fi
12268
 
 
12269
 
       if test "$pre_test_object_deps_done" = no; then
12270
 
         case $p in
12271
 
         -L* | -R*)
12272
 
           # Internal compiler library paths should come after those
12273
 
           # provided the user.  The postdeps already come after the
12274
 
           # user supplied libs so there is no need to process them.
12275
 
           if test -z "$compiler_lib_search_path_CXX"; then
12276
 
             compiler_lib_search_path_CXX="${prev}${p}"
12277
 
           else
12278
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12279
 
           fi
12280
 
           ;;
12281
 
         # The "-l" case would never come before the object being
12282
 
         # linked, so don't bother handling this case.
12283
 
         esac
12284
 
       else
12285
 
         if test -z "$postdeps_CXX"; then
12286
 
           postdeps_CXX="${prev}${p}"
12287
 
         else
12288
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12289
 
         fi
12290
 
       fi
12291
 
       ;;
12292
 
 
12293
 
    *.$objext)
12294
 
       # This assumes that the test object file only shows up
12295
 
       # once in the compiler output.
12296
 
       if test "$p" = "conftest.$objext"; then
12297
 
         pre_test_object_deps_done=yes
12298
 
         continue
12299
 
       fi
12300
 
 
12301
 
       if test "$pre_test_object_deps_done" = no; then
12302
 
         if test -z "$predep_objects_CXX"; then
12303
 
           predep_objects_CXX="$p"
12304
 
         else
12305
 
           predep_objects_CXX="$predep_objects_CXX $p"
12306
 
         fi
12307
 
       else
12308
 
         if test -z "$postdep_objects_CXX"; then
12309
 
           postdep_objects_CXX="$p"
12310
 
         else
12311
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12312
 
         fi
12313
 
       fi
12314
 
       ;;
12315
 
 
12316
 
    *) ;; # Ignore the rest.
12317
 
 
12318
 
    esac
12319
 
  done
12320
 
 
12321
 
  # Clean up.
12322
 
  rm -f a.out a.exe
12323
 
else
12324
 
  echo "libtool.m4: error: problem compiling CXX test program"
12325
 
fi
12326
 
 
12327
 
$rm -f confest.$objext
12328
 
 
12329
 
compiler_lib_search_dirs_CXX=
12330
 
if test -n "$compiler_lib_search_path_CXX"; then
12331
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12332
 
fi
12333
 
 
12334
 
# PORTME: override above test on systems where it is broken
12335
 
case $host_os in
12336
 
interix[3-9]*)
12337
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12338
 
  # hack all around it, let's just trust "g++" to DTRT.
12339
 
  predep_objects_CXX=
12340
 
  postdep_objects_CXX=
12341
 
  postdeps_CXX=
12342
 
  ;;
12343
 
 
12344
 
linux*)
12345
 
  case `$CC -V 2>&1 | sed 5q` in
12346
 
  *Sun\ C*)
12347
 
    # Sun C++ 5.9
12348
 
    #
12349
 
    # The more standards-conforming stlport4 library is
12350
 
    # incompatible with the Cstd library. Avoid specifying
12351
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12352
 
    # -library=stlport4 depends on it.
12353
 
    case " $CXX $CXXFLAGS " in
12354
 
    *" -library=stlport4 "*)
12355
 
      solaris_use_stlport4=yes
12356
 
      ;;
12357
 
    esac
12358
 
    if test "$solaris_use_stlport4" != yes; then
12359
 
      postdeps_CXX='-library=Cstd -library=Crun'
12360
 
    fi
12361
 
    ;;
12362
 
  esac
12363
 
  ;;
12364
 
 
12365
 
solaris*)
12366
 
  case $cc_basename in
12367
 
  CC*)
12368
 
    # The more standards-conforming stlport4 library is
12369
 
    # incompatible with the Cstd library. Avoid specifying
12370
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12371
 
    # -library=stlport4 depends on it.
12372
 
    case " $CXX $CXXFLAGS " in
12373
 
    *" -library=stlport4 "*)
12374
 
      solaris_use_stlport4=yes
12375
 
      ;;
12376
 
    esac
12377
 
 
12378
 
    # Adding this requires a known-good setup of shared libraries for
12379
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12380
 
    # archive will be linked into the output, leading to subtle bugs.
12381
 
    if test "$solaris_use_stlport4" != yes; then
12382
 
      postdeps_CXX='-library=Cstd -library=Crun'
12383
 
    fi
12384
 
    ;;
12385
 
  esac
12386
 
  ;;
12387
 
esac
12388
 
 
12389
 
case " $postdeps_CXX " in
12390
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12391
 
esac
12392
 
 
12393
 
lt_prog_compiler_wl_CXX=
12394
 
lt_prog_compiler_pic_CXX=
12395
 
lt_prog_compiler_static_CXX=
12396
 
 
12397
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12399
 
 
12400
 
  # C++ specific cases for pic, static, wl, etc.
12401
 
  if test "$GXX" = yes; then
12402
 
    lt_prog_compiler_wl_CXX='-Wl,'
12403
 
    lt_prog_compiler_static_CXX='-static'
12404
 
 
12405
 
    case $host_os in
12406
 
    aix*)
12407
 
      # All AIX code is PIC.
12408
 
      if test "$host_cpu" = ia64; then
12409
 
        # AIX 5 now supports IA64 processor
12410
 
        lt_prog_compiler_static_CXX='-Bstatic'
12411
 
      fi
12412
 
      ;;
12413
 
    amigaos*)
12414
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12415
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12416
 
      # like `-m68040'.
12417
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12418
 
      ;;
12419
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12420
 
      # PIC is the default for these OSes.
12421
 
      ;;
12422
 
    mingw* | cygwin* | os2* | pw32*)
12423
 
      # This hack is so that the source file can tell whether it is being
12424
 
      # built for inclusion in a dll (and should export symbols for example).
12425
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12426
 
      # (--disable-auto-import) libraries
12427
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12428
 
      ;;
12429
 
    darwin* | rhapsody*)
12430
 
      # PIC is the default on this platform
12431
 
      # Common symbols not allowed in MH_DYLIB files
12432
 
      lt_prog_compiler_pic_CXX='-fno-common'
12433
 
      ;;
12434
 
    *djgpp*)
12435
 
      # DJGPP does not support shared libraries at all
12436
 
      lt_prog_compiler_pic_CXX=
12437
 
      ;;
12438
 
    interix[3-9]*)
12439
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12440
 
      # Instead, we relocate shared libraries at runtime.
12441
 
      ;;
12442
 
    sysv4*MP*)
12443
 
      if test -d /usr/nec; then
12444
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12445
 
      fi
12446
 
      ;;
12447
 
    hpux*)
12448
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12449
 
      # not for PA HP-UX.
12450
 
      case $host_cpu in
12451
 
      hppa*64*|ia64*)
12452
 
        ;;
12453
 
      *)
12454
 
        lt_prog_compiler_pic_CXX='-fPIC'
12455
 
        ;;
12456
 
      esac
12457
 
      ;;
12458
 
    *)
12459
 
      lt_prog_compiler_pic_CXX='-fPIC'
12460
 
      ;;
12461
 
    esac
12462
 
  else
12463
 
    case $host_os in
12464
 
      aix[4-9]*)
12465
 
        # All AIX code is PIC.
12466
 
        if test "$host_cpu" = ia64; then
12467
 
          # AIX 5 now supports IA64 processor
12468
 
          lt_prog_compiler_static_CXX='-Bstatic'
12469
 
        else
12470
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12471
 
        fi
12472
 
        ;;
12473
 
      chorus*)
12474
 
        case $cc_basename in
12475
 
        cxch68*)
12476
 
          # Green Hills C++ Compiler
12477
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12478
 
          ;;
12479
 
        esac
12480
 
        ;;
12481
 
       darwin*)
12482
 
         # PIC is the default on this platform
12483
 
         # Common symbols not allowed in MH_DYLIB files
12484
 
         case $cc_basename in
12485
 
           xlc*)
12486
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12487
 
           lt_prog_compiler_wl_CXX='-Wl,'
12488
 
           ;;
12489
 
         esac
12490
 
       ;;
12491
 
      dgux*)
12492
 
        case $cc_basename in
12493
 
          ec++*)
12494
 
            lt_prog_compiler_pic_CXX='-KPIC'
12495
 
            ;;
12496
 
          ghcx*)
12497
 
            # Green Hills C++ Compiler
12498
 
            lt_prog_compiler_pic_CXX='-pic'
12499
 
            ;;
12500
 
          *)
12501
 
            ;;
12502
 
        esac
12503
 
        ;;
12504
 
      freebsd* | dragonfly*)
12505
 
        # FreeBSD uses GNU C++
12506
 
        ;;
12507
 
      hpux9* | hpux10* | hpux11*)
12508
 
        case $cc_basename in
12509
 
          CC*)
12510
 
            lt_prog_compiler_wl_CXX='-Wl,'
12511
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12512
 
            if test "$host_cpu" != ia64; then
12513
 
              lt_prog_compiler_pic_CXX='+Z'
12514
 
            fi
12515
 
            ;;
12516
 
          aCC*)
12517
 
            lt_prog_compiler_wl_CXX='-Wl,'
12518
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12519
 
            case $host_cpu in
12520
 
            hppa*64*|ia64*)
12521
 
              # +Z the default
12522
 
              ;;
12523
 
            *)
12524
 
              lt_prog_compiler_pic_CXX='+Z'
12525
 
              ;;
12526
 
            esac
12527
 
            ;;
12528
 
          *)
12529
 
            ;;
12530
 
        esac
12531
 
        ;;
12532
 
      interix*)
12533
 
        # This is c89, which is MS Visual C++ (no shared libs)
12534
 
        # Anyone wants to do a port?
12535
 
        ;;
12536
 
      irix5* | irix6* | nonstopux*)
12537
 
        case $cc_basename in
12538
 
          CC*)
12539
 
            lt_prog_compiler_wl_CXX='-Wl,'
12540
 
            lt_prog_compiler_static_CXX='-non_shared'
12541
 
            # CC pic flag -KPIC is the default.
12542
 
            ;;
12543
 
          *)
12544
 
            ;;
12545
 
        esac
12546
 
        ;;
12547
 
      linux* | k*bsd*-gnu)
12548
 
        case $cc_basename in
12549
 
          KCC*)
12550
 
            # KAI C++ Compiler
12551
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12552
 
            lt_prog_compiler_pic_CXX='-fPIC'
12553
 
            ;;
12554
 
          icpc* | ecpc*)
12555
 
            # Intel C++
12556
 
            lt_prog_compiler_wl_CXX='-Wl,'
12557
 
            lt_prog_compiler_pic_CXX='-KPIC'
12558
 
            lt_prog_compiler_static_CXX='-static'
12559
 
            ;;
12560
 
          pgCC* | pgcpp*)
12561
 
            # Portland Group C++ compiler.
12562
 
            lt_prog_compiler_wl_CXX='-Wl,'
12563
 
            lt_prog_compiler_pic_CXX='-fpic'
12564
 
            lt_prog_compiler_static_CXX='-Bstatic'
12565
 
            ;;
12566
 
          cxx*)
12567
 
            # Compaq C++
12568
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12569
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12570
 
            lt_prog_compiler_pic_CXX=
12571
 
            lt_prog_compiler_static_CXX='-non_shared'
12572
 
            ;;
12573
 
          *)
12574
 
            case `$CC -V 2>&1 | sed 5q` in
12575
 
            *Sun\ C*)
12576
 
              # Sun C++ 5.9
12577
 
              lt_prog_compiler_pic_CXX='-KPIC'
12578
 
              lt_prog_compiler_static_CXX='-Bstatic'
12579
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12580
 
              ;;
12581
 
            esac
12582
 
            ;;
12583
 
        esac
12584
 
        ;;
12585
 
      lynxos*)
12586
 
        ;;
12587
 
      m88k*)
12588
 
        ;;
12589
 
      mvs*)
12590
 
        case $cc_basename in
12591
 
          cxx*)
12592
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12593
 
            ;;
12594
 
          *)
12595
 
            ;;
12596
 
        esac
12597
 
        ;;
12598
 
      netbsd* | netbsdelf*-gnu)
12599
 
        ;;
12600
 
      osf3* | osf4* | osf5*)
12601
 
        case $cc_basename in
12602
 
          KCC*)
12603
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12604
 
            ;;
12605
 
          RCC*)
12606
 
            # Rational C++ 2.4.1
12607
 
            lt_prog_compiler_pic_CXX='-pic'
12608
 
            ;;
12609
 
          cxx*)
12610
 
            # Digital/Compaq C++
12611
 
            lt_prog_compiler_wl_CXX='-Wl,'
12612
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12613
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12614
 
            lt_prog_compiler_pic_CXX=
12615
 
            lt_prog_compiler_static_CXX='-non_shared'
12616
 
            ;;
12617
 
          *)
12618
 
            ;;
12619
 
        esac
12620
 
        ;;
12621
 
      psos*)
12622
 
        ;;
12623
 
      solaris*)
12624
 
        case $cc_basename in
12625
 
          CC*)
12626
 
            # Sun C++ 4.2, 5.x and Centerline C++
12627
 
            lt_prog_compiler_pic_CXX='-KPIC'
12628
 
            lt_prog_compiler_static_CXX='-Bstatic'
12629
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12630
 
            ;;
12631
 
          gcx*)
12632
 
            # Green Hills C++ Compiler
12633
 
            lt_prog_compiler_pic_CXX='-PIC'
12634
 
            ;;
12635
 
          *)
12636
 
            ;;
12637
 
        esac
12638
 
        ;;
12639
 
      sunos4*)
12640
 
        case $cc_basename in
12641
 
          CC*)
12642
 
            # Sun C++ 4.x
12643
 
            lt_prog_compiler_pic_CXX='-pic'
12644
 
            lt_prog_compiler_static_CXX='-Bstatic'
12645
 
            ;;
12646
 
          lcc*)
12647
 
            # Lucid
12648
 
            lt_prog_compiler_pic_CXX='-pic'
12649
 
            ;;
12650
 
          *)
12651
 
            ;;
12652
 
        esac
12653
 
        ;;
12654
 
      tandem*)
12655
 
        case $cc_basename in
12656
 
          NCC*)
12657
 
            # NonStop-UX NCC 3.20
12658
 
            lt_prog_compiler_pic_CXX='-KPIC'
12659
 
            ;;
12660
 
          *)
12661
 
            ;;
12662
 
        esac
12663
 
        ;;
12664
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12665
 
        case $cc_basename in
12666
 
          CC*)
12667
 
            lt_prog_compiler_wl_CXX='-Wl,'
12668
 
            lt_prog_compiler_pic_CXX='-KPIC'
12669
 
            lt_prog_compiler_static_CXX='-Bstatic'
12670
 
            ;;
12671
 
        esac
12672
 
        ;;
12673
 
      vxworks*)
12674
 
        ;;
12675
 
      *)
12676
 
        lt_prog_compiler_can_build_shared_CXX=no
12677
 
        ;;
12678
 
    esac
12679
 
  fi
12680
 
 
12681
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12682
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12683
 
 
12684
 
#
12685
 
# Check to make sure the PIC flag actually works.
12686
 
#
12687
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12688
 
 
12689
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12690
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12691
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12692
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12693
 
else
12694
 
  lt_cv_prog_compiler_pic_works_CXX=no
12695
 
  ac_outfile=conftest.$ac_objext
12696
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12698
 
   # Insert the option either (1) after the last *FLAGS variable, or
12699
 
   # (2) before a word containing "conftest.", or (3) at the end.
12700
 
   # Note that $ac_compile itself does not contain backslashes and begins
12701
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12702
 
   # The option is referenced via a variable to avoid confusing sed.
12703
 
   lt_compile=`echo "$ac_compile" | $SED \
12704
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706
 
   -e 's:$: $lt_compiler_flag:'`
12707
 
   (eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
12708
 
   (eval "$lt_compile" 2>conftest.err)
12709
 
   ac_status=$?
12710
 
   cat conftest.err >&5
12711
 
   echo "$as_me:12711: \$? = $ac_status" >&5
12712
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12713
 
     # The compiler can only warn and ignore the option if not recognized
12714
 
     # So say no if there are warnings other than the usual output.
12715
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12716
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12717
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12718
 
       lt_cv_prog_compiler_pic_works_CXX=yes
12719
 
     fi
12720
 
   fi
12721
 
   $rm conftest*
12722
 
 
12723
 
fi
12724
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12725
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12726
 
 
12727
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12728
 
    case $lt_prog_compiler_pic_CXX in
12729
 
     "" | " "*) ;;
12730
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12731
 
     esac
12732
 
else
12733
 
    lt_prog_compiler_pic_CXX=
12734
 
     lt_prog_compiler_can_build_shared_CXX=no
12735
 
fi
12736
 
 
12737
 
fi
12738
 
case $host_os in
12739
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12740
 
  *djgpp*)
12741
 
    lt_prog_compiler_pic_CXX=
12742
 
    ;;
12743
 
  *)
12744
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12745
 
    ;;
12746
 
esac
12747
 
 
12748
 
#
12749
 
# Check to make sure the static flag actually works.
12750
 
#
12751
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12752
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12753
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12754
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12755
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12756
 
else
12757
 
  lt_cv_prog_compiler_static_works_CXX=no
12758
 
   save_LDFLAGS="$LDFLAGS"
12759
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12760
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12761
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12762
 
     # The linker can only warn and ignore the option if not recognized
12763
 
     # So say no if there are warnings
12764
 
     if test -s conftest.err; then
12765
 
       # Append any errors to the config.log.
12766
 
       cat conftest.err 1>&5
12767
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12768
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12769
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12770
 
         lt_cv_prog_compiler_static_works_CXX=yes
12771
 
       fi
12772
 
     else
12773
 
       lt_cv_prog_compiler_static_works_CXX=yes
12774
 
     fi
12775
 
   fi
12776
 
   $rm -r conftest*
12777
 
   LDFLAGS="$save_LDFLAGS"
12778
 
 
12779
 
fi
12780
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12781
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12782
 
 
12783
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12784
 
    :
12785
 
else
12786
 
    lt_prog_compiler_static_CXX=
12787
 
fi
12788
 
 
12789
 
 
12790
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12791
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12792
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12794
 
else
12795
 
  lt_cv_prog_compiler_c_o_CXX=no
12796
 
   $rm -r conftest 2>/dev/null
12797
 
   mkdir conftest
12798
 
   cd conftest
12799
 
   mkdir out
12800
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801
 
 
12802
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12803
 
   # Insert the option either (1) after the last *FLAGS variable, or
12804
 
   # (2) before a word containing "conftest.", or (3) at the end.
12805
 
   # Note that $ac_compile itself does not contain backslashes and begins
12806
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12807
 
   lt_compile=`echo "$ac_compile" | $SED \
12808
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810
 
   -e 's:$: $lt_compiler_flag:'`
12811
 
   (eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
12812
 
   (eval "$lt_compile" 2>out/conftest.err)
12813
 
   ac_status=$?
12814
 
   cat out/conftest.err >&5
12815
 
   echo "$as_me:12815: \$? = $ac_status" >&5
12816
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12817
 
   then
12818
 
     # The compiler can only warn and ignore the option if not recognized
12819
 
     # So say no if there are warnings
12820
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12821
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12822
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12823
 
       lt_cv_prog_compiler_c_o_CXX=yes
12824
 
     fi
12825
 
   fi
12826
 
   chmod u+w . 2>&5
12827
 
   $rm conftest*
12828
 
   # SGI C++ compiler will create directory out/ii_files/ for
12829
 
   # template instantiation
12830
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12831
 
   $rm out/* && rmdir out
12832
 
   cd ..
12833
 
   rmdir conftest
12834
 
   $rm conftest*
12835
 
 
12836
 
fi
12837
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12838
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12839
 
 
12840
 
 
12841
 
hard_links="nottested"
12842
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12843
 
  # do not overwrite the value of need_locks provided by the user
12844
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12845
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12846
 
  hard_links=yes
12847
 
  $rm conftest*
12848
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849
 
  touch conftest.a
12850
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12851
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12852
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12853
 
echo "${ECHO_T}$hard_links" >&6; }
12854
 
  if test "$hard_links" = no; then
12855
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12856
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12857
 
    need_locks=warn
12858
 
  fi
12859
 
else
12860
 
  need_locks=no
12861
 
fi
12862
 
 
12863
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12864
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12865
 
 
12866
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12867
 
  case $host_os in
12868
 
  aix[4-9]*)
12869
 
    # If we're using GNU nm, then we don't want the "-C" option.
12870
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12871
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12872
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12873
 
    else
12874
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12875
 
    fi
12876
 
    ;;
12877
 
  pw32*)
12878
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12879
 
  ;;
12880
 
  cygwin* | mingw*)
12881
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12882
 
  ;;
12883
 
  linux* | k*bsd*-gnu)
12884
 
    link_all_deplibs_CXX=no
12885
 
  ;;
12886
 
  *)
12887
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12888
 
  ;;
12889
 
  esac
12890
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12891
 
 
12892
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12893
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12894
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12895
 
 
12896
 
#
12897
 
# Do we need to explicitly link libc?
12898
 
#
12899
 
case "x$archive_cmds_need_lc_CXX" in
12900
 
x|xyes)
12901
 
  # Assume -lc should be added
12902
 
  archive_cmds_need_lc_CXX=yes
12903
 
 
12904
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12905
 
    case $archive_cmds_CXX in
12906
 
    *'~'*)
12907
 
      # FIXME: we may have to deal with multi-command sequences.
12908
 
      ;;
12909
 
    '$CC '*)
12910
 
      # Test whether the compiler implicitly links with -lc since on some
12911
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12912
 
      # to ld, don't add -lc before -lgcc.
12913
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12914
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12915
 
      $rm conftest*
12916
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12917
 
 
12918
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12919
 
  (eval $ac_compile) 2>&5
12920
 
  ac_status=$?
12921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922
 
  (exit $ac_status); } 2>conftest.err; then
12923
 
        soname=conftest
12924
 
        lib=conftest
12925
 
        libobjs=conftest.$ac_objext
12926
 
        deplibs=
12927
 
        wl=$lt_prog_compiler_wl_CXX
12928
 
        pic_flag=$lt_prog_compiler_pic_CXX
12929
 
        compiler_flags=-v
12930
 
        linker_flags=-v
12931
 
        verstring=
12932
 
        output_objdir=.
12933
 
        libname=conftest
12934
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12935
 
        allow_undefined_flag_CXX=
12936
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12937
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12938
 
  ac_status=$?
12939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940
 
  (exit $ac_status); }
12941
 
        then
12942
 
          archive_cmds_need_lc_CXX=no
12943
 
        else
12944
 
          archive_cmds_need_lc_CXX=yes
12945
 
        fi
12946
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12947
 
      else
12948
 
        cat conftest.err 1>&5
12949
 
      fi
12950
 
      $rm conftest*
12951
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12952
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12953
 
      ;;
12954
 
    esac
12955
 
  fi
12956
 
  ;;
12957
 
esac
12958
 
 
12959
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12960
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12961
 
library_names_spec=
12962
 
libname_spec='lib$name'
12963
 
soname_spec=
12964
 
shrext_cmds=".so"
12965
 
postinstall_cmds=
12966
 
postuninstall_cmds=
12967
 
finish_cmds=
12968
 
finish_eval=
12969
 
shlibpath_var=
12970
 
shlibpath_overrides_runpath=unknown
12971
 
version_type=none
12972
 
dynamic_linker="$host_os ld.so"
12973
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12974
 
 
12975
 
need_lib_prefix=unknown
12976
 
hardcode_into_libs=no
12977
 
 
12978
 
# when you set need_version to no, make sure it does not cause -set_version
12979
 
# flags to be left without arguments
12980
 
need_version=unknown
12981
 
 
12982
 
case $host_os in
12983
 
aix3*)
12984
 
  version_type=linux
12985
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12986
 
  shlibpath_var=LIBPATH
12987
 
 
12988
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12989
 
  soname_spec='${libname}${release}${shared_ext}$major'
12990
 
  ;;
12991
 
 
12992
 
aix[4-9]*)
12993
 
  version_type=linux
12994
 
  need_lib_prefix=no
12995
 
  need_version=no
12996
 
  hardcode_into_libs=yes
12997
 
  if test "$host_cpu" = ia64; then
12998
 
    # AIX 5 supports IA64
12999
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13000
 
    shlibpath_var=LD_LIBRARY_PATH
13001
 
  else
13002
 
    # With GCC up to 2.95.x, collect2 would create an import file
13003
 
    # for dependence libraries.  The import file would start with
13004
 
    # the line `#! .'.  This would cause the generated library to
13005
 
    # depend on `.', always an invalid library.  This was fixed in
13006
 
    # development snapshots of GCC prior to 3.0.
13007
 
    case $host_os in
13008
 
      aix4 | aix4.[01] | aix4.[01].*)
13009
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13010
 
           echo ' yes '
13011
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13012
 
        :
13013
 
      else
13014
 
        can_build_shared=no
13015
 
      fi
13016
 
      ;;
13017
 
    esac
13018
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13019
 
    # soname into executable. Probably we can add versioning support to
13020
 
    # collect2, so additional links can be useful in future.
13021
 
    if test "$aix_use_runtimelinking" = yes; then
13022
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13023
 
      # instead of lib<name>.a to let people know that these are not
13024
 
      # typical AIX shared libraries.
13025
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026
 
    else
13027
 
      # We preserve .a as extension for shared libraries through AIX4.2
13028
 
      # and later when we are not doing run time linking.
13029
 
      library_names_spec='${libname}${release}.a $libname.a'
13030
 
      soname_spec='${libname}${release}${shared_ext}$major'
13031
 
    fi
13032
 
    shlibpath_var=LIBPATH
13033
 
  fi
13034
 
  ;;
13035
 
 
13036
 
amigaos*)
13037
 
  library_names_spec='$libname.ixlibrary $libname.a'
13038
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13039
 
  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'
13040
 
  ;;
13041
 
 
13042
 
beos*)
13043
 
  library_names_spec='${libname}${shared_ext}'
13044
 
  dynamic_linker="$host_os ld.so"
13045
 
  shlibpath_var=LIBRARY_PATH
13046
 
  ;;
13047
 
 
13048
 
bsdi[45]*)
13049
 
  version_type=linux
13050
 
  need_version=no
13051
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052
 
  soname_spec='${libname}${release}${shared_ext}$major'
13053
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13054
 
  shlibpath_var=LD_LIBRARY_PATH
13055
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13056
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13057
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13058
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13059
 
  # libtool to hard-code these into programs
13060
 
  ;;
13061
 
 
13062
 
cygwin* | mingw* | pw32*)
13063
 
  version_type=windows
13064
 
  shrext_cmds=".dll"
13065
 
  need_version=no
13066
 
  need_lib_prefix=no
13067
 
 
13068
 
  case $GCC,$host_os in
13069
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13070
 
    library_names_spec='$libname.dll.a'
13071
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13072
 
    postinstall_cmds='base_file=`basename \${file}`~
13073
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13074
 
      dldir=$destdir/`dirname \$dlpath`~
13075
 
      test -d \$dldir || mkdir -p \$dldir~
13076
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13077
 
      chmod a+x \$dldir/$dlname'
13078
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13079
 
      dlpath=$dir/\$dldll~
13080
 
       $rm \$dlpath'
13081
 
    shlibpath_overrides_runpath=yes
13082
 
 
13083
 
    case $host_os in
13084
 
    cygwin*)
13085
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13086
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13087
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13088
 
      ;;
13089
 
    mingw*)
13090
 
      # MinGW DLLs use traditional 'lib' prefix
13091
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13092
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13093
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13094
 
        # It is most probably a Windows format PATH printed by
13095
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13096
 
        # path with ; separators, and with drive letters. We can handle the
13097
 
        # drive letters (cygwin fileutils understands them), so leave them,
13098
 
        # especially as we might pass files found there to a mingw objdump,
13099
 
        # which wouldn't understand a cygwinified path. Ahh.
13100
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13101
 
      else
13102
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13103
 
      fi
13104
 
      ;;
13105
 
    pw32*)
13106
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13107
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13108
 
      ;;
13109
 
    esac
13110
 
    ;;
13111
 
 
13112
 
  *)
13113
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13114
 
    ;;
13115
 
  esac
13116
 
  dynamic_linker='Win32 ld.exe'
13117
 
  # FIXME: first we should search . and the directory the executable is in
13118
 
  shlibpath_var=PATH
13119
 
  ;;
13120
 
 
13121
 
darwin* | rhapsody*)
13122
 
  dynamic_linker="$host_os dyld"
13123
 
  version_type=darwin
13124
 
  need_lib_prefix=no
13125
 
  need_version=no
13126
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13127
 
  soname_spec='${libname}${release}${major}$shared_ext'
13128
 
  shlibpath_overrides_runpath=yes
13129
 
  shlibpath_var=DYLD_LIBRARY_PATH
13130
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13131
 
 
13132
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13133
 
  ;;
13134
 
 
13135
 
dgux*)
13136
 
  version_type=linux
13137
 
  need_lib_prefix=no
13138
 
  need_version=no
13139
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13140
 
  soname_spec='${libname}${release}${shared_ext}$major'
13141
 
  shlibpath_var=LD_LIBRARY_PATH
13142
 
  ;;
13143
 
 
13144
 
freebsd1*)
13145
 
  dynamic_linker=no
13146
 
  ;;
13147
 
 
13148
 
freebsd* | dragonfly*)
13149
 
  # DragonFly does not have aout.  When/if they implement a new
13150
 
  # versioning mechanism, adjust this.
13151
 
  if test -x /usr/bin/objformat; then
13152
 
    objformat=`/usr/bin/objformat`
13153
 
  else
13154
 
    case $host_os in
13155
 
    freebsd[123]*) objformat=aout ;;
13156
 
    *) objformat=elf ;;
13157
 
    esac
13158
 
  fi
13159
 
  version_type=freebsd-$objformat
13160
 
  case $version_type in
13161
 
    freebsd-elf*)
13162
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13163
 
      need_version=no
13164
 
      need_lib_prefix=no
13165
 
      ;;
13166
 
    freebsd-*)
13167
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13168
 
      need_version=yes
13169
 
      ;;
13170
 
  esac
13171
 
  shlibpath_var=LD_LIBRARY_PATH
13172
 
  case $host_os in
13173
 
  freebsd2*)
13174
 
    shlibpath_overrides_runpath=yes
13175
 
    ;;
13176
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13177
 
    shlibpath_overrides_runpath=yes
13178
 
    hardcode_into_libs=yes
13179
 
    ;;
13180
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13181
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13182
 
    shlibpath_overrides_runpath=no
13183
 
    hardcode_into_libs=yes
13184
 
    ;;
13185
 
  *) # from 4.6 on, and DragonFly
13186
 
    shlibpath_overrides_runpath=yes
13187
 
    hardcode_into_libs=yes
13188
 
    ;;
13189
 
  esac
13190
 
  ;;
13191
 
 
13192
 
gnu*)
13193
 
  version_type=linux
13194
 
  need_lib_prefix=no
13195
 
  need_version=no
13196
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13197
 
  soname_spec='${libname}${release}${shared_ext}$major'
13198
 
  shlibpath_var=LD_LIBRARY_PATH
13199
 
  hardcode_into_libs=yes
13200
 
  ;;
13201
 
 
13202
 
hpux9* | hpux10* | hpux11*)
13203
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13204
 
  # link against other versions.
13205
 
  version_type=sunos
13206
 
  need_lib_prefix=no
13207
 
  need_version=no
13208
 
  case $host_cpu in
13209
 
  ia64*)
13210
 
    shrext_cmds='.so'
13211
 
    hardcode_into_libs=yes
13212
 
    dynamic_linker="$host_os dld.so"
13213
 
    shlibpath_var=LD_LIBRARY_PATH
13214
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216
 
    soname_spec='${libname}${release}${shared_ext}$major'
13217
 
    if test "X$HPUX_IA64_MODE" = X32; then
13218
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13219
 
    else
13220
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13221
 
    fi
13222
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223
 
    ;;
13224
 
   hppa*64*)
13225
 
     shrext_cmds='.sl'
13226
 
     hardcode_into_libs=yes
13227
 
     dynamic_linker="$host_os dld.sl"
13228
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13229
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13230
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231
 
     soname_spec='${libname}${release}${shared_ext}$major'
13232
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13233
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13234
 
     ;;
13235
 
   *)
13236
 
    shrext_cmds='.sl'
13237
 
    dynamic_linker="$host_os dld.sl"
13238
 
    shlibpath_var=SHLIB_PATH
13239
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13240
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241
 
    soname_spec='${libname}${release}${shared_ext}$major'
13242
 
    ;;
13243
 
  esac
13244
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13245
 
  postinstall_cmds='chmod 555 $lib'
13246
 
  ;;
13247
 
 
13248
 
interix[3-9]*)
13249
 
  version_type=linux
13250
 
  need_lib_prefix=no
13251
 
  need_version=no
13252
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13253
 
  soname_spec='${libname}${release}${shared_ext}$major'
13254
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13255
 
  shlibpath_var=LD_LIBRARY_PATH
13256
 
  shlibpath_overrides_runpath=no
13257
 
  hardcode_into_libs=yes
13258
 
  ;;
13259
 
 
13260
 
irix5* | irix6* | nonstopux*)
13261
 
  case $host_os in
13262
 
    nonstopux*) version_type=nonstopux ;;
13263
 
    *)
13264
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13265
 
                version_type=linux
13266
 
        else
13267
 
                version_type=irix
13268
 
        fi ;;
13269
 
  esac
13270
 
  need_lib_prefix=no
13271
 
  need_version=no
13272
 
  soname_spec='${libname}${release}${shared_ext}$major'
13273
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13274
 
  case $host_os in
13275
 
  irix5* | nonstopux*)
13276
 
    libsuff= shlibsuff=
13277
 
    ;;
13278
 
  *)
13279
 
    case $LD in # libtool.m4 will add one of these switches to LD
13280
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13281
 
      libsuff= shlibsuff= libmagic=32-bit;;
13282
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13283
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13284
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13285
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13286
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13287
 
    esac
13288
 
    ;;
13289
 
  esac
13290
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13291
 
  shlibpath_overrides_runpath=no
13292
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13293
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13294
 
  hardcode_into_libs=yes
13295
 
  ;;
13296
 
 
13297
 
# No shared lib support for Linux oldld, aout, or coff.
13298
 
linux*oldld* | linux*aout* | linux*coff*)
13299
 
  dynamic_linker=no
13300
 
  ;;
13301
 
 
13302
 
# This must be Linux ELF.
13303
 
linux* | k*bsd*-gnu)
13304
 
  version_type=linux
13305
 
  need_lib_prefix=no
13306
 
  need_version=no
13307
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308
 
  soname_spec='${libname}${release}${shared_ext}$major'
13309
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13310
 
  shlibpath_var=LD_LIBRARY_PATH
13311
 
  shlibpath_overrides_runpath=no
13312
 
  # This implies no fast_install, which is unacceptable.
13313
 
  # Some rework will be needed to allow for fast_install
13314
 
  # before this can be enabled.
13315
 
  hardcode_into_libs=yes
13316
 
 
13317
 
  # Append ld.so.conf contents to the search path
13318
 
  if test -f /etc/ld.so.conf; then
13319
 
    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' ' '`
13320
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13321
 
  fi
13322
 
 
13323
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13324
 
  # powerpc, because MkLinux only supported shared libraries with the
13325
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13326
 
  # most powerpc-linux boxes support dynamic linking these days and
13327
 
  # people can always --disable-shared, the test was removed, and we
13328
 
  # assume the GNU/Linux dynamic linker is in use.
13329
 
  dynamic_linker='GNU/Linux ld.so'
13330
 
  ;;
13331
 
 
13332
 
netbsdelf*-gnu)
13333
 
  version_type=linux
13334
 
  need_lib_prefix=no
13335
 
  need_version=no
13336
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13337
 
  soname_spec='${libname}${release}${shared_ext}$major'
13338
 
  shlibpath_var=LD_LIBRARY_PATH
13339
 
  shlibpath_overrides_runpath=no
13340
 
  hardcode_into_libs=yes
13341
 
  dynamic_linker='NetBSD ld.elf_so'
13342
 
  ;;
13343
 
 
13344
 
netbsd*)
13345
 
  version_type=sunos
13346
 
  need_lib_prefix=no
13347
 
  need_version=no
13348
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13349
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351
 
    dynamic_linker='NetBSD (a.out) ld.so'
13352
 
  else
13353
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13354
 
    soname_spec='${libname}${release}${shared_ext}$major'
13355
 
    dynamic_linker='NetBSD ld.elf_so'
13356
 
  fi
13357
 
  shlibpath_var=LD_LIBRARY_PATH
13358
 
  shlibpath_overrides_runpath=yes
13359
 
  hardcode_into_libs=yes
13360
 
  ;;
13361
 
 
13362
 
newsos6)
13363
 
  version_type=linux
13364
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13365
 
  shlibpath_var=LD_LIBRARY_PATH
13366
 
  shlibpath_overrides_runpath=yes
13367
 
  ;;
13368
 
 
13369
 
nto-qnx*)
13370
 
  version_type=linux
13371
 
  need_lib_prefix=no
13372
 
  need_version=no
13373
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374
 
  soname_spec='${libname}${release}${shared_ext}$major'
13375
 
  shlibpath_var=LD_LIBRARY_PATH
13376
 
  shlibpath_overrides_runpath=yes
13377
 
  ;;
13378
 
 
13379
 
openbsd*)
13380
 
  version_type=sunos
13381
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13382
 
  need_lib_prefix=no
13383
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13384
 
  case $host_os in
13385
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13386
 
    *)                         need_version=no  ;;
13387
 
  esac
13388
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390
 
  shlibpath_var=LD_LIBRARY_PATH
13391
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13392
 
    case $host_os in
13393
 
      openbsd2.[89] | openbsd2.[89].*)
13394
 
        shlibpath_overrides_runpath=no
13395
 
        ;;
13396
 
      *)
13397
 
        shlibpath_overrides_runpath=yes
13398
 
        ;;
13399
 
      esac
13400
 
  else
13401
 
    shlibpath_overrides_runpath=yes
13402
 
  fi
13403
 
  ;;
13404
 
 
13405
 
os2*)
13406
 
  libname_spec='$name'
13407
 
  shrext_cmds=".dll"
13408
 
  need_lib_prefix=no
13409
 
  library_names_spec='$libname${shared_ext} $libname.a'
13410
 
  dynamic_linker='OS/2 ld.exe'
13411
 
  shlibpath_var=LIBPATH
13412
 
  ;;
13413
 
 
13414
 
osf3* | osf4* | osf5*)
13415
 
  version_type=osf
13416
 
  need_lib_prefix=no
13417
 
  need_version=no
13418
 
  soname_spec='${libname}${release}${shared_ext}$major'
13419
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420
 
  shlibpath_var=LD_LIBRARY_PATH
13421
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13422
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13423
 
  ;;
13424
 
 
13425
 
rdos*)
13426
 
  dynamic_linker=no
13427
 
  ;;
13428
 
 
13429
 
solaris*)
13430
 
  version_type=linux
13431
 
  need_lib_prefix=no
13432
 
  need_version=no
13433
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434
 
  soname_spec='${libname}${release}${shared_ext}$major'
13435
 
  shlibpath_var=LD_LIBRARY_PATH
13436
 
  shlibpath_overrides_runpath=yes
13437
 
  hardcode_into_libs=yes
13438
 
  # ldd complains unless libraries are executable
13439
 
  postinstall_cmds='chmod +x $lib'
13440
 
  ;;
13441
 
 
13442
 
sunos4*)
13443
 
  version_type=sunos
13444
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13445
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13446
 
  shlibpath_var=LD_LIBRARY_PATH
13447
 
  shlibpath_overrides_runpath=yes
13448
 
  if test "$with_gnu_ld" = yes; then
13449
 
    need_lib_prefix=no
13450
 
  fi
13451
 
  need_version=yes
13452
 
  ;;
13453
 
 
13454
 
sysv4 | sysv4.3*)
13455
 
  version_type=linux
13456
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457
 
  soname_spec='${libname}${release}${shared_ext}$major'
13458
 
  shlibpath_var=LD_LIBRARY_PATH
13459
 
  case $host_vendor in
13460
 
    sni)
13461
 
      shlibpath_overrides_runpath=no
13462
 
      need_lib_prefix=no
13463
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13464
 
      runpath_var=LD_RUN_PATH
13465
 
      ;;
13466
 
    siemens)
13467
 
      need_lib_prefix=no
13468
 
      ;;
13469
 
    motorola)
13470
 
      need_lib_prefix=no
13471
 
      need_version=no
13472
 
      shlibpath_overrides_runpath=no
13473
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13474
 
      ;;
13475
 
  esac
13476
 
  ;;
13477
 
 
13478
 
sysv4*MP*)
13479
 
  if test -d /usr/nec ;then
13480
 
    version_type=linux
13481
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13482
 
    soname_spec='$libname${shared_ext}.$major'
13483
 
    shlibpath_var=LD_LIBRARY_PATH
13484
 
  fi
13485
 
  ;;
13486
 
 
13487
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13488
 
  version_type=freebsd-elf
13489
 
  need_lib_prefix=no
13490
 
  need_version=no
13491
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13492
 
  soname_spec='${libname}${release}${shared_ext}$major'
13493
 
  shlibpath_var=LD_LIBRARY_PATH
13494
 
  hardcode_into_libs=yes
13495
 
  if test "$with_gnu_ld" = yes; then
13496
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13497
 
    shlibpath_overrides_runpath=no
13498
 
  else
13499
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13500
 
    shlibpath_overrides_runpath=yes
13501
 
    case $host_os in
13502
 
      sco3.2v5*)
13503
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13504
 
        ;;
13505
 
    esac
13506
 
  fi
13507
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13508
 
  ;;
13509
 
 
13510
 
uts4*)
13511
 
  version_type=linux
13512
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513
 
  soname_spec='${libname}${release}${shared_ext}$major'
13514
 
  shlibpath_var=LD_LIBRARY_PATH
13515
 
  ;;
13516
 
 
13517
 
*)
13518
 
  dynamic_linker=no
13519
 
  ;;
13520
 
esac
13521
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13522
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13523
 
test "$dynamic_linker" = no && can_build_shared=no
13524
 
 
13525
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13527
 
else
13528
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13529
 
fi
13530
 
 
13531
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13532
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13533
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13534
 
else
13535
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13536
 
fi
13537
 
 
13538
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13539
 
 
13540
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13541
 
if test "$GCC" = yes; then
13542
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13543
 
fi
13544
 
 
13545
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13546
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13547
 
hardcode_action_CXX=
13548
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13549
 
   test -n "$runpath_var_CXX" || \
13550
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13551
 
 
13552
 
  # We can hardcode non-existant directories.
13553
 
  if test "$hardcode_direct_CXX" != no &&
13554
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13555
 
     # have to relink, otherwise we might link with an installed library
13556
 
     # when we should be linking with a yet-to-be-installed one
13557
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13558
 
     test "$hardcode_minus_L_CXX" != no; then
13559
 
    # Linking always hardcodes the temporary library directory.
13560
 
    hardcode_action_CXX=relink
13561
 
  else
13562
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13563
 
    hardcode_action_CXX=immediate
13564
 
  fi
13565
 
else
13566
 
  # We cannot hardcode anything, or else we can only hardcode existing
13567
 
  # directories.
13568
 
  hardcode_action_CXX=unsupported
13569
 
fi
13570
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13571
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13572
 
 
13573
 
if test "$hardcode_action_CXX" = relink; then
13574
 
  # Fast installation is not supported
13575
 
  enable_fast_install=no
13576
 
elif test "$shlibpath_overrides_runpath" = yes ||
13577
 
     test "$enable_shared" = no; then
13578
 
  # Fast installation is not necessary
13579
 
  enable_fast_install=needless
13580
 
fi
13581
 
 
13582
 
 
13583
 
# The else clause should only fire when bootstrapping the
13584
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13585
 
# with your package, and you will get complaints that there are
13586
 
# no rules to generate ltmain.sh.
13587
 
if test -f "$ltmain"; then
13588
 
  # See if we are running on zsh, and set the options which allow our commands through
13589
 
  # without removal of \ escapes.
13590
 
  if test -n "${ZSH_VERSION+set}" ; then
13591
 
    setopt NO_GLOB_SUBST
13592
 
  fi
13593
 
  # Now quote all the things that may contain metacharacters while being
13594
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13595
 
  # variables and quote the copies for generation of the libtool script.
13596
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13597
 
    SED SHELL STRIP \
13598
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13599
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13600
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13601
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13602
 
    lt_cv_sys_global_symbol_to_c_name_address \
13603
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13604
 
    old_postinstall_cmds old_postuninstall_cmds \
13605
 
    compiler_CXX \
13606
 
    CC_CXX \
13607
 
    LD_CXX \
13608
 
    lt_prog_compiler_wl_CXX \
13609
 
    lt_prog_compiler_pic_CXX \
13610
 
    lt_prog_compiler_static_CXX \
13611
 
    lt_prog_compiler_no_builtin_flag_CXX \
13612
 
    export_dynamic_flag_spec_CXX \
13613
 
    thread_safe_flag_spec_CXX \
13614
 
    whole_archive_flag_spec_CXX \
13615
 
    enable_shared_with_static_runtimes_CXX \
13616
 
    old_archive_cmds_CXX \
13617
 
    old_archive_from_new_cmds_CXX \
13618
 
    predep_objects_CXX \
13619
 
    postdep_objects_CXX \
13620
 
    predeps_CXX \
13621
 
    postdeps_CXX \
13622
 
    compiler_lib_search_path_CXX \
13623
 
    compiler_lib_search_dirs_CXX \
13624
 
    archive_cmds_CXX \
13625
 
    archive_expsym_cmds_CXX \
13626
 
    postinstall_cmds_CXX \
13627
 
    postuninstall_cmds_CXX \
13628
 
    old_archive_from_expsyms_cmds_CXX \
13629
 
    allow_undefined_flag_CXX \
13630
 
    no_undefined_flag_CXX \
13631
 
    export_symbols_cmds_CXX \
13632
 
    hardcode_libdir_flag_spec_CXX \
13633
 
    hardcode_libdir_flag_spec_ld_CXX \
13634
 
    hardcode_libdir_separator_CXX \
13635
 
    hardcode_automatic_CXX \
13636
 
    module_cmds_CXX \
13637
 
    module_expsym_cmds_CXX \
13638
 
    lt_cv_prog_compiler_c_o_CXX \
13639
 
    fix_srcfile_path_CXX \
13640
 
    exclude_expsyms_CXX \
13641
 
    include_expsyms_CXX; do
13642
 
 
13643
 
    case $var in
13644
 
    old_archive_cmds_CXX | \
13645
 
    old_archive_from_new_cmds_CXX | \
13646
 
    archive_cmds_CXX | \
13647
 
    archive_expsym_cmds_CXX | \
13648
 
    module_cmds_CXX | \
13649
 
    module_expsym_cmds_CXX | \
13650
 
    old_archive_from_expsyms_cmds_CXX | \
13651
 
    export_symbols_cmds_CXX | \
13652
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13653
 
    postinstall_cmds | postuninstall_cmds | \
13654
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13655
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13656
 
      # Double-quote double-evaled strings.
13657
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13658
 
      ;;
13659
 
    *)
13660
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13661
 
      ;;
13662
 
    esac
13663
 
  done
13664
 
 
13665
 
  case $lt_echo in
13666
 
  *'\$0 --fallback-echo"')
13667
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13668
 
    ;;
13669
 
  esac
13670
 
 
13671
 
cfgfile="$ofile"
13672
 
 
13673
 
  cat <<__EOF__ >> "$cfgfile"
13674
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13675
 
 
13676
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13677
 
 
13678
 
# Shell to use when invoking shell scripts.
13679
 
SHELL=$lt_SHELL
13680
 
 
13681
 
# Whether or not to build shared libraries.
13682
 
build_libtool_libs=$enable_shared
13683
 
 
13684
 
# Whether or not to build static libraries.
13685
 
build_old_libs=$enable_static
13686
 
 
13687
 
# Whether or not to add -lc for building shared libraries.
13688
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13689
 
 
13690
 
# Whether or not to disallow shared libs when runtime libs are static
13691
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13692
 
 
13693
 
# Whether or not to optimize for fast installation.
13694
 
fast_install=$enable_fast_install
13695
 
 
13696
 
# The host system.
13697
 
host_alias=$host_alias
13698
 
host=$host
13699
 
host_os=$host_os
13700
 
 
13701
 
# The build system.
13702
 
build_alias=$build_alias
13703
 
build=$build
13704
 
build_os=$build_os
13705
 
 
13706
 
# An echo program that does not interpret backslashes.
13707
 
echo=$lt_echo
13708
 
 
13709
 
# The archiver.
13710
 
AR=$lt_AR
13711
 
AR_FLAGS=$lt_AR_FLAGS
13712
 
 
13713
 
# A C compiler.
13714
 
LTCC=$lt_LTCC
13715
 
 
13716
 
# LTCC compiler flags.
13717
 
LTCFLAGS=$lt_LTCFLAGS
13718
 
 
13719
 
# A language-specific compiler.
13720
 
CC=$lt_compiler_CXX
13721
 
 
13722
 
# Is the compiler the GNU C compiler?
13723
 
with_gcc=$GCC_CXX
13724
 
 
13725
 
# An ERE matcher.
13726
 
EGREP=$lt_EGREP
13727
 
 
13728
 
# The linker used to build libraries.
13729
 
LD=$lt_LD_CXX
13730
 
 
13731
 
# Whether we need hard or soft links.
13732
 
LN_S=$lt_LN_S
13733
 
 
13734
 
# A BSD-compatible nm program.
13735
 
NM=$lt_NM
13736
 
 
13737
 
# A symbol stripping program
13738
 
STRIP=$lt_STRIP
13739
 
 
13740
 
# Used to examine libraries when file_magic_cmd begins "file"
13741
 
MAGIC_CMD=$MAGIC_CMD
13742
 
 
13743
 
# Used on cygwin: DLL creation program.
13744
 
DLLTOOL="$DLLTOOL"
13745
 
 
13746
 
# Used on cygwin: object dumper.
13747
 
OBJDUMP="$OBJDUMP"
13748
 
 
13749
 
# Used on cygwin: assembler.
13750
 
AS="$AS"
13751
 
 
13752
 
# The name of the directory that contains temporary libtool files.
13753
 
objdir=$objdir
13754
 
 
13755
 
# How to create reloadable object files.
13756
 
reload_flag=$lt_reload_flag
13757
 
reload_cmds=$lt_reload_cmds
13758
 
 
13759
 
# How to pass a linker flag through the compiler.
13760
 
wl=$lt_lt_prog_compiler_wl_CXX
13761
 
 
13762
 
# Object file suffix (normally "o").
13763
 
objext="$ac_objext"
13764
 
 
13765
 
# Old archive suffix (normally "a").
13766
 
libext="$libext"
13767
 
 
13768
 
# Shared library suffix (normally ".so").
13769
 
shrext_cmds='$shrext_cmds'
13770
 
 
13771
 
# Executable file suffix (normally "").
13772
 
exeext="$exeext"
13773
 
 
13774
 
# Additional compiler flags for building library objects.
13775
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13776
 
pic_mode=$pic_mode
13777
 
 
13778
 
# What is the maximum length of a command?
13779
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13780
 
 
13781
 
# Does compiler simultaneously support -c and -o options?
13782
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13783
 
 
13784
 
# Must we lock files when doing compilation?
13785
 
need_locks=$lt_need_locks
13786
 
 
13787
 
# Do we need the lib prefix for modules?
13788
 
need_lib_prefix=$need_lib_prefix
13789
 
 
13790
 
# Do we need a version for libraries?
13791
 
need_version=$need_version
13792
 
 
13793
 
# Whether dlopen is supported.
13794
 
dlopen_support=$enable_dlopen
13795
 
 
13796
 
# Whether dlopen of programs is supported.
13797
 
dlopen_self=$enable_dlopen_self
13798
 
 
13799
 
# Whether dlopen of statically linked programs is supported.
13800
 
dlopen_self_static=$enable_dlopen_self_static
13801
 
 
13802
 
# Compiler flag to prevent dynamic linking.
13803
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13804
 
 
13805
 
# Compiler flag to turn off builtin functions.
13806
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13807
 
 
13808
 
# Compiler flag to allow reflexive dlopens.
13809
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13810
 
 
13811
 
# Compiler flag to generate shared objects directly from archives.
13812
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13813
 
 
13814
 
# Compiler flag to generate thread-safe objects.
13815
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13816
 
 
13817
 
# Library versioning type.
13818
 
version_type=$version_type
13819
 
 
13820
 
# Format of library name prefix.
13821
 
libname_spec=$lt_libname_spec
13822
 
 
13823
 
# List of archive names.  First name is the real one, the rest are links.
13824
 
# The last name is the one that the linker finds with -lNAME.
13825
 
library_names_spec=$lt_library_names_spec
13826
 
 
13827
 
# The coded name of the library, if different from the real name.
13828
 
soname_spec=$lt_soname_spec
13829
 
 
13830
 
# Commands used to build and install an old-style archive.
13831
 
RANLIB=$lt_RANLIB
13832
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13833
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13834
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13835
 
 
13836
 
# Create an old-style archive from a shared archive.
13837
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13838
 
 
13839
 
# Create a temporary old-style archive to link instead of a shared archive.
13840
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13841
 
 
13842
 
# Commands used to build and install a shared archive.
13843
 
archive_cmds=$lt_archive_cmds_CXX
13844
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13845
 
postinstall_cmds=$lt_postinstall_cmds
13846
 
postuninstall_cmds=$lt_postuninstall_cmds
13847
 
 
13848
 
# Commands used to build a loadable module (assumed same as above if empty)
13849
 
module_cmds=$lt_module_cmds_CXX
13850
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13851
 
 
13852
 
# Commands to strip libraries.
13853
 
old_striplib=$lt_old_striplib
13854
 
striplib=$lt_striplib
13855
 
 
13856
 
# Dependencies to place before the objects being linked to create a
13857
 
# shared library.
13858
 
predep_objects=$lt_predep_objects_CXX
13859
 
 
13860
 
# Dependencies to place after the objects being linked to create a
13861
 
# shared library.
13862
 
postdep_objects=$lt_postdep_objects_CXX
13863
 
 
13864
 
# Dependencies to place before the objects being linked to create a
13865
 
# shared library.
13866
 
predeps=$lt_predeps_CXX
13867
 
 
13868
 
# Dependencies to place after the objects being linked to create a
13869
 
# shared library.
13870
 
postdeps=$lt_postdeps_CXX
13871
 
 
13872
 
# The directories searched by this compiler when creating a shared
13873
 
# library
13874
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13875
 
 
13876
 
# The library search path used internally by the compiler when linking
13877
 
# a shared library.
13878
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13879
 
 
13880
 
# Method to check whether dependent libraries are shared objects.
13881
 
deplibs_check_method=$lt_deplibs_check_method
13882
 
 
13883
 
# Command to use when deplibs_check_method == file_magic.
13884
 
file_magic_cmd=$lt_file_magic_cmd
13885
 
 
13886
 
# Flag that allows shared libraries with undefined symbols to be built.
13887
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13888
 
 
13889
 
# Flag that forces no undefined symbols.
13890
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13891
 
 
13892
 
# Commands used to finish a libtool library installation in a directory.
13893
 
finish_cmds=$lt_finish_cmds
13894
 
 
13895
 
# Same as above, but a single script fragment to be evaled but not shown.
13896
 
finish_eval=$lt_finish_eval
13897
 
 
13898
 
# Take the output of nm and produce a listing of raw symbols and C names.
13899
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13900
 
 
13901
 
# Transform the output of nm in a proper C declaration
13902
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13903
 
 
13904
 
# Transform the output of nm in a C name address pair
13905
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13906
 
 
13907
 
# This is the shared library runtime path variable.
13908
 
runpath_var=$runpath_var
13909
 
 
13910
 
# This is the shared library path variable.
13911
 
shlibpath_var=$shlibpath_var
13912
 
 
13913
 
# Is shlibpath searched before the hard-coded library search path?
13914
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13915
 
 
13916
 
# How to hardcode a shared library path into an executable.
13917
 
hardcode_action=$hardcode_action_CXX
13918
 
 
13919
 
# Whether we should hardcode library paths into libraries.
13920
 
hardcode_into_libs=$hardcode_into_libs
13921
 
 
13922
 
# Flag to hardcode \$libdir into a binary during linking.
13923
 
# This must work even if \$libdir does not exist.
13924
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13925
 
 
13926
 
# If ld is used when linking, flag to hardcode \$libdir into
13927
 
# a binary during linking. This must work even if \$libdir does
13928
 
# not exist.
13929
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13930
 
 
13931
 
# Whether we need a single -rpath flag with a separated argument.
13932
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13933
 
 
13934
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13935
 
# resulting binary.
13936
 
hardcode_direct=$hardcode_direct_CXX
13937
 
 
13938
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13939
 
# resulting binary.
13940
 
hardcode_minus_L=$hardcode_minus_L_CXX
13941
 
 
13942
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13943
 
# the resulting binary.
13944
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13945
 
 
13946
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
13947
 
# and all subsequent libraries and executables linked against it.
13948
 
hardcode_automatic=$hardcode_automatic_CXX
13949
 
 
13950
 
# Variables whose values should be saved in libtool wrapper scripts and
13951
 
# restored at relink time.
13952
 
variables_saved_for_relink="$variables_saved_for_relink"
13953
 
 
13954
 
# Whether libtool must link a program against all its dependency libraries.
13955
 
link_all_deplibs=$link_all_deplibs_CXX
13956
 
 
13957
 
# Compile-time system search path for libraries
13958
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13959
 
 
13960
 
# Run-time system search path for libraries
13961
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13962
 
 
13963
 
# Fix the shell variable \$srcfile for the compiler.
13964
 
fix_srcfile_path=$lt_fix_srcfile_path
13965
 
 
13966
 
# Set to yes if exported symbols are required.
13967
 
always_export_symbols=$always_export_symbols_CXX
13968
 
 
13969
 
# The commands to list exported symbols.
13970
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13971
 
 
13972
 
# The commands to extract the exported symbol list from a shared archive.
13973
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13974
 
 
13975
 
# Symbols that should not be listed in the preloaded symbols.
13976
 
exclude_expsyms=$lt_exclude_expsyms_CXX
13977
 
 
13978
 
# Symbols that must always be exported.
13979
 
include_expsyms=$lt_include_expsyms_CXX
13980
 
 
13981
 
# ### END LIBTOOL TAG CONFIG: $tagname
13982
 
 
13983
 
__EOF__
13984
 
 
13985
 
 
13986
 
else
13987
 
  # If there is no Makefile yet, we rely on a make rule to execute
13988
 
  # `config.status --recheck' to rerun these tests and create the
13989
 
  # libtool script then.
13990
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13991
 
  if test -f "$ltmain_in"; then
13992
 
    test -f Makefile && make "$ltmain"
13993
 
  fi
13994
 
fi
13995
 
 
13996
 
 
13997
 
ac_ext=c
13998
 
ac_cpp='$CPP $CPPFLAGS'
13999
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002
 
 
14003
 
CC=$lt_save_CC
14004
 
LDCXX=$LD
14005
 
LD=$lt_save_LD
14006
 
GCC=$lt_save_GCC
14007
 
with_gnu_ldcxx=$with_gnu_ld
14008
 
with_gnu_ld=$lt_save_with_gnu_ld
14009
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14010
 
lt_cv_path_LD=$lt_save_path_LD
14011
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14012
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14013
 
 
14014
 
        else
14015
 
          tagname=""
14016
 
        fi
14017
 
        ;;
14018
 
 
14019
 
      F77)
14020
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14021
 
 
14022
 
ac_ext=f
14023
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14024
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14026
 
 
14027
 
 
14028
 
archive_cmds_need_lc_F77=no
14029
 
allow_undefined_flag_F77=
14030
 
always_export_symbols_F77=no
14031
 
archive_expsym_cmds_F77=
14032
 
export_dynamic_flag_spec_F77=
14033
 
hardcode_direct_F77=no
14034
 
hardcode_libdir_flag_spec_F77=
14035
 
hardcode_libdir_flag_spec_ld_F77=
14036
 
hardcode_libdir_separator_F77=
14037
 
hardcode_minus_L_F77=no
14038
 
hardcode_automatic_F77=no
14039
 
module_cmds_F77=
14040
 
module_expsym_cmds_F77=
14041
 
link_all_deplibs_F77=unknown
14042
 
old_archive_cmds_F77=$old_archive_cmds
14043
 
no_undefined_flag_F77=
14044
 
whole_archive_flag_spec_F77=
14045
 
enable_shared_with_static_runtimes_F77=no
14046
 
 
14047
 
# Source file extension for f77 test sources.
14048
 
ac_ext=f
14049
 
 
14050
 
# Object file extension for compiled f77 test sources.
14051
 
objext=o
14052
 
objext_F77=$objext
14053
 
 
14054
 
# Code to be used in simple compile tests
14055
 
lt_simple_compile_test_code="\
14056
 
      subroutine t
14057
 
      return
14058
 
      end
14059
 
"
14060
 
 
14061
 
# Code to be used in simple link tests
14062
 
lt_simple_link_test_code="\
14063
 
      program t
14064
 
      end
14065
 
"
14066
 
 
14067
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14068
 
 
14069
 
# If no C compiler was specified, use CC.
14070
 
LTCC=${LTCC-"$CC"}
14071
 
 
14072
 
# If no C compiler flags were specified, use CFLAGS.
14073
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14074
 
 
14075
 
# Allow CC to be a program name with arguments.
14076
 
compiler=$CC
14077
 
 
14078
 
 
14079
 
# save warnings/boilerplate of simple test code
14080
 
ac_outfile=conftest.$ac_objext
14081
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14082
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14083
 
_lt_compiler_boilerplate=`cat conftest.err`
14084
 
$rm conftest*
14085
 
 
14086
 
ac_outfile=conftest.$ac_objext
14087
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14088
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14089
 
_lt_linker_boilerplate=`cat conftest.err`
14090
 
$rm -r conftest*
14091
 
 
14092
 
 
14093
 
# Allow CC to be a program name with arguments.
14094
 
lt_save_CC="$CC"
14095
 
CC=${F77-"f77"}
14096
 
compiler=$CC
14097
 
compiler_F77=$CC
14098
 
for cc_temp in $compiler""; do
14099
 
  case $cc_temp in
14100
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14101
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14102
 
    \-*) ;;
14103
 
    *) break;;
14104
 
  esac
14105
 
done
14106
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14107
 
 
14108
 
 
14109
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14110
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14111
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14112
 
echo "${ECHO_T}$can_build_shared" >&6; }
14113
 
 
14114
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14115
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14116
 
test "$can_build_shared" = "no" && enable_shared=no
14117
 
 
14118
 
# On AIX, shared libraries and static libraries use the same namespace, and
14119
 
# are all built from PIC.
14120
 
case $host_os in
14121
 
aix3*)
14122
 
  test "$enable_shared" = yes && enable_static=no
14123
 
  if test -n "$RANLIB"; then
14124
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14125
 
    postinstall_cmds='$RANLIB $lib'
14126
 
  fi
14127
 
  ;;
14128
 
aix[4-9]*)
14129
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14130
 
    test "$enable_shared" = yes && enable_static=no
14131
 
  fi
14132
 
  ;;
14133
 
esac
14134
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14135
 
echo "${ECHO_T}$enable_shared" >&6; }
14136
 
 
14137
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14138
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14139
 
# Make sure either enable_shared or enable_static is yes.
14140
 
test "$enable_shared" = yes || enable_static=yes
14141
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14142
 
echo "${ECHO_T}$enable_static" >&6; }
14143
 
 
14144
 
GCC_F77="$G77"
14145
 
LD_F77="$LD"
14146
 
 
14147
 
lt_prog_compiler_wl_F77=
14148
 
lt_prog_compiler_pic_F77=
14149
 
lt_prog_compiler_static_F77=
14150
 
 
14151
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14152
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14153
 
 
14154
 
  if test "$GCC" = yes; then
14155
 
    lt_prog_compiler_wl_F77='-Wl,'
14156
 
    lt_prog_compiler_static_F77='-static'
14157
 
 
14158
 
    case $host_os in
14159
 
      aix*)
14160
 
      # All AIX code is PIC.
14161
 
      if test "$host_cpu" = ia64; then
14162
 
        # AIX 5 now supports IA64 processor
14163
 
        lt_prog_compiler_static_F77='-Bstatic'
14164
 
      fi
14165
 
      ;;
14166
 
 
14167
 
    amigaos*)
14168
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14169
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14170
 
      # like `-m68040'.
14171
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14172
 
      ;;
14173
 
 
14174
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14175
 
      # PIC is the default for these OSes.
14176
 
      ;;
14177
 
 
14178
 
    mingw* | cygwin* | pw32* | os2*)
14179
 
      # This hack is so that the source file can tell whether it is being
14180
 
      # built for inclusion in a dll (and should export symbols for example).
14181
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14182
 
      # (--disable-auto-import) libraries
14183
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14184
 
      ;;
14185
 
 
14186
 
    darwin* | rhapsody*)
14187
 
      # PIC is the default on this platform
14188
 
      # Common symbols not allowed in MH_DYLIB files
14189
 
      lt_prog_compiler_pic_F77='-fno-common'
14190
 
      ;;
14191
 
 
14192
 
    interix[3-9]*)
14193
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14194
 
      # Instead, we relocate shared libraries at runtime.
14195
 
      ;;
14196
 
 
14197
 
    msdosdjgpp*)
14198
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14199
 
      # on systems that don't support them.
14200
 
      lt_prog_compiler_can_build_shared_F77=no
14201
 
      enable_shared=no
14202
 
      ;;
14203
 
 
14204
 
    sysv4*MP*)
14205
 
      if test -d /usr/nec; then
14206
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14207
 
      fi
14208
 
      ;;
14209
 
 
14210
 
    hpux*)
14211
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14212
 
      # not for PA HP-UX.
14213
 
      case $host_cpu in
14214
 
      hppa*64*|ia64*)
14215
 
        # +Z the default
14216
 
        ;;
14217
 
      *)
14218
 
        lt_prog_compiler_pic_F77='-fPIC'
14219
 
        ;;
14220
 
      esac
14221
 
      ;;
14222
 
 
14223
 
    *)
14224
 
      lt_prog_compiler_pic_F77='-fPIC'
14225
 
      ;;
14226
 
    esac
14227
 
  else
14228
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14229
 
    case $host_os in
14230
 
    aix*)
14231
 
      lt_prog_compiler_wl_F77='-Wl,'
14232
 
      if test "$host_cpu" = ia64; then
14233
 
        # AIX 5 now supports IA64 processor
14234
 
        lt_prog_compiler_static_F77='-Bstatic'
14235
 
      else
14236
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14237
 
      fi
14238
 
      ;;
14239
 
      darwin*)
14240
 
        # PIC is the default on this platform
14241
 
        # Common symbols not allowed in MH_DYLIB files
14242
 
       case $cc_basename in
14243
 
         xlc*)
14244
 
         lt_prog_compiler_pic_F77='-qnocommon'
14245
 
         lt_prog_compiler_wl_F77='-Wl,'
14246
 
         ;;
14247
 
       esac
14248
 
       ;;
14249
 
 
14250
 
    mingw* | cygwin* | pw32* | os2*)
14251
 
      # This hack is so that the source file can tell whether it is being
14252
 
      # built for inclusion in a dll (and should export symbols for example).
14253
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14254
 
      ;;
14255
 
 
14256
 
    hpux9* | hpux10* | hpux11*)
14257
 
      lt_prog_compiler_wl_F77='-Wl,'
14258
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14259
 
      # not for PA HP-UX.
14260
 
      case $host_cpu in
14261
 
      hppa*64*|ia64*)
14262
 
        # +Z the default
14263
 
        ;;
14264
 
      *)
14265
 
        lt_prog_compiler_pic_F77='+Z'
14266
 
        ;;
14267
 
      esac
14268
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14269
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14270
 
      ;;
14271
 
 
14272
 
    irix5* | irix6* | nonstopux*)
14273
 
      lt_prog_compiler_wl_F77='-Wl,'
14274
 
      # PIC (with -KPIC) is the default.
14275
 
      lt_prog_compiler_static_F77='-non_shared'
14276
 
      ;;
14277
 
 
14278
 
    newsos6)
14279
 
      lt_prog_compiler_pic_F77='-KPIC'
14280
 
      lt_prog_compiler_static_F77='-Bstatic'
14281
 
      ;;
14282
 
 
14283
 
    linux* | k*bsd*-gnu)
14284
 
      case $cc_basename in
14285
 
      icc* | ecc*)
14286
 
        lt_prog_compiler_wl_F77='-Wl,'
14287
 
        lt_prog_compiler_pic_F77='-KPIC'
14288
 
        lt_prog_compiler_static_F77='-static'
14289
 
        ;;
14290
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14291
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14292
 
        # which looks to be a dead project)
14293
 
        lt_prog_compiler_wl_F77='-Wl,'
14294
 
        lt_prog_compiler_pic_F77='-fpic'
14295
 
        lt_prog_compiler_static_F77='-Bstatic'
14296
 
        ;;
14297
 
      ccc*)
14298
 
        lt_prog_compiler_wl_F77='-Wl,'
14299
 
        # All Alpha code is PIC.
14300
 
        lt_prog_compiler_static_F77='-non_shared'
14301
 
        ;;
14302
 
      *)
14303
 
        case `$CC -V 2>&1 | sed 5q` in
14304
 
        *Sun\ C*)
14305
 
          # Sun C 5.9
14306
 
          lt_prog_compiler_pic_F77='-KPIC'
14307
 
          lt_prog_compiler_static_F77='-Bstatic'
14308
 
          lt_prog_compiler_wl_F77='-Wl,'
14309
 
          ;;
14310
 
        *Sun\ F*)
14311
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14312
 
          lt_prog_compiler_pic_F77='-KPIC'
14313
 
          lt_prog_compiler_static_F77='-Bstatic'
14314
 
          lt_prog_compiler_wl_F77=''
14315
 
          ;;
14316
 
        esac
14317
 
        ;;
14318
 
      esac
14319
 
      ;;
14320
 
 
14321
 
    osf3* | osf4* | osf5*)
14322
 
      lt_prog_compiler_wl_F77='-Wl,'
14323
 
      # All OSF/1 code is PIC.
14324
 
      lt_prog_compiler_static_F77='-non_shared'
14325
 
      ;;
14326
 
 
14327
 
    rdos*)
14328
 
      lt_prog_compiler_static_F77='-non_shared'
14329
 
      ;;
14330
 
 
14331
 
    solaris*)
14332
 
      lt_prog_compiler_pic_F77='-KPIC'
14333
 
      lt_prog_compiler_static_F77='-Bstatic'
14334
 
      case $cc_basename in
14335
 
      f77* | f90* | f95*)
14336
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14337
 
      *)
14338
 
        lt_prog_compiler_wl_F77='-Wl,';;
14339
 
      esac
14340
 
      ;;
14341
 
 
14342
 
    sunos4*)
14343
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14344
 
      lt_prog_compiler_pic_F77='-PIC'
14345
 
      lt_prog_compiler_static_F77='-Bstatic'
14346
 
      ;;
14347
 
 
14348
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14349
 
      lt_prog_compiler_wl_F77='-Wl,'
14350
 
      lt_prog_compiler_pic_F77='-KPIC'
14351
 
      lt_prog_compiler_static_F77='-Bstatic'
14352
 
      ;;
14353
 
 
14354
 
    sysv4*MP*)
14355
 
      if test -d /usr/nec ;then
14356
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14357
 
        lt_prog_compiler_static_F77='-Bstatic'
14358
 
      fi
14359
 
      ;;
14360
 
 
14361
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14362
 
      lt_prog_compiler_wl_F77='-Wl,'
14363
 
      lt_prog_compiler_pic_F77='-KPIC'
14364
 
      lt_prog_compiler_static_F77='-Bstatic'
14365
 
      ;;
14366
 
 
14367
 
    unicos*)
14368
 
      lt_prog_compiler_wl_F77='-Wl,'
14369
 
      lt_prog_compiler_can_build_shared_F77=no
14370
 
      ;;
14371
 
 
14372
 
    uts4*)
14373
 
      lt_prog_compiler_pic_F77='-pic'
14374
 
      lt_prog_compiler_static_F77='-Bstatic'
14375
 
      ;;
14376
 
 
14377
 
    *)
14378
 
      lt_prog_compiler_can_build_shared_F77=no
14379
 
      ;;
14380
 
    esac
14381
 
  fi
14382
 
 
14383
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14384
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14385
 
 
14386
 
#
14387
 
# Check to make sure the PIC flag actually works.
14388
 
#
14389
 
if test -n "$lt_prog_compiler_pic_F77"; then
14390
 
 
14391
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14392
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14393
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14395
 
else
14396
 
  lt_cv_prog_compiler_pic_works_F77=no
14397
 
  ac_outfile=conftest.$ac_objext
14398
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14399
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14400
 
   # Insert the option either (1) after the last *FLAGS variable, or
14401
 
   # (2) before a word containing "conftest.", or (3) at the end.
14402
 
   # Note that $ac_compile itself does not contain backslashes and begins
14403
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14404
 
   # The option is referenced via a variable to avoid confusing sed.
14405
 
   lt_compile=`echo "$ac_compile" | $SED \
14406
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408
 
   -e 's:$: $lt_compiler_flag:'`
14409
 
   (eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
14410
 
   (eval "$lt_compile" 2>conftest.err)
14411
 
   ac_status=$?
14412
 
   cat conftest.err >&5
14413
 
   echo "$as_me:14413: \$? = $ac_status" >&5
14414
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14415
 
     # The compiler can only warn and ignore the option if not recognized
14416
 
     # So say no if there are warnings other than the usual output.
14417
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14418
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14419
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14420
 
       lt_cv_prog_compiler_pic_works_F77=yes
14421
 
     fi
14422
 
   fi
14423
 
   $rm conftest*
14424
 
 
14425
 
fi
14426
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14427
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14428
 
 
14429
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14430
 
    case $lt_prog_compiler_pic_F77 in
14431
 
     "" | " "*) ;;
14432
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14433
 
     esac
14434
 
else
14435
 
    lt_prog_compiler_pic_F77=
14436
 
     lt_prog_compiler_can_build_shared_F77=no
14437
 
fi
14438
 
 
14439
 
fi
14440
 
case $host_os in
14441
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14442
 
  *djgpp*)
14443
 
    lt_prog_compiler_pic_F77=
14444
 
    ;;
14445
 
  *)
14446
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14447
 
    ;;
14448
 
esac
14449
 
 
14450
 
#
14451
 
# Check to make sure the static flag actually works.
14452
 
#
14453
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14454
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14455
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14456
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14458
 
else
14459
 
  lt_cv_prog_compiler_static_works_F77=no
14460
 
   save_LDFLAGS="$LDFLAGS"
14461
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14462
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14463
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14464
 
     # The linker can only warn and ignore the option if not recognized
14465
 
     # So say no if there are warnings
14466
 
     if test -s conftest.err; then
14467
 
       # Append any errors to the config.log.
14468
 
       cat conftest.err 1>&5
14469
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14470
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14471
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14472
 
         lt_cv_prog_compiler_static_works_F77=yes
14473
 
       fi
14474
 
     else
14475
 
       lt_cv_prog_compiler_static_works_F77=yes
14476
 
     fi
14477
 
   fi
14478
 
   $rm -r conftest*
14479
 
   LDFLAGS="$save_LDFLAGS"
14480
 
 
14481
 
fi
14482
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14483
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14484
 
 
14485
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14486
 
    :
14487
 
else
14488
 
    lt_prog_compiler_static_F77=
14489
 
fi
14490
 
 
14491
 
 
14492
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14493
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14494
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14496
 
else
14497
 
  lt_cv_prog_compiler_c_o_F77=no
14498
 
   $rm -r conftest 2>/dev/null
14499
 
   mkdir conftest
14500
 
   cd conftest
14501
 
   mkdir out
14502
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14503
 
 
14504
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14505
 
   # Insert the option either (1) after the last *FLAGS variable, or
14506
 
   # (2) before a word containing "conftest.", or (3) at the end.
14507
 
   # Note that $ac_compile itself does not contain backslashes and begins
14508
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14509
 
   lt_compile=`echo "$ac_compile" | $SED \
14510
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512
 
   -e 's:$: $lt_compiler_flag:'`
14513
 
   (eval echo "\"\$as_me:14513: $lt_compile\"" >&5)
14514
 
   (eval "$lt_compile" 2>out/conftest.err)
14515
 
   ac_status=$?
14516
 
   cat out/conftest.err >&5
14517
 
   echo "$as_me:14517: \$? = $ac_status" >&5
14518
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14519
 
   then
14520
 
     # The compiler can only warn and ignore the option if not recognized
14521
 
     # So say no if there are warnings
14522
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14523
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14524
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14525
 
       lt_cv_prog_compiler_c_o_F77=yes
14526
 
     fi
14527
 
   fi
14528
 
   chmod u+w . 2>&5
14529
 
   $rm conftest*
14530
 
   # SGI C++ compiler will create directory out/ii_files/ for
14531
 
   # template instantiation
14532
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14533
 
   $rm out/* && rmdir out
14534
 
   cd ..
14535
 
   rmdir conftest
14536
 
   $rm conftest*
14537
 
 
14538
 
fi
14539
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14540
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14541
 
 
14542
 
 
14543
 
hard_links="nottested"
14544
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14545
 
  # do not overwrite the value of need_locks provided by the user
14546
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14547
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14548
 
  hard_links=yes
14549
 
  $rm conftest*
14550
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14551
 
  touch conftest.a
14552
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14553
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14554
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14555
 
echo "${ECHO_T}$hard_links" >&6; }
14556
 
  if test "$hard_links" = no; then
14557
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14558
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14559
 
    need_locks=warn
14560
 
  fi
14561
 
else
14562
 
  need_locks=no
14563
 
fi
14564
 
 
14565
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14566
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14567
 
 
14568
 
  runpath_var=
14569
 
  allow_undefined_flag_F77=
14570
 
  enable_shared_with_static_runtimes_F77=no
14571
 
  archive_cmds_F77=
14572
 
  archive_expsym_cmds_F77=
14573
 
  old_archive_From_new_cmds_F77=
14574
 
  old_archive_from_expsyms_cmds_F77=
14575
 
  export_dynamic_flag_spec_F77=
14576
 
  whole_archive_flag_spec_F77=
14577
 
  thread_safe_flag_spec_F77=
14578
 
  hardcode_libdir_flag_spec_F77=
14579
 
  hardcode_libdir_flag_spec_ld_F77=
14580
 
  hardcode_libdir_separator_F77=
14581
 
  hardcode_direct_F77=no
14582
 
  hardcode_minus_L_F77=no
14583
 
  hardcode_shlibpath_var_F77=unsupported
14584
 
  link_all_deplibs_F77=unknown
14585
 
  hardcode_automatic_F77=no
14586
 
  module_cmds_F77=
14587
 
  module_expsym_cmds_F77=
14588
 
  always_export_symbols_F77=no
14589
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14590
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14591
 
  # included in the symbol list
14592
 
  include_expsyms_F77=
14593
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14594
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14595
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14596
 
  # as well as any symbol that contains `d'.
14597
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14598
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14599
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14600
 
  # the symbol is explicitly referenced.  Since portable code cannot
14601
 
  # rely on this symbol name, it's probably fine to never include it in
14602
 
  # preloaded symbol tables.
14603
 
  # Exclude shared library initialization/finalization symbols.
14604
 
  extract_expsyms_cmds=
14605
 
  # Just being paranoid about ensuring that cc_basename is set.
14606
 
  for cc_temp in $compiler""; do
14607
 
  case $cc_temp in
14608
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14609
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14610
 
    \-*) ;;
14611
 
    *) break;;
14612
 
  esac
14613
 
done
14614
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14615
 
 
14616
 
  case $host_os in
14617
 
  cygwin* | mingw* | pw32*)
14618
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14619
 
    # When not using gcc, we currently assume that we are using
14620
 
    # Microsoft Visual C++.
14621
 
    if test "$GCC" != yes; then
14622
 
      with_gnu_ld=no
14623
 
    fi
14624
 
    ;;
14625
 
  interix*)
14626
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14627
 
    with_gnu_ld=yes
14628
 
    ;;
14629
 
  openbsd*)
14630
 
    with_gnu_ld=no
14631
 
    ;;
14632
 
  esac
14633
 
 
14634
 
  ld_shlibs_F77=yes
14635
 
  if test "$with_gnu_ld" = yes; then
14636
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14637
 
    wlarc='${wl}'
14638
 
 
14639
 
    # Set some defaults for GNU ld with shared library support. These
14640
 
    # are reset later if shared libraries are not supported. Putting them
14641
 
    # here allows them to be overridden if necessary.
14642
 
    runpath_var=LD_RUN_PATH
14643
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14644
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14645
 
    # ancient GNU ld didn't support --whole-archive et. al.
14646
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14647
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14648
 
      else
14649
 
        whole_archive_flag_spec_F77=
14650
 
    fi
14651
 
    supports_anon_versioning=no
14652
 
    case `$LD -v 2>/dev/null` in
14653
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14654
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14655
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14656
 
      *\ 2.11.*) ;; # other 2.11 versions
14657
 
      *) supports_anon_versioning=yes ;;
14658
 
    esac
14659
 
 
14660
 
    # See if GNU ld supports shared libraries.
14661
 
    case $host_os in
14662
 
    aix[3-9]*)
14663
 
      # On AIX/PPC, the GNU linker is very broken
14664
 
      if test "$host_cpu" != ia64; then
14665
 
        ld_shlibs_F77=no
14666
 
        cat <<EOF 1>&2
14667
 
 
14668
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14669
 
*** to be unable to reliably create shared libraries on AIX.
14670
 
*** Therefore, libtool is disabling shared libraries support.  If you
14671
 
*** really care for shared libraries, you may want to modify your PATH
14672
 
*** so that a non-GNU linker is found, and then restart.
14673
 
 
14674
 
EOF
14675
 
      fi
14676
 
      ;;
14677
 
 
14678
 
    amigaos*)
14679
 
      archive_cmds_F77='$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)'
14680
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14681
 
      hardcode_minus_L_F77=yes
14682
 
 
14683
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14684
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14685
 
      # to version 4, is to share data among multiple programs linked
14686
 
      # with the same dynamic library.  Since this doesn't match the
14687
 
      # behavior of shared libraries on other platforms, we can't use
14688
 
      # them.
14689
 
      ld_shlibs_F77=no
14690
 
      ;;
14691
 
 
14692
 
    beos*)
14693
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14694
 
        allow_undefined_flag_F77=unsupported
14695
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14696
 
        # support --undefined.  This deserves some investigation.  FIXME
14697
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698
 
      else
14699
 
        ld_shlibs_F77=no
14700
 
      fi
14701
 
      ;;
14702
 
 
14703
 
    cygwin* | mingw* | pw32*)
14704
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14705
 
      # as there is no search path for DLLs.
14706
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14707
 
      allow_undefined_flag_F77=unsupported
14708
 
      always_export_symbols_F77=no
14709
 
      enable_shared_with_static_runtimes_F77=yes
14710
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14711
 
 
14712
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14713
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714
 
        # If the export-symbols file already is a .def file (1st line
14715
 
        # is EXPORTS), use it as is; otherwise, prepend...
14716
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14717
 
          cp $export_symbols $output_objdir/$soname.def;
14718
 
        else
14719
 
          echo EXPORTS > $output_objdir/$soname.def;
14720
 
          cat $export_symbols >> $output_objdir/$soname.def;
14721
 
        fi~
14722
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14723
 
      else
14724
 
        ld_shlibs_F77=no
14725
 
      fi
14726
 
      ;;
14727
 
 
14728
 
    interix[3-9]*)
14729
 
      hardcode_direct_F77=no
14730
 
      hardcode_shlibpath_var_F77=no
14731
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14732
 
      export_dynamic_flag_spec_F77='${wl}-E'
14733
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14734
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14735
 
      # default) and relocated if they conflict, which is a slow very memory
14736
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14737
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14738
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14739
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14740
 
      archive_expsym_cmds_F77='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'
14741
 
      ;;
14742
 
 
14743
 
    gnu* | linux* | k*bsd*-gnu)
14744
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14745
 
        tmp_addflag=
14746
 
        case $cc_basename,$host_cpu in
14747
 
        pgcc*)                          # Portland Group C compiler
14748
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14749
 
          tmp_addflag=' $pic_flag'
14750
 
          ;;
14751
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14752
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14753
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14754
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14755
 
          tmp_addflag=' -i_dynamic' ;;
14756
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14757
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14758
 
        ifc* | ifort*)                  # Intel Fortran compiler
14759
 
          tmp_addflag=' -nofor_main' ;;
14760
 
        esac
14761
 
        case `$CC -V 2>&1 | sed 5q` in
14762
 
        *Sun\ C*)                       # Sun C 5.9
14763
 
          whole_archive_flag_spec_F77='${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'
14764
 
          tmp_sharedflag='-G' ;;
14765
 
        *Sun\ F*)                       # Sun Fortran 8.3
14766
 
          tmp_sharedflag='-G' ;;
14767
 
        *)
14768
 
          tmp_sharedflag='-shared' ;;
14769
 
        esac
14770
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771
 
 
14772
 
        if test $supports_anon_versioning = yes; then
14773
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14774
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14775
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14776
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14777
 
        fi
14778
 
        link_all_deplibs_F77=no
14779
 
      else
14780
 
        ld_shlibs_F77=no
14781
 
      fi
14782
 
      ;;
14783
 
 
14784
 
    netbsd* | netbsdelf*-gnu)
14785
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14787
 
        wlarc=
14788
 
      else
14789
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14791
 
      fi
14792
 
      ;;
14793
 
 
14794
 
    solaris*)
14795
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14796
 
        ld_shlibs_F77=no
14797
 
        cat <<EOF 1>&2
14798
 
 
14799
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14800
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14801
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14802
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14803
 
*** your PATH or compiler configuration so that the native linker is
14804
 
*** used, and then restart.
14805
 
 
14806
 
EOF
14807
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14809
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14810
 
      else
14811
 
        ld_shlibs_F77=no
14812
 
      fi
14813
 
      ;;
14814
 
 
14815
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14816
 
      case `$LD -v 2>&1` in
14817
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14818
 
        ld_shlibs_F77=no
14819
 
        cat <<_LT_EOF 1>&2
14820
 
 
14821
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14822
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14823
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14824
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14825
 
*** your PATH or compiler configuration so that the native linker is
14826
 
*** used, and then restart.
14827
 
 
14828
 
_LT_EOF
14829
 
        ;;
14830
 
        *)
14831
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14833
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14834
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14835
 
          else
14836
 
            ld_shlibs_F77=no
14837
 
          fi
14838
 
        ;;
14839
 
      esac
14840
 
      ;;
14841
 
 
14842
 
    sunos4*)
14843
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14844
 
      wlarc=
14845
 
      hardcode_direct_F77=yes
14846
 
      hardcode_shlibpath_var_F77=no
14847
 
      ;;
14848
 
 
14849
 
    *)
14850
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14853
 
      else
14854
 
        ld_shlibs_F77=no
14855
 
      fi
14856
 
      ;;
14857
 
    esac
14858
 
 
14859
 
    if test "$ld_shlibs_F77" = no; then
14860
 
      runpath_var=
14861
 
      hardcode_libdir_flag_spec_F77=
14862
 
      export_dynamic_flag_spec_F77=
14863
 
      whole_archive_flag_spec_F77=
14864
 
    fi
14865
 
  else
14866
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14867
 
    case $host_os in
14868
 
    aix3*)
14869
 
      allow_undefined_flag_F77=unsupported
14870
 
      always_export_symbols_F77=yes
14871
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14872
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14873
 
      # are no directories specified by -L.
14874
 
      hardcode_minus_L_F77=yes
14875
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14876
 
        # Neither direct hardcoding nor static linking is supported with a
14877
 
        # broken collect2.
14878
 
        hardcode_direct_F77=unsupported
14879
 
      fi
14880
 
      ;;
14881
 
 
14882
 
    aix[4-9]*)
14883
 
      if test "$host_cpu" = ia64; then
14884
 
        # On IA64, the linker does run time linking by default, so we don't
14885
 
        # have to do anything special.
14886
 
        aix_use_runtimelinking=no
14887
 
        exp_sym_flag='-Bexport'
14888
 
        no_entry_flag=""
14889
 
      else
14890
 
        # If we're using GNU nm, then we don't want the "-C" option.
14891
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14892
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14893
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14894
 
        else
14895
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14896
 
        fi
14897
 
        aix_use_runtimelinking=no
14898
 
 
14899
 
        # Test if we are trying to use run time linking or normal
14900
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14901
 
        # need to do runtime linking.
14902
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14903
 
          for ld_flag in $LDFLAGS; do
14904
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14905
 
            aix_use_runtimelinking=yes
14906
 
            break
14907
 
          fi
14908
 
          done
14909
 
          ;;
14910
 
        esac
14911
 
 
14912
 
        exp_sym_flag='-bexport'
14913
 
        no_entry_flag='-bnoentry'
14914
 
      fi
14915
 
 
14916
 
      # When large executables or shared objects are built, AIX ld can
14917
 
      # have problems creating the table of contents.  If linking a library
14918
 
      # or program results in "error TOC overflow" add -mminimal-toc to
14919
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14920
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14921
 
 
14922
 
      archive_cmds_F77=''
14923
 
      hardcode_direct_F77=yes
14924
 
      hardcode_libdir_separator_F77=':'
14925
 
      link_all_deplibs_F77=yes
14926
 
 
14927
 
      if test "$GCC" = yes; then
14928
 
        case $host_os in aix4.[012]|aix4.[012].*)
14929
 
        # We only want to do this on AIX 4.2 and lower, the check
14930
 
        # below for broken collect2 doesn't work under 4.3+
14931
 
          collect2name=`${CC} -print-prog-name=collect2`
14932
 
          if test -f "$collect2name" && \
14933
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14934
 
          then
14935
 
          # We have reworked collect2
14936
 
          :
14937
 
          else
14938
 
          # We have old collect2
14939
 
          hardcode_direct_F77=unsupported
14940
 
          # It fails to find uninstalled libraries when the uninstalled
14941
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
14942
 
          # to unsupported forces relinking
14943
 
          hardcode_minus_L_F77=yes
14944
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14945
 
          hardcode_libdir_separator_F77=
14946
 
          fi
14947
 
          ;;
14948
 
        esac
14949
 
        shared_flag='-shared'
14950
 
        if test "$aix_use_runtimelinking" = yes; then
14951
 
          shared_flag="$shared_flag "'${wl}-G'
14952
 
        fi
14953
 
      else
14954
 
        # not using gcc
14955
 
        if test "$host_cpu" = ia64; then
14956
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14957
 
        # chokes on -Wl,-G. The following line is correct:
14958
 
          shared_flag='-G'
14959
 
        else
14960
 
          if test "$aix_use_runtimelinking" = yes; then
14961
 
            shared_flag='${wl}-G'
14962
 
          else
14963
 
            shared_flag='${wl}-bM:SRE'
14964
 
          fi
14965
 
        fi
14966
 
      fi
14967
 
 
14968
 
      # It seems that -bexpall does not export symbols beginning with
14969
 
      # underscore (_), so it is better to generate a list of symbols to export.
14970
 
      always_export_symbols_F77=yes
14971
 
      if test "$aix_use_runtimelinking" = yes; then
14972
 
        # Warning - without using the other runtime loading flags (-brtl),
14973
 
        # -berok will link without error, but may produce a broken library.
14974
 
        allow_undefined_flag_F77='-berok'
14975
 
       # Determine the default libpath from the value encoded in an empty executable.
14976
 
       cat >conftest.$ac_ext <<_ACEOF
14977
 
      program main
14978
 
 
14979
 
      end
14980
 
_ACEOF
14981
 
rm -f conftest.$ac_objext conftest$ac_exeext
14982
 
if { (ac_try="$ac_link"
14983
 
case "(($ac_try" in
14984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985
 
  *) ac_try_echo=$ac_try;;
14986
 
esac
14987
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988
 
  (eval "$ac_link") 2>conftest.er1
14989
 
  ac_status=$?
14990
 
  grep -v '^ *+' conftest.er1 >conftest.err
14991
 
  rm -f conftest.er1
14992
 
  cat conftest.err >&5
14993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994
 
  (exit $ac_status); } && {
14995
 
         test -z "$ac_f77_werror_flag" ||
14996
 
         test ! -s conftest.err
14997
 
       } && test -s conftest$ac_exeext &&
14998
 
       $as_test_x conftest$ac_exeext; then
14999
 
 
15000
 
lt_aix_libpath_sed='
15001
 
    /Import File Strings/,/^$/ {
15002
 
        /^0/ {
15003
 
            s/^0  *\(.*\)$/\1/
15004
 
            p
15005
 
        }
15006
 
    }'
15007
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15008
 
# Check for a 64-bit object if we didn't find anything.
15009
 
if test -z "$aix_libpath"; then
15010
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15011
 
fi
15012
 
else
15013
 
  echo "$as_me: failed program was:" >&5
15014
 
sed 's/^/| /' conftest.$ac_ext >&5
15015
 
 
15016
 
 
15017
 
fi
15018
 
 
15019
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15020
 
      conftest$ac_exeext conftest.$ac_ext
15021
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15022
 
 
15023
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15024
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15025
 
       else
15026
 
        if test "$host_cpu" = ia64; then
15027
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15028
 
          allow_undefined_flag_F77="-z nodefs"
15029
 
          archive_expsym_cmds_F77="\$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"
15030
 
        else
15031
 
         # Determine the default libpath from the value encoded in an empty executable.
15032
 
         cat >conftest.$ac_ext <<_ACEOF
15033
 
      program main
15034
 
 
15035
 
      end
15036
 
_ACEOF
15037
 
rm -f conftest.$ac_objext conftest$ac_exeext
15038
 
if { (ac_try="$ac_link"
15039
 
case "(($ac_try" in
15040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041
 
  *) ac_try_echo=$ac_try;;
15042
 
esac
15043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044
 
  (eval "$ac_link") 2>conftest.er1
15045
 
  ac_status=$?
15046
 
  grep -v '^ *+' conftest.er1 >conftest.err
15047
 
  rm -f conftest.er1
15048
 
  cat conftest.err >&5
15049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050
 
  (exit $ac_status); } && {
15051
 
         test -z "$ac_f77_werror_flag" ||
15052
 
         test ! -s conftest.err
15053
 
       } && test -s conftest$ac_exeext &&
15054
 
       $as_test_x conftest$ac_exeext; then
15055
 
 
15056
 
lt_aix_libpath_sed='
15057
 
    /Import File Strings/,/^$/ {
15058
 
        /^0/ {
15059
 
            s/^0  *\(.*\)$/\1/
15060
 
            p
15061
 
        }
15062
 
    }'
15063
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15064
 
# Check for a 64-bit object if we didn't find anything.
15065
 
if test -z "$aix_libpath"; then
15066
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067
 
fi
15068
 
else
15069
 
  echo "$as_me: failed program was:" >&5
15070
 
sed 's/^/| /' conftest.$ac_ext >&5
15071
 
 
15072
 
 
15073
 
fi
15074
 
 
15075
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076
 
      conftest$ac_exeext conftest.$ac_ext
15077
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15078
 
 
15079
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15080
 
          # Warning - without using the other run time loading flags,
15081
 
          # -berok will link without error, but may produce a broken library.
15082
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15083
 
          allow_undefined_flag_F77=' ${wl}-berok'
15084
 
          # Exported symbols can be pulled into shared objects from archives
15085
 
          whole_archive_flag_spec_F77='$convenience'
15086
 
          archive_cmds_need_lc_F77=yes
15087
 
          # This is similar to how AIX traditionally builds its shared libraries.
15088
 
          archive_expsym_cmds_F77="\$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'
15089
 
        fi
15090
 
      fi
15091
 
      ;;
15092
 
 
15093
 
    amigaos*)
15094
 
      archive_cmds_F77='$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)'
15095
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15096
 
      hardcode_minus_L_F77=yes
15097
 
      # see comment about different semantics on the GNU ld section
15098
 
      ld_shlibs_F77=no
15099
 
      ;;
15100
 
 
15101
 
    bsdi[45]*)
15102
 
      export_dynamic_flag_spec_F77=-rdynamic
15103
 
      ;;
15104
 
 
15105
 
    cygwin* | mingw* | pw32*)
15106
 
      # When not using gcc, we currently assume that we are using
15107
 
      # Microsoft Visual C++.
15108
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15109
 
      # no search path for DLLs.
15110
 
      hardcode_libdir_flag_spec_F77=' '
15111
 
      allow_undefined_flag_F77=unsupported
15112
 
      # Tell ltmain to make .lib files, not .a files.
15113
 
      libext=lib
15114
 
      # Tell ltmain to make .dll files, not .so files.
15115
 
      shrext_cmds=".dll"
15116
 
      # FIXME: Setting linknames here is a bad hack.
15117
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15118
 
      # The linker will automatically build a .lib file if we build a DLL.
15119
 
      old_archive_From_new_cmds_F77='true'
15120
 
      # FIXME: Should let the user specify the lib program.
15121
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15122
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15123
 
      enable_shared_with_static_runtimes_F77=yes
15124
 
      ;;
15125
 
 
15126
 
    darwin* | rhapsody*)
15127
 
      case $host_os in
15128
 
        rhapsody* | darwin1.[012])
15129
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15130
 
         ;;
15131
 
       *) # Darwin 1.3 on
15132
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15133
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15134
 
         else
15135
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15136
 
             10.[012])
15137
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15138
 
               ;;
15139
 
             10.*)
15140
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15141
 
               ;;
15142
 
           esac
15143
 
         fi
15144
 
         ;;
15145
 
      esac
15146
 
      archive_cmds_need_lc_F77=no
15147
 
      hardcode_direct_F77=no
15148
 
      hardcode_automatic_F77=yes
15149
 
      hardcode_shlibpath_var_F77=unsupported
15150
 
      whole_archive_flag_spec_F77=''
15151
 
      link_all_deplibs_F77=yes
15152
 
    if test "$GCC" = yes ; then
15153
 
        output_verbose_link_cmd='echo'
15154
 
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15155
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15156
 
        archive_expsym_cmds_F77="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}"
15157
 
        module_expsym_cmds_F77="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}"
15158
 
    else
15159
 
      case $cc_basename in
15160
 
        xlc*)
15161
 
         output_verbose_link_cmd='echo'
15162
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15163
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15164
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15165
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15166
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15167
 
          ;;
15168
 
       *)
15169
 
         ld_shlibs_F77=no
15170
 
          ;;
15171
 
      esac
15172
 
    fi
15173
 
      ;;
15174
 
 
15175
 
    dgux*)
15176
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15177
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15178
 
      hardcode_shlibpath_var_F77=no
15179
 
      ;;
15180
 
 
15181
 
    freebsd1*)
15182
 
      ld_shlibs_F77=no
15183
 
      ;;
15184
 
 
15185
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15186
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15187
 
    # does not break anything, and helps significantly (at the cost of a little
15188
 
    # extra space).
15189
 
    freebsd2.2*)
15190
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15191
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15192
 
      hardcode_direct_F77=yes
15193
 
      hardcode_shlibpath_var_F77=no
15194
 
      ;;
15195
 
 
15196
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15197
 
    freebsd2*)
15198
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199
 
      hardcode_direct_F77=yes
15200
 
      hardcode_minus_L_F77=yes
15201
 
      hardcode_shlibpath_var_F77=no
15202
 
      ;;
15203
 
 
15204
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15205
 
    freebsd* | dragonfly*)
15206
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15207
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15208
 
      hardcode_direct_F77=yes
15209
 
      hardcode_shlibpath_var_F77=no
15210
 
      ;;
15211
 
 
15212
 
    hpux9*)
15213
 
      if test "$GCC" = yes; then
15214
 
        archive_cmds_F77='$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'
15215
 
      else
15216
 
        archive_cmds_F77='$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'
15217
 
      fi
15218
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15219
 
      hardcode_libdir_separator_F77=:
15220
 
      hardcode_direct_F77=yes
15221
 
 
15222
 
      # hardcode_minus_L: Not really in the search PATH,
15223
 
      # but as the default location of the library.
15224
 
      hardcode_minus_L_F77=yes
15225
 
      export_dynamic_flag_spec_F77='${wl}-E'
15226
 
      ;;
15227
 
 
15228
 
    hpux10*)
15229
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15230
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15231
 
      else
15232
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15233
 
      fi
15234
 
      if test "$with_gnu_ld" = no; then
15235
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236
 
        hardcode_libdir_separator_F77=:
15237
 
 
15238
 
        hardcode_direct_F77=yes
15239
 
        export_dynamic_flag_spec_F77='${wl}-E'
15240
 
 
15241
 
        # hardcode_minus_L: Not really in the search PATH,
15242
 
        # but as the default location of the library.
15243
 
        hardcode_minus_L_F77=yes
15244
 
      fi
15245
 
      ;;
15246
 
 
15247
 
    hpux11*)
15248
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15249
 
        case $host_cpu in
15250
 
        hppa*64*)
15251
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252
 
          ;;
15253
 
        ia64*)
15254
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15255
 
          ;;
15256
 
        *)
15257
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258
 
          ;;
15259
 
        esac
15260
 
      else
15261
 
        case $host_cpu in
15262
 
        hppa*64*)
15263
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15264
 
          ;;
15265
 
        ia64*)
15266
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15267
 
          ;;
15268
 
        *)
15269
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15270
 
          ;;
15271
 
        esac
15272
 
      fi
15273
 
      if test "$with_gnu_ld" = no; then
15274
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15275
 
        hardcode_libdir_separator_F77=:
15276
 
 
15277
 
        case $host_cpu in
15278
 
        hppa*64*|ia64*)
15279
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15280
 
          hardcode_direct_F77=no
15281
 
          hardcode_shlibpath_var_F77=no
15282
 
          ;;
15283
 
        *)
15284
 
          hardcode_direct_F77=yes
15285
 
          export_dynamic_flag_spec_F77='${wl}-E'
15286
 
 
15287
 
          # hardcode_minus_L: Not really in the search PATH,
15288
 
          # but as the default location of the library.
15289
 
          hardcode_minus_L_F77=yes
15290
 
          ;;
15291
 
        esac
15292
 
      fi
15293
 
      ;;
15294
 
 
15295
 
    irix5* | irix6* | nonstopux*)
15296
 
      if test "$GCC" = yes; then
15297
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15298
 
      else
15299
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15300
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15301
 
      fi
15302
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15303
 
      hardcode_libdir_separator_F77=:
15304
 
      link_all_deplibs_F77=yes
15305
 
      ;;
15306
 
 
15307
 
    netbsd* | netbsdelf*-gnu)
15308
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15309
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15310
 
      else
15311
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15312
 
      fi
15313
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15314
 
      hardcode_direct_F77=yes
15315
 
      hardcode_shlibpath_var_F77=no
15316
 
      ;;
15317
 
 
15318
 
    newsos6)
15319
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320
 
      hardcode_direct_F77=yes
15321
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322
 
      hardcode_libdir_separator_F77=:
15323
 
      hardcode_shlibpath_var_F77=no
15324
 
      ;;
15325
 
 
15326
 
    openbsd*)
15327
 
      if test -f /usr/libexec/ld.so; then
15328
 
        hardcode_direct_F77=yes
15329
 
        hardcode_shlibpath_var_F77=no
15330
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15331
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15333
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15334
 
          export_dynamic_flag_spec_F77='${wl}-E'
15335
 
        else
15336
 
          case $host_os in
15337
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15338
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15340
 
             ;;
15341
 
           *)
15342
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15343
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15344
 
             ;;
15345
 
          esac
15346
 
        fi
15347
 
      else
15348
 
        ld_shlibs_F77=no
15349
 
      fi
15350
 
      ;;
15351
 
 
15352
 
    os2*)
15353
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15354
 
      hardcode_minus_L_F77=yes
15355
 
      allow_undefined_flag_F77=unsupported
15356
 
      archive_cmds_F77='$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'
15357
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15358
 
      ;;
15359
 
 
15360
 
    osf3*)
15361
 
      if test "$GCC" = yes; then
15362
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15363
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15364
 
      else
15365
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15366
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15367
 
      fi
15368
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369
 
      hardcode_libdir_separator_F77=:
15370
 
      ;;
15371
 
 
15372
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15373
 
      if test "$GCC" = yes; then
15374
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15375
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15376
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15377
 
      else
15378
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15379
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15380
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15381
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15382
 
 
15383
 
        # Both c and cxx compiler support -rpath directly
15384
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15385
 
      fi
15386
 
      hardcode_libdir_separator_F77=:
15387
 
      ;;
15388
 
 
15389
 
    solaris*)
15390
 
      no_undefined_flag_F77=' -z text'
15391
 
      if test "$GCC" = yes; then
15392
 
        wlarc='${wl}'
15393
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15395
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15396
 
      else
15397
 
        wlarc=''
15398
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15400
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15401
 
      fi
15402
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15403
 
      hardcode_shlibpath_var_F77=no
15404
 
      case $host_os in
15405
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15406
 
      *)
15407
 
        # The compiler driver will combine and reorder linker options,
15408
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15409
 
        # but is careful enough not to reorder.
15410
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15411
 
        if test "$GCC" = yes; then
15412
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15413
 
        else
15414
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15415
 
        fi
15416
 
        ;;
15417
 
      esac
15418
 
      link_all_deplibs_F77=yes
15419
 
      ;;
15420
 
 
15421
 
    sunos4*)
15422
 
      if test "x$host_vendor" = xsequent; then
15423
 
        # Use $CC to link under sequent, because it throws in some extra .o
15424
 
        # files that make .init and .fini sections work.
15425
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15426
 
      else
15427
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15428
 
      fi
15429
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15430
 
      hardcode_direct_F77=yes
15431
 
      hardcode_minus_L_F77=yes
15432
 
      hardcode_shlibpath_var_F77=no
15433
 
      ;;
15434
 
 
15435
 
    sysv4)
15436
 
      case $host_vendor in
15437
 
        sni)
15438
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439
 
          hardcode_direct_F77=yes # is this really true???
15440
 
        ;;
15441
 
        siemens)
15442
 
          ## LD is ld it makes a PLAMLIB
15443
 
          ## CC just makes a GrossModule.
15444
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15445
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15446
 
          hardcode_direct_F77=no
15447
 
        ;;
15448
 
        motorola)
15449
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15451
 
        ;;
15452
 
      esac
15453
 
      runpath_var='LD_RUN_PATH'
15454
 
      hardcode_shlibpath_var_F77=no
15455
 
      ;;
15456
 
 
15457
 
    sysv4.3*)
15458
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459
 
      hardcode_shlibpath_var_F77=no
15460
 
      export_dynamic_flag_spec_F77='-Bexport'
15461
 
      ;;
15462
 
 
15463
 
    sysv4*MP*)
15464
 
      if test -d /usr/nec; then
15465
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466
 
        hardcode_shlibpath_var_F77=no
15467
 
        runpath_var=LD_RUN_PATH
15468
 
        hardcode_runpath_var=yes
15469
 
        ld_shlibs_F77=yes
15470
 
      fi
15471
 
      ;;
15472
 
 
15473
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15474
 
      no_undefined_flag_F77='${wl}-z,text'
15475
 
      archive_cmds_need_lc_F77=no
15476
 
      hardcode_shlibpath_var_F77=no
15477
 
      runpath_var='LD_RUN_PATH'
15478
 
 
15479
 
      if test "$GCC" = yes; then
15480
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15482
 
      else
15483
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485
 
      fi
15486
 
      ;;
15487
 
 
15488
 
    sysv5* | sco3.2v5* | sco5v6*)
15489
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15490
 
      # link with -lc, and that would cause any symbols used from libc to
15491
 
      # always be unresolved, which means just about no library would
15492
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15493
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15494
 
      # as -z defs.
15495
 
      no_undefined_flag_F77='${wl}-z,text'
15496
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15497
 
      archive_cmds_need_lc_F77=no
15498
 
      hardcode_shlibpath_var_F77=no
15499
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15500
 
      hardcode_libdir_separator_F77=':'
15501
 
      link_all_deplibs_F77=yes
15502
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15503
 
      runpath_var='LD_RUN_PATH'
15504
 
 
15505
 
      if test "$GCC" = yes; then
15506
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508
 
      else
15509
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511
 
      fi
15512
 
      ;;
15513
 
 
15514
 
    uts4*)
15515
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15517
 
      hardcode_shlibpath_var_F77=no
15518
 
      ;;
15519
 
 
15520
 
    *)
15521
 
      ld_shlibs_F77=no
15522
 
      ;;
15523
 
    esac
15524
 
  fi
15525
 
 
15526
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15527
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15528
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15529
 
 
15530
 
#
15531
 
# Do we need to explicitly link libc?
15532
 
#
15533
 
case "x$archive_cmds_need_lc_F77" in
15534
 
x|xyes)
15535
 
  # Assume -lc should be added
15536
 
  archive_cmds_need_lc_F77=yes
15537
 
 
15538
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15539
 
    case $archive_cmds_F77 in
15540
 
    *'~'*)
15541
 
      # FIXME: we may have to deal with multi-command sequences.
15542
 
      ;;
15543
 
    '$CC '*)
15544
 
      # Test whether the compiler implicitly links with -lc since on some
15545
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15546
 
      # to ld, don't add -lc before -lgcc.
15547
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15548
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15549
 
      $rm conftest*
15550
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15551
 
 
15552
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553
 
  (eval $ac_compile) 2>&5
15554
 
  ac_status=$?
15555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556
 
  (exit $ac_status); } 2>conftest.err; then
15557
 
        soname=conftest
15558
 
        lib=conftest
15559
 
        libobjs=conftest.$ac_objext
15560
 
        deplibs=
15561
 
        wl=$lt_prog_compiler_wl_F77
15562
 
        pic_flag=$lt_prog_compiler_pic_F77
15563
 
        compiler_flags=-v
15564
 
        linker_flags=-v
15565
 
        verstring=
15566
 
        output_objdir=.
15567
 
        libname=conftest
15568
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15569
 
        allow_undefined_flag_F77=
15570
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15571
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15572
 
  ac_status=$?
15573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574
 
  (exit $ac_status); }
15575
 
        then
15576
 
          archive_cmds_need_lc_F77=no
15577
 
        else
15578
 
          archive_cmds_need_lc_F77=yes
15579
 
        fi
15580
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15581
 
      else
15582
 
        cat conftest.err 1>&5
15583
 
      fi
15584
 
      $rm conftest*
15585
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15586
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15587
 
      ;;
15588
 
    esac
15589
 
  fi
15590
 
  ;;
15591
 
esac
15592
 
 
15593
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15594
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15595
 
library_names_spec=
15596
 
libname_spec='lib$name'
15597
 
soname_spec=
15598
 
shrext_cmds=".so"
15599
 
postinstall_cmds=
15600
 
postuninstall_cmds=
15601
 
finish_cmds=
15602
 
finish_eval=
15603
 
shlibpath_var=
15604
 
shlibpath_overrides_runpath=unknown
15605
 
version_type=none
15606
 
dynamic_linker="$host_os ld.so"
15607
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15608
 
 
15609
 
need_lib_prefix=unknown
15610
 
hardcode_into_libs=no
15611
 
 
15612
 
# when you set need_version to no, make sure it does not cause -set_version
15613
 
# flags to be left without arguments
15614
 
need_version=unknown
15615
 
 
15616
 
case $host_os in
15617
 
aix3*)
15618
 
  version_type=linux
15619
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15620
 
  shlibpath_var=LIBPATH
15621
 
 
15622
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15623
 
  soname_spec='${libname}${release}${shared_ext}$major'
15624
 
  ;;
15625
 
 
15626
 
aix[4-9]*)
15627
 
  version_type=linux
15628
 
  need_lib_prefix=no
15629
 
  need_version=no
15630
 
  hardcode_into_libs=yes
15631
 
  if test "$host_cpu" = ia64; then
15632
 
    # AIX 5 supports IA64
15633
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15634
 
    shlibpath_var=LD_LIBRARY_PATH
15635
 
  else
15636
 
    # With GCC up to 2.95.x, collect2 would create an import file
15637
 
    # for dependence libraries.  The import file would start with
15638
 
    # the line `#! .'.  This would cause the generated library to
15639
 
    # depend on `.', always an invalid library.  This was fixed in
15640
 
    # development snapshots of GCC prior to 3.0.
15641
 
    case $host_os in
15642
 
      aix4 | aix4.[01] | aix4.[01].*)
15643
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15644
 
           echo ' yes '
15645
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15646
 
        :
15647
 
      else
15648
 
        can_build_shared=no
15649
 
      fi
15650
 
      ;;
15651
 
    esac
15652
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15653
 
    # soname into executable. Probably we can add versioning support to
15654
 
    # collect2, so additional links can be useful in future.
15655
 
    if test "$aix_use_runtimelinking" = yes; then
15656
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15657
 
      # instead of lib<name>.a to let people know that these are not
15658
 
      # typical AIX shared libraries.
15659
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660
 
    else
15661
 
      # We preserve .a as extension for shared libraries through AIX4.2
15662
 
      # and later when we are not doing run time linking.
15663
 
      library_names_spec='${libname}${release}.a $libname.a'
15664
 
      soname_spec='${libname}${release}${shared_ext}$major'
15665
 
    fi
15666
 
    shlibpath_var=LIBPATH
15667
 
  fi
15668
 
  ;;
15669
 
 
15670
 
amigaos*)
15671
 
  library_names_spec='$libname.ixlibrary $libname.a'
15672
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15673
 
  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'
15674
 
  ;;
15675
 
 
15676
 
beos*)
15677
 
  library_names_spec='${libname}${shared_ext}'
15678
 
  dynamic_linker="$host_os ld.so"
15679
 
  shlibpath_var=LIBRARY_PATH
15680
 
  ;;
15681
 
 
15682
 
bsdi[45]*)
15683
 
  version_type=linux
15684
 
  need_version=no
15685
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686
 
  soname_spec='${libname}${release}${shared_ext}$major'
15687
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15688
 
  shlibpath_var=LD_LIBRARY_PATH
15689
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15690
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15691
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15692
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15693
 
  # libtool to hard-code these into programs
15694
 
  ;;
15695
 
 
15696
 
cygwin* | mingw* | pw32*)
15697
 
  version_type=windows
15698
 
  shrext_cmds=".dll"
15699
 
  need_version=no
15700
 
  need_lib_prefix=no
15701
 
 
15702
 
  case $GCC,$host_os in
15703
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15704
 
    library_names_spec='$libname.dll.a'
15705
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706
 
    postinstall_cmds='base_file=`basename \${file}`~
15707
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15708
 
      dldir=$destdir/`dirname \$dlpath`~
15709
 
      test -d \$dldir || mkdir -p \$dldir~
15710
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15711
 
      chmod a+x \$dldir/$dlname'
15712
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15713
 
      dlpath=$dir/\$dldll~
15714
 
       $rm \$dlpath'
15715
 
    shlibpath_overrides_runpath=yes
15716
 
 
15717
 
    case $host_os in
15718
 
    cygwin*)
15719
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15720
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15722
 
      ;;
15723
 
    mingw*)
15724
 
      # MinGW DLLs use traditional 'lib' prefix
15725
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15726
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15727
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15728
 
        # It is most probably a Windows format PATH printed by
15729
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15730
 
        # path with ; separators, and with drive letters. We can handle the
15731
 
        # drive letters (cygwin fileutils understands them), so leave them,
15732
 
        # especially as we might pass files found there to a mingw objdump,
15733
 
        # which wouldn't understand a cygwinified path. Ahh.
15734
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15735
 
      else
15736
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15737
 
      fi
15738
 
      ;;
15739
 
    pw32*)
15740
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15741
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742
 
      ;;
15743
 
    esac
15744
 
    ;;
15745
 
 
15746
 
  *)
15747
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15748
 
    ;;
15749
 
  esac
15750
 
  dynamic_linker='Win32 ld.exe'
15751
 
  # FIXME: first we should search . and the directory the executable is in
15752
 
  shlibpath_var=PATH
15753
 
  ;;
15754
 
 
15755
 
darwin* | rhapsody*)
15756
 
  dynamic_linker="$host_os dyld"
15757
 
  version_type=darwin
15758
 
  need_lib_prefix=no
15759
 
  need_version=no
15760
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15761
 
  soname_spec='${libname}${release}${major}$shared_ext'
15762
 
  shlibpath_overrides_runpath=yes
15763
 
  shlibpath_var=DYLD_LIBRARY_PATH
15764
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15765
 
 
15766
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15767
 
  ;;
15768
 
 
15769
 
dgux*)
15770
 
  version_type=linux
15771
 
  need_lib_prefix=no
15772
 
  need_version=no
15773
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15774
 
  soname_spec='${libname}${release}${shared_ext}$major'
15775
 
  shlibpath_var=LD_LIBRARY_PATH
15776
 
  ;;
15777
 
 
15778
 
freebsd1*)
15779
 
  dynamic_linker=no
15780
 
  ;;
15781
 
 
15782
 
freebsd* | dragonfly*)
15783
 
  # DragonFly does not have aout.  When/if they implement a new
15784
 
  # versioning mechanism, adjust this.
15785
 
  if test -x /usr/bin/objformat; then
15786
 
    objformat=`/usr/bin/objformat`
15787
 
  else
15788
 
    case $host_os in
15789
 
    freebsd[123]*) objformat=aout ;;
15790
 
    *) objformat=elf ;;
15791
 
    esac
15792
 
  fi
15793
 
  version_type=freebsd-$objformat
15794
 
  case $version_type in
15795
 
    freebsd-elf*)
15796
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15797
 
      need_version=no
15798
 
      need_lib_prefix=no
15799
 
      ;;
15800
 
    freebsd-*)
15801
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802
 
      need_version=yes
15803
 
      ;;
15804
 
  esac
15805
 
  shlibpath_var=LD_LIBRARY_PATH
15806
 
  case $host_os in
15807
 
  freebsd2*)
15808
 
    shlibpath_overrides_runpath=yes
15809
 
    ;;
15810
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15811
 
    shlibpath_overrides_runpath=yes
15812
 
    hardcode_into_libs=yes
15813
 
    ;;
15814
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15815
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15816
 
    shlibpath_overrides_runpath=no
15817
 
    hardcode_into_libs=yes
15818
 
    ;;
15819
 
  *) # from 4.6 on, and DragonFly
15820
 
    shlibpath_overrides_runpath=yes
15821
 
    hardcode_into_libs=yes
15822
 
    ;;
15823
 
  esac
15824
 
  ;;
15825
 
 
15826
 
gnu*)
15827
 
  version_type=linux
15828
 
  need_lib_prefix=no
15829
 
  need_version=no
15830
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15831
 
  soname_spec='${libname}${release}${shared_ext}$major'
15832
 
  shlibpath_var=LD_LIBRARY_PATH
15833
 
  hardcode_into_libs=yes
15834
 
  ;;
15835
 
 
15836
 
hpux9* | hpux10* | hpux11*)
15837
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15838
 
  # link against other versions.
15839
 
  version_type=sunos
15840
 
  need_lib_prefix=no
15841
 
  need_version=no
15842
 
  case $host_cpu in
15843
 
  ia64*)
15844
 
    shrext_cmds='.so'
15845
 
    hardcode_into_libs=yes
15846
 
    dynamic_linker="$host_os dld.so"
15847
 
    shlibpath_var=LD_LIBRARY_PATH
15848
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15849
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850
 
    soname_spec='${libname}${release}${shared_ext}$major'
15851
 
    if test "X$HPUX_IA64_MODE" = X32; then
15852
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15853
 
    else
15854
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15855
 
    fi
15856
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857
 
    ;;
15858
 
   hppa*64*)
15859
 
     shrext_cmds='.sl'
15860
 
     hardcode_into_libs=yes
15861
 
     dynamic_linker="$host_os dld.sl"
15862
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15863
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15864
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865
 
     soname_spec='${libname}${release}${shared_ext}$major'
15866
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15867
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15868
 
     ;;
15869
 
   *)
15870
 
    shrext_cmds='.sl'
15871
 
    dynamic_linker="$host_os dld.sl"
15872
 
    shlibpath_var=SHLIB_PATH
15873
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15874
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875
 
    soname_spec='${libname}${release}${shared_ext}$major'
15876
 
    ;;
15877
 
  esac
15878
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15879
 
  postinstall_cmds='chmod 555 $lib'
15880
 
  ;;
15881
 
 
15882
 
interix[3-9]*)
15883
 
  version_type=linux
15884
 
  need_lib_prefix=no
15885
 
  need_version=no
15886
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15887
 
  soname_spec='${libname}${release}${shared_ext}$major'
15888
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15889
 
  shlibpath_var=LD_LIBRARY_PATH
15890
 
  shlibpath_overrides_runpath=no
15891
 
  hardcode_into_libs=yes
15892
 
  ;;
15893
 
 
15894
 
irix5* | irix6* | nonstopux*)
15895
 
  case $host_os in
15896
 
    nonstopux*) version_type=nonstopux ;;
15897
 
    *)
15898
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15899
 
                version_type=linux
15900
 
        else
15901
 
                version_type=irix
15902
 
        fi ;;
15903
 
  esac
15904
 
  need_lib_prefix=no
15905
 
  need_version=no
15906
 
  soname_spec='${libname}${release}${shared_ext}$major'
15907
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15908
 
  case $host_os in
15909
 
  irix5* | nonstopux*)
15910
 
    libsuff= shlibsuff=
15911
 
    ;;
15912
 
  *)
15913
 
    case $LD in # libtool.m4 will add one of these switches to LD
15914
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15915
 
      libsuff= shlibsuff= libmagic=32-bit;;
15916
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15917
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15918
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15919
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15920
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15921
 
    esac
15922
 
    ;;
15923
 
  esac
15924
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15925
 
  shlibpath_overrides_runpath=no
15926
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15927
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15928
 
  hardcode_into_libs=yes
15929
 
  ;;
15930
 
 
15931
 
# No shared lib support for Linux oldld, aout, or coff.
15932
 
linux*oldld* | linux*aout* | linux*coff*)
15933
 
  dynamic_linker=no
15934
 
  ;;
15935
 
 
15936
 
# This must be Linux ELF.
15937
 
linux* | k*bsd*-gnu)
15938
 
  version_type=linux
15939
 
  need_lib_prefix=no
15940
 
  need_version=no
15941
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942
 
  soname_spec='${libname}${release}${shared_ext}$major'
15943
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15944
 
  shlibpath_var=LD_LIBRARY_PATH
15945
 
  shlibpath_overrides_runpath=no
15946
 
  # This implies no fast_install, which is unacceptable.
15947
 
  # Some rework will be needed to allow for fast_install
15948
 
  # before this can be enabled.
15949
 
  hardcode_into_libs=yes
15950
 
 
15951
 
  # Append ld.so.conf contents to the search path
15952
 
  if test -f /etc/ld.so.conf; then
15953
 
    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' ' '`
15954
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15955
 
  fi
15956
 
 
15957
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15958
 
  # powerpc, because MkLinux only supported shared libraries with the
15959
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15960
 
  # most powerpc-linux boxes support dynamic linking these days and
15961
 
  # people can always --disable-shared, the test was removed, and we
15962
 
  # assume the GNU/Linux dynamic linker is in use.
15963
 
  dynamic_linker='GNU/Linux ld.so'
15964
 
  ;;
15965
 
 
15966
 
netbsdelf*-gnu)
15967
 
  version_type=linux
15968
 
  need_lib_prefix=no
15969
 
  need_version=no
15970
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15971
 
  soname_spec='${libname}${release}${shared_ext}$major'
15972
 
  shlibpath_var=LD_LIBRARY_PATH
15973
 
  shlibpath_overrides_runpath=no
15974
 
  hardcode_into_libs=yes
15975
 
  dynamic_linker='NetBSD ld.elf_so'
15976
 
  ;;
15977
 
 
15978
 
netbsd*)
15979
 
  version_type=sunos
15980
 
  need_lib_prefix=no
15981
 
  need_version=no
15982
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15983
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15984
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15985
 
    dynamic_linker='NetBSD (a.out) ld.so'
15986
 
  else
15987
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15988
 
    soname_spec='${libname}${release}${shared_ext}$major'
15989
 
    dynamic_linker='NetBSD ld.elf_so'
15990
 
  fi
15991
 
  shlibpath_var=LD_LIBRARY_PATH
15992
 
  shlibpath_overrides_runpath=yes
15993
 
  hardcode_into_libs=yes
15994
 
  ;;
15995
 
 
15996
 
newsos6)
15997
 
  version_type=linux
15998
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999
 
  shlibpath_var=LD_LIBRARY_PATH
16000
 
  shlibpath_overrides_runpath=yes
16001
 
  ;;
16002
 
 
16003
 
nto-qnx*)
16004
 
  version_type=linux
16005
 
  need_lib_prefix=no
16006
 
  need_version=no
16007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008
 
  soname_spec='${libname}${release}${shared_ext}$major'
16009
 
  shlibpath_var=LD_LIBRARY_PATH
16010
 
  shlibpath_overrides_runpath=yes
16011
 
  ;;
16012
 
 
16013
 
openbsd*)
16014
 
  version_type=sunos
16015
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16016
 
  need_lib_prefix=no
16017
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16018
 
  case $host_os in
16019
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16020
 
    *)                         need_version=no  ;;
16021
 
  esac
16022
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16023
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16024
 
  shlibpath_var=LD_LIBRARY_PATH
16025
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16026
 
    case $host_os in
16027
 
      openbsd2.[89] | openbsd2.[89].*)
16028
 
        shlibpath_overrides_runpath=no
16029
 
        ;;
16030
 
      *)
16031
 
        shlibpath_overrides_runpath=yes
16032
 
        ;;
16033
 
      esac
16034
 
  else
16035
 
    shlibpath_overrides_runpath=yes
16036
 
  fi
16037
 
  ;;
16038
 
 
16039
 
os2*)
16040
 
  libname_spec='$name'
16041
 
  shrext_cmds=".dll"
16042
 
  need_lib_prefix=no
16043
 
  library_names_spec='$libname${shared_ext} $libname.a'
16044
 
  dynamic_linker='OS/2 ld.exe'
16045
 
  shlibpath_var=LIBPATH
16046
 
  ;;
16047
 
 
16048
 
osf3* | osf4* | osf5*)
16049
 
  version_type=osf
16050
 
  need_lib_prefix=no
16051
 
  need_version=no
16052
 
  soname_spec='${libname}${release}${shared_ext}$major'
16053
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054
 
  shlibpath_var=LD_LIBRARY_PATH
16055
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16056
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16057
 
  ;;
16058
 
 
16059
 
rdos*)
16060
 
  dynamic_linker=no
16061
 
  ;;
16062
 
 
16063
 
solaris*)
16064
 
  version_type=linux
16065
 
  need_lib_prefix=no
16066
 
  need_version=no
16067
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068
 
  soname_spec='${libname}${release}${shared_ext}$major'
16069
 
  shlibpath_var=LD_LIBRARY_PATH
16070
 
  shlibpath_overrides_runpath=yes
16071
 
  hardcode_into_libs=yes
16072
 
  # ldd complains unless libraries are executable
16073
 
  postinstall_cmds='chmod +x $lib'
16074
 
  ;;
16075
 
 
16076
 
sunos4*)
16077
 
  version_type=sunos
16078
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16079
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16080
 
  shlibpath_var=LD_LIBRARY_PATH
16081
 
  shlibpath_overrides_runpath=yes
16082
 
  if test "$with_gnu_ld" = yes; then
16083
 
    need_lib_prefix=no
16084
 
  fi
16085
 
  need_version=yes
16086
 
  ;;
16087
 
 
16088
 
sysv4 | sysv4.3*)
16089
 
  version_type=linux
16090
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091
 
  soname_spec='${libname}${release}${shared_ext}$major'
16092
 
  shlibpath_var=LD_LIBRARY_PATH
16093
 
  case $host_vendor in
16094
 
    sni)
16095
 
      shlibpath_overrides_runpath=no
16096
 
      need_lib_prefix=no
16097
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16098
 
      runpath_var=LD_RUN_PATH
16099
 
      ;;
16100
 
    siemens)
16101
 
      need_lib_prefix=no
16102
 
      ;;
16103
 
    motorola)
16104
 
      need_lib_prefix=no
16105
 
      need_version=no
16106
 
      shlibpath_overrides_runpath=no
16107
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16108
 
      ;;
16109
 
  esac
16110
 
  ;;
16111
 
 
16112
 
sysv4*MP*)
16113
 
  if test -d /usr/nec ;then
16114
 
    version_type=linux
16115
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16116
 
    soname_spec='$libname${shared_ext}.$major'
16117
 
    shlibpath_var=LD_LIBRARY_PATH
16118
 
  fi
16119
 
  ;;
16120
 
 
16121
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16122
 
  version_type=freebsd-elf
16123
 
  need_lib_prefix=no
16124
 
  need_version=no
16125
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16126
 
  soname_spec='${libname}${release}${shared_ext}$major'
16127
 
  shlibpath_var=LD_LIBRARY_PATH
16128
 
  hardcode_into_libs=yes
16129
 
  if test "$with_gnu_ld" = yes; then
16130
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16131
 
    shlibpath_overrides_runpath=no
16132
 
  else
16133
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16134
 
    shlibpath_overrides_runpath=yes
16135
 
    case $host_os in
16136
 
      sco3.2v5*)
16137
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16138
 
        ;;
16139
 
    esac
16140
 
  fi
16141
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16142
 
  ;;
16143
 
 
16144
 
uts4*)
16145
 
  version_type=linux
16146
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147
 
  soname_spec='${libname}${release}${shared_ext}$major'
16148
 
  shlibpath_var=LD_LIBRARY_PATH
16149
 
  ;;
16150
 
 
16151
 
*)
16152
 
  dynamic_linker=no
16153
 
  ;;
16154
 
esac
16155
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16156
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16157
 
test "$dynamic_linker" = no && can_build_shared=no
16158
 
 
16159
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16160
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16161
 
else
16162
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16163
 
fi
16164
 
 
16165
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16166
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16167
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16168
 
else
16169
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16170
 
fi
16171
 
 
16172
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16173
 
 
16174
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16175
 
if test "$GCC" = yes; then
16176
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16177
 
fi
16178
 
 
16179
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16180
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16181
 
hardcode_action_F77=
16182
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16183
 
   test -n "$runpath_var_F77" || \
16184
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16185
 
 
16186
 
  # We can hardcode non-existant directories.
16187
 
  if test "$hardcode_direct_F77" != no &&
16188
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16189
 
     # have to relink, otherwise we might link with an installed library
16190
 
     # when we should be linking with a yet-to-be-installed one
16191
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16192
 
     test "$hardcode_minus_L_F77" != no; then
16193
 
    # Linking always hardcodes the temporary library directory.
16194
 
    hardcode_action_F77=relink
16195
 
  else
16196
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16197
 
    hardcode_action_F77=immediate
16198
 
  fi
16199
 
else
16200
 
  # We cannot hardcode anything, or else we can only hardcode existing
16201
 
  # directories.
16202
 
  hardcode_action_F77=unsupported
16203
 
fi
16204
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16205
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16206
 
 
16207
 
if test "$hardcode_action_F77" = relink; then
16208
 
  # Fast installation is not supported
16209
 
  enable_fast_install=no
16210
 
elif test "$shlibpath_overrides_runpath" = yes ||
16211
 
     test "$enable_shared" = no; then
16212
 
  # Fast installation is not necessary
16213
 
  enable_fast_install=needless
16214
 
fi
16215
 
 
16216
 
 
16217
 
# The else clause should only fire when bootstrapping the
16218
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16219
 
# with your package, and you will get complaints that there are
16220
 
# no rules to generate ltmain.sh.
16221
 
if test -f "$ltmain"; then
16222
 
  # See if we are running on zsh, and set the options which allow our commands through
16223
 
  # without removal of \ escapes.
16224
 
  if test -n "${ZSH_VERSION+set}" ; then
16225
 
    setopt NO_GLOB_SUBST
16226
 
  fi
16227
 
  # Now quote all the things that may contain metacharacters while being
16228
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16229
 
  # variables and quote the copies for generation of the libtool script.
16230
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16231
 
    SED SHELL STRIP \
16232
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16233
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16234
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16235
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16236
 
    lt_cv_sys_global_symbol_to_c_name_address \
16237
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16238
 
    old_postinstall_cmds old_postuninstall_cmds \
16239
 
    compiler_F77 \
16240
 
    CC_F77 \
16241
 
    LD_F77 \
16242
 
    lt_prog_compiler_wl_F77 \
16243
 
    lt_prog_compiler_pic_F77 \
16244
 
    lt_prog_compiler_static_F77 \
16245
 
    lt_prog_compiler_no_builtin_flag_F77 \
16246
 
    export_dynamic_flag_spec_F77 \
16247
 
    thread_safe_flag_spec_F77 \
16248
 
    whole_archive_flag_spec_F77 \
16249
 
    enable_shared_with_static_runtimes_F77 \
16250
 
    old_archive_cmds_F77 \
16251
 
    old_archive_from_new_cmds_F77 \
16252
 
    predep_objects_F77 \
16253
 
    postdep_objects_F77 \
16254
 
    predeps_F77 \
16255
 
    postdeps_F77 \
16256
 
    compiler_lib_search_path_F77 \
16257
 
    compiler_lib_search_dirs_F77 \
16258
 
    archive_cmds_F77 \
16259
 
    archive_expsym_cmds_F77 \
16260
 
    postinstall_cmds_F77 \
16261
 
    postuninstall_cmds_F77 \
16262
 
    old_archive_from_expsyms_cmds_F77 \
16263
 
    allow_undefined_flag_F77 \
16264
 
    no_undefined_flag_F77 \
16265
 
    export_symbols_cmds_F77 \
16266
 
    hardcode_libdir_flag_spec_F77 \
16267
 
    hardcode_libdir_flag_spec_ld_F77 \
16268
 
    hardcode_libdir_separator_F77 \
16269
 
    hardcode_automatic_F77 \
16270
 
    module_cmds_F77 \
16271
 
    module_expsym_cmds_F77 \
16272
 
    lt_cv_prog_compiler_c_o_F77 \
16273
 
    fix_srcfile_path_F77 \
16274
 
    exclude_expsyms_F77 \
16275
 
    include_expsyms_F77; do
16276
 
 
16277
 
    case $var in
16278
 
    old_archive_cmds_F77 | \
16279
 
    old_archive_from_new_cmds_F77 | \
16280
 
    archive_cmds_F77 | \
16281
 
    archive_expsym_cmds_F77 | \
16282
 
    module_cmds_F77 | \
16283
 
    module_expsym_cmds_F77 | \
16284
 
    old_archive_from_expsyms_cmds_F77 | \
16285
 
    export_symbols_cmds_F77 | \
16286
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16287
 
    postinstall_cmds | postuninstall_cmds | \
16288
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16289
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16290
 
      # Double-quote double-evaled strings.
16291
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16292
 
      ;;
16293
 
    *)
16294
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16295
 
      ;;
16296
 
    esac
16297
 
  done
16298
 
 
16299
 
  case $lt_echo in
16300
 
  *'\$0 --fallback-echo"')
16301
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16302
 
    ;;
16303
 
  esac
16304
 
 
16305
 
cfgfile="$ofile"
16306
 
 
16307
 
  cat <<__EOF__ >> "$cfgfile"
16308
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16309
 
 
16310
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16311
 
 
16312
 
# Shell to use when invoking shell scripts.
16313
 
SHELL=$lt_SHELL
16314
 
 
16315
 
# Whether or not to build shared libraries.
16316
 
build_libtool_libs=$enable_shared
16317
 
 
16318
 
# Whether or not to build static libraries.
16319
 
build_old_libs=$enable_static
16320
 
 
16321
 
# Whether or not to add -lc for building shared libraries.
16322
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16323
 
 
16324
 
# Whether or not to disallow shared libs when runtime libs are static
16325
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16326
 
 
16327
 
# Whether or not to optimize for fast installation.
16328
 
fast_install=$enable_fast_install
16329
 
 
16330
 
# The host system.
16331
 
host_alias=$host_alias
16332
 
host=$host
16333
 
host_os=$host_os
16334
 
 
16335
 
# The build system.
16336
 
build_alias=$build_alias
16337
 
build=$build
16338
 
build_os=$build_os
16339
 
 
16340
 
# An echo program that does not interpret backslashes.
16341
 
echo=$lt_echo
16342
 
 
16343
 
# The archiver.
16344
 
AR=$lt_AR
16345
 
AR_FLAGS=$lt_AR_FLAGS
16346
 
 
16347
 
# A C compiler.
16348
 
LTCC=$lt_LTCC
16349
 
 
16350
 
# LTCC compiler flags.
16351
 
LTCFLAGS=$lt_LTCFLAGS
16352
 
 
16353
 
# A language-specific compiler.
16354
 
CC=$lt_compiler_F77
16355
 
 
16356
 
# Is the compiler the GNU C compiler?
16357
 
with_gcc=$GCC_F77
16358
 
 
16359
 
# An ERE matcher.
16360
 
EGREP=$lt_EGREP
16361
 
 
16362
 
# The linker used to build libraries.
16363
 
LD=$lt_LD_F77
16364
 
 
16365
 
# Whether we need hard or soft links.
16366
 
LN_S=$lt_LN_S
16367
 
 
16368
 
# A BSD-compatible nm program.
16369
 
NM=$lt_NM
16370
 
 
16371
 
# A symbol stripping program
16372
 
STRIP=$lt_STRIP
16373
 
 
16374
 
# Used to examine libraries when file_magic_cmd begins "file"
16375
 
MAGIC_CMD=$MAGIC_CMD
16376
 
 
16377
 
# Used on cygwin: DLL creation program.
16378
 
DLLTOOL="$DLLTOOL"
16379
 
 
16380
 
# Used on cygwin: object dumper.
16381
 
OBJDUMP="$OBJDUMP"
16382
 
 
16383
 
# Used on cygwin: assembler.
16384
 
AS="$AS"
16385
 
 
16386
 
# The name of the directory that contains temporary libtool files.
16387
 
objdir=$objdir
16388
 
 
16389
 
# How to create reloadable object files.
16390
 
reload_flag=$lt_reload_flag
16391
 
reload_cmds=$lt_reload_cmds
16392
 
 
16393
 
# How to pass a linker flag through the compiler.
16394
 
wl=$lt_lt_prog_compiler_wl_F77
16395
 
 
16396
 
# Object file suffix (normally "o").
16397
 
objext="$ac_objext"
16398
 
 
16399
 
# Old archive suffix (normally "a").
16400
 
libext="$libext"
16401
 
 
16402
 
# Shared library suffix (normally ".so").
16403
 
shrext_cmds='$shrext_cmds'
16404
 
 
16405
 
# Executable file suffix (normally "").
16406
 
exeext="$exeext"
16407
 
 
16408
 
# Additional compiler flags for building library objects.
16409
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16410
 
pic_mode=$pic_mode
16411
 
 
16412
 
# What is the maximum length of a command?
16413
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16414
 
 
16415
 
# Does compiler simultaneously support -c and -o options?
16416
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16417
 
 
16418
 
# Must we lock files when doing compilation?
16419
 
need_locks=$lt_need_locks
16420
 
 
16421
 
# Do we need the lib prefix for modules?
16422
 
need_lib_prefix=$need_lib_prefix
16423
 
 
16424
 
# Do we need a version for libraries?
16425
 
need_version=$need_version
16426
 
 
16427
 
# Whether dlopen is supported.
16428
 
dlopen_support=$enable_dlopen
16429
 
 
16430
 
# Whether dlopen of programs is supported.
16431
 
dlopen_self=$enable_dlopen_self
16432
 
 
16433
 
# Whether dlopen of statically linked programs is supported.
16434
 
dlopen_self_static=$enable_dlopen_self_static
16435
 
 
16436
 
# Compiler flag to prevent dynamic linking.
16437
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16438
 
 
16439
 
# Compiler flag to turn off builtin functions.
16440
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16441
 
 
16442
 
# Compiler flag to allow reflexive dlopens.
16443
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16444
 
 
16445
 
# Compiler flag to generate shared objects directly from archives.
16446
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16447
 
 
16448
 
# Compiler flag to generate thread-safe objects.
16449
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16450
 
 
16451
 
# Library versioning type.
16452
 
version_type=$version_type
16453
 
 
16454
 
# Format of library name prefix.
16455
 
libname_spec=$lt_libname_spec
16456
 
 
16457
 
# List of archive names.  First name is the real one, the rest are links.
16458
 
# The last name is the one that the linker finds with -lNAME.
16459
 
library_names_spec=$lt_library_names_spec
16460
 
 
16461
 
# The coded name of the library, if different from the real name.
16462
 
soname_spec=$lt_soname_spec
16463
 
 
16464
 
# Commands used to build and install an old-style archive.
16465
 
RANLIB=$lt_RANLIB
16466
 
old_archive_cmds=$lt_old_archive_cmds_F77
16467
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16468
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16469
 
 
16470
 
# Create an old-style archive from a shared archive.
16471
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16472
 
 
16473
 
# Create a temporary old-style archive to link instead of a shared archive.
16474
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16475
 
 
16476
 
# Commands used to build and install a shared archive.
16477
 
archive_cmds=$lt_archive_cmds_F77
16478
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16479
 
postinstall_cmds=$lt_postinstall_cmds
16480
 
postuninstall_cmds=$lt_postuninstall_cmds
16481
 
 
16482
 
# Commands used to build a loadable module (assumed same as above if empty)
16483
 
module_cmds=$lt_module_cmds_F77
16484
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16485
 
 
16486
 
# Commands to strip libraries.
16487
 
old_striplib=$lt_old_striplib
16488
 
striplib=$lt_striplib
16489
 
 
16490
 
# Dependencies to place before the objects being linked to create a
16491
 
# shared library.
16492
 
predep_objects=$lt_predep_objects_F77
16493
 
 
16494
 
# Dependencies to place after the objects being linked to create a
16495
 
# shared library.
16496
 
postdep_objects=$lt_postdep_objects_F77
16497
 
 
16498
 
# Dependencies to place before the objects being linked to create a
16499
 
# shared library.
16500
 
predeps=$lt_predeps_F77
16501
 
 
16502
 
# Dependencies to place after the objects being linked to create a
16503
 
# shared library.
16504
 
postdeps=$lt_postdeps_F77
16505
 
 
16506
 
# The directories searched by this compiler when creating a shared
16507
 
# library
16508
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16509
 
 
16510
 
# The library search path used internally by the compiler when linking
16511
 
# a shared library.
16512
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16513
 
 
16514
 
# Method to check whether dependent libraries are shared objects.
16515
 
deplibs_check_method=$lt_deplibs_check_method
16516
 
 
16517
 
# Command to use when deplibs_check_method == file_magic.
16518
 
file_magic_cmd=$lt_file_magic_cmd
16519
 
 
16520
 
# Flag that allows shared libraries with undefined symbols to be built.
16521
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16522
 
 
16523
 
# Flag that forces no undefined symbols.
16524
 
no_undefined_flag=$lt_no_undefined_flag_F77
16525
 
 
16526
 
# Commands used to finish a libtool library installation in a directory.
16527
 
finish_cmds=$lt_finish_cmds
16528
 
 
16529
 
# Same as above, but a single script fragment to be evaled but not shown.
16530
 
finish_eval=$lt_finish_eval
16531
 
 
16532
 
# Take the output of nm and produce a listing of raw symbols and C names.
16533
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16534
 
 
16535
 
# Transform the output of nm in a proper C declaration
16536
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16537
 
 
16538
 
# Transform the output of nm in a C name address pair
16539
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16540
 
 
16541
 
# This is the shared library runtime path variable.
16542
 
runpath_var=$runpath_var
16543
 
 
16544
 
# This is the shared library path variable.
16545
 
shlibpath_var=$shlibpath_var
16546
 
 
16547
 
# Is shlibpath searched before the hard-coded library search path?
16548
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16549
 
 
16550
 
# How to hardcode a shared library path into an executable.
16551
 
hardcode_action=$hardcode_action_F77
16552
 
 
16553
 
# Whether we should hardcode library paths into libraries.
16554
 
hardcode_into_libs=$hardcode_into_libs
16555
 
 
16556
 
# Flag to hardcode \$libdir into a binary during linking.
16557
 
# This must work even if \$libdir does not exist.
16558
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16559
 
 
16560
 
# If ld is used when linking, flag to hardcode \$libdir into
16561
 
# a binary during linking. This must work even if \$libdir does
16562
 
# not exist.
16563
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16564
 
 
16565
 
# Whether we need a single -rpath flag with a separated argument.
16566
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16567
 
 
16568
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16569
 
# resulting binary.
16570
 
hardcode_direct=$hardcode_direct_F77
16571
 
 
16572
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16573
 
# resulting binary.
16574
 
hardcode_minus_L=$hardcode_minus_L_F77
16575
 
 
16576
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16577
 
# the resulting binary.
16578
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16579
 
 
16580
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16581
 
# and all subsequent libraries and executables linked against it.
16582
 
hardcode_automatic=$hardcode_automatic_F77
16583
 
 
16584
 
# Variables whose values should be saved in libtool wrapper scripts and
16585
 
# restored at relink time.
16586
 
variables_saved_for_relink="$variables_saved_for_relink"
16587
 
 
16588
 
# Whether libtool must link a program against all its dependency libraries.
16589
 
link_all_deplibs=$link_all_deplibs_F77
16590
 
 
16591
 
# Compile-time system search path for libraries
16592
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16593
 
 
16594
 
# Run-time system search path for libraries
16595
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16596
 
 
16597
 
# Fix the shell variable \$srcfile for the compiler.
16598
 
fix_srcfile_path=$lt_fix_srcfile_path
16599
 
 
16600
 
# Set to yes if exported symbols are required.
16601
 
always_export_symbols=$always_export_symbols_F77
16602
 
 
16603
 
# The commands to list exported symbols.
16604
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16605
 
 
16606
 
# The commands to extract the exported symbol list from a shared archive.
16607
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16608
 
 
16609
 
# Symbols that should not be listed in the preloaded symbols.
16610
 
exclude_expsyms=$lt_exclude_expsyms_F77
16611
 
 
16612
 
# Symbols that must always be exported.
16613
 
include_expsyms=$lt_include_expsyms_F77
16614
 
 
16615
 
# ### END LIBTOOL TAG CONFIG: $tagname
16616
 
 
16617
 
__EOF__
16618
 
 
16619
 
 
16620
 
else
16621
 
  # If there is no Makefile yet, we rely on a make rule to execute
16622
 
  # `config.status --recheck' to rerun these tests and create the
16623
 
  # libtool script then.
16624
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16625
 
  if test -f "$ltmain_in"; then
16626
 
    test -f Makefile && make "$ltmain"
16627
 
  fi
16628
 
fi
16629
 
 
16630
 
 
16631
 
ac_ext=c
16632
 
ac_cpp='$CPP $CPPFLAGS'
16633
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16636
 
 
16637
 
CC="$lt_save_CC"
16638
 
 
16639
 
        else
16640
 
          tagname=""
16641
 
        fi
16642
 
        ;;
16643
 
 
16644
 
      GCJ)
16645
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16646
 
 
16647
 
 
16648
 
# Source file extension for Java test sources.
16649
 
ac_ext=java
16650
 
 
16651
 
# Object file extension for compiled Java test sources.
16652
 
objext=o
16653
 
objext_GCJ=$objext
16654
 
 
16655
 
# Code to be used in simple compile tests
16656
 
lt_simple_compile_test_code="class foo {}"
16657
 
 
16658
 
# Code to be used in simple link tests
16659
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16660
 
 
16661
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16662
 
 
16663
 
# If no C compiler was specified, use CC.
16664
 
LTCC=${LTCC-"$CC"}
16665
 
 
16666
 
# If no C compiler flags were specified, use CFLAGS.
16667
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16668
 
 
16669
 
# Allow CC to be a program name with arguments.
16670
 
compiler=$CC
16671
 
 
16672
 
 
16673
 
# save warnings/boilerplate of simple test code
16674
 
ac_outfile=conftest.$ac_objext
16675
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16676
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16677
 
_lt_compiler_boilerplate=`cat conftest.err`
16678
 
$rm conftest*
16679
 
 
16680
 
ac_outfile=conftest.$ac_objext
16681
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16682
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16683
 
_lt_linker_boilerplate=`cat conftest.err`
16684
 
$rm -r conftest*
16685
 
 
16686
 
 
16687
 
# Allow CC to be a program name with arguments.
16688
 
lt_save_CC="$CC"
16689
 
CC=${GCJ-"gcj"}
16690
 
compiler=$CC
16691
 
compiler_GCJ=$CC
16692
 
for cc_temp in $compiler""; do
16693
 
  case $cc_temp in
16694
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16695
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16696
 
    \-*) ;;
16697
 
    *) break;;
16698
 
  esac
16699
 
done
16700
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16701
 
 
16702
 
 
16703
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16704
 
archive_cmds_need_lc_GCJ=no
16705
 
 
16706
 
old_archive_cmds_GCJ=$old_archive_cmds
16707
 
 
16708
 
 
16709
 
lt_prog_compiler_no_builtin_flag_GCJ=
16710
 
 
16711
 
if test "$GCC" = yes; then
16712
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16713
 
 
16714
 
 
16715
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16716
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16717
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16718
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16719
 
else
16720
 
  lt_cv_prog_compiler_rtti_exceptions=no
16721
 
  ac_outfile=conftest.$ac_objext
16722
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16723
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16724
 
   # Insert the option either (1) after the last *FLAGS variable, or
16725
 
   # (2) before a word containing "conftest.", or (3) at the end.
16726
 
   # Note that $ac_compile itself does not contain backslashes and begins
16727
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16728
 
   # The option is referenced via a variable to avoid confusing sed.
16729
 
   lt_compile=`echo "$ac_compile" | $SED \
16730
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16731
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16732
 
   -e 's:$: $lt_compiler_flag:'`
16733
 
   (eval echo "\"\$as_me:16733: $lt_compile\"" >&5)
16734
 
   (eval "$lt_compile" 2>conftest.err)
16735
 
   ac_status=$?
16736
 
   cat conftest.err >&5
16737
 
   echo "$as_me:16737: \$? = $ac_status" >&5
16738
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16739
 
     # The compiler can only warn and ignore the option if not recognized
16740
 
     # So say no if there are warnings other than the usual output.
16741
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16742
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16744
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16745
 
     fi
16746
 
   fi
16747
 
   $rm conftest*
16748
 
 
16749
 
fi
16750
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16751
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16752
 
 
16753
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16754
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16755
 
else
16756
 
    :
16757
 
fi
16758
 
 
16759
 
fi
16760
 
 
16761
 
lt_prog_compiler_wl_GCJ=
16762
 
lt_prog_compiler_pic_GCJ=
16763
 
lt_prog_compiler_static_GCJ=
16764
 
 
16765
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16766
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16767
 
 
16768
 
  if test "$GCC" = yes; then
16769
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16770
 
    lt_prog_compiler_static_GCJ='-static'
16771
 
 
16772
 
    case $host_os in
16773
 
      aix*)
16774
 
      # All AIX code is PIC.
16775
 
      if test "$host_cpu" = ia64; then
16776
 
        # AIX 5 now supports IA64 processor
16777
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16778
 
      fi
16779
 
      ;;
16780
 
 
16781
 
    amigaos*)
16782
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16783
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16784
 
      # like `-m68040'.
16785
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16786
 
      ;;
16787
 
 
16788
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16789
 
      # PIC is the default for these OSes.
16790
 
      ;;
16791
 
 
16792
 
    mingw* | cygwin* | pw32* | os2*)
16793
 
      # This hack is so that the source file can tell whether it is being
16794
 
      # built for inclusion in a dll (and should export symbols for example).
16795
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16796
 
      # (--disable-auto-import) libraries
16797
 
 
16798
 
      ;;
16799
 
 
16800
 
    darwin* | rhapsody*)
16801
 
      # PIC is the default on this platform
16802
 
      # Common symbols not allowed in MH_DYLIB files
16803
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16804
 
      ;;
16805
 
 
16806
 
    interix[3-9]*)
16807
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16808
 
      # Instead, we relocate shared libraries at runtime.
16809
 
      ;;
16810
 
 
16811
 
    msdosdjgpp*)
16812
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16813
 
      # on systems that don't support them.
16814
 
      lt_prog_compiler_can_build_shared_GCJ=no
16815
 
      enable_shared=no
16816
 
      ;;
16817
 
 
16818
 
    sysv4*MP*)
16819
 
      if test -d /usr/nec; then
16820
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16821
 
      fi
16822
 
      ;;
16823
 
 
16824
 
    hpux*)
16825
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16826
 
      # not for PA HP-UX.
16827
 
      case $host_cpu in
16828
 
      hppa*64*|ia64*)
16829
 
        # +Z the default
16830
 
        ;;
16831
 
      *)
16832
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16833
 
        ;;
16834
 
      esac
16835
 
      ;;
16836
 
 
16837
 
    *)
16838
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16839
 
      ;;
16840
 
    esac
16841
 
  else
16842
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16843
 
    case $host_os in
16844
 
    aix*)
16845
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16846
 
      if test "$host_cpu" = ia64; then
16847
 
        # AIX 5 now supports IA64 processor
16848
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16849
 
      else
16850
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16851
 
      fi
16852
 
      ;;
16853
 
      darwin*)
16854
 
        # PIC is the default on this platform
16855
 
        # Common symbols not allowed in MH_DYLIB files
16856
 
       case $cc_basename in
16857
 
         xlc*)
16858
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16859
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16860
 
         ;;
16861
 
       esac
16862
 
       ;;
16863
 
 
16864
 
    mingw* | cygwin* | pw32* | os2*)
16865
 
      # This hack is so that the source file can tell whether it is being
16866
 
      # built for inclusion in a dll (and should export symbols for example).
16867
 
 
16868
 
      ;;
16869
 
 
16870
 
    hpux9* | hpux10* | hpux11*)
16871
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16872
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16873
 
      # not for PA HP-UX.
16874
 
      case $host_cpu in
16875
 
      hppa*64*|ia64*)
16876
 
        # +Z the default
16877
 
        ;;
16878
 
      *)
16879
 
        lt_prog_compiler_pic_GCJ='+Z'
16880
 
        ;;
16881
 
      esac
16882
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16883
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16884
 
      ;;
16885
 
 
16886
 
    irix5* | irix6* | nonstopux*)
16887
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16888
 
      # PIC (with -KPIC) is the default.
16889
 
      lt_prog_compiler_static_GCJ='-non_shared'
16890
 
      ;;
16891
 
 
16892
 
    newsos6)
16893
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16894
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16895
 
      ;;
16896
 
 
16897
 
    linux* | k*bsd*-gnu)
16898
 
      case $cc_basename in
16899
 
      icc* | ecc*)
16900
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16901
 
        lt_prog_compiler_pic_GCJ='-KPIC'
16902
 
        lt_prog_compiler_static_GCJ='-static'
16903
 
        ;;
16904
 
      pgcc* | pgf77* | pgf90* | pgf95*)
16905
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
16906
 
        # which looks to be a dead project)
16907
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16908
 
        lt_prog_compiler_pic_GCJ='-fpic'
16909
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16910
 
        ;;
16911
 
      ccc*)
16912
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16913
 
        # All Alpha code is PIC.
16914
 
        lt_prog_compiler_static_GCJ='-non_shared'
16915
 
        ;;
16916
 
      *)
16917
 
        case `$CC -V 2>&1 | sed 5q` in
16918
 
        *Sun\ C*)
16919
 
          # Sun C 5.9
16920
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16921
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16922
 
          lt_prog_compiler_wl_GCJ='-Wl,'
16923
 
          ;;
16924
 
        *Sun\ F*)
16925
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
16926
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16927
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16928
 
          lt_prog_compiler_wl_GCJ=''
16929
 
          ;;
16930
 
        esac
16931
 
        ;;
16932
 
      esac
16933
 
      ;;
16934
 
 
16935
 
    osf3* | osf4* | osf5*)
16936
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16937
 
      # All OSF/1 code is PIC.
16938
 
      lt_prog_compiler_static_GCJ='-non_shared'
16939
 
      ;;
16940
 
 
16941
 
    rdos*)
16942
 
      lt_prog_compiler_static_GCJ='-non_shared'
16943
 
      ;;
16944
 
 
16945
 
    solaris*)
16946
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16947
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16948
 
      case $cc_basename in
16949
 
      f77* | f90* | f95*)
16950
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16951
 
      *)
16952
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
16953
 
      esac
16954
 
      ;;
16955
 
 
16956
 
    sunos4*)
16957
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16958
 
      lt_prog_compiler_pic_GCJ='-PIC'
16959
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16960
 
      ;;
16961
 
 
16962
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
16963
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16964
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16965
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16966
 
      ;;
16967
 
 
16968
 
    sysv4*MP*)
16969
 
      if test -d /usr/nec ;then
16970
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
16971
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16972
 
      fi
16973
 
      ;;
16974
 
 
16975
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16976
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16977
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16978
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16979
 
      ;;
16980
 
 
16981
 
    unicos*)
16982
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16983
 
      lt_prog_compiler_can_build_shared_GCJ=no
16984
 
      ;;
16985
 
 
16986
 
    uts4*)
16987
 
      lt_prog_compiler_pic_GCJ='-pic'
16988
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16989
 
      ;;
16990
 
 
16991
 
    *)
16992
 
      lt_prog_compiler_can_build_shared_GCJ=no
16993
 
      ;;
16994
 
    esac
16995
 
  fi
16996
 
 
16997
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16998
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16999
 
 
17000
 
#
17001
 
# Check to make sure the PIC flag actually works.
17002
 
#
17003
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17004
 
 
17005
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17006
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17007
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17008
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17009
 
else
17010
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17011
 
  ac_outfile=conftest.$ac_objext
17012
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17013
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17014
 
   # Insert the option either (1) after the last *FLAGS variable, or
17015
 
   # (2) before a word containing "conftest.", or (3) at the end.
17016
 
   # Note that $ac_compile itself does not contain backslashes and begins
17017
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17018
 
   # The option is referenced via a variable to avoid confusing sed.
17019
 
   lt_compile=`echo "$ac_compile" | $SED \
17020
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17021
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17022
 
   -e 's:$: $lt_compiler_flag:'`
17023
 
   (eval echo "\"\$as_me:17023: $lt_compile\"" >&5)
17024
 
   (eval "$lt_compile" 2>conftest.err)
17025
 
   ac_status=$?
17026
 
   cat conftest.err >&5
17027
 
   echo "$as_me:17027: \$? = $ac_status" >&5
17028
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17029
 
     # The compiler can only warn and ignore the option if not recognized
17030
 
     # So say no if there are warnings other than the usual output.
17031
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17032
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17033
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17034
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17035
 
     fi
17036
 
   fi
17037
 
   $rm conftest*
17038
 
 
17039
 
fi
17040
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17041
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17042
 
 
17043
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17044
 
    case $lt_prog_compiler_pic_GCJ in
17045
 
     "" | " "*) ;;
17046
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17047
 
     esac
17048
 
else
17049
 
    lt_prog_compiler_pic_GCJ=
17050
 
     lt_prog_compiler_can_build_shared_GCJ=no
17051
 
fi
17052
 
 
17053
 
fi
17054
 
case $host_os in
17055
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17056
 
  *djgpp*)
17057
 
    lt_prog_compiler_pic_GCJ=
17058
 
    ;;
17059
 
  *)
17060
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17061
 
    ;;
17062
 
esac
17063
 
 
17064
 
#
17065
 
# Check to make sure the static flag actually works.
17066
 
#
17067
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17068
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17069
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17070
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17071
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17072
 
else
17073
 
  lt_cv_prog_compiler_static_works_GCJ=no
17074
 
   save_LDFLAGS="$LDFLAGS"
17075
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17076
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17077
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17078
 
     # The linker can only warn and ignore the option if not recognized
17079
 
     # So say no if there are warnings
17080
 
     if test -s conftest.err; then
17081
 
       # Append any errors to the config.log.
17082
 
       cat conftest.err 1>&5
17083
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17084
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17085
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17086
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17087
 
       fi
17088
 
     else
17089
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17090
 
     fi
17091
 
   fi
17092
 
   $rm -r conftest*
17093
 
   LDFLAGS="$save_LDFLAGS"
17094
 
 
17095
 
fi
17096
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17097
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17098
 
 
17099
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17100
 
    :
17101
 
else
17102
 
    lt_prog_compiler_static_GCJ=
17103
 
fi
17104
 
 
17105
 
 
17106
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17107
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17108
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17110
 
else
17111
 
  lt_cv_prog_compiler_c_o_GCJ=no
17112
 
   $rm -r conftest 2>/dev/null
17113
 
   mkdir conftest
17114
 
   cd conftest
17115
 
   mkdir out
17116
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
 
 
17118
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17119
 
   # Insert the option either (1) after the last *FLAGS variable, or
17120
 
   # (2) before a word containing "conftest.", or (3) at the end.
17121
 
   # Note that $ac_compile itself does not contain backslashes and begins
17122
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17123
 
   lt_compile=`echo "$ac_compile" | $SED \
17124
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17125
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17126
 
   -e 's:$: $lt_compiler_flag:'`
17127
 
   (eval echo "\"\$as_me:17127: $lt_compile\"" >&5)
17128
 
   (eval "$lt_compile" 2>out/conftest.err)
17129
 
   ac_status=$?
17130
 
   cat out/conftest.err >&5
17131
 
   echo "$as_me:17131: \$? = $ac_status" >&5
17132
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17133
 
   then
17134
 
     # The compiler can only warn and ignore the option if not recognized
17135
 
     # So say no if there are warnings
17136
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17137
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17138
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17139
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17140
 
     fi
17141
 
   fi
17142
 
   chmod u+w . 2>&5
17143
 
   $rm conftest*
17144
 
   # SGI C++ compiler will create directory out/ii_files/ for
17145
 
   # template instantiation
17146
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17147
 
   $rm out/* && rmdir out
17148
 
   cd ..
17149
 
   rmdir conftest
17150
 
   $rm conftest*
17151
 
 
17152
 
fi
17153
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17154
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17155
 
 
17156
 
 
17157
 
hard_links="nottested"
17158
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17159
 
  # do not overwrite the value of need_locks provided by the user
17160
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17161
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17162
 
  hard_links=yes
17163
 
  $rm conftest*
17164
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165
 
  touch conftest.a
17166
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17167
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17168
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17169
 
echo "${ECHO_T}$hard_links" >&6; }
17170
 
  if test "$hard_links" = no; then
17171
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17172
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17173
 
    need_locks=warn
17174
 
  fi
17175
 
else
17176
 
  need_locks=no
17177
 
fi
17178
 
 
17179
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17180
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17181
 
 
17182
 
  runpath_var=
17183
 
  allow_undefined_flag_GCJ=
17184
 
  enable_shared_with_static_runtimes_GCJ=no
17185
 
  archive_cmds_GCJ=
17186
 
  archive_expsym_cmds_GCJ=
17187
 
  old_archive_From_new_cmds_GCJ=
17188
 
  old_archive_from_expsyms_cmds_GCJ=
17189
 
  export_dynamic_flag_spec_GCJ=
17190
 
  whole_archive_flag_spec_GCJ=
17191
 
  thread_safe_flag_spec_GCJ=
17192
 
  hardcode_libdir_flag_spec_GCJ=
17193
 
  hardcode_libdir_flag_spec_ld_GCJ=
17194
 
  hardcode_libdir_separator_GCJ=
17195
 
  hardcode_direct_GCJ=no
17196
 
  hardcode_minus_L_GCJ=no
17197
 
  hardcode_shlibpath_var_GCJ=unsupported
17198
 
  link_all_deplibs_GCJ=unknown
17199
 
  hardcode_automatic_GCJ=no
17200
 
  module_cmds_GCJ=
17201
 
  module_expsym_cmds_GCJ=
17202
 
  always_export_symbols_GCJ=no
17203
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17204
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17205
 
  # included in the symbol list
17206
 
  include_expsyms_GCJ=
17207
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17208
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17209
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17210
 
  # as well as any symbol that contains `d'.
17211
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17212
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17213
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17214
 
  # the symbol is explicitly referenced.  Since portable code cannot
17215
 
  # rely on this symbol name, it's probably fine to never include it in
17216
 
  # preloaded symbol tables.
17217
 
  # Exclude shared library initialization/finalization symbols.
17218
 
  extract_expsyms_cmds=
17219
 
  # Just being paranoid about ensuring that cc_basename is set.
17220
 
  for cc_temp in $compiler""; do
17221
 
  case $cc_temp in
17222
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17223
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17224
 
    \-*) ;;
17225
 
    *) break;;
17226
 
  esac
17227
 
done
17228
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17229
 
 
17230
 
  case $host_os in
17231
 
  cygwin* | mingw* | pw32*)
17232
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17233
 
    # When not using gcc, we currently assume that we are using
17234
 
    # Microsoft Visual C++.
17235
 
    if test "$GCC" != yes; then
17236
 
      with_gnu_ld=no
17237
 
    fi
17238
 
    ;;
17239
 
  interix*)
17240
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17241
 
    with_gnu_ld=yes
17242
 
    ;;
17243
 
  openbsd*)
17244
 
    with_gnu_ld=no
17245
 
    ;;
17246
 
  esac
17247
 
 
17248
 
  ld_shlibs_GCJ=yes
17249
 
  if test "$with_gnu_ld" = yes; then
17250
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17251
 
    wlarc='${wl}'
17252
 
 
17253
 
    # Set some defaults for GNU ld with shared library support. These
17254
 
    # are reset later if shared libraries are not supported. Putting them
17255
 
    # here allows them to be overridden if necessary.
17256
 
    runpath_var=LD_RUN_PATH
17257
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17258
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17259
 
    # ancient GNU ld didn't support --whole-archive et. al.
17260
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17261
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17262
 
      else
17263
 
        whole_archive_flag_spec_GCJ=
17264
 
    fi
17265
 
    supports_anon_versioning=no
17266
 
    case `$LD -v 2>/dev/null` in
17267
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17268
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17269
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17270
 
      *\ 2.11.*) ;; # other 2.11 versions
17271
 
      *) supports_anon_versioning=yes ;;
17272
 
    esac
17273
 
 
17274
 
    # See if GNU ld supports shared libraries.
17275
 
    case $host_os in
17276
 
    aix[3-9]*)
17277
 
      # On AIX/PPC, the GNU linker is very broken
17278
 
      if test "$host_cpu" != ia64; then
17279
 
        ld_shlibs_GCJ=no
17280
 
        cat <<EOF 1>&2
17281
 
 
17282
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17283
 
*** to be unable to reliably create shared libraries on AIX.
17284
 
*** Therefore, libtool is disabling shared libraries support.  If you
17285
 
*** really care for shared libraries, you may want to modify your PATH
17286
 
*** so that a non-GNU linker is found, and then restart.
17287
 
 
17288
 
EOF
17289
 
      fi
17290
 
      ;;
17291
 
 
17292
 
    amigaos*)
17293
 
      archive_cmds_GCJ='$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)'
17294
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17295
 
      hardcode_minus_L_GCJ=yes
17296
 
 
17297
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17298
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17299
 
      # to version 4, is to share data among multiple programs linked
17300
 
      # with the same dynamic library.  Since this doesn't match the
17301
 
      # behavior of shared libraries on other platforms, we can't use
17302
 
      # them.
17303
 
      ld_shlibs_GCJ=no
17304
 
      ;;
17305
 
 
17306
 
    beos*)
17307
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17308
 
        allow_undefined_flag_GCJ=unsupported
17309
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17310
 
        # support --undefined.  This deserves some investigation.  FIXME
17311
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312
 
      else
17313
 
        ld_shlibs_GCJ=no
17314
 
      fi
17315
 
      ;;
17316
 
 
17317
 
    cygwin* | mingw* | pw32*)
17318
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17319
 
      # as there is no search path for DLLs.
17320
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321
 
      allow_undefined_flag_GCJ=unsupported
17322
 
      always_export_symbols_GCJ=no
17323
 
      enable_shared_with_static_runtimes_GCJ=yes
17324
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17325
 
 
17326
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17327
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17328
 
        # If the export-symbols file already is a .def file (1st line
17329
 
        # is EXPORTS), use it as is; otherwise, prepend...
17330
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17331
 
          cp $export_symbols $output_objdir/$soname.def;
17332
 
        else
17333
 
          echo EXPORTS > $output_objdir/$soname.def;
17334
 
          cat $export_symbols >> $output_objdir/$soname.def;
17335
 
        fi~
17336
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17337
 
      else
17338
 
        ld_shlibs_GCJ=no
17339
 
      fi
17340
 
      ;;
17341
 
 
17342
 
    interix[3-9]*)
17343
 
      hardcode_direct_GCJ=no
17344
 
      hardcode_shlibpath_var_GCJ=no
17345
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17346
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17347
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17348
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17349
 
      # default) and relocated if they conflict, which is a slow very memory
17350
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17351
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17352
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17353
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17354
 
      archive_expsym_cmds_GCJ='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'
17355
 
      ;;
17356
 
 
17357
 
    gnu* | linux* | k*bsd*-gnu)
17358
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17359
 
        tmp_addflag=
17360
 
        case $cc_basename,$host_cpu in
17361
 
        pgcc*)                          # Portland Group C compiler
17362
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17363
 
          tmp_addflag=' $pic_flag'
17364
 
          ;;
17365
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17366
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17367
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17368
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17369
 
          tmp_addflag=' -i_dynamic' ;;
17370
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17371
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17372
 
        ifc* | ifort*)                  # Intel Fortran compiler
17373
 
          tmp_addflag=' -nofor_main' ;;
17374
 
        esac
17375
 
        case `$CC -V 2>&1 | sed 5q` in
17376
 
        *Sun\ C*)                       # Sun C 5.9
17377
 
          whole_archive_flag_spec_GCJ='${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'
17378
 
          tmp_sharedflag='-G' ;;
17379
 
        *Sun\ F*)                       # Sun Fortran 8.3
17380
 
          tmp_sharedflag='-G' ;;
17381
 
        *)
17382
 
          tmp_sharedflag='-shared' ;;
17383
 
        esac
17384
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385
 
 
17386
 
        if test $supports_anon_versioning = yes; then
17387
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17388
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17389
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17390
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17391
 
        fi
17392
 
        link_all_deplibs_GCJ=no
17393
 
      else
17394
 
        ld_shlibs_GCJ=no
17395
 
      fi
17396
 
      ;;
17397
 
 
17398
 
    netbsd* | netbsdelf*-gnu)
17399
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17400
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17401
 
        wlarc=
17402
 
      else
17403
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17404
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17405
 
      fi
17406
 
      ;;
17407
 
 
17408
 
    solaris*)
17409
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17410
 
        ld_shlibs_GCJ=no
17411
 
        cat <<EOF 1>&2
17412
 
 
17413
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17414
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17415
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17416
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17417
 
*** your PATH or compiler configuration so that the native linker is
17418
 
*** used, and then restart.
17419
 
 
17420
 
EOF
17421
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17422
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17423
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17424
 
      else
17425
 
        ld_shlibs_GCJ=no
17426
 
      fi
17427
 
      ;;
17428
 
 
17429
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17430
 
      case `$LD -v 2>&1` in
17431
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17432
 
        ld_shlibs_GCJ=no
17433
 
        cat <<_LT_EOF 1>&2
17434
 
 
17435
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17436
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17437
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17438
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17439
 
*** your PATH or compiler configuration so that the native linker is
17440
 
*** used, and then restart.
17441
 
 
17442
 
_LT_EOF
17443
 
        ;;
17444
 
        *)
17445
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17446
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17447
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17448
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17449
 
          else
17450
 
            ld_shlibs_GCJ=no
17451
 
          fi
17452
 
        ;;
17453
 
      esac
17454
 
      ;;
17455
 
 
17456
 
    sunos4*)
17457
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17458
 
      wlarc=
17459
 
      hardcode_direct_GCJ=yes
17460
 
      hardcode_shlibpath_var_GCJ=no
17461
 
      ;;
17462
 
 
17463
 
    *)
17464
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17467
 
      else
17468
 
        ld_shlibs_GCJ=no
17469
 
      fi
17470
 
      ;;
17471
 
    esac
17472
 
 
17473
 
    if test "$ld_shlibs_GCJ" = no; then
17474
 
      runpath_var=
17475
 
      hardcode_libdir_flag_spec_GCJ=
17476
 
      export_dynamic_flag_spec_GCJ=
17477
 
      whole_archive_flag_spec_GCJ=
17478
 
    fi
17479
 
  else
17480
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17481
 
    case $host_os in
17482
 
    aix3*)
17483
 
      allow_undefined_flag_GCJ=unsupported
17484
 
      always_export_symbols_GCJ=yes
17485
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17486
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17487
 
      # are no directories specified by -L.
17488
 
      hardcode_minus_L_GCJ=yes
17489
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17490
 
        # Neither direct hardcoding nor static linking is supported with a
17491
 
        # broken collect2.
17492
 
        hardcode_direct_GCJ=unsupported
17493
 
      fi
17494
 
      ;;
17495
 
 
17496
 
    aix[4-9]*)
17497
 
      if test "$host_cpu" = ia64; then
17498
 
        # On IA64, the linker does run time linking by default, so we don't
17499
 
        # have to do anything special.
17500
 
        aix_use_runtimelinking=no
17501
 
        exp_sym_flag='-Bexport'
17502
 
        no_entry_flag=""
17503
 
      else
17504
 
        # If we're using GNU nm, then we don't want the "-C" option.
17505
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17506
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17507
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17508
 
        else
17509
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17510
 
        fi
17511
 
        aix_use_runtimelinking=no
17512
 
 
17513
 
        # Test if we are trying to use run time linking or normal
17514
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17515
 
        # need to do runtime linking.
17516
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17517
 
          for ld_flag in $LDFLAGS; do
17518
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17519
 
            aix_use_runtimelinking=yes
17520
 
            break
17521
 
          fi
17522
 
          done
17523
 
          ;;
17524
 
        esac
17525
 
 
17526
 
        exp_sym_flag='-bexport'
17527
 
        no_entry_flag='-bnoentry'
17528
 
      fi
17529
 
 
17530
 
      # When large executables or shared objects are built, AIX ld can
17531
 
      # have problems creating the table of contents.  If linking a library
17532
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17533
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17534
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17535
 
 
17536
 
      archive_cmds_GCJ=''
17537
 
      hardcode_direct_GCJ=yes
17538
 
      hardcode_libdir_separator_GCJ=':'
17539
 
      link_all_deplibs_GCJ=yes
17540
 
 
17541
 
      if test "$GCC" = yes; then
17542
 
        case $host_os in aix4.[012]|aix4.[012].*)
17543
 
        # We only want to do this on AIX 4.2 and lower, the check
17544
 
        # below for broken collect2 doesn't work under 4.3+
17545
 
          collect2name=`${CC} -print-prog-name=collect2`
17546
 
          if test -f "$collect2name" && \
17547
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17548
 
          then
17549
 
          # We have reworked collect2
17550
 
          :
17551
 
          else
17552
 
          # We have old collect2
17553
 
          hardcode_direct_GCJ=unsupported
17554
 
          # It fails to find uninstalled libraries when the uninstalled
17555
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17556
 
          # to unsupported forces relinking
17557
 
          hardcode_minus_L_GCJ=yes
17558
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17559
 
          hardcode_libdir_separator_GCJ=
17560
 
          fi
17561
 
          ;;
17562
 
        esac
17563
 
        shared_flag='-shared'
17564
 
        if test "$aix_use_runtimelinking" = yes; then
17565
 
          shared_flag="$shared_flag "'${wl}-G'
17566
 
        fi
17567
 
      else
17568
 
        # not using gcc
17569
 
        if test "$host_cpu" = ia64; then
17570
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17571
 
        # chokes on -Wl,-G. The following line is correct:
17572
 
          shared_flag='-G'
17573
 
        else
17574
 
          if test "$aix_use_runtimelinking" = yes; then
17575
 
            shared_flag='${wl}-G'
17576
 
          else
17577
 
            shared_flag='${wl}-bM:SRE'
17578
 
          fi
17579
 
        fi
17580
 
      fi
17581
 
 
17582
 
      # It seems that -bexpall does not export symbols beginning with
17583
 
      # underscore (_), so it is better to generate a list of symbols to export.
17584
 
      always_export_symbols_GCJ=yes
17585
 
      if test "$aix_use_runtimelinking" = yes; then
17586
 
        # Warning - without using the other runtime loading flags (-brtl),
17587
 
        # -berok will link without error, but may produce a broken library.
17588
 
        allow_undefined_flag_GCJ='-berok'
17589
 
       # Determine the default libpath from the value encoded in an empty executable.
17590
 
       cat >conftest.$ac_ext <<_ACEOF
17591
 
/* confdefs.h.  */
17592
 
_ACEOF
17593
 
cat confdefs.h >>conftest.$ac_ext
17594
 
cat >>conftest.$ac_ext <<_ACEOF
17595
 
/* end confdefs.h.  */
17596
 
 
17597
 
int
17598
 
main ()
17599
 
{
17600
 
 
17601
 
  ;
17602
 
  return 0;
17603
 
}
17604
 
_ACEOF
17605
 
rm -f conftest.$ac_objext conftest$ac_exeext
17606
 
if { (ac_try="$ac_link"
17607
 
case "(($ac_try" in
17608
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609
 
  *) ac_try_echo=$ac_try;;
17610
 
esac
17611
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612
 
  (eval "$ac_link") 2>conftest.er1
17613
 
  ac_status=$?
17614
 
  grep -v '^ *+' conftest.er1 >conftest.err
17615
 
  rm -f conftest.er1
17616
 
  cat conftest.err >&5
17617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618
 
  (exit $ac_status); } && {
17619
 
         test -z "$ac_c_werror_flag" ||
17620
 
         test ! -s conftest.err
17621
 
       } && test -s conftest$ac_exeext &&
17622
 
       $as_test_x conftest$ac_exeext; then
17623
 
 
17624
 
lt_aix_libpath_sed='
17625
 
    /Import File Strings/,/^$/ {
17626
 
        /^0/ {
17627
 
            s/^0  *\(.*\)$/\1/
17628
 
            p
17629
 
        }
17630
 
    }'
17631
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17632
 
# Check for a 64-bit object if we didn't find anything.
17633
 
if test -z "$aix_libpath"; then
17634
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17635
 
fi
17636
 
else
17637
 
  echo "$as_me: failed program was:" >&5
17638
 
sed 's/^/| /' conftest.$ac_ext >&5
17639
 
 
17640
 
 
17641
 
fi
17642
 
 
17643
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644
 
      conftest$ac_exeext conftest.$ac_ext
17645
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17646
 
 
17647
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17648
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17649
 
       else
17650
 
        if test "$host_cpu" = ia64; then
17651
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17652
 
          allow_undefined_flag_GCJ="-z nodefs"
17653
 
          archive_expsym_cmds_GCJ="\$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"
17654
 
        else
17655
 
         # Determine the default libpath from the value encoded in an empty executable.
17656
 
         cat >conftest.$ac_ext <<_ACEOF
17657
 
/* confdefs.h.  */
17658
 
_ACEOF
17659
 
cat confdefs.h >>conftest.$ac_ext
17660
 
cat >>conftest.$ac_ext <<_ACEOF
17661
 
/* end confdefs.h.  */
17662
 
 
17663
 
int
17664
 
main ()
17665
 
{
17666
 
 
17667
 
  ;
17668
 
  return 0;
17669
 
}
17670
 
_ACEOF
17671
 
rm -f conftest.$ac_objext conftest$ac_exeext
17672
 
if { (ac_try="$ac_link"
17673
 
case "(($ac_try" in
17674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675
 
  *) ac_try_echo=$ac_try;;
17676
 
esac
17677
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678
 
  (eval "$ac_link") 2>conftest.er1
17679
 
  ac_status=$?
17680
 
  grep -v '^ *+' conftest.er1 >conftest.err
17681
 
  rm -f conftest.er1
17682
 
  cat conftest.err >&5
17683
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684
 
  (exit $ac_status); } && {
17685
 
         test -z "$ac_c_werror_flag" ||
17686
 
         test ! -s conftest.err
17687
 
       } && test -s conftest$ac_exeext &&
17688
 
       $as_test_x conftest$ac_exeext; then
17689
 
 
17690
 
lt_aix_libpath_sed='
17691
 
    /Import File Strings/,/^$/ {
17692
 
        /^0/ {
17693
 
            s/^0  *\(.*\)$/\1/
17694
 
            p
17695
 
        }
17696
 
    }'
17697
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698
 
# Check for a 64-bit object if we didn't find anything.
17699
 
if test -z "$aix_libpath"; then
17700
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17701
 
fi
17702
 
else
17703
 
  echo "$as_me: failed program was:" >&5
17704
 
sed 's/^/| /' conftest.$ac_ext >&5
17705
 
 
17706
 
 
17707
 
fi
17708
 
 
17709
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17710
 
      conftest$ac_exeext conftest.$ac_ext
17711
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17712
 
 
17713
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17714
 
          # Warning - without using the other run time loading flags,
17715
 
          # -berok will link without error, but may produce a broken library.
17716
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17717
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17718
 
          # Exported symbols can be pulled into shared objects from archives
17719
 
          whole_archive_flag_spec_GCJ='$convenience'
17720
 
          archive_cmds_need_lc_GCJ=yes
17721
 
          # This is similar to how AIX traditionally builds its shared libraries.
17722
 
          archive_expsym_cmds_GCJ="\$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'
17723
 
        fi
17724
 
      fi
17725
 
      ;;
17726
 
 
17727
 
    amigaos*)
17728
 
      archive_cmds_GCJ='$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)'
17729
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17730
 
      hardcode_minus_L_GCJ=yes
17731
 
      # see comment about different semantics on the GNU ld section
17732
 
      ld_shlibs_GCJ=no
17733
 
      ;;
17734
 
 
17735
 
    bsdi[45]*)
17736
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17737
 
      ;;
17738
 
 
17739
 
    cygwin* | mingw* | pw32*)
17740
 
      # When not using gcc, we currently assume that we are using
17741
 
      # Microsoft Visual C++.
17742
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17743
 
      # no search path for DLLs.
17744
 
      hardcode_libdir_flag_spec_GCJ=' '
17745
 
      allow_undefined_flag_GCJ=unsupported
17746
 
      # Tell ltmain to make .lib files, not .a files.
17747
 
      libext=lib
17748
 
      # Tell ltmain to make .dll files, not .so files.
17749
 
      shrext_cmds=".dll"
17750
 
      # FIXME: Setting linknames here is a bad hack.
17751
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17752
 
      # The linker will automatically build a .lib file if we build a DLL.
17753
 
      old_archive_From_new_cmds_GCJ='true'
17754
 
      # FIXME: Should let the user specify the lib program.
17755
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17756
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17757
 
      enable_shared_with_static_runtimes_GCJ=yes
17758
 
      ;;
17759
 
 
17760
 
    darwin* | rhapsody*)
17761
 
      case $host_os in
17762
 
        rhapsody* | darwin1.[012])
17763
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17764
 
         ;;
17765
 
       *) # Darwin 1.3 on
17766
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17767
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17768
 
         else
17769
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17770
 
             10.[012])
17771
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17772
 
               ;;
17773
 
             10.*)
17774
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17775
 
               ;;
17776
 
           esac
17777
 
         fi
17778
 
         ;;
17779
 
      esac
17780
 
      archive_cmds_need_lc_GCJ=no
17781
 
      hardcode_direct_GCJ=no
17782
 
      hardcode_automatic_GCJ=yes
17783
 
      hardcode_shlibpath_var_GCJ=unsupported
17784
 
      whole_archive_flag_spec_GCJ=''
17785
 
      link_all_deplibs_GCJ=yes
17786
 
    if test "$GCC" = yes ; then
17787
 
        output_verbose_link_cmd='echo'
17788
 
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17789
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17790
 
        archive_expsym_cmds_GCJ="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}"
17791
 
        module_expsym_cmds_GCJ="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}"
17792
 
    else
17793
 
      case $cc_basename in
17794
 
        xlc*)
17795
 
         output_verbose_link_cmd='echo'
17796
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17797
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17798
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17799
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17800
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17801
 
          ;;
17802
 
       *)
17803
 
         ld_shlibs_GCJ=no
17804
 
          ;;
17805
 
      esac
17806
 
    fi
17807
 
      ;;
17808
 
 
17809
 
    dgux*)
17810
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17811
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17812
 
      hardcode_shlibpath_var_GCJ=no
17813
 
      ;;
17814
 
 
17815
 
    freebsd1*)
17816
 
      ld_shlibs_GCJ=no
17817
 
      ;;
17818
 
 
17819
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17820
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17821
 
    # does not break anything, and helps significantly (at the cost of a little
17822
 
    # extra space).
17823
 
    freebsd2.2*)
17824
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17825
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17826
 
      hardcode_direct_GCJ=yes
17827
 
      hardcode_shlibpath_var_GCJ=no
17828
 
      ;;
17829
 
 
17830
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17831
 
    freebsd2*)
17832
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17833
 
      hardcode_direct_GCJ=yes
17834
 
      hardcode_minus_L_GCJ=yes
17835
 
      hardcode_shlibpath_var_GCJ=no
17836
 
      ;;
17837
 
 
17838
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17839
 
    freebsd* | dragonfly*)
17840
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17841
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17842
 
      hardcode_direct_GCJ=yes
17843
 
      hardcode_shlibpath_var_GCJ=no
17844
 
      ;;
17845
 
 
17846
 
    hpux9*)
17847
 
      if test "$GCC" = yes; then
17848
 
        archive_cmds_GCJ='$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'
17849
 
      else
17850
 
        archive_cmds_GCJ='$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'
17851
 
      fi
17852
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17853
 
      hardcode_libdir_separator_GCJ=:
17854
 
      hardcode_direct_GCJ=yes
17855
 
 
17856
 
      # hardcode_minus_L: Not really in the search PATH,
17857
 
      # but as the default location of the library.
17858
 
      hardcode_minus_L_GCJ=yes
17859
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17860
 
      ;;
17861
 
 
17862
 
    hpux10*)
17863
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17864
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865
 
      else
17866
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17867
 
      fi
17868
 
      if test "$with_gnu_ld" = no; then
17869
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870
 
        hardcode_libdir_separator_GCJ=:
17871
 
 
17872
 
        hardcode_direct_GCJ=yes
17873
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17874
 
 
17875
 
        # hardcode_minus_L: Not really in the search PATH,
17876
 
        # but as the default location of the library.
17877
 
        hardcode_minus_L_GCJ=yes
17878
 
      fi
17879
 
      ;;
17880
 
 
17881
 
    hpux11*)
17882
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17883
 
        case $host_cpu in
17884
 
        hppa*64*)
17885
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886
 
          ;;
17887
 
        ia64*)
17888
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17889
 
          ;;
17890
 
        *)
17891
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892
 
          ;;
17893
 
        esac
17894
 
      else
17895
 
        case $host_cpu in
17896
 
        hppa*64*)
17897
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17898
 
          ;;
17899
 
        ia64*)
17900
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17901
 
          ;;
17902
 
        *)
17903
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904
 
          ;;
17905
 
        esac
17906
 
      fi
17907
 
      if test "$with_gnu_ld" = no; then
17908
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17909
 
        hardcode_libdir_separator_GCJ=:
17910
 
 
17911
 
        case $host_cpu in
17912
 
        hppa*64*|ia64*)
17913
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17914
 
          hardcode_direct_GCJ=no
17915
 
          hardcode_shlibpath_var_GCJ=no
17916
 
          ;;
17917
 
        *)
17918
 
          hardcode_direct_GCJ=yes
17919
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17920
 
 
17921
 
          # hardcode_minus_L: Not really in the search PATH,
17922
 
          # but as the default location of the library.
17923
 
          hardcode_minus_L_GCJ=yes
17924
 
          ;;
17925
 
        esac
17926
 
      fi
17927
 
      ;;
17928
 
 
17929
 
    irix5* | irix6* | nonstopux*)
17930
 
      if test "$GCC" = yes; then
17931
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17932
 
      else
17933
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17934
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17935
 
      fi
17936
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17937
 
      hardcode_libdir_separator_GCJ=:
17938
 
      link_all_deplibs_GCJ=yes
17939
 
      ;;
17940
 
 
17941
 
    netbsd* | netbsdelf*-gnu)
17942
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17943
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17944
 
      else
17945
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17946
 
      fi
17947
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17948
 
      hardcode_direct_GCJ=yes
17949
 
      hardcode_shlibpath_var_GCJ=no
17950
 
      ;;
17951
 
 
17952
 
    newsos6)
17953
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17954
 
      hardcode_direct_GCJ=yes
17955
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17956
 
      hardcode_libdir_separator_GCJ=:
17957
 
      hardcode_shlibpath_var_GCJ=no
17958
 
      ;;
17959
 
 
17960
 
    openbsd*)
17961
 
      if test -f /usr/libexec/ld.so; then
17962
 
        hardcode_direct_GCJ=yes
17963
 
        hardcode_shlibpath_var_GCJ=no
17964
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17965
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17966
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17967
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17968
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17969
 
        else
17970
 
          case $host_os in
17971
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17972
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17973
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
17974
 
             ;;
17975
 
           *)
17976
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17977
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17978
 
             ;;
17979
 
          esac
17980
 
        fi
17981
 
      else
17982
 
        ld_shlibs_GCJ=no
17983
 
      fi
17984
 
      ;;
17985
 
 
17986
 
    os2*)
17987
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988
 
      hardcode_minus_L_GCJ=yes
17989
 
      allow_undefined_flag_GCJ=unsupported
17990
 
      archive_cmds_GCJ='$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'
17991
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17992
 
      ;;
17993
 
 
17994
 
    osf3*)
17995
 
      if test "$GCC" = yes; then
17996
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17997
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17998
 
      else
17999
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18000
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18001
 
      fi
18002
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18003
 
      hardcode_libdir_separator_GCJ=:
18004
 
      ;;
18005
 
 
18006
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18007
 
      if test "$GCC" = yes; then
18008
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18009
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18010
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18011
 
      else
18012
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18013
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18014
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18015
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18016
 
 
18017
 
        # Both c and cxx compiler support -rpath directly
18018
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18019
 
      fi
18020
 
      hardcode_libdir_separator_GCJ=:
18021
 
      ;;
18022
 
 
18023
 
    solaris*)
18024
 
      no_undefined_flag_GCJ=' -z text'
18025
 
      if test "$GCC" = yes; then
18026
 
        wlarc='${wl}'
18027
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18028
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18029
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18030
 
      else
18031
 
        wlarc=''
18032
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18034
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18035
 
      fi
18036
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18037
 
      hardcode_shlibpath_var_GCJ=no
18038
 
      case $host_os in
18039
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18040
 
      *)
18041
 
        # The compiler driver will combine and reorder linker options,
18042
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18043
 
        # but is careful enough not to reorder.
18044
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18045
 
        if test "$GCC" = yes; then
18046
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18047
 
        else
18048
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18049
 
        fi
18050
 
        ;;
18051
 
      esac
18052
 
      link_all_deplibs_GCJ=yes
18053
 
      ;;
18054
 
 
18055
 
    sunos4*)
18056
 
      if test "x$host_vendor" = xsequent; then
18057
 
        # Use $CC to link under sequent, because it throws in some extra .o
18058
 
        # files that make .init and .fini sections work.
18059
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18060
 
      else
18061
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18062
 
      fi
18063
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18064
 
      hardcode_direct_GCJ=yes
18065
 
      hardcode_minus_L_GCJ=yes
18066
 
      hardcode_shlibpath_var_GCJ=no
18067
 
      ;;
18068
 
 
18069
 
    sysv4)
18070
 
      case $host_vendor in
18071
 
        sni)
18072
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073
 
          hardcode_direct_GCJ=yes # is this really true???
18074
 
        ;;
18075
 
        siemens)
18076
 
          ## LD is ld it makes a PLAMLIB
18077
 
          ## CC just makes a GrossModule.
18078
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18079
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18080
 
          hardcode_direct_GCJ=no
18081
 
        ;;
18082
 
        motorola)
18083
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18085
 
        ;;
18086
 
      esac
18087
 
      runpath_var='LD_RUN_PATH'
18088
 
      hardcode_shlibpath_var_GCJ=no
18089
 
      ;;
18090
 
 
18091
 
    sysv4.3*)
18092
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18093
 
      hardcode_shlibpath_var_GCJ=no
18094
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18095
 
      ;;
18096
 
 
18097
 
    sysv4*MP*)
18098
 
      if test -d /usr/nec; then
18099
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100
 
        hardcode_shlibpath_var_GCJ=no
18101
 
        runpath_var=LD_RUN_PATH
18102
 
        hardcode_runpath_var=yes
18103
 
        ld_shlibs_GCJ=yes
18104
 
      fi
18105
 
      ;;
18106
 
 
18107
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18108
 
      no_undefined_flag_GCJ='${wl}-z,text'
18109
 
      archive_cmds_need_lc_GCJ=no
18110
 
      hardcode_shlibpath_var_GCJ=no
18111
 
      runpath_var='LD_RUN_PATH'
18112
 
 
18113
 
      if test "$GCC" = yes; then
18114
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116
 
      else
18117
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119
 
      fi
18120
 
      ;;
18121
 
 
18122
 
    sysv5* | sco3.2v5* | sco5v6*)
18123
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18124
 
      # link with -lc, and that would cause any symbols used from libc to
18125
 
      # always be unresolved, which means just about no library would
18126
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18127
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18128
 
      # as -z defs.
18129
 
      no_undefined_flag_GCJ='${wl}-z,text'
18130
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18131
 
      archive_cmds_need_lc_GCJ=no
18132
 
      hardcode_shlibpath_var_GCJ=no
18133
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18134
 
      hardcode_libdir_separator_GCJ=':'
18135
 
      link_all_deplibs_GCJ=yes
18136
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18137
 
      runpath_var='LD_RUN_PATH'
18138
 
 
18139
 
      if test "$GCC" = yes; then
18140
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142
 
      else
18143
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145
 
      fi
18146
 
      ;;
18147
 
 
18148
 
    uts4*)
18149
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18150
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151
 
      hardcode_shlibpath_var_GCJ=no
18152
 
      ;;
18153
 
 
18154
 
    *)
18155
 
      ld_shlibs_GCJ=no
18156
 
      ;;
18157
 
    esac
18158
 
  fi
18159
 
 
18160
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18161
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18162
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18163
 
 
18164
 
#
18165
 
# Do we need to explicitly link libc?
18166
 
#
18167
 
case "x$archive_cmds_need_lc_GCJ" in
18168
 
x|xyes)
18169
 
  # Assume -lc should be added
18170
 
  archive_cmds_need_lc_GCJ=yes
18171
 
 
18172
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18173
 
    case $archive_cmds_GCJ in
18174
 
    *'~'*)
18175
 
      # FIXME: we may have to deal with multi-command sequences.
18176
 
      ;;
18177
 
    '$CC '*)
18178
 
      # Test whether the compiler implicitly links with -lc since on some
18179
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18180
 
      # to ld, don't add -lc before -lgcc.
18181
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18182
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18183
 
      $rm conftest*
18184
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18185
 
 
18186
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187
 
  (eval $ac_compile) 2>&5
18188
 
  ac_status=$?
18189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190
 
  (exit $ac_status); } 2>conftest.err; then
18191
 
        soname=conftest
18192
 
        lib=conftest
18193
 
        libobjs=conftest.$ac_objext
18194
 
        deplibs=
18195
 
        wl=$lt_prog_compiler_wl_GCJ
18196
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18197
 
        compiler_flags=-v
18198
 
        linker_flags=-v
18199
 
        verstring=
18200
 
        output_objdir=.
18201
 
        libname=conftest
18202
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18203
 
        allow_undefined_flag_GCJ=
18204
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18205
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18206
 
  ac_status=$?
18207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208
 
  (exit $ac_status); }
18209
 
        then
18210
 
          archive_cmds_need_lc_GCJ=no
18211
 
        else
18212
 
          archive_cmds_need_lc_GCJ=yes
18213
 
        fi
18214
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18215
 
      else
18216
 
        cat conftest.err 1>&5
18217
 
      fi
18218
 
      $rm conftest*
18219
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18220
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18221
 
      ;;
18222
 
    esac
18223
 
  fi
18224
 
  ;;
18225
 
esac
18226
 
 
18227
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18228
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18229
 
library_names_spec=
18230
 
libname_spec='lib$name'
18231
 
soname_spec=
18232
 
shrext_cmds=".so"
18233
 
postinstall_cmds=
18234
 
postuninstall_cmds=
18235
 
finish_cmds=
18236
 
finish_eval=
18237
 
shlibpath_var=
18238
 
shlibpath_overrides_runpath=unknown
18239
 
version_type=none
18240
 
dynamic_linker="$host_os ld.so"
18241
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18242
 
 
18243
 
need_lib_prefix=unknown
18244
 
hardcode_into_libs=no
18245
 
 
18246
 
# when you set need_version to no, make sure it does not cause -set_version
18247
 
# flags to be left without arguments
18248
 
need_version=unknown
18249
 
 
18250
 
case $host_os in
18251
 
aix3*)
18252
 
  version_type=linux
18253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18254
 
  shlibpath_var=LIBPATH
18255
 
 
18256
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18257
 
  soname_spec='${libname}${release}${shared_ext}$major'
18258
 
  ;;
18259
 
 
18260
 
aix[4-9]*)
18261
 
  version_type=linux
18262
 
  need_lib_prefix=no
18263
 
  need_version=no
18264
 
  hardcode_into_libs=yes
18265
 
  if test "$host_cpu" = ia64; then
18266
 
    # AIX 5 supports IA64
18267
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18268
 
    shlibpath_var=LD_LIBRARY_PATH
18269
 
  else
18270
 
    # With GCC up to 2.95.x, collect2 would create an import file
18271
 
    # for dependence libraries.  The import file would start with
18272
 
    # the line `#! .'.  This would cause the generated library to
18273
 
    # depend on `.', always an invalid library.  This was fixed in
18274
 
    # development snapshots of GCC prior to 3.0.
18275
 
    case $host_os in
18276
 
      aix4 | aix4.[01] | aix4.[01].*)
18277
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18278
 
           echo ' yes '
18279
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18280
 
        :
18281
 
      else
18282
 
        can_build_shared=no
18283
 
      fi
18284
 
      ;;
18285
 
    esac
18286
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18287
 
    # soname into executable. Probably we can add versioning support to
18288
 
    # collect2, so additional links can be useful in future.
18289
 
    if test "$aix_use_runtimelinking" = yes; then
18290
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18291
 
      # instead of lib<name>.a to let people know that these are not
18292
 
      # typical AIX shared libraries.
18293
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18294
 
    else
18295
 
      # We preserve .a as extension for shared libraries through AIX4.2
18296
 
      # and later when we are not doing run time linking.
18297
 
      library_names_spec='${libname}${release}.a $libname.a'
18298
 
      soname_spec='${libname}${release}${shared_ext}$major'
18299
 
    fi
18300
 
    shlibpath_var=LIBPATH
18301
 
  fi
18302
 
  ;;
18303
 
 
18304
 
amigaos*)
18305
 
  library_names_spec='$libname.ixlibrary $libname.a'
18306
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18307
 
  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'
18308
 
  ;;
18309
 
 
18310
 
beos*)
18311
 
  library_names_spec='${libname}${shared_ext}'
18312
 
  dynamic_linker="$host_os ld.so"
18313
 
  shlibpath_var=LIBRARY_PATH
18314
 
  ;;
18315
 
 
18316
 
bsdi[45]*)
18317
 
  version_type=linux
18318
 
  need_version=no
18319
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320
 
  soname_spec='${libname}${release}${shared_ext}$major'
18321
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18322
 
  shlibpath_var=LD_LIBRARY_PATH
18323
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18324
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18325
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18326
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18327
 
  # libtool to hard-code these into programs
18328
 
  ;;
18329
 
 
18330
 
cygwin* | mingw* | pw32*)
18331
 
  version_type=windows
18332
 
  shrext_cmds=".dll"
18333
 
  need_version=no
18334
 
  need_lib_prefix=no
18335
 
 
18336
 
  case $GCC,$host_os in
18337
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18338
 
    library_names_spec='$libname.dll.a'
18339
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18340
 
    postinstall_cmds='base_file=`basename \${file}`~
18341
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18342
 
      dldir=$destdir/`dirname \$dlpath`~
18343
 
      test -d \$dldir || mkdir -p \$dldir~
18344
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18345
 
      chmod a+x \$dldir/$dlname'
18346
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18347
 
      dlpath=$dir/\$dldll~
18348
 
       $rm \$dlpath'
18349
 
    shlibpath_overrides_runpath=yes
18350
 
 
18351
 
    case $host_os in
18352
 
    cygwin*)
18353
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18354
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18355
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18356
 
      ;;
18357
 
    mingw*)
18358
 
      # MinGW DLLs use traditional 'lib' prefix
18359
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18360
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18361
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18362
 
        # It is most probably a Windows format PATH printed by
18363
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18364
 
        # path with ; separators, and with drive letters. We can handle the
18365
 
        # drive letters (cygwin fileutils understands them), so leave them,
18366
 
        # especially as we might pass files found there to a mingw objdump,
18367
 
        # which wouldn't understand a cygwinified path. Ahh.
18368
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18369
 
      else
18370
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18371
 
      fi
18372
 
      ;;
18373
 
    pw32*)
18374
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18375
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18376
 
      ;;
18377
 
    esac
18378
 
    ;;
18379
 
 
18380
 
  *)
18381
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18382
 
    ;;
18383
 
  esac
18384
 
  dynamic_linker='Win32 ld.exe'
18385
 
  # FIXME: first we should search . and the directory the executable is in
18386
 
  shlibpath_var=PATH
18387
 
  ;;
18388
 
 
18389
 
darwin* | rhapsody*)
18390
 
  dynamic_linker="$host_os dyld"
18391
 
  version_type=darwin
18392
 
  need_lib_prefix=no
18393
 
  need_version=no
18394
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18395
 
  soname_spec='${libname}${release}${major}$shared_ext'
18396
 
  shlibpath_overrides_runpath=yes
18397
 
  shlibpath_var=DYLD_LIBRARY_PATH
18398
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18399
 
 
18400
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18401
 
  ;;
18402
 
 
18403
 
dgux*)
18404
 
  version_type=linux
18405
 
  need_lib_prefix=no
18406
 
  need_version=no
18407
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18408
 
  soname_spec='${libname}${release}${shared_ext}$major'
18409
 
  shlibpath_var=LD_LIBRARY_PATH
18410
 
  ;;
18411
 
 
18412
 
freebsd1*)
18413
 
  dynamic_linker=no
18414
 
  ;;
18415
 
 
18416
 
freebsd* | dragonfly*)
18417
 
  # DragonFly does not have aout.  When/if they implement a new
18418
 
  # versioning mechanism, adjust this.
18419
 
  if test -x /usr/bin/objformat; then
18420
 
    objformat=`/usr/bin/objformat`
18421
 
  else
18422
 
    case $host_os in
18423
 
    freebsd[123]*) objformat=aout ;;
18424
 
    *) objformat=elf ;;
18425
 
    esac
18426
 
  fi
18427
 
  version_type=freebsd-$objformat
18428
 
  case $version_type in
18429
 
    freebsd-elf*)
18430
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18431
 
      need_version=no
18432
 
      need_lib_prefix=no
18433
 
      ;;
18434
 
    freebsd-*)
18435
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18436
 
      need_version=yes
18437
 
      ;;
18438
 
  esac
18439
 
  shlibpath_var=LD_LIBRARY_PATH
18440
 
  case $host_os in
18441
 
  freebsd2*)
18442
 
    shlibpath_overrides_runpath=yes
18443
 
    ;;
18444
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18445
 
    shlibpath_overrides_runpath=yes
18446
 
    hardcode_into_libs=yes
18447
 
    ;;
18448
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18449
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18450
 
    shlibpath_overrides_runpath=no
18451
 
    hardcode_into_libs=yes
18452
 
    ;;
18453
 
  *) # from 4.6 on, and DragonFly
18454
 
    shlibpath_overrides_runpath=yes
18455
 
    hardcode_into_libs=yes
18456
 
    ;;
18457
 
  esac
18458
 
  ;;
18459
 
 
18460
 
gnu*)
18461
 
  version_type=linux
18462
 
  need_lib_prefix=no
18463
 
  need_version=no
18464
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18465
 
  soname_spec='${libname}${release}${shared_ext}$major'
18466
 
  shlibpath_var=LD_LIBRARY_PATH
18467
 
  hardcode_into_libs=yes
18468
 
  ;;
18469
 
 
18470
 
hpux9* | hpux10* | hpux11*)
18471
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18472
 
  # link against other versions.
18473
 
  version_type=sunos
18474
 
  need_lib_prefix=no
18475
 
  need_version=no
18476
 
  case $host_cpu in
18477
 
  ia64*)
18478
 
    shrext_cmds='.so'
18479
 
    hardcode_into_libs=yes
18480
 
    dynamic_linker="$host_os dld.so"
18481
 
    shlibpath_var=LD_LIBRARY_PATH
18482
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18483
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484
 
    soname_spec='${libname}${release}${shared_ext}$major'
18485
 
    if test "X$HPUX_IA64_MODE" = X32; then
18486
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18487
 
    else
18488
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18489
 
    fi
18490
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491
 
    ;;
18492
 
   hppa*64*)
18493
 
     shrext_cmds='.sl'
18494
 
     hardcode_into_libs=yes
18495
 
     dynamic_linker="$host_os dld.sl"
18496
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18497
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18498
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499
 
     soname_spec='${libname}${release}${shared_ext}$major'
18500
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18501
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18502
 
     ;;
18503
 
   *)
18504
 
    shrext_cmds='.sl'
18505
 
    dynamic_linker="$host_os dld.sl"
18506
 
    shlibpath_var=SHLIB_PATH
18507
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18508
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18509
 
    soname_spec='${libname}${release}${shared_ext}$major'
18510
 
    ;;
18511
 
  esac
18512
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18513
 
  postinstall_cmds='chmod 555 $lib'
18514
 
  ;;
18515
 
 
18516
 
interix[3-9]*)
18517
 
  version_type=linux
18518
 
  need_lib_prefix=no
18519
 
  need_version=no
18520
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18521
 
  soname_spec='${libname}${release}${shared_ext}$major'
18522
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18523
 
  shlibpath_var=LD_LIBRARY_PATH
18524
 
  shlibpath_overrides_runpath=no
18525
 
  hardcode_into_libs=yes
18526
 
  ;;
18527
 
 
18528
 
irix5* | irix6* | nonstopux*)
18529
 
  case $host_os in
18530
 
    nonstopux*) version_type=nonstopux ;;
18531
 
    *)
18532
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18533
 
                version_type=linux
18534
 
        else
18535
 
                version_type=irix
18536
 
        fi ;;
18537
 
  esac
18538
 
  need_lib_prefix=no
18539
 
  need_version=no
18540
 
  soname_spec='${libname}${release}${shared_ext}$major'
18541
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18542
 
  case $host_os in
18543
 
  irix5* | nonstopux*)
18544
 
    libsuff= shlibsuff=
18545
 
    ;;
18546
 
  *)
18547
 
    case $LD in # libtool.m4 will add one of these switches to LD
18548
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18549
 
      libsuff= shlibsuff= libmagic=32-bit;;
18550
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18551
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18552
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18553
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18554
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18555
 
    esac
18556
 
    ;;
18557
 
  esac
18558
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18559
 
  shlibpath_overrides_runpath=no
18560
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18561
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18562
 
  hardcode_into_libs=yes
18563
 
  ;;
18564
 
 
18565
 
# No shared lib support for Linux oldld, aout, or coff.
18566
 
linux*oldld* | linux*aout* | linux*coff*)
18567
 
  dynamic_linker=no
18568
 
  ;;
18569
 
 
18570
 
# This must be Linux ELF.
18571
 
linux* | k*bsd*-gnu)
18572
 
  version_type=linux
18573
 
  need_lib_prefix=no
18574
 
  need_version=no
18575
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576
 
  soname_spec='${libname}${release}${shared_ext}$major'
18577
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18578
 
  shlibpath_var=LD_LIBRARY_PATH
18579
 
  shlibpath_overrides_runpath=no
18580
 
  # This implies no fast_install, which is unacceptable.
18581
 
  # Some rework will be needed to allow for fast_install
18582
 
  # before this can be enabled.
18583
 
  hardcode_into_libs=yes
18584
 
 
18585
 
  # Append ld.so.conf contents to the search path
18586
 
  if test -f /etc/ld.so.conf; then
18587
 
    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' ' '`
18588
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18589
 
  fi
18590
 
 
18591
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18592
 
  # powerpc, because MkLinux only supported shared libraries with the
18593
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18594
 
  # most powerpc-linux boxes support dynamic linking these days and
18595
 
  # people can always --disable-shared, the test was removed, and we
18596
 
  # assume the GNU/Linux dynamic linker is in use.
18597
 
  dynamic_linker='GNU/Linux ld.so'
18598
 
  ;;
18599
 
 
18600
 
netbsdelf*-gnu)
18601
 
  version_type=linux
18602
 
  need_lib_prefix=no
18603
 
  need_version=no
18604
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18605
 
  soname_spec='${libname}${release}${shared_ext}$major'
18606
 
  shlibpath_var=LD_LIBRARY_PATH
18607
 
  shlibpath_overrides_runpath=no
18608
 
  hardcode_into_libs=yes
18609
 
  dynamic_linker='NetBSD ld.elf_so'
18610
 
  ;;
18611
 
 
18612
 
netbsd*)
18613
 
  version_type=sunos
18614
 
  need_lib_prefix=no
18615
 
  need_version=no
18616
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18617
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619
 
    dynamic_linker='NetBSD (a.out) ld.so'
18620
 
  else
18621
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18622
 
    soname_spec='${libname}${release}${shared_ext}$major'
18623
 
    dynamic_linker='NetBSD ld.elf_so'
18624
 
  fi
18625
 
  shlibpath_var=LD_LIBRARY_PATH
18626
 
  shlibpath_overrides_runpath=yes
18627
 
  hardcode_into_libs=yes
18628
 
  ;;
18629
 
 
18630
 
newsos6)
18631
 
  version_type=linux
18632
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633
 
  shlibpath_var=LD_LIBRARY_PATH
18634
 
  shlibpath_overrides_runpath=yes
18635
 
  ;;
18636
 
 
18637
 
nto-qnx*)
18638
 
  version_type=linux
18639
 
  need_lib_prefix=no
18640
 
  need_version=no
18641
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642
 
  soname_spec='${libname}${release}${shared_ext}$major'
18643
 
  shlibpath_var=LD_LIBRARY_PATH
18644
 
  shlibpath_overrides_runpath=yes
18645
 
  ;;
18646
 
 
18647
 
openbsd*)
18648
 
  version_type=sunos
18649
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18650
 
  need_lib_prefix=no
18651
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18652
 
  case $host_os in
18653
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18654
 
    *)                         need_version=no  ;;
18655
 
  esac
18656
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18657
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18658
 
  shlibpath_var=LD_LIBRARY_PATH
18659
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18660
 
    case $host_os in
18661
 
      openbsd2.[89] | openbsd2.[89].*)
18662
 
        shlibpath_overrides_runpath=no
18663
 
        ;;
18664
 
      *)
18665
 
        shlibpath_overrides_runpath=yes
18666
 
        ;;
18667
 
      esac
18668
 
  else
18669
 
    shlibpath_overrides_runpath=yes
18670
 
  fi
18671
 
  ;;
18672
 
 
18673
 
os2*)
18674
 
  libname_spec='$name'
18675
 
  shrext_cmds=".dll"
18676
 
  need_lib_prefix=no
18677
 
  library_names_spec='$libname${shared_ext} $libname.a'
18678
 
  dynamic_linker='OS/2 ld.exe'
18679
 
  shlibpath_var=LIBPATH
18680
 
  ;;
18681
 
 
18682
 
osf3* | osf4* | osf5*)
18683
 
  version_type=osf
18684
 
  need_lib_prefix=no
18685
 
  need_version=no
18686
 
  soname_spec='${libname}${release}${shared_ext}$major'
18687
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688
 
  shlibpath_var=LD_LIBRARY_PATH
18689
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18690
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18691
 
  ;;
18692
 
 
18693
 
rdos*)
18694
 
  dynamic_linker=no
18695
 
  ;;
18696
 
 
18697
 
solaris*)
18698
 
  version_type=linux
18699
 
  need_lib_prefix=no
18700
 
  need_version=no
18701
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18702
 
  soname_spec='${libname}${release}${shared_ext}$major'
18703
 
  shlibpath_var=LD_LIBRARY_PATH
18704
 
  shlibpath_overrides_runpath=yes
18705
 
  hardcode_into_libs=yes
18706
 
  # ldd complains unless libraries are executable
18707
 
  postinstall_cmds='chmod +x $lib'
18708
 
  ;;
18709
 
 
18710
 
sunos4*)
18711
 
  version_type=sunos
18712
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18713
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18714
 
  shlibpath_var=LD_LIBRARY_PATH
18715
 
  shlibpath_overrides_runpath=yes
18716
 
  if test "$with_gnu_ld" = yes; then
18717
 
    need_lib_prefix=no
18718
 
  fi
18719
 
  need_version=yes
18720
 
  ;;
18721
 
 
18722
 
sysv4 | sysv4.3*)
18723
 
  version_type=linux
18724
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725
 
  soname_spec='${libname}${release}${shared_ext}$major'
18726
 
  shlibpath_var=LD_LIBRARY_PATH
18727
 
  case $host_vendor in
18728
 
    sni)
18729
 
      shlibpath_overrides_runpath=no
18730
 
      need_lib_prefix=no
18731
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18732
 
      runpath_var=LD_RUN_PATH
18733
 
      ;;
18734
 
    siemens)
18735
 
      need_lib_prefix=no
18736
 
      ;;
18737
 
    motorola)
18738
 
      need_lib_prefix=no
18739
 
      need_version=no
18740
 
      shlibpath_overrides_runpath=no
18741
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18742
 
      ;;
18743
 
  esac
18744
 
  ;;
18745
 
 
18746
 
sysv4*MP*)
18747
 
  if test -d /usr/nec ;then
18748
 
    version_type=linux
18749
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18750
 
    soname_spec='$libname${shared_ext}.$major'
18751
 
    shlibpath_var=LD_LIBRARY_PATH
18752
 
  fi
18753
 
  ;;
18754
 
 
18755
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18756
 
  version_type=freebsd-elf
18757
 
  need_lib_prefix=no
18758
 
  need_version=no
18759
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18760
 
  soname_spec='${libname}${release}${shared_ext}$major'
18761
 
  shlibpath_var=LD_LIBRARY_PATH
18762
 
  hardcode_into_libs=yes
18763
 
  if test "$with_gnu_ld" = yes; then
18764
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18765
 
    shlibpath_overrides_runpath=no
18766
 
  else
18767
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18768
 
    shlibpath_overrides_runpath=yes
18769
 
    case $host_os in
18770
 
      sco3.2v5*)
18771
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18772
 
        ;;
18773
 
    esac
18774
 
  fi
18775
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18776
 
  ;;
18777
 
 
18778
 
uts4*)
18779
 
  version_type=linux
18780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781
 
  soname_spec='${libname}${release}${shared_ext}$major'
18782
 
  shlibpath_var=LD_LIBRARY_PATH
18783
 
  ;;
18784
 
 
18785
 
*)
18786
 
  dynamic_linker=no
18787
 
  ;;
18788
 
esac
18789
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18790
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18791
 
test "$dynamic_linker" = no && can_build_shared=no
18792
 
 
18793
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18795
 
else
18796
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18797
 
fi
18798
 
 
18799
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18800
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18802
 
else
18803
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18804
 
fi
18805
 
 
18806
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18807
 
 
18808
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18809
 
if test "$GCC" = yes; then
18810
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18811
 
fi
18812
 
 
18813
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18814
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18815
 
hardcode_action_GCJ=
18816
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18817
 
   test -n "$runpath_var_GCJ" || \
18818
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18819
 
 
18820
 
  # We can hardcode non-existant directories.
18821
 
  if test "$hardcode_direct_GCJ" != no &&
18822
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18823
 
     # have to relink, otherwise we might link with an installed library
18824
 
     # when we should be linking with a yet-to-be-installed one
18825
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18826
 
     test "$hardcode_minus_L_GCJ" != no; then
18827
 
    # Linking always hardcodes the temporary library directory.
18828
 
    hardcode_action_GCJ=relink
18829
 
  else
18830
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18831
 
    hardcode_action_GCJ=immediate
18832
 
  fi
18833
 
else
18834
 
  # We cannot hardcode anything, or else we can only hardcode existing
18835
 
  # directories.
18836
 
  hardcode_action_GCJ=unsupported
18837
 
fi
18838
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18839
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18840
 
 
18841
 
if test "$hardcode_action_GCJ" = relink; then
18842
 
  # Fast installation is not supported
18843
 
  enable_fast_install=no
18844
 
elif test "$shlibpath_overrides_runpath" = yes ||
18845
 
     test "$enable_shared" = no; then
18846
 
  # Fast installation is not necessary
18847
 
  enable_fast_install=needless
18848
 
fi
18849
 
 
18850
 
 
18851
 
# The else clause should only fire when bootstrapping the
18852
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18853
 
# with your package, and you will get complaints that there are
18854
 
# no rules to generate ltmain.sh.
18855
 
if test -f "$ltmain"; then
18856
 
  # See if we are running on zsh, and set the options which allow our commands through
18857
 
  # without removal of \ escapes.
18858
 
  if test -n "${ZSH_VERSION+set}" ; then
18859
 
    setopt NO_GLOB_SUBST
18860
 
  fi
18861
 
  # Now quote all the things that may contain metacharacters while being
18862
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18863
 
  # variables and quote the copies for generation of the libtool script.
18864
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18865
 
    SED SHELL STRIP \
18866
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18867
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18868
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18869
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18870
 
    lt_cv_sys_global_symbol_to_c_name_address \
18871
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18872
 
    old_postinstall_cmds old_postuninstall_cmds \
18873
 
    compiler_GCJ \
18874
 
    CC_GCJ \
18875
 
    LD_GCJ \
18876
 
    lt_prog_compiler_wl_GCJ \
18877
 
    lt_prog_compiler_pic_GCJ \
18878
 
    lt_prog_compiler_static_GCJ \
18879
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18880
 
    export_dynamic_flag_spec_GCJ \
18881
 
    thread_safe_flag_spec_GCJ \
18882
 
    whole_archive_flag_spec_GCJ \
18883
 
    enable_shared_with_static_runtimes_GCJ \
18884
 
    old_archive_cmds_GCJ \
18885
 
    old_archive_from_new_cmds_GCJ \
18886
 
    predep_objects_GCJ \
18887
 
    postdep_objects_GCJ \
18888
 
    predeps_GCJ \
18889
 
    postdeps_GCJ \
18890
 
    compiler_lib_search_path_GCJ \
18891
 
    compiler_lib_search_dirs_GCJ \
18892
 
    archive_cmds_GCJ \
18893
 
    archive_expsym_cmds_GCJ \
18894
 
    postinstall_cmds_GCJ \
18895
 
    postuninstall_cmds_GCJ \
18896
 
    old_archive_from_expsyms_cmds_GCJ \
18897
 
    allow_undefined_flag_GCJ \
18898
 
    no_undefined_flag_GCJ \
18899
 
    export_symbols_cmds_GCJ \
18900
 
    hardcode_libdir_flag_spec_GCJ \
18901
 
    hardcode_libdir_flag_spec_ld_GCJ \
18902
 
    hardcode_libdir_separator_GCJ \
18903
 
    hardcode_automatic_GCJ \
18904
 
    module_cmds_GCJ \
18905
 
    module_expsym_cmds_GCJ \
18906
 
    lt_cv_prog_compiler_c_o_GCJ \
18907
 
    fix_srcfile_path_GCJ \
18908
 
    exclude_expsyms_GCJ \
18909
 
    include_expsyms_GCJ; do
18910
 
 
18911
 
    case $var in
18912
 
    old_archive_cmds_GCJ | \
18913
 
    old_archive_from_new_cmds_GCJ | \
18914
 
    archive_cmds_GCJ | \
18915
 
    archive_expsym_cmds_GCJ | \
18916
 
    module_cmds_GCJ | \
18917
 
    module_expsym_cmds_GCJ | \
18918
 
    old_archive_from_expsyms_cmds_GCJ | \
18919
 
    export_symbols_cmds_GCJ | \
18920
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18921
 
    postinstall_cmds | postuninstall_cmds | \
18922
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18923
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18924
 
      # Double-quote double-evaled strings.
18925
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18926
 
      ;;
18927
 
    *)
18928
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18929
 
      ;;
18930
 
    esac
18931
 
  done
18932
 
 
18933
 
  case $lt_echo in
18934
 
  *'\$0 --fallback-echo"')
18935
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18936
 
    ;;
18937
 
  esac
18938
 
 
18939
 
cfgfile="$ofile"
18940
 
 
18941
 
  cat <<__EOF__ >> "$cfgfile"
18942
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18943
 
 
18944
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18945
 
 
18946
 
# Shell to use when invoking shell scripts.
18947
 
SHELL=$lt_SHELL
18948
 
 
18949
 
# Whether or not to build shared libraries.
18950
 
build_libtool_libs=$enable_shared
18951
 
 
18952
 
# Whether or not to build static libraries.
18953
 
build_old_libs=$enable_static
18954
 
 
18955
 
# Whether or not to add -lc for building shared libraries.
18956
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18957
 
 
18958
 
# Whether or not to disallow shared libs when runtime libs are static
18959
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18960
 
 
18961
 
# Whether or not to optimize for fast installation.
18962
 
fast_install=$enable_fast_install
18963
 
 
18964
 
# The host system.
18965
 
host_alias=$host_alias
18966
 
host=$host
18967
 
host_os=$host_os
18968
 
 
18969
 
# The build system.
18970
 
build_alias=$build_alias
18971
 
build=$build
18972
 
build_os=$build_os
18973
 
 
18974
 
# An echo program that does not interpret backslashes.
18975
 
echo=$lt_echo
18976
 
 
18977
 
# The archiver.
18978
 
AR=$lt_AR
18979
 
AR_FLAGS=$lt_AR_FLAGS
18980
 
 
18981
 
# A C compiler.
18982
 
LTCC=$lt_LTCC
18983
 
 
18984
 
# LTCC compiler flags.
18985
 
LTCFLAGS=$lt_LTCFLAGS
18986
 
 
18987
 
# A language-specific compiler.
18988
 
CC=$lt_compiler_GCJ
18989
 
 
18990
 
# Is the compiler the GNU C compiler?
18991
 
with_gcc=$GCC_GCJ
18992
 
 
18993
 
# An ERE matcher.
18994
 
EGREP=$lt_EGREP
18995
 
 
18996
 
# The linker used to build libraries.
18997
 
LD=$lt_LD_GCJ
18998
 
 
18999
 
# Whether we need hard or soft links.
19000
 
LN_S=$lt_LN_S
19001
 
 
19002
 
# A BSD-compatible nm program.
19003
 
NM=$lt_NM
19004
 
 
19005
 
# A symbol stripping program
19006
 
STRIP=$lt_STRIP
19007
 
 
19008
 
# Used to examine libraries when file_magic_cmd begins "file"
19009
 
MAGIC_CMD=$MAGIC_CMD
19010
 
 
19011
 
# Used on cygwin: DLL creation program.
19012
 
DLLTOOL="$DLLTOOL"
19013
 
 
19014
 
# Used on cygwin: object dumper.
19015
 
OBJDUMP="$OBJDUMP"
19016
 
 
19017
 
# Used on cygwin: assembler.
19018
 
AS="$AS"
19019
 
 
19020
 
# The name of the directory that contains temporary libtool files.
19021
 
objdir=$objdir
19022
 
 
19023
 
# How to create reloadable object files.
19024
 
reload_flag=$lt_reload_flag
19025
 
reload_cmds=$lt_reload_cmds
19026
 
 
19027
 
# How to pass a linker flag through the compiler.
19028
 
wl=$lt_lt_prog_compiler_wl_GCJ
19029
 
 
19030
 
# Object file suffix (normally "o").
19031
 
objext="$ac_objext"
19032
 
 
19033
 
# Old archive suffix (normally "a").
19034
 
libext="$libext"
19035
 
 
19036
 
# Shared library suffix (normally ".so").
19037
 
shrext_cmds='$shrext_cmds'
19038
 
 
19039
 
# Executable file suffix (normally "").
19040
 
exeext="$exeext"
19041
 
 
19042
 
# Additional compiler flags for building library objects.
19043
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19044
 
pic_mode=$pic_mode
19045
 
 
19046
 
# What is the maximum length of a command?
19047
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19048
 
 
19049
 
# Does compiler simultaneously support -c and -o options?
19050
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19051
 
 
19052
 
# Must we lock files when doing compilation?
19053
 
need_locks=$lt_need_locks
19054
 
 
19055
 
# Do we need the lib prefix for modules?
19056
 
need_lib_prefix=$need_lib_prefix
19057
 
 
19058
 
# Do we need a version for libraries?
19059
 
need_version=$need_version
19060
 
 
19061
 
# Whether dlopen is supported.
19062
 
dlopen_support=$enable_dlopen
19063
 
 
19064
 
# Whether dlopen of programs is supported.
19065
 
dlopen_self=$enable_dlopen_self
19066
 
 
19067
 
# Whether dlopen of statically linked programs is supported.
19068
 
dlopen_self_static=$enable_dlopen_self_static
19069
 
 
19070
 
# Compiler flag to prevent dynamic linking.
19071
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19072
 
 
19073
 
# Compiler flag to turn off builtin functions.
19074
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19075
 
 
19076
 
# Compiler flag to allow reflexive dlopens.
19077
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19078
 
 
19079
 
# Compiler flag to generate shared objects directly from archives.
19080
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19081
 
 
19082
 
# Compiler flag to generate thread-safe objects.
19083
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19084
 
 
19085
 
# Library versioning type.
19086
 
version_type=$version_type
19087
 
 
19088
 
# Format of library name prefix.
19089
 
libname_spec=$lt_libname_spec
19090
 
 
19091
 
# List of archive names.  First name is the real one, the rest are links.
19092
 
# The last name is the one that the linker finds with -lNAME.
19093
 
library_names_spec=$lt_library_names_spec
19094
 
 
19095
 
# The coded name of the library, if different from the real name.
19096
 
soname_spec=$lt_soname_spec
19097
 
 
19098
 
# Commands used to build and install an old-style archive.
19099
 
RANLIB=$lt_RANLIB
19100
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19101
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19102
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19103
 
 
19104
 
# Create an old-style archive from a shared archive.
19105
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19106
 
 
19107
 
# Create a temporary old-style archive to link instead of a shared archive.
19108
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19109
 
 
19110
 
# Commands used to build and install a shared archive.
19111
 
archive_cmds=$lt_archive_cmds_GCJ
19112
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19113
 
postinstall_cmds=$lt_postinstall_cmds
19114
 
postuninstall_cmds=$lt_postuninstall_cmds
19115
 
 
19116
 
# Commands used to build a loadable module (assumed same as above if empty)
19117
 
module_cmds=$lt_module_cmds_GCJ
19118
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19119
 
 
19120
 
# Commands to strip libraries.
19121
 
old_striplib=$lt_old_striplib
19122
 
striplib=$lt_striplib
19123
 
 
19124
 
# Dependencies to place before the objects being linked to create a
19125
 
# shared library.
19126
 
predep_objects=$lt_predep_objects_GCJ
19127
 
 
19128
 
# Dependencies to place after the objects being linked to create a
19129
 
# shared library.
19130
 
postdep_objects=$lt_postdep_objects_GCJ
19131
 
 
19132
 
# Dependencies to place before the objects being linked to create a
19133
 
# shared library.
19134
 
predeps=$lt_predeps_GCJ
19135
 
 
19136
 
# Dependencies to place after the objects being linked to create a
19137
 
# shared library.
19138
 
postdeps=$lt_postdeps_GCJ
19139
 
 
19140
 
# The directories searched by this compiler when creating a shared
19141
 
# library
19142
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19143
 
 
19144
 
# The library search path used internally by the compiler when linking
19145
 
# a shared library.
19146
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19147
 
 
19148
 
# Method to check whether dependent libraries are shared objects.
19149
 
deplibs_check_method=$lt_deplibs_check_method
19150
 
 
19151
 
# Command to use when deplibs_check_method == file_magic.
19152
 
file_magic_cmd=$lt_file_magic_cmd
19153
 
 
19154
 
# Flag that allows shared libraries with undefined symbols to be built.
19155
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19156
 
 
19157
 
# Flag that forces no undefined symbols.
19158
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19159
 
 
19160
 
# Commands used to finish a libtool library installation in a directory.
19161
 
finish_cmds=$lt_finish_cmds
19162
 
 
19163
 
# Same as above, but a single script fragment to be evaled but not shown.
19164
 
finish_eval=$lt_finish_eval
19165
 
 
19166
 
# Take the output of nm and produce a listing of raw symbols and C names.
19167
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19168
 
 
19169
 
# Transform the output of nm in a proper C declaration
19170
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19171
 
 
19172
 
# Transform the output of nm in a C name address pair
19173
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19174
 
 
19175
 
# This is the shared library runtime path variable.
19176
 
runpath_var=$runpath_var
19177
 
 
19178
 
# This is the shared library path variable.
19179
 
shlibpath_var=$shlibpath_var
19180
 
 
19181
 
# Is shlibpath searched before the hard-coded library search path?
19182
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19183
 
 
19184
 
# How to hardcode a shared library path into an executable.
19185
 
hardcode_action=$hardcode_action_GCJ
19186
 
 
19187
 
# Whether we should hardcode library paths into libraries.
19188
 
hardcode_into_libs=$hardcode_into_libs
19189
 
 
19190
 
# Flag to hardcode \$libdir into a binary during linking.
19191
 
# This must work even if \$libdir does not exist.
19192
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19193
 
 
19194
 
# If ld is used when linking, flag to hardcode \$libdir into
19195
 
# a binary during linking. This must work even if \$libdir does
19196
 
# not exist.
19197
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19198
 
 
19199
 
# Whether we need a single -rpath flag with a separated argument.
19200
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19201
 
 
19202
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19203
 
# resulting binary.
19204
 
hardcode_direct=$hardcode_direct_GCJ
19205
 
 
19206
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19207
 
# resulting binary.
19208
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19209
 
 
19210
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19211
 
# the resulting binary.
19212
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19213
 
 
19214
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19215
 
# and all subsequent libraries and executables linked against it.
19216
 
hardcode_automatic=$hardcode_automatic_GCJ
19217
 
 
19218
 
# Variables whose values should be saved in libtool wrapper scripts and
19219
 
# restored at relink time.
19220
 
variables_saved_for_relink="$variables_saved_for_relink"
19221
 
 
19222
 
# Whether libtool must link a program against all its dependency libraries.
19223
 
link_all_deplibs=$link_all_deplibs_GCJ
19224
 
 
19225
 
# Compile-time system search path for libraries
19226
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19227
 
 
19228
 
# Run-time system search path for libraries
19229
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19230
 
 
19231
 
# Fix the shell variable \$srcfile for the compiler.
19232
 
fix_srcfile_path=$lt_fix_srcfile_path
19233
 
 
19234
 
# Set to yes if exported symbols are required.
19235
 
always_export_symbols=$always_export_symbols_GCJ
19236
 
 
19237
 
# The commands to list exported symbols.
19238
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19239
 
 
19240
 
# The commands to extract the exported symbol list from a shared archive.
19241
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19242
 
 
19243
 
# Symbols that should not be listed in the preloaded symbols.
19244
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19245
 
 
19246
 
# Symbols that must always be exported.
19247
 
include_expsyms=$lt_include_expsyms_GCJ
19248
 
 
19249
 
# ### END LIBTOOL TAG CONFIG: $tagname
19250
 
 
19251
 
__EOF__
19252
 
 
19253
 
 
19254
 
else
19255
 
  # If there is no Makefile yet, we rely on a make rule to execute
19256
 
  # `config.status --recheck' to rerun these tests and create the
19257
 
  # libtool script then.
19258
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19259
 
  if test -f "$ltmain_in"; then
19260
 
    test -f Makefile && make "$ltmain"
19261
 
  fi
19262
 
fi
19263
 
 
19264
 
 
19265
 
ac_ext=c
19266
 
ac_cpp='$CPP $CPPFLAGS'
19267
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19268
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19269
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270
 
 
19271
 
CC="$lt_save_CC"
19272
 
 
19273
 
        else
19274
 
          tagname=""
19275
 
        fi
19276
 
        ;;
19277
 
 
19278
 
      RC)
19279
 
 
19280
 
 
19281
 
# Source file extension for RC test sources.
19282
 
ac_ext=rc
19283
 
 
19284
 
# Object file extension for compiled RC test sources.
19285
 
objext=o
19286
 
objext_RC=$objext
19287
 
 
19288
 
# Code to be used in simple compile tests
19289
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19290
 
 
19291
 
# Code to be used in simple link tests
19292
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19293
 
 
19294
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19295
 
 
19296
 
# If no C compiler was specified, use CC.
19297
 
LTCC=${LTCC-"$CC"}
19298
 
 
19299
 
# If no C compiler flags were specified, use CFLAGS.
19300
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19301
 
 
19302
 
# Allow CC to be a program name with arguments.
19303
 
compiler=$CC
19304
 
 
19305
 
 
19306
 
# save warnings/boilerplate of simple test code
19307
 
ac_outfile=conftest.$ac_objext
19308
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19309
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19310
 
_lt_compiler_boilerplate=`cat conftest.err`
19311
 
$rm conftest*
19312
 
 
19313
 
ac_outfile=conftest.$ac_objext
19314
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19315
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19316
 
_lt_linker_boilerplate=`cat conftest.err`
19317
 
$rm -r conftest*
19318
 
 
19319
 
 
19320
 
# Allow CC to be a program name with arguments.
19321
 
lt_save_CC="$CC"
19322
 
CC=${RC-"windres"}
19323
 
compiler=$CC
19324
 
compiler_RC=$CC
19325
 
for cc_temp in $compiler""; do
19326
 
  case $cc_temp in
19327
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19328
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19329
 
    \-*) ;;
19330
 
    *) break;;
19331
 
  esac
19332
 
done
19333
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19334
 
 
19335
 
lt_cv_prog_compiler_c_o_RC=yes
19336
 
 
19337
 
# The else clause should only fire when bootstrapping the
19338
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19339
 
# with your package, and you will get complaints that there are
19340
 
# no rules to generate ltmain.sh.
19341
 
if test -f "$ltmain"; then
19342
 
  # See if we are running on zsh, and set the options which allow our commands through
19343
 
  # without removal of \ escapes.
19344
 
  if test -n "${ZSH_VERSION+set}" ; then
19345
 
    setopt NO_GLOB_SUBST
19346
 
  fi
19347
 
  # Now quote all the things that may contain metacharacters while being
19348
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19349
 
  # variables and quote the copies for generation of the libtool script.
19350
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19351
 
    SED SHELL STRIP \
19352
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19353
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19354
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19355
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19356
 
    lt_cv_sys_global_symbol_to_c_name_address \
19357
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19358
 
    old_postinstall_cmds old_postuninstall_cmds \
19359
 
    compiler_RC \
19360
 
    CC_RC \
19361
 
    LD_RC \
19362
 
    lt_prog_compiler_wl_RC \
19363
 
    lt_prog_compiler_pic_RC \
19364
 
    lt_prog_compiler_static_RC \
19365
 
    lt_prog_compiler_no_builtin_flag_RC \
19366
 
    export_dynamic_flag_spec_RC \
19367
 
    thread_safe_flag_spec_RC \
19368
 
    whole_archive_flag_spec_RC \
19369
 
    enable_shared_with_static_runtimes_RC \
19370
 
    old_archive_cmds_RC \
19371
 
    old_archive_from_new_cmds_RC \
19372
 
    predep_objects_RC \
19373
 
    postdep_objects_RC \
19374
 
    predeps_RC \
19375
 
    postdeps_RC \
19376
 
    compiler_lib_search_path_RC \
19377
 
    compiler_lib_search_dirs_RC \
19378
 
    archive_cmds_RC \
19379
 
    archive_expsym_cmds_RC \
19380
 
    postinstall_cmds_RC \
19381
 
    postuninstall_cmds_RC \
19382
 
    old_archive_from_expsyms_cmds_RC \
19383
 
    allow_undefined_flag_RC \
19384
 
    no_undefined_flag_RC \
19385
 
    export_symbols_cmds_RC \
19386
 
    hardcode_libdir_flag_spec_RC \
19387
 
    hardcode_libdir_flag_spec_ld_RC \
19388
 
    hardcode_libdir_separator_RC \
19389
 
    hardcode_automatic_RC \
19390
 
    module_cmds_RC \
19391
 
    module_expsym_cmds_RC \
19392
 
    lt_cv_prog_compiler_c_o_RC \
19393
 
    fix_srcfile_path_RC \
19394
 
    exclude_expsyms_RC \
19395
 
    include_expsyms_RC; do
19396
 
 
19397
 
    case $var in
19398
 
    old_archive_cmds_RC | \
19399
 
    old_archive_from_new_cmds_RC | \
19400
 
    archive_cmds_RC | \
19401
 
    archive_expsym_cmds_RC | \
19402
 
    module_cmds_RC | \
19403
 
    module_expsym_cmds_RC | \
19404
 
    old_archive_from_expsyms_cmds_RC | \
19405
 
    export_symbols_cmds_RC | \
19406
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19407
 
    postinstall_cmds | postuninstall_cmds | \
19408
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19409
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19410
 
      # Double-quote double-evaled strings.
19411
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19412
 
      ;;
19413
 
    *)
19414
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19415
 
      ;;
19416
 
    esac
19417
 
  done
19418
 
 
19419
 
  case $lt_echo in
19420
 
  *'\$0 --fallback-echo"')
19421
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19422
 
    ;;
19423
 
  esac
19424
 
 
19425
 
cfgfile="$ofile"
19426
 
 
19427
 
  cat <<__EOF__ >> "$cfgfile"
19428
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19429
 
 
19430
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19431
 
 
19432
 
# Shell to use when invoking shell scripts.
19433
 
SHELL=$lt_SHELL
19434
 
 
19435
 
# Whether or not to build shared libraries.
19436
 
build_libtool_libs=$enable_shared
19437
 
 
19438
 
# Whether or not to build static libraries.
19439
 
build_old_libs=$enable_static
19440
 
 
19441
 
# Whether or not to add -lc for building shared libraries.
19442
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19443
 
 
19444
 
# Whether or not to disallow shared libs when runtime libs are static
19445
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19446
 
 
19447
 
# Whether or not to optimize for fast installation.
19448
 
fast_install=$enable_fast_install
19449
 
 
19450
 
# The host system.
19451
 
host_alias=$host_alias
19452
 
host=$host
19453
 
host_os=$host_os
19454
 
 
19455
 
# The build system.
19456
 
build_alias=$build_alias
19457
 
build=$build
19458
 
build_os=$build_os
19459
 
 
19460
 
# An echo program that does not interpret backslashes.
19461
 
echo=$lt_echo
19462
 
 
19463
 
# The archiver.
19464
 
AR=$lt_AR
19465
 
AR_FLAGS=$lt_AR_FLAGS
19466
 
 
19467
 
# A C compiler.
19468
 
LTCC=$lt_LTCC
19469
 
 
19470
 
# LTCC compiler flags.
19471
 
LTCFLAGS=$lt_LTCFLAGS
19472
 
 
19473
 
# A language-specific compiler.
19474
 
CC=$lt_compiler_RC
19475
 
 
19476
 
# Is the compiler the GNU C compiler?
19477
 
with_gcc=$GCC_RC
19478
 
 
19479
 
# An ERE matcher.
19480
 
EGREP=$lt_EGREP
19481
 
 
19482
 
# The linker used to build libraries.
19483
 
LD=$lt_LD_RC
19484
 
 
19485
 
# Whether we need hard or soft links.
19486
 
LN_S=$lt_LN_S
19487
 
 
19488
 
# A BSD-compatible nm program.
19489
 
NM=$lt_NM
19490
 
 
19491
 
# A symbol stripping program
19492
 
STRIP=$lt_STRIP
19493
 
 
19494
 
# Used to examine libraries when file_magic_cmd begins "file"
19495
 
MAGIC_CMD=$MAGIC_CMD
19496
 
 
19497
 
# Used on cygwin: DLL creation program.
19498
 
DLLTOOL="$DLLTOOL"
19499
 
 
19500
 
# Used on cygwin: object dumper.
19501
 
OBJDUMP="$OBJDUMP"
19502
 
 
19503
 
# Used on cygwin: assembler.
19504
 
AS="$AS"
19505
 
 
19506
 
# The name of the directory that contains temporary libtool files.
19507
 
objdir=$objdir
19508
 
 
19509
 
# How to create reloadable object files.
19510
 
reload_flag=$lt_reload_flag
19511
 
reload_cmds=$lt_reload_cmds
19512
 
 
19513
 
# How to pass a linker flag through the compiler.
19514
 
wl=$lt_lt_prog_compiler_wl_RC
19515
 
 
19516
 
# Object file suffix (normally "o").
19517
 
objext="$ac_objext"
19518
 
 
19519
 
# Old archive suffix (normally "a").
19520
 
libext="$libext"
19521
 
 
19522
 
# Shared library suffix (normally ".so").
19523
 
shrext_cmds='$shrext_cmds'
19524
 
 
19525
 
# Executable file suffix (normally "").
19526
 
exeext="$exeext"
19527
 
 
19528
 
# Additional compiler flags for building library objects.
19529
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19530
 
pic_mode=$pic_mode
19531
 
 
19532
 
# What is the maximum length of a command?
19533
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19534
 
 
19535
 
# Does compiler simultaneously support -c and -o options?
19536
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19537
 
 
19538
 
# Must we lock files when doing compilation?
19539
 
need_locks=$lt_need_locks
19540
 
 
19541
 
# Do we need the lib prefix for modules?
19542
 
need_lib_prefix=$need_lib_prefix
19543
 
 
19544
 
# Do we need a version for libraries?
19545
 
need_version=$need_version
19546
 
 
19547
 
# Whether dlopen is supported.
19548
 
dlopen_support=$enable_dlopen
19549
 
 
19550
 
# Whether dlopen of programs is supported.
19551
 
dlopen_self=$enable_dlopen_self
19552
 
 
19553
 
# Whether dlopen of statically linked programs is supported.
19554
 
dlopen_self_static=$enable_dlopen_self_static
19555
 
 
19556
 
# Compiler flag to prevent dynamic linking.
19557
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19558
 
 
19559
 
# Compiler flag to turn off builtin functions.
19560
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19561
 
 
19562
 
# Compiler flag to allow reflexive dlopens.
19563
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19564
 
 
19565
 
# Compiler flag to generate shared objects directly from archives.
19566
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19567
 
 
19568
 
# Compiler flag to generate thread-safe objects.
19569
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19570
 
 
19571
 
# Library versioning type.
19572
 
version_type=$version_type
19573
 
 
19574
 
# Format of library name prefix.
19575
 
libname_spec=$lt_libname_spec
19576
 
 
19577
 
# List of archive names.  First name is the real one, the rest are links.
19578
 
# The last name is the one that the linker finds with -lNAME.
19579
 
library_names_spec=$lt_library_names_spec
19580
 
 
19581
 
# The coded name of the library, if different from the real name.
19582
 
soname_spec=$lt_soname_spec
19583
 
 
19584
 
# Commands used to build and install an old-style archive.
19585
 
RANLIB=$lt_RANLIB
19586
 
old_archive_cmds=$lt_old_archive_cmds_RC
19587
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19588
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19589
 
 
19590
 
# Create an old-style archive from a shared archive.
19591
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19592
 
 
19593
 
# Create a temporary old-style archive to link instead of a shared archive.
19594
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19595
 
 
19596
 
# Commands used to build and install a shared archive.
19597
 
archive_cmds=$lt_archive_cmds_RC
19598
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19599
 
postinstall_cmds=$lt_postinstall_cmds
19600
 
postuninstall_cmds=$lt_postuninstall_cmds
19601
 
 
19602
 
# Commands used to build a loadable module (assumed same as above if empty)
19603
 
module_cmds=$lt_module_cmds_RC
19604
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19605
 
 
19606
 
# Commands to strip libraries.
19607
 
old_striplib=$lt_old_striplib
19608
 
striplib=$lt_striplib
19609
 
 
19610
 
# Dependencies to place before the objects being linked to create a
19611
 
# shared library.
19612
 
predep_objects=$lt_predep_objects_RC
19613
 
 
19614
 
# Dependencies to place after the objects being linked to create a
19615
 
# shared library.
19616
 
postdep_objects=$lt_postdep_objects_RC
19617
 
 
19618
 
# Dependencies to place before the objects being linked to create a
19619
 
# shared library.
19620
 
predeps=$lt_predeps_RC
19621
 
 
19622
 
# Dependencies to place after the objects being linked to create a
19623
 
# shared library.
19624
 
postdeps=$lt_postdeps_RC
19625
 
 
19626
 
# The directories searched by this compiler when creating a shared
19627
 
# library
19628
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19629
 
 
19630
 
# The library search path used internally by the compiler when linking
19631
 
# a shared library.
19632
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19633
 
 
19634
 
# Method to check whether dependent libraries are shared objects.
19635
 
deplibs_check_method=$lt_deplibs_check_method
19636
 
 
19637
 
# Command to use when deplibs_check_method == file_magic.
19638
 
file_magic_cmd=$lt_file_magic_cmd
19639
 
 
19640
 
# Flag that allows shared libraries with undefined symbols to be built.
19641
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19642
 
 
19643
 
# Flag that forces no undefined symbols.
19644
 
no_undefined_flag=$lt_no_undefined_flag_RC
19645
 
 
19646
 
# Commands used to finish a libtool library installation in a directory.
19647
 
finish_cmds=$lt_finish_cmds
19648
 
 
19649
 
# Same as above, but a single script fragment to be evaled but not shown.
19650
 
finish_eval=$lt_finish_eval
19651
 
 
19652
 
# Take the output of nm and produce a listing of raw symbols and C names.
19653
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19654
 
 
19655
 
# Transform the output of nm in a proper C declaration
19656
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19657
 
 
19658
 
# Transform the output of nm in a C name address pair
19659
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19660
 
 
19661
 
# This is the shared library runtime path variable.
19662
 
runpath_var=$runpath_var
19663
 
 
19664
 
# This is the shared library path variable.
19665
 
shlibpath_var=$shlibpath_var
19666
 
 
19667
 
# Is shlibpath searched before the hard-coded library search path?
19668
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19669
 
 
19670
 
# How to hardcode a shared library path into an executable.
19671
 
hardcode_action=$hardcode_action_RC
19672
 
 
19673
 
# Whether we should hardcode library paths into libraries.
19674
 
hardcode_into_libs=$hardcode_into_libs
19675
 
 
19676
 
# Flag to hardcode \$libdir into a binary during linking.
19677
 
# This must work even if \$libdir does not exist.
19678
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19679
 
 
19680
 
# If ld is used when linking, flag to hardcode \$libdir into
19681
 
# a binary during linking. This must work even if \$libdir does
19682
 
# not exist.
19683
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19684
 
 
19685
 
# Whether we need a single -rpath flag with a separated argument.
19686
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19687
 
 
19688
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19689
 
# resulting binary.
19690
 
hardcode_direct=$hardcode_direct_RC
19691
 
 
19692
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19693
 
# resulting binary.
19694
 
hardcode_minus_L=$hardcode_minus_L_RC
19695
 
 
19696
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19697
 
# the resulting binary.
19698
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19699
 
 
19700
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19701
 
# and all subsequent libraries and executables linked against it.
19702
 
hardcode_automatic=$hardcode_automatic_RC
19703
 
 
19704
 
# Variables whose values should be saved in libtool wrapper scripts and
19705
 
# restored at relink time.
19706
 
variables_saved_for_relink="$variables_saved_for_relink"
19707
 
 
19708
 
# Whether libtool must link a program against all its dependency libraries.
19709
 
link_all_deplibs=$link_all_deplibs_RC
19710
 
 
19711
 
# Compile-time system search path for libraries
19712
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19713
 
 
19714
 
# Run-time system search path for libraries
19715
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19716
 
 
19717
 
# Fix the shell variable \$srcfile for the compiler.
19718
 
fix_srcfile_path=$lt_fix_srcfile_path
19719
 
 
19720
 
# Set to yes if exported symbols are required.
19721
 
always_export_symbols=$always_export_symbols_RC
19722
 
 
19723
 
# The commands to list exported symbols.
19724
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19725
 
 
19726
 
# The commands to extract the exported symbol list from a shared archive.
19727
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19728
 
 
19729
 
# Symbols that should not be listed in the preloaded symbols.
19730
 
exclude_expsyms=$lt_exclude_expsyms_RC
19731
 
 
19732
 
# Symbols that must always be exported.
19733
 
include_expsyms=$lt_include_expsyms_RC
19734
 
 
19735
 
# ### END LIBTOOL TAG CONFIG: $tagname
19736
 
 
19737
 
__EOF__
19738
 
 
19739
 
 
19740
 
else
19741
 
  # If there is no Makefile yet, we rely on a make rule to execute
19742
 
  # `config.status --recheck' to rerun these tests and create the
19743
 
  # libtool script then.
19744
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19745
 
  if test -f "$ltmain_in"; then
19746
 
    test -f Makefile && make "$ltmain"
19747
 
  fi
19748
 
fi
19749
 
 
19750
 
 
19751
 
ac_ext=c
19752
 
ac_cpp='$CPP $CPPFLAGS'
19753
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756
 
 
19757
 
CC="$lt_save_CC"
19758
 
 
19759
 
        ;;
19760
 
 
19761
 
      *)
19762
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19763
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19764
 
   { (exit 1); exit 1; }; }
19765
 
        ;;
19766
 
      esac
19767
 
 
19768
 
      # Append the new tag name to the list of available tags.
19769
 
      if test -n "$tagname" ; then
19770
 
      available_tags="$available_tags $tagname"
19771
 
    fi
19772
 
    fi
19773
 
  done
19774
 
  IFS="$lt_save_ifs"
19775
 
 
19776
 
  # Now substitute the updated list of available tags.
19777
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19778
 
    mv "${ofile}T" "$ofile"
19779
 
    chmod +x "$ofile"
19780
 
  else
19781
 
    rm -f "${ofile}T"
19782
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19783
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19784
 
   { (exit 1); exit 1; }; }
19785
 
  fi
19786
 
fi
19787
 
 
19788
 
 
19789
 
 
19790
 
# This can be used to rebuild libtool when needed
19791
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19792
 
 
19793
 
# Always use our own libtool.
19794
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19795
 
 
19796
 
# Prevent multiple expansion
19797
 
 
19798
 
 
19799
 
 
19800
 
 
19801
 
 
19802
 
 
19803
 
 
19804
 
 
19805
 
 
19806
 
 
19807
 
 
19808
 
 
19809
 
 
19810
 
 
19811
 
 
19812
 
 
19813
 
 
19814
 
 
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
 
12004
 
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
 
 
12010
 
 
12011
 
 
12012
striplib=
 
12013
old_striplib=
 
12014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12015
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12016
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12017
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12018
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12020
$as_echo "yes" >&6; }
 
12021
else
 
12022
# FIXME - insert some real tests, host_os isn't really good enough
 
12023
  case $host_os in
 
12024
  darwin*)
 
12025
    if test -n "$STRIP" ; then
 
12026
      striplib="$STRIP -x"
 
12027
      old_striplib="$STRIP -S"
 
12028
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12029
$as_echo "yes" >&6; }
 
12030
    else
 
12031
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12032
$as_echo "no" >&6; }
 
12033
    fi
 
12034
    ;;
 
12035
  *)
 
12036
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12037
$as_echo "no" >&6; }
 
12038
    ;;
 
12039
  esac
 
12040
fi
 
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
  # Report which library types will actually be built
 
12054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12055
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12057
$as_echo "$can_build_shared" >&6; }
 
12058
 
 
12059
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12060
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12061
  test "$can_build_shared" = "no" && enable_shared=no
 
12062
 
 
12063
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12064
  # are all built from PIC.
 
12065
  case $host_os in
 
12066
  aix3*)
 
12067
    test "$enable_shared" = yes && enable_static=no
 
12068
    if test -n "$RANLIB"; then
 
12069
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12070
      postinstall_cmds='$RANLIB $lib'
 
12071
    fi
 
12072
    ;;
 
12073
 
 
12074
  aix[4-9]*)
 
12075
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12076
      test "$enable_shared" = yes && enable_static=no
 
12077
    fi
 
12078
    ;;
 
12079
  esac
 
12080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12081
$as_echo "$enable_shared" >&6; }
 
12082
 
 
12083
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12084
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12085
  # Make sure either enable_shared or enable_static is yes.
 
12086
  test "$enable_shared" = yes || enable_static=yes
 
12087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12088
$as_echo "$enable_static" >&6; }
 
12089
 
 
12090
 
 
12091
 
 
12092
 
 
12093
fi
 
12094
ac_ext=c
 
12095
ac_cpp='$CPP $CPPFLAGS'
 
12096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12099
 
 
12100
CC="$lt_save_CC"
 
12101
 
 
12102
 
 
12103
 
 
12104
 
 
12105
 
 
12106
 
 
12107
 
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
 
 
12113
 
 
12114
 
 
12115
 
 
12116
        ac_config_commands="$ac_config_commands libtool"
 
12117
 
 
12118
 
 
12119
 
 
12120
 
 
12121
# Only expand once:
19815
12122
 
19816
12123
 
19817
12124
 
19818
12125
# Checks for header files.
19819
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19820
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19821
 
if test "${ac_cv_header_stdc+set}" = set; then
19822
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
12127
$as_echo_n "checking for ANSI C header files... " >&6; }
 
12128
if ${ac_cv_header_stdc+:} false; then :
 
12129
  $as_echo_n "(cached) " >&6
19823
12130
else
19824
 
  cat >conftest.$ac_ext <<_ACEOF
19825
 
/* confdefs.h.  */
19826
 
_ACEOF
19827
 
cat confdefs.h >>conftest.$ac_ext
19828
 
cat >>conftest.$ac_ext <<_ACEOF
 
12131
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829
12132
/* end confdefs.h.  */
19830
12133
#include <stdlib.h>
19831
12134
#include <stdarg.h>
19840
12143
  return 0;
19841
12144
}
19842
12145
_ACEOF
19843
 
rm -f conftest.$ac_objext
19844
 
if { (ac_try="$ac_compile"
19845
 
case "(($ac_try" in
19846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847
 
  *) ac_try_echo=$ac_try;;
19848
 
esac
19849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850
 
  (eval "$ac_compile") 2>conftest.er1
19851
 
  ac_status=$?
19852
 
  grep -v '^ *+' conftest.er1 >conftest.err
19853
 
  rm -f conftest.er1
19854
 
  cat conftest.err >&5
19855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856
 
  (exit $ac_status); } && {
19857
 
         test -z "$ac_c_werror_flag" ||
19858
 
         test ! -s conftest.err
19859
 
       } && test -s conftest.$ac_objext; then
 
12146
if ac_fn_c_try_compile "$LINENO"; then :
19860
12147
  ac_cv_header_stdc=yes
19861
12148
else
19862
 
  echo "$as_me: failed program was:" >&5
19863
 
sed 's/^/| /' conftest.$ac_ext >&5
19864
 
 
19865
 
        ac_cv_header_stdc=no
 
12149
  ac_cv_header_stdc=no
19866
12150
fi
19867
 
 
19868
12151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869
12152
 
19870
12153
if test $ac_cv_header_stdc = yes; then
19871
12154
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19872
 
  cat >conftest.$ac_ext <<_ACEOF
19873
 
/* confdefs.h.  */
19874
 
_ACEOF
19875
 
cat confdefs.h >>conftest.$ac_ext
19876
 
cat >>conftest.$ac_ext <<_ACEOF
 
12155
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877
12156
/* end confdefs.h.  */
19878
12157
#include <string.h>
19879
12158
 
19880
12159
_ACEOF
19881
12160
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19882
 
  $EGREP "memchr" >/dev/null 2>&1; then
19883
 
  :
 
12161
  $EGREP "memchr" >/dev/null 2>&1; then :
 
12162
 
19884
12163
else
19885
12164
  ac_cv_header_stdc=no
19886
12165
fi
19890
12169
 
19891
12170
if test $ac_cv_header_stdc = yes; then
19892
12171
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19893
 
  cat >conftest.$ac_ext <<_ACEOF
19894
 
/* confdefs.h.  */
19895
 
_ACEOF
19896
 
cat confdefs.h >>conftest.$ac_ext
19897
 
cat >>conftest.$ac_ext <<_ACEOF
 
12172
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898
12173
/* end confdefs.h.  */
19899
12174
#include <stdlib.h>
19900
12175
 
19901
12176
_ACEOF
19902
12177
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19903
 
  $EGREP "free" >/dev/null 2>&1; then
19904
 
  :
 
12178
  $EGREP "free" >/dev/null 2>&1; then :
 
12179
 
19905
12180
else
19906
12181
  ac_cv_header_stdc=no
19907
12182
fi
19911
12186
 
19912
12187
if test $ac_cv_header_stdc = yes; then
19913
12188
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19914
 
  if test "$cross_compiling" = yes; then
 
12189
  if test "$cross_compiling" = yes; then :
19915
12190
  :
19916
12191
else
19917
 
  cat >conftest.$ac_ext <<_ACEOF
19918
 
/* confdefs.h.  */
19919
 
_ACEOF
19920
 
cat confdefs.h >>conftest.$ac_ext
19921
 
cat >>conftest.$ac_ext <<_ACEOF
 
12192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922
12193
/* end confdefs.h.  */
19923
12194
#include <ctype.h>
19924
12195
#include <stdlib.h>
19945
12216
  return 0;
19946
12217
}
19947
12218
_ACEOF
19948
 
rm -f conftest$ac_exeext
19949
 
if { (ac_try="$ac_link"
19950
 
case "(($ac_try" in
19951
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952
 
  *) ac_try_echo=$ac_try;;
19953
 
esac
19954
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955
 
  (eval "$ac_link") 2>&5
19956
 
  ac_status=$?
19957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19959
 
  { (case "(($ac_try" in
19960
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961
 
  *) ac_try_echo=$ac_try;;
19962
 
esac
19963
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964
 
  (eval "$ac_try") 2>&5
19965
 
  ac_status=$?
19966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967
 
  (exit $ac_status); }; }; then
19968
 
  :
 
12219
if ac_fn_c_try_run "$LINENO"; then :
 
12220
 
19969
12221
else
19970
 
  echo "$as_me: program exited with status $ac_status" >&5
19971
 
echo "$as_me: failed program was:" >&5
19972
 
sed 's/^/| /' conftest.$ac_ext >&5
19973
 
 
19974
 
( exit $ac_status )
19975
 
ac_cv_header_stdc=no
19976
 
fi
19977
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19978
 
fi
19979
 
 
19980
 
 
19981
 
fi
19982
 
fi
19983
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19984
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
12222
  ac_cv_header_stdc=no
 
12223
fi
 
12224
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12225
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12226
fi
 
12227
 
 
12228
fi
 
12229
fi
 
12230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
12231
$as_echo "$ac_cv_header_stdc" >&6; }
19985
12232
if test $ac_cv_header_stdc = yes; then
19986
12233
 
19987
 
cat >>confdefs.h <<\_ACEOF
19988
 
#define STDC_HEADERS 1
19989
 
_ACEOF
 
12234
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19990
12235
 
19991
12236
fi
19992
12237
 
19993
 
 
19994
12238
for ac_header in stdint.h
19995
 
do
19996
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19997
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19999
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20000
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20001
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20002
 
fi
20003
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20004
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20005
 
echo "${ECHO_T}$ac_res" >&6; }
20006
 
else
20007
 
  # Is the header compilable?
20008
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20009
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20010
 
cat >conftest.$ac_ext <<_ACEOF
20011
 
/* confdefs.h.  */
20012
 
_ACEOF
20013
 
cat confdefs.h >>conftest.$ac_ext
20014
 
cat >>conftest.$ac_ext <<_ACEOF
20015
 
/* end confdefs.h.  */
20016
 
$ac_includes_default
20017
 
#include <$ac_header>
20018
 
_ACEOF
20019
 
rm -f conftest.$ac_objext
20020
 
if { (ac_try="$ac_compile"
20021
 
case "(($ac_try" in
20022
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023
 
  *) ac_try_echo=$ac_try;;
20024
 
esac
20025
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026
 
  (eval "$ac_compile") 2>conftest.er1
20027
 
  ac_status=$?
20028
 
  grep -v '^ *+' conftest.er1 >conftest.err
20029
 
  rm -f conftest.er1
20030
 
  cat conftest.err >&5
20031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032
 
  (exit $ac_status); } && {
20033
 
         test -z "$ac_c_werror_flag" ||
20034
 
         test ! -s conftest.err
20035
 
       } && test -s conftest.$ac_objext; then
20036
 
  ac_header_compiler=yes
20037
 
else
20038
 
  echo "$as_me: failed program was:" >&5
20039
 
sed 's/^/| /' conftest.$ac_ext >&5
20040
 
 
20041
 
        ac_header_compiler=no
20042
 
fi
20043
 
 
20044
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
20047
 
 
20048
 
# Is the header present?
20049
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20050
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20051
 
cat >conftest.$ac_ext <<_ACEOF
20052
 
/* confdefs.h.  */
20053
 
_ACEOF
20054
 
cat confdefs.h >>conftest.$ac_ext
20055
 
cat >>conftest.$ac_ext <<_ACEOF
20056
 
/* end confdefs.h.  */
20057
 
#include <$ac_header>
20058
 
_ACEOF
20059
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20060
 
case "(($ac_try" in
20061
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062
 
  *) ac_try_echo=$ac_try;;
20063
 
esac
20064
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20066
 
  ac_status=$?
20067
 
  grep -v '^ *+' conftest.er1 >conftest.err
20068
 
  rm -f conftest.er1
20069
 
  cat conftest.err >&5
20070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071
 
  (exit $ac_status); } >/dev/null && {
20072
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20073
 
         test ! -s conftest.err
20074
 
       }; then
20075
 
  ac_header_preproc=yes
20076
 
else
20077
 
  echo "$as_me: failed program was:" >&5
20078
 
sed 's/^/| /' conftest.$ac_ext >&5
20079
 
 
20080
 
  ac_header_preproc=no
20081
 
fi
20082
 
 
20083
 
rm -f conftest.err conftest.$ac_ext
20084
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20085
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
20086
 
 
20087
 
# So?  What about this header?
20088
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089
 
  yes:no: )
20090
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20091
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20092
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20093
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20094
 
    ac_header_preproc=yes
20095
 
    ;;
20096
 
  no:yes:* )
20097
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20098
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20099
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20100
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20101
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20102
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20103
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20104
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20105
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20106
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20107
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20108
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20109
 
    ( cat <<\_ASBOX
20110
 
## -------------------------------- ##
20111
 
## Report this to mathew@eisbox.net ##
20112
 
## -------------------------------- ##
20113
 
_ASBOX
20114
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20115
 
    ;;
20116
 
esac
20117
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20118
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20119
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20121
 
else
20122
 
  eval "$as_ac_Header=\$ac_header_preproc"
20123
 
fi
20124
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20125
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20126
 
echo "${ECHO_T}$ac_res" >&6; }
20127
 
 
20128
 
fi
20129
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12239
do :
 
12240
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
12241
if test "x$ac_cv_header_stdint_h" = xyes; then :
20130
12242
  cat >>confdefs.h <<_ACEOF
20131
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12243
#define HAVE_STDINT_H 1
20132
12244
_ACEOF
20133
12245
 
20134
12246
fi
20135
12247
 
20136
12248
done
20137
12249
 
20138
 
 
20139
12250
for ac_header in getopt.h
20140
 
do
20141
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20142
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20143
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20144
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20145
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20147
 
fi
20148
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20149
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20150
 
echo "${ECHO_T}$ac_res" >&6; }
20151
 
else
20152
 
  # Is the header compilable?
20153
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20154
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20155
 
cat >conftest.$ac_ext <<_ACEOF
20156
 
/* confdefs.h.  */
20157
 
_ACEOF
20158
 
cat confdefs.h >>conftest.$ac_ext
20159
 
cat >>conftest.$ac_ext <<_ACEOF
20160
 
/* end confdefs.h.  */
20161
 
$ac_includes_default
20162
 
#include <$ac_header>
20163
 
_ACEOF
20164
 
rm -f conftest.$ac_objext
20165
 
if { (ac_try="$ac_compile"
20166
 
case "(($ac_try" in
20167
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168
 
  *) ac_try_echo=$ac_try;;
20169
 
esac
20170
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171
 
  (eval "$ac_compile") 2>conftest.er1
20172
 
  ac_status=$?
20173
 
  grep -v '^ *+' conftest.er1 >conftest.err
20174
 
  rm -f conftest.er1
20175
 
  cat conftest.err >&5
20176
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177
 
  (exit $ac_status); } && {
20178
 
         test -z "$ac_c_werror_flag" ||
20179
 
         test ! -s conftest.err
20180
 
       } && test -s conftest.$ac_objext; then
20181
 
  ac_header_compiler=yes
20182
 
else
20183
 
  echo "$as_me: failed program was:" >&5
20184
 
sed 's/^/| /' conftest.$ac_ext >&5
20185
 
 
20186
 
        ac_header_compiler=no
20187
 
fi
20188
 
 
20189
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20191
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
20192
 
 
20193
 
# Is the header present?
20194
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20195
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20196
 
cat >conftest.$ac_ext <<_ACEOF
20197
 
/* confdefs.h.  */
20198
 
_ACEOF
20199
 
cat confdefs.h >>conftest.$ac_ext
20200
 
cat >>conftest.$ac_ext <<_ACEOF
20201
 
/* end confdefs.h.  */
20202
 
#include <$ac_header>
20203
 
_ACEOF
20204
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20205
 
case "(($ac_try" in
20206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207
 
  *) ac_try_echo=$ac_try;;
20208
 
esac
20209
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20211
 
  ac_status=$?
20212
 
  grep -v '^ *+' conftest.er1 >conftest.err
20213
 
  rm -f conftest.er1
20214
 
  cat conftest.err >&5
20215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216
 
  (exit $ac_status); } >/dev/null && {
20217
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20218
 
         test ! -s conftest.err
20219
 
       }; then
20220
 
  ac_header_preproc=yes
20221
 
else
20222
 
  echo "$as_me: failed program was:" >&5
20223
 
sed 's/^/| /' conftest.$ac_ext >&5
20224
 
 
20225
 
  ac_header_preproc=no
20226
 
fi
20227
 
 
20228
 
rm -f conftest.err conftest.$ac_ext
20229
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20230
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
20231
 
 
20232
 
# So?  What about this header?
20233
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20234
 
  yes:no: )
20235
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20236
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20237
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20238
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20239
 
    ac_header_preproc=yes
20240
 
    ;;
20241
 
  no:yes:* )
20242
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20243
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20244
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20245
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20246
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20247
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20248
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20249
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20250
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20251
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20252
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20253
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20254
 
    ( cat <<\_ASBOX
20255
 
## -------------------------------- ##
20256
 
## Report this to mathew@eisbox.net ##
20257
 
## -------------------------------- ##
20258
 
_ASBOX
20259
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20260
 
    ;;
20261
 
esac
20262
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20263
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20264
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20266
 
else
20267
 
  eval "$as_ac_Header=\$ac_header_preproc"
20268
 
fi
20269
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20270
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20271
 
echo "${ECHO_T}$ac_res" >&6; }
20272
 
 
20273
 
fi
20274
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12251
do :
 
12252
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
 
12253
if test "x$ac_cv_header_getopt_h" = xyes; then :
20275
12254
  cat >>confdefs.h <<_ACEOF
20276
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12255
#define HAVE_GETOPT_H 1
20277
12256
_ACEOF
20278
12257
 
20279
12258
fi
20282
12261
 
20283
12262
 
20284
12263
# Checks for typedefs, structures, and compiler characteristics.
20285
 
{ echo "$as_me:$LINENO: checking for inline" >&5
20286
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20287
 
if test "${ac_cv_c_inline+set}" = set; then
20288
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
12265
$as_echo_n "checking for inline... " >&6; }
 
12266
if ${ac_cv_c_inline+:} false; then :
 
12267
  $as_echo_n "(cached) " >&6
20289
12268
else
20290
12269
  ac_cv_c_inline=no
20291
12270
for ac_kw in inline __inline__ __inline; do
20292
 
  cat >conftest.$ac_ext <<_ACEOF
20293
 
/* confdefs.h.  */
20294
 
_ACEOF
20295
 
cat confdefs.h >>conftest.$ac_ext
20296
 
cat >>conftest.$ac_ext <<_ACEOF
 
12271
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297
12272
/* end confdefs.h.  */
20298
12273
#ifndef __cplusplus
20299
12274
typedef int foo_t;
20302
12277
#endif
20303
12278
 
20304
12279
_ACEOF
20305
 
rm -f conftest.$ac_objext
20306
 
if { (ac_try="$ac_compile"
20307
 
case "(($ac_try" in
20308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309
 
  *) ac_try_echo=$ac_try;;
20310
 
esac
20311
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312
 
  (eval "$ac_compile") 2>conftest.er1
20313
 
  ac_status=$?
20314
 
  grep -v '^ *+' conftest.er1 >conftest.err
20315
 
  rm -f conftest.er1
20316
 
  cat conftest.err >&5
20317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318
 
  (exit $ac_status); } && {
20319
 
         test -z "$ac_c_werror_flag" ||
20320
 
         test ! -s conftest.err
20321
 
       } && test -s conftest.$ac_objext; then
 
12280
if ac_fn_c_try_compile "$LINENO"; then :
20322
12281
  ac_cv_c_inline=$ac_kw
20323
 
else
20324
 
  echo "$as_me: failed program was:" >&5
20325
 
sed 's/^/| /' conftest.$ac_ext >&5
20326
 
 
20327
 
 
20328
12282
fi
20329
 
 
20330
12283
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331
12284
  test "$ac_cv_c_inline" != no && break
20332
12285
done
20333
12286
 
20334
12287
fi
20335
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20336
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20337
 
 
 
12288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
12289
$as_echo "$ac_cv_c_inline" >&6; }
20338
12290
 
20339
12291
case $ac_cv_c_inline in
20340
12292
  inline | yes) ;;
20351
12303
    ;;
20352
12304
esac
20353
12305
 
20354
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20355
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20356
 
if test "${ac_cv_c_const+set}" = set; then
20357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
12307
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
12308
if ${ac_cv_c_const+:} false; then :
 
12309
  $as_echo_n "(cached) " >&6
20358
12310
else
20359
 
  cat >conftest.$ac_ext <<_ACEOF
20360
 
/* confdefs.h.  */
20361
 
_ACEOF
20362
 
cat confdefs.h >>conftest.$ac_ext
20363
 
cat >>conftest.$ac_ext <<_ACEOF
 
12311
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364
12312
/* end confdefs.h.  */
20365
12313
 
20366
12314
int
20367
12315
main ()
20368
12316
{
20369
 
/* FIXME: Include the comments suggested by Paul. */
 
12317
 
20370
12318
#ifndef __cplusplus
20371
 
  /* Ultrix mips cc rejects this.  */
 
12319
  /* Ultrix mips cc rejects this sort of thing.  */
20372
12320
  typedef int charset[2];
20373
 
  const charset cs;
 
12321
  const charset cs = { 0, 0 };
20374
12322
  /* SunOS 4.1.1 cc rejects this.  */
20375
12323
  char const *const *pcpcc;
20376
12324
  char **ppc;
20387
12335
  ++pcpcc;
20388
12336
  ppc = (char**) pcpcc;
20389
12337
  pcpcc = (char const *const *) ppc;
20390
 
  { /* SCO 3.2v4 cc rejects this.  */
20391
 
    char *t;
 
12338
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
 
12339
    char tx;
 
12340
    char *t = &tx;
20392
12341
    char const *s = 0 ? (char *) 0 : (char const *) 0;
20393
12342
 
20394
12343
    *t++ = 0;
20404
12353
    iptr p = 0;
20405
12354
    ++p;
20406
12355
  }
20407
 
  { /* AIX XL C 1.02.0.0 rejects this saying
 
12356
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20408
12357
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20409
 
    struct s { int j; const int *ap[3]; };
20410
 
    struct s *b; b->j = 5;
 
12358
    struct s { int j; const int *ap[3]; } bx;
 
12359
    struct s *b = &bx; b->j = 5;
20411
12360
  }
20412
12361
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20413
12362
    const int foo = 10;
20420
12369
  return 0;
20421
12370
}
20422
12371
_ACEOF
20423
 
rm -f conftest.$ac_objext
20424
 
if { (ac_try="$ac_compile"
20425
 
case "(($ac_try" in
20426
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427
 
  *) ac_try_echo=$ac_try;;
20428
 
esac
20429
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430
 
  (eval "$ac_compile") 2>conftest.er1
20431
 
  ac_status=$?
20432
 
  grep -v '^ *+' conftest.er1 >conftest.err
20433
 
  rm -f conftest.er1
20434
 
  cat conftest.err >&5
20435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436
 
  (exit $ac_status); } && {
20437
 
         test -z "$ac_c_werror_flag" ||
20438
 
         test ! -s conftest.err
20439
 
       } && test -s conftest.$ac_objext; then
 
12372
if ac_fn_c_try_compile "$LINENO"; then :
20440
12373
  ac_cv_c_const=yes
20441
12374
else
20442
 
  echo "$as_me: failed program was:" >&5
20443
 
sed 's/^/| /' conftest.$ac_ext >&5
20444
 
 
20445
 
        ac_cv_c_const=no
 
12375
  ac_cv_c_const=no
20446
12376
fi
20447
 
 
20448
12377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20449
12378
fi
20450
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20451
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
12379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
12380
$as_echo "$ac_cv_c_const" >&6; }
20452
12381
if test $ac_cv_c_const = no; then
20453
12382
 
20454
 
cat >>confdefs.h <<\_ACEOF
20455
 
#define const
20456
 
_ACEOF
 
12383
$as_echo "#define const /**/" >>confdefs.h
20457
12384
 
20458
12385
fi
20459
12386
 
20460
 
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20461
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20462
 
if test "${ac_cv_c_bigendian+set}" = set; then
20463
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12387
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
12388
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
12389
if ${ac_cv_c_bigendian+:} false; then :
 
12390
  $as_echo_n "(cached) " >&6
20464
12391
else
20465
 
  # See if sys/param.h defines the BYTE_ORDER macro.
20466
 
cat >conftest.$ac_ext <<_ACEOF
20467
 
/* confdefs.h.  */
 
12392
  ac_cv_c_bigendian=unknown
 
12393
    # See if we're dealing with a universal compiler.
 
12394
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12395
/* end confdefs.h.  */
 
12396
#ifndef __APPLE_CC__
 
12397
               not a universal capable compiler
 
12398
             #endif
 
12399
             typedef int dummy;
 
12400
 
20468
12401
_ACEOF
20469
 
cat confdefs.h >>conftest.$ac_ext
20470
 
cat >>conftest.$ac_ext <<_ACEOF
 
12402
if ac_fn_c_try_compile "$LINENO"; then :
 
12403
 
 
12404
        # Check for potential -arch flags.  It is not universal unless
 
12405
        # there are at least two -arch flags with different values.
 
12406
        ac_arch=
 
12407
        ac_prev=
 
12408
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
12409
         if test -n "$ac_prev"; then
 
12410
           case $ac_word in
 
12411
             i?86 | x86_64 | ppc | ppc64)
 
12412
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
12413
                 ac_arch=$ac_word
 
12414
               else
 
12415
                 ac_cv_c_bigendian=universal
 
12416
                 break
 
12417
               fi
 
12418
               ;;
 
12419
           esac
 
12420
           ac_prev=
 
12421
         elif test "x$ac_word" = "x-arch"; then
 
12422
           ac_prev=arch
 
12423
         fi
 
12424
       done
 
12425
fi
 
12426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12427
    if test $ac_cv_c_bigendian = unknown; then
 
12428
      # See if sys/param.h defines the BYTE_ORDER macro.
 
12429
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471
12430
/* end confdefs.h.  */
20472
12431
#include <sys/types.h>
20473
 
#include <sys/param.h>
 
12432
             #include <sys/param.h>
20474
12433
 
20475
12434
int
20476
12435
main ()
20477
12436
{
20478
 
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20479
 
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20480
 
 bogus endian macros
20481
 
#endif
 
12437
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
12438
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
12439
                     && LITTLE_ENDIAN)
 
12440
              bogus endian macros
 
12441
             #endif
20482
12442
 
20483
12443
  ;
20484
12444
  return 0;
20485
12445
}
20486
12446
_ACEOF
20487
 
rm -f conftest.$ac_objext
20488
 
if { (ac_try="$ac_compile"
20489
 
case "(($ac_try" in
20490
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491
 
  *) ac_try_echo=$ac_try;;
20492
 
esac
20493
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494
 
  (eval "$ac_compile") 2>conftest.er1
20495
 
  ac_status=$?
20496
 
  grep -v '^ *+' conftest.er1 >conftest.err
20497
 
  rm -f conftest.er1
20498
 
  cat conftest.err >&5
20499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500
 
  (exit $ac_status); } && {
20501
 
         test -z "$ac_c_werror_flag" ||
20502
 
         test ! -s conftest.err
20503
 
       } && test -s conftest.$ac_objext; then
 
12447
if ac_fn_c_try_compile "$LINENO"; then :
20504
12448
  # It does; now see whether it defined to BIG_ENDIAN or not.
20505
 
cat >conftest.$ac_ext <<_ACEOF
20506
 
/* confdefs.h.  */
20507
 
_ACEOF
20508
 
cat confdefs.h >>conftest.$ac_ext
20509
 
cat >>conftest.$ac_ext <<_ACEOF
 
12449
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510
12450
/* end confdefs.h.  */
20511
12451
#include <sys/types.h>
20512
 
#include <sys/param.h>
 
12452
                #include <sys/param.h>
20513
12453
 
20514
12454
int
20515
12455
main ()
20516
12456
{
20517
12457
#if BYTE_ORDER != BIG_ENDIAN
20518
 
 not big endian
20519
 
#endif
20520
 
 
20521
 
  ;
20522
 
  return 0;
20523
 
}
20524
 
_ACEOF
20525
 
rm -f conftest.$ac_objext
20526
 
if { (ac_try="$ac_compile"
20527
 
case "(($ac_try" in
20528
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529
 
  *) ac_try_echo=$ac_try;;
20530
 
esac
20531
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532
 
  (eval "$ac_compile") 2>conftest.er1
20533
 
  ac_status=$?
20534
 
  grep -v '^ *+' conftest.er1 >conftest.err
20535
 
  rm -f conftest.er1
20536
 
  cat conftest.err >&5
20537
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538
 
  (exit $ac_status); } && {
20539
 
         test -z "$ac_c_werror_flag" ||
20540
 
         test ! -s conftest.err
20541
 
       } && test -s conftest.$ac_objext; then
20542
 
  ac_cv_c_bigendian=yes
20543
 
else
20544
 
  echo "$as_me: failed program was:" >&5
20545
 
sed 's/^/| /' conftest.$ac_ext >&5
20546
 
 
20547
 
        ac_cv_c_bigendian=no
20548
 
fi
20549
 
 
20550
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551
 
else
20552
 
  echo "$as_me: failed program was:" >&5
20553
 
sed 's/^/| /' conftest.$ac_ext >&5
20554
 
 
20555
 
        # It does not; compile a test program.
20556
 
if test "$cross_compiling" = yes; then
20557
 
  # try to guess the endianness by grepping values into an object file
20558
 
  ac_cv_c_bigendian=unknown
20559
 
  cat >conftest.$ac_ext <<_ACEOF
20560
 
/* confdefs.h.  */
20561
 
_ACEOF
20562
 
cat confdefs.h >>conftest.$ac_ext
20563
 
cat >>conftest.$ac_ext <<_ACEOF
20564
 
/* end confdefs.h.  */
20565
 
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20566
 
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20567
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20568
 
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20569
 
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20570
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20571
 
int
20572
 
main ()
20573
 
{
20574
 
 _ascii (); _ebcdic ();
20575
 
  ;
20576
 
  return 0;
20577
 
}
20578
 
_ACEOF
20579
 
rm -f conftest.$ac_objext
20580
 
if { (ac_try="$ac_compile"
20581
 
case "(($ac_try" in
20582
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583
 
  *) ac_try_echo=$ac_try;;
20584
 
esac
20585
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586
 
  (eval "$ac_compile") 2>conftest.er1
20587
 
  ac_status=$?
20588
 
  grep -v '^ *+' conftest.er1 >conftest.err
20589
 
  rm -f conftest.er1
20590
 
  cat conftest.err >&5
20591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592
 
  (exit $ac_status); } && {
20593
 
         test -z "$ac_c_werror_flag" ||
20594
 
         test ! -s conftest.err
20595
 
       } && test -s conftest.$ac_objext; then
20596
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20597
 
  ac_cv_c_bigendian=yes
20598
 
fi
20599
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20600
 
  if test "$ac_cv_c_bigendian" = unknown; then
20601
 
    ac_cv_c_bigendian=no
20602
 
  else
20603
 
    # finding both strings is unlikely to happen, but who knows?
20604
 
    ac_cv_c_bigendian=unknown
20605
 
  fi
20606
 
fi
20607
 
else
20608
 
  echo "$as_me: failed program was:" >&5
20609
 
sed 's/^/| /' conftest.$ac_ext >&5
20610
 
 
20611
 
 
20612
 
fi
20613
 
 
20614
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615
 
else
20616
 
  cat >conftest.$ac_ext <<_ACEOF
20617
 
/* confdefs.h.  */
20618
 
_ACEOF
20619
 
cat confdefs.h >>conftest.$ac_ext
20620
 
cat >>conftest.$ac_ext <<_ACEOF
20621
 
/* end confdefs.h.  */
20622
 
$ac_includes_default
20623
 
int
20624
 
main ()
20625
 
{
20626
 
 
20627
 
  /* Are we little or big endian?  From Harbison&Steele.  */
20628
 
  union
20629
 
  {
20630
 
    long int l;
20631
 
    char c[sizeof (long int)];
20632
 
  } u;
20633
 
  u.l = 1;
20634
 
  return u.c[sizeof (long int) - 1] == 1;
20635
 
 
20636
 
  ;
20637
 
  return 0;
20638
 
}
20639
 
_ACEOF
20640
 
rm -f conftest$ac_exeext
20641
 
if { (ac_try="$ac_link"
20642
 
case "(($ac_try" in
20643
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644
 
  *) ac_try_echo=$ac_try;;
20645
 
esac
20646
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647
 
  (eval "$ac_link") 2>&5
20648
 
  ac_status=$?
20649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651
 
  { (case "(($ac_try" in
20652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653
 
  *) ac_try_echo=$ac_try;;
20654
 
esac
20655
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656
 
  (eval "$ac_try") 2>&5
20657
 
  ac_status=$?
20658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659
 
  (exit $ac_status); }; }; then
20660
 
  ac_cv_c_bigendian=no
20661
 
else
20662
 
  echo "$as_me: program exited with status $ac_status" >&5
20663
 
echo "$as_me: failed program was:" >&5
20664
 
sed 's/^/| /' conftest.$ac_ext >&5
20665
 
 
20666
 
( exit $ac_status )
20667
 
ac_cv_c_bigendian=yes
20668
 
fi
20669
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20670
 
fi
20671
 
 
20672
 
 
20673
 
fi
20674
 
 
20675
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676
 
fi
20677
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20678
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20679
 
case $ac_cv_c_bigendian in
20680
 
  yes)
20681
 
 
20682
 
cat >>confdefs.h <<\_ACEOF
20683
 
#define WORDS_BIGENDIAN 1
20684
 
_ACEOF
20685
 
 ;;
20686
 
  no)
20687
 
     ;;
20688
 
  *)
20689
 
    { { echo "$as_me:$LINENO: error: unknown endianness
20690
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20691
 
echo "$as_me: error: unknown endianness
20692
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20693
 
   { (exit 1); exit 1; }; } ;;
20694
 
esac
20695
 
 
20696
 
{ echo "$as_me:$LINENO: checking for off_t" >&5
20697
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20698
 
if test "${ac_cv_type_off_t+set}" = set; then
20699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20700
 
else
20701
 
  cat >conftest.$ac_ext <<_ACEOF
20702
 
/* confdefs.h.  */
20703
 
_ACEOF
20704
 
cat confdefs.h >>conftest.$ac_ext
20705
 
cat >>conftest.$ac_ext <<_ACEOF
20706
 
/* end confdefs.h.  */
20707
 
$ac_includes_default
20708
 
typedef off_t ac__type_new_;
20709
 
int
20710
 
main ()
20711
 
{
20712
 
if ((ac__type_new_ *) 0)
20713
 
  return 0;
20714
 
if (sizeof (ac__type_new_))
20715
 
  return 0;
20716
 
  ;
20717
 
  return 0;
20718
 
}
20719
 
_ACEOF
20720
 
rm -f conftest.$ac_objext
20721
 
if { (ac_try="$ac_compile"
20722
 
case "(($ac_try" in
20723
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724
 
  *) ac_try_echo=$ac_try;;
20725
 
esac
20726
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727
 
  (eval "$ac_compile") 2>conftest.er1
20728
 
  ac_status=$?
20729
 
  grep -v '^ *+' conftest.er1 >conftest.err
20730
 
  rm -f conftest.er1
20731
 
  cat conftest.err >&5
20732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733
 
  (exit $ac_status); } && {
20734
 
         test -z "$ac_c_werror_flag" ||
20735
 
         test ! -s conftest.err
20736
 
       } && test -s conftest.$ac_objext; then
20737
 
  ac_cv_type_off_t=yes
20738
 
else
20739
 
  echo "$as_me: failed program was:" >&5
20740
 
sed 's/^/| /' conftest.$ac_ext >&5
20741
 
 
20742
 
        ac_cv_type_off_t=no
20743
 
fi
20744
 
 
20745
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746
 
fi
20747
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20748
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20749
 
if test $ac_cv_type_off_t = yes; then
20750
 
  :
 
12458
                 not big endian
 
12459
                #endif
 
12460
 
 
12461
  ;
 
12462
  return 0;
 
12463
}
 
12464
_ACEOF
 
12465
if ac_fn_c_try_compile "$LINENO"; then :
 
12466
  ac_cv_c_bigendian=yes
 
12467
else
 
12468
  ac_cv_c_bigendian=no
 
12469
fi
 
12470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12471
fi
 
12472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12473
    fi
 
12474
    if test $ac_cv_c_bigendian = unknown; then
 
12475
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
12476
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12477
/* end confdefs.h.  */
 
12478
#include <limits.h>
 
12479
 
 
12480
int
 
12481
main ()
 
12482
{
 
12483
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
12484
              bogus endian macros
 
12485
             #endif
 
12486
 
 
12487
  ;
 
12488
  return 0;
 
12489
}
 
12490
_ACEOF
 
12491
if ac_fn_c_try_compile "$LINENO"; then :
 
12492
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
12493
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12494
/* end confdefs.h.  */
 
12495
#include <limits.h>
 
12496
 
 
12497
int
 
12498
main ()
 
12499
{
 
12500
#ifndef _BIG_ENDIAN
 
12501
                 not big endian
 
12502
                #endif
 
12503
 
 
12504
  ;
 
12505
  return 0;
 
12506
}
 
12507
_ACEOF
 
12508
if ac_fn_c_try_compile "$LINENO"; then :
 
12509
  ac_cv_c_bigendian=yes
 
12510
else
 
12511
  ac_cv_c_bigendian=no
 
12512
fi
 
12513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12514
fi
 
12515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12516
    fi
 
12517
    if test $ac_cv_c_bigendian = unknown; then
 
12518
      # Compile a test program.
 
12519
      if test "$cross_compiling" = yes; then :
 
12520
  # Try to guess by grepping values from an object file.
 
12521
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12522
/* end confdefs.h.  */
 
12523
short int ascii_mm[] =
 
12524
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
12525
                short int ascii_ii[] =
 
12526
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
12527
                int use_ascii (int i) {
 
12528
                  return ascii_mm[i] + ascii_ii[i];
 
12529
                }
 
12530
                short int ebcdic_ii[] =
 
12531
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
12532
                short int ebcdic_mm[] =
 
12533
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
12534
                int use_ebcdic (int i) {
 
12535
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
12536
                }
 
12537
                extern int foo;
 
12538
 
 
12539
int
 
12540
main ()
 
12541
{
 
12542
return use_ascii (foo) == use_ebcdic (foo);
 
12543
  ;
 
12544
  return 0;
 
12545
}
 
12546
_ACEOF
 
12547
if ac_fn_c_try_compile "$LINENO"; then :
 
12548
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
12549
              ac_cv_c_bigendian=yes
 
12550
            fi
 
12551
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
12552
              if test "$ac_cv_c_bigendian" = unknown; then
 
12553
                ac_cv_c_bigendian=no
 
12554
              else
 
12555
                # finding both strings is unlikely to happen, but who knows?
 
12556
                ac_cv_c_bigendian=unknown
 
12557
              fi
 
12558
            fi
 
12559
fi
 
12560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12561
else
 
12562
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12563
/* end confdefs.h.  */
 
12564
$ac_includes_default
 
12565
int
 
12566
main ()
 
12567
{
 
12568
 
 
12569
             /* Are we little or big endian?  From Harbison&Steele.  */
 
12570
             union
 
12571
             {
 
12572
               long int l;
 
12573
               char c[sizeof (long int)];
 
12574
             } u;
 
12575
             u.l = 1;
 
12576
             return u.c[sizeof (long int) - 1] == 1;
 
12577
 
 
12578
  ;
 
12579
  return 0;
 
12580
}
 
12581
_ACEOF
 
12582
if ac_fn_c_try_run "$LINENO"; then :
 
12583
  ac_cv_c_bigendian=no
 
12584
else
 
12585
  ac_cv_c_bigendian=yes
 
12586
fi
 
12587
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12588
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12589
fi
 
12590
 
 
12591
    fi
 
12592
fi
 
12593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
12594
$as_echo "$ac_cv_c_bigendian" >&6; }
 
12595
 case $ac_cv_c_bigendian in #(
 
12596
   yes)
 
12597
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
12598
;; #(
 
12599
   no)
 
12600
      ;; #(
 
12601
   universal)
 
12602
 
 
12603
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12604
 
 
12605
     ;; #(
 
12606
   *)
 
12607
     as_fn_error $? "unknown endianness
 
12608
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
12609
 esac
 
12610
 
 
12611
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
12612
if test "x$ac_cv_type_off_t" = xyes; then :
 
12613
 
20751
12614
else
20752
12615
 
20753
12616
cat >>confdefs.h <<_ACEOF
20756
12619
 
20757
12620
fi
20758
12621
 
20759
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
20760
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20761
 
if test "${ac_cv_type_size_t+set}" = set; then
20762
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20763
 
else
20764
 
  cat >conftest.$ac_ext <<_ACEOF
20765
 
/* confdefs.h.  */
20766
 
_ACEOF
20767
 
cat confdefs.h >>conftest.$ac_ext
20768
 
cat >>conftest.$ac_ext <<_ACEOF
20769
 
/* end confdefs.h.  */
20770
 
$ac_includes_default
20771
 
typedef size_t ac__type_new_;
20772
 
int
20773
 
main ()
20774
 
{
20775
 
if ((ac__type_new_ *) 0)
20776
 
  return 0;
20777
 
if (sizeof (ac__type_new_))
20778
 
  return 0;
20779
 
  ;
20780
 
  return 0;
20781
 
}
20782
 
_ACEOF
20783
 
rm -f conftest.$ac_objext
20784
 
if { (ac_try="$ac_compile"
20785
 
case "(($ac_try" in
20786
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787
 
  *) ac_try_echo=$ac_try;;
20788
 
esac
20789
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790
 
  (eval "$ac_compile") 2>conftest.er1
20791
 
  ac_status=$?
20792
 
  grep -v '^ *+' conftest.er1 >conftest.err
20793
 
  rm -f conftest.er1
20794
 
  cat conftest.err >&5
20795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796
 
  (exit $ac_status); } && {
20797
 
         test -z "$ac_c_werror_flag" ||
20798
 
         test ! -s conftest.err
20799
 
       } && test -s conftest.$ac_objext; then
20800
 
  ac_cv_type_size_t=yes
20801
 
else
20802
 
  echo "$as_me: failed program was:" >&5
20803
 
sed 's/^/| /' conftest.$ac_ext >&5
20804
 
 
20805
 
        ac_cv_type_size_t=no
20806
 
fi
20807
 
 
20808
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809
 
fi
20810
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20811
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20812
 
if test $ac_cv_type_size_t = yes; then
20813
 
  :
 
12622
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
12623
if test "x$ac_cv_type_size_t" = xyes; then :
 
12624
 
20814
12625
else
20815
12626
 
20816
12627
cat >>confdefs.h <<_ACEOF
20819
12630
 
20820
12631
fi
20821
12632
 
20822
 
{ echo "$as_me:$LINENO: checking for mode_t" >&5
20823
 
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
20824
 
if test "${ac_cv_type_mode_t+set}" = set; then
20825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20826
 
else
20827
 
  cat >conftest.$ac_ext <<_ACEOF
20828
 
/* confdefs.h.  */
20829
 
_ACEOF
20830
 
cat confdefs.h >>conftest.$ac_ext
20831
 
cat >>conftest.$ac_ext <<_ACEOF
20832
 
/* end confdefs.h.  */
20833
 
$ac_includes_default
20834
 
typedef mode_t ac__type_new_;
20835
 
int
20836
 
main ()
20837
 
{
20838
 
if ((ac__type_new_ *) 0)
20839
 
  return 0;
20840
 
if (sizeof (ac__type_new_))
20841
 
  return 0;
20842
 
  ;
20843
 
  return 0;
20844
 
}
20845
 
_ACEOF
20846
 
rm -f conftest.$ac_objext
20847
 
if { (ac_try="$ac_compile"
20848
 
case "(($ac_try" in
20849
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850
 
  *) ac_try_echo=$ac_try;;
20851
 
esac
20852
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853
 
  (eval "$ac_compile") 2>conftest.er1
20854
 
  ac_status=$?
20855
 
  grep -v '^ *+' conftest.er1 >conftest.err
20856
 
  rm -f conftest.er1
20857
 
  cat conftest.err >&5
20858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859
 
  (exit $ac_status); } && {
20860
 
         test -z "$ac_c_werror_flag" ||
20861
 
         test ! -s conftest.err
20862
 
       } && test -s conftest.$ac_objext; then
20863
 
  ac_cv_type_mode_t=yes
20864
 
else
20865
 
  echo "$as_me: failed program was:" >&5
20866
 
sed 's/^/| /' conftest.$ac_ext >&5
20867
 
 
20868
 
        ac_cv_type_mode_t=no
20869
 
fi
20870
 
 
20871
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872
 
fi
20873
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20874
 
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
20875
 
if test $ac_cv_type_mode_t = yes; then
20876
 
  :
 
12633
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
 
12634
if test "x$ac_cv_type_mode_t" = xyes; then :
 
12635
 
20877
12636
else
20878
12637
 
20879
12638
cat >>confdefs.h <<_ACEOF
20884
12643
 
20885
12644
 
20886
12645
# Checks for library functions.
20887
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
20888
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20889
 
if test "${ac_cv_type_pid_t+set}" = set; then
20890
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20891
 
else
20892
 
  cat >conftest.$ac_ext <<_ACEOF
20893
 
/* confdefs.h.  */
20894
 
_ACEOF
20895
 
cat confdefs.h >>conftest.$ac_ext
20896
 
cat >>conftest.$ac_ext <<_ACEOF
20897
 
/* end confdefs.h.  */
20898
 
$ac_includes_default
20899
 
typedef pid_t ac__type_new_;
20900
 
int
20901
 
main ()
20902
 
{
20903
 
if ((ac__type_new_ *) 0)
20904
 
  return 0;
20905
 
if (sizeof (ac__type_new_))
20906
 
  return 0;
20907
 
  ;
20908
 
  return 0;
20909
 
}
20910
 
_ACEOF
20911
 
rm -f conftest.$ac_objext
20912
 
if { (ac_try="$ac_compile"
20913
 
case "(($ac_try" in
20914
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915
 
  *) ac_try_echo=$ac_try;;
20916
 
esac
20917
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918
 
  (eval "$ac_compile") 2>conftest.er1
20919
 
  ac_status=$?
20920
 
  grep -v '^ *+' conftest.er1 >conftest.err
20921
 
  rm -f conftest.er1
20922
 
  cat conftest.err >&5
20923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924
 
  (exit $ac_status); } && {
20925
 
         test -z "$ac_c_werror_flag" ||
20926
 
         test ! -s conftest.err
20927
 
       } && test -s conftest.$ac_objext; then
20928
 
  ac_cv_type_pid_t=yes
20929
 
else
20930
 
  echo "$as_me: failed program was:" >&5
20931
 
sed 's/^/| /' conftest.$ac_ext >&5
20932
 
 
20933
 
        ac_cv_type_pid_t=no
20934
 
fi
20935
 
 
20936
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937
 
fi
20938
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20939
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20940
 
if test $ac_cv_type_pid_t = yes; then
20941
 
  :
 
12646
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
12647
if test "x$ac_cv_type_pid_t" = xyes; then :
 
12648
 
20942
12649
else
20943
12650
 
20944
12651
cat >>confdefs.h <<_ACEOF
20947
12654
 
20948
12655
fi
20949
12656
 
20950
 
 
20951
12657
for ac_header in vfork.h
20952
 
do
20953
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20954
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20956
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20957
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20959
 
fi
20960
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20961
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20962
 
echo "${ECHO_T}$ac_res" >&6; }
20963
 
else
20964
 
  # Is the header compilable?
20965
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20966
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20967
 
cat >conftest.$ac_ext <<_ACEOF
20968
 
/* confdefs.h.  */
20969
 
_ACEOF
20970
 
cat confdefs.h >>conftest.$ac_ext
20971
 
cat >>conftest.$ac_ext <<_ACEOF
20972
 
/* end confdefs.h.  */
20973
 
$ac_includes_default
20974
 
#include <$ac_header>
20975
 
_ACEOF
20976
 
rm -f conftest.$ac_objext
20977
 
if { (ac_try="$ac_compile"
20978
 
case "(($ac_try" in
20979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980
 
  *) ac_try_echo=$ac_try;;
20981
 
esac
20982
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983
 
  (eval "$ac_compile") 2>conftest.er1
20984
 
  ac_status=$?
20985
 
  grep -v '^ *+' conftest.er1 >conftest.err
20986
 
  rm -f conftest.er1
20987
 
  cat conftest.err >&5
20988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989
 
  (exit $ac_status); } && {
20990
 
         test -z "$ac_c_werror_flag" ||
20991
 
         test ! -s conftest.err
20992
 
       } && test -s conftest.$ac_objext; then
20993
 
  ac_header_compiler=yes
20994
 
else
20995
 
  echo "$as_me: failed program was:" >&5
20996
 
sed 's/^/| /' conftest.$ac_ext >&5
20997
 
 
20998
 
        ac_header_compiler=no
20999
 
fi
21000
 
 
21001
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21003
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21004
 
 
21005
 
# Is the header present?
21006
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21007
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21008
 
cat >conftest.$ac_ext <<_ACEOF
21009
 
/* confdefs.h.  */
21010
 
_ACEOF
21011
 
cat confdefs.h >>conftest.$ac_ext
21012
 
cat >>conftest.$ac_ext <<_ACEOF
21013
 
/* end confdefs.h.  */
21014
 
#include <$ac_header>
21015
 
_ACEOF
21016
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21017
 
case "(($ac_try" in
21018
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019
 
  *) ac_try_echo=$ac_try;;
21020
 
esac
21021
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21023
 
  ac_status=$?
21024
 
  grep -v '^ *+' conftest.er1 >conftest.err
21025
 
  rm -f conftest.er1
21026
 
  cat conftest.err >&5
21027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028
 
  (exit $ac_status); } >/dev/null && {
21029
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21030
 
         test ! -s conftest.err
21031
 
       }; then
21032
 
  ac_header_preproc=yes
21033
 
else
21034
 
  echo "$as_me: failed program was:" >&5
21035
 
sed 's/^/| /' conftest.$ac_ext >&5
21036
 
 
21037
 
  ac_header_preproc=no
21038
 
fi
21039
 
 
21040
 
rm -f conftest.err conftest.$ac_ext
21041
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21042
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21043
 
 
21044
 
# So?  What about this header?
21045
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21046
 
  yes:no: )
21047
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21048
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21049
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21050
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21051
 
    ac_header_preproc=yes
21052
 
    ;;
21053
 
  no:yes:* )
21054
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21055
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21056
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21057
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21058
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21059
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21060
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21061
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21062
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21063
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21064
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21065
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21066
 
    ( cat <<\_ASBOX
21067
 
## -------------------------------- ##
21068
 
## Report this to mathew@eisbox.net ##
21069
 
## -------------------------------- ##
21070
 
_ASBOX
21071
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21072
 
    ;;
21073
 
esac
21074
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21075
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21076
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21077
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21078
 
else
21079
 
  eval "$as_ac_Header=\$ac_header_preproc"
21080
 
fi
21081
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21082
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21083
 
echo "${ECHO_T}$ac_res" >&6; }
21084
 
 
21085
 
fi
21086
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12658
do :
 
12659
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
12660
if test "x$ac_cv_header_vfork_h" = xyes; then :
21087
12661
  cat >>confdefs.h <<_ACEOF
21088
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12662
#define HAVE_VFORK_H 1
21089
12663
_ACEOF
21090
12664
 
21091
12665
fi
21092
12666
 
21093
12667
done
21094
12668
 
21095
 
 
21096
 
 
21097
12669
for ac_func in fork vfork
21098
 
do
21099
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21100
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21101
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21102
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21103
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21104
 
else
21105
 
  cat >conftest.$ac_ext <<_ACEOF
21106
 
/* confdefs.h.  */
21107
 
_ACEOF
21108
 
cat confdefs.h >>conftest.$ac_ext
21109
 
cat >>conftest.$ac_ext <<_ACEOF
21110
 
/* end confdefs.h.  */
21111
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21112
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21113
 
#define $ac_func innocuous_$ac_func
21114
 
 
21115
 
/* System header to define __stub macros and hopefully few prototypes,
21116
 
    which can conflict with char $ac_func (); below.
21117
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21118
 
    <limits.h> exists even on freestanding compilers.  */
21119
 
 
21120
 
#ifdef __STDC__
21121
 
# include <limits.h>
21122
 
#else
21123
 
# include <assert.h>
21124
 
#endif
21125
 
 
21126
 
#undef $ac_func
21127
 
 
21128
 
/* Override any GCC internal prototype to avoid an error.
21129
 
   Use char because int might match the return type of a GCC
21130
 
   builtin and then its argument prototype would still apply.  */
21131
 
#ifdef __cplusplus
21132
 
extern "C"
21133
 
#endif
21134
 
char $ac_func ();
21135
 
/* The GNU C library defines this for functions which it implements
21136
 
    to always fail with ENOSYS.  Some functions are actually named
21137
 
    something starting with __ and the normal name is an alias.  */
21138
 
#if defined __stub_$ac_func || defined __stub___$ac_func
21139
 
choke me
21140
 
#endif
21141
 
 
21142
 
int
21143
 
main ()
21144
 
{
21145
 
return $ac_func ();
21146
 
  ;
21147
 
  return 0;
21148
 
}
21149
 
_ACEOF
21150
 
rm -f conftest.$ac_objext conftest$ac_exeext
21151
 
if { (ac_try="$ac_link"
21152
 
case "(($ac_try" in
21153
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154
 
  *) ac_try_echo=$ac_try;;
21155
 
esac
21156
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157
 
  (eval "$ac_link") 2>conftest.er1
21158
 
  ac_status=$?
21159
 
  grep -v '^ *+' conftest.er1 >conftest.err
21160
 
  rm -f conftest.er1
21161
 
  cat conftest.err >&5
21162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163
 
  (exit $ac_status); } && {
21164
 
         test -z "$ac_c_werror_flag" ||
21165
 
         test ! -s conftest.err
21166
 
       } && test -s conftest$ac_exeext &&
21167
 
       $as_test_x conftest$ac_exeext; then
21168
 
  eval "$as_ac_var=yes"
21169
 
else
21170
 
  echo "$as_me: failed program was:" >&5
21171
 
sed 's/^/| /' conftest.$ac_ext >&5
21172
 
 
21173
 
        eval "$as_ac_var=no"
21174
 
fi
21175
 
 
21176
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21177
 
      conftest$ac_exeext conftest.$ac_ext
21178
 
fi
21179
 
ac_res=`eval echo '${'$as_ac_var'}'`
21180
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21181
 
echo "${ECHO_T}$ac_res" >&6; }
21182
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12670
do :
 
12671
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12672
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
12673
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21183
12674
  cat >>confdefs.h <<_ACEOF
21184
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12675
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21185
12676
_ACEOF
21186
12677
 
21187
12678
fi
21188
12679
done
21189
12680
 
21190
12681
if test "x$ac_cv_func_fork" = xyes; then
21191
 
  { echo "$as_me:$LINENO: checking for working fork" >&5
21192
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21193
 
if test "${ac_cv_func_fork_works+set}" = set; then
21194
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12682
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
12683
$as_echo_n "checking for working fork... " >&6; }
 
12684
if ${ac_cv_func_fork_works+:} false; then :
 
12685
  $as_echo_n "(cached) " >&6
21195
12686
else
21196
 
  if test "$cross_compiling" = yes; then
 
12687
  if test "$cross_compiling" = yes; then :
21197
12688
  ac_cv_func_fork_works=cross
21198
12689
else
21199
 
  cat >conftest.$ac_ext <<_ACEOF
21200
 
/* confdefs.h.  */
21201
 
_ACEOF
21202
 
cat confdefs.h >>conftest.$ac_ext
21203
 
cat >>conftest.$ac_ext <<_ACEOF
 
12690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204
12691
/* end confdefs.h.  */
21205
12692
$ac_includes_default
21206
12693
int
21214
12701
  return 0;
21215
12702
}
21216
12703
_ACEOF
21217
 
rm -f conftest$ac_exeext
21218
 
if { (ac_try="$ac_link"
21219
 
case "(($ac_try" in
21220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221
 
  *) ac_try_echo=$ac_try;;
21222
 
esac
21223
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224
 
  (eval "$ac_link") 2>&5
21225
 
  ac_status=$?
21226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21228
 
  { (case "(($ac_try" in
21229
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230
 
  *) ac_try_echo=$ac_try;;
21231
 
esac
21232
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233
 
  (eval "$ac_try") 2>&5
21234
 
  ac_status=$?
21235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236
 
  (exit $ac_status); }; }; then
 
12704
if ac_fn_c_try_run "$LINENO"; then :
21237
12705
  ac_cv_func_fork_works=yes
21238
12706
else
21239
 
  echo "$as_me: program exited with status $ac_status" >&5
21240
 
echo "$as_me: failed program was:" >&5
21241
 
sed 's/^/| /' conftest.$ac_ext >&5
21242
 
 
21243
 
( exit $ac_status )
21244
 
ac_cv_func_fork_works=no
21245
 
fi
21246
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21247
 
fi
21248
 
 
21249
 
 
21250
 
fi
21251
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21252
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
 
12707
  ac_cv_func_fork_works=no
 
12708
fi
 
12709
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12710
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12711
fi
 
12712
 
 
12713
fi
 
12714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
12715
$as_echo "$ac_cv_func_fork_works" >&6; }
21253
12716
 
21254
12717
else
21255
12718
  ac_cv_func_fork_works=$ac_cv_func_fork
21264
12727
      ac_cv_func_fork_works=yes
21265
12728
      ;;
21266
12729
  esac
21267
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21268
 
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
12730
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
12731
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21269
12732
fi
21270
12733
ac_cv_func_vfork_works=$ac_cv_func_vfork
21271
12734
if test "x$ac_cv_func_vfork" = xyes; then
21272
 
  { echo "$as_me:$LINENO: checking for working vfork" >&5
21273
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21274
 
if test "${ac_cv_func_vfork_works+set}" = set; then
21275
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12735
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
12736
$as_echo_n "checking for working vfork... " >&6; }
 
12737
if ${ac_cv_func_vfork_works+:} false; then :
 
12738
  $as_echo_n "(cached) " >&6
21276
12739
else
21277
 
  if test "$cross_compiling" = yes; then
 
12740
  if test "$cross_compiling" = yes; then :
21278
12741
  ac_cv_func_vfork_works=cross
21279
12742
else
21280
 
  cat >conftest.$ac_ext <<_ACEOF
21281
 
/* confdefs.h.  */
21282
 
_ACEOF
21283
 
cat confdefs.h >>conftest.$ac_ext
21284
 
cat >>conftest.$ac_ext <<_ACEOF
 
12743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21285
12744
/* end confdefs.h.  */
21286
12745
/* Thanks to Paul Eggert for this test.  */
21287
12746
$ac_includes_default
21373
12832
  }
21374
12833
}
21375
12834
_ACEOF
21376
 
rm -f conftest$ac_exeext
21377
 
if { (ac_try="$ac_link"
21378
 
case "(($ac_try" in
21379
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380
 
  *) ac_try_echo=$ac_try;;
21381
 
esac
21382
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383
 
  (eval "$ac_link") 2>&5
21384
 
  ac_status=$?
21385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21387
 
  { (case "(($ac_try" in
21388
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389
 
  *) ac_try_echo=$ac_try;;
21390
 
esac
21391
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392
 
  (eval "$ac_try") 2>&5
21393
 
  ac_status=$?
21394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395
 
  (exit $ac_status); }; }; then
 
12835
if ac_fn_c_try_run "$LINENO"; then :
21396
12836
  ac_cv_func_vfork_works=yes
21397
12837
else
21398
 
  echo "$as_me: program exited with status $ac_status" >&5
21399
 
echo "$as_me: failed program was:" >&5
21400
 
sed 's/^/| /' conftest.$ac_ext >&5
21401
 
 
21402
 
( exit $ac_status )
21403
 
ac_cv_func_vfork_works=no
21404
 
fi
21405
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21406
 
fi
21407
 
 
21408
 
 
21409
 
fi
21410
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21411
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
 
12838
  ac_cv_func_vfork_works=no
 
12839
fi
 
12840
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12841
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12842
fi
 
12843
 
 
12844
fi
 
12845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
12846
$as_echo "$ac_cv_func_vfork_works" >&6; }
21412
12847
 
21413
12848
fi;
21414
12849
if test "x$ac_cv_func_fork_works" = xcross; then
21415
12850
  ac_cv_func_vfork_works=$ac_cv_func_vfork
21416
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21417
 
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
12851
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
12852
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21418
12853
fi
21419
12854
 
21420
12855
if test "x$ac_cv_func_vfork_works" = xyes; then
21421
12856
 
21422
 
cat >>confdefs.h <<\_ACEOF
21423
 
#define HAVE_WORKING_VFORK 1
21424
 
_ACEOF
 
12857
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21425
12858
 
21426
12859
else
21427
12860
 
21428
 
cat >>confdefs.h <<\_ACEOF
21429
 
#define vfork fork
21430
 
_ACEOF
 
12861
$as_echo "#define vfork fork" >>confdefs.h
21431
12862
 
21432
12863
fi
21433
12864
if test "x$ac_cv_func_fork_works" = xyes; then
21434
12865
 
21435
 
cat >>confdefs.h <<\_ACEOF
21436
 
#define HAVE_WORKING_FORK 1
21437
 
_ACEOF
 
12866
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21438
12867
 
21439
12868
fi
21440
12869
 
21441
 
 
21442
 
{ echo "$as_me:$LINENO: checking for getopt_long in -lgetopt" >&5
21443
 
echo $ECHO_N "checking for getopt_long in -lgetopt... $ECHO_C" >&6; }
21444
 
if test "${ac_cv_lib_getopt_getopt_long+set}" = set; then
21445
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgetopt" >&5
 
12871
$as_echo_n "checking for getopt_long in -lgetopt... " >&6; }
 
12872
if ${ac_cv_lib_getopt_getopt_long+:} false; then :
 
12873
  $as_echo_n "(cached) " >&6
21446
12874
else
21447
12875
  ac_check_lib_save_LIBS=$LIBS
21448
12876
LIBS="-lgetopt  $LIBS"
21449
 
cat >conftest.$ac_ext <<_ACEOF
21450
 
/* confdefs.h.  */
21451
 
_ACEOF
21452
 
cat confdefs.h >>conftest.$ac_ext
21453
 
cat >>conftest.$ac_ext <<_ACEOF
 
12877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21454
12878
/* end confdefs.h.  */
21455
12879
 
21456
12880
/* Override any GCC internal prototype to avoid an error.
21468
12892
  return 0;
21469
12893
}
21470
12894
_ACEOF
21471
 
rm -f conftest.$ac_objext conftest$ac_exeext
21472
 
if { (ac_try="$ac_link"
21473
 
case "(($ac_try" in
21474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475
 
  *) ac_try_echo=$ac_try;;
21476
 
esac
21477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478
 
  (eval "$ac_link") 2>conftest.er1
21479
 
  ac_status=$?
21480
 
  grep -v '^ *+' conftest.er1 >conftest.err
21481
 
  rm -f conftest.er1
21482
 
  cat conftest.err >&5
21483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484
 
  (exit $ac_status); } && {
21485
 
         test -z "$ac_c_werror_flag" ||
21486
 
         test ! -s conftest.err
21487
 
       } && test -s conftest$ac_exeext &&
21488
 
       $as_test_x conftest$ac_exeext; then
 
12895
if ac_fn_c_try_link "$LINENO"; then :
21489
12896
  ac_cv_lib_getopt_getopt_long=yes
21490
12897
else
21491
 
  echo "$as_me: failed program was:" >&5
21492
 
sed 's/^/| /' conftest.$ac_ext >&5
21493
 
 
21494
 
        ac_cv_lib_getopt_getopt_long=no
 
12898
  ac_cv_lib_getopt_getopt_long=no
21495
12899
fi
21496
 
 
21497
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21498
 
      conftest$ac_exeext conftest.$ac_ext
 
12900
rm -f core conftest.err conftest.$ac_objext \
 
12901
    conftest$ac_exeext conftest.$ac_ext
21499
12902
LIBS=$ac_check_lib_save_LIBS
21500
12903
fi
21501
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_getopt_getopt_long" >&5
21502
 
echo "${ECHO_T}$ac_cv_lib_getopt_getopt_long" >&6; }
21503
 
if test $ac_cv_lib_getopt_getopt_long = yes; then
 
12904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getopt_getopt_long" >&5
 
12905
$as_echo "$ac_cv_lib_getopt_getopt_long" >&6; }
 
12906
if test "x$ac_cv_lib_getopt_getopt_long" = xyes; then :
21504
12907
  cat >>confdefs.h <<_ACEOF
21505
12908
#define HAVE_LIBGETOPT 1
21506
12909
_ACEOF
21510
12913
fi
21511
12914
 
21512
12915
 
 
12916
# Check for memcpy unaligned copy support
 
12917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy works with unaligned data" >&5
 
12918
$as_echo_n "checking whether memcpy works with unaligned data... " >&6; }
 
12919
if test "$cross_compiling" = yes; then :
 
12920
 
 
12921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
 
12922
$as_echo "can not test" >&6; }
 
12923
 
 
12924
else
 
12925
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12926
/* end confdefs.h.  */
 
12927
 
 
12928
#include <stdio.h>
 
12929
#include <stdlib.h>
 
12930
#include <stdint.h>
 
12931
#include <string.h>
 
12932
#define READ_UNALIGNED(val, addr, size)  memcpy(&(val), (addr), size)
 
12933
typedef struct struct_type_t {
 
12934
  uint32_t      numx;
 
12935
  uint32_t      numy;
 
12936
  uint8_t   data[1];
 
12937
} struct_type_t;
 
12938
int
 
12939
main ()
 
12940
{
 
12941
uint8_t *init = "WithThisDataICanFindManyBugs\0\0\0\0";
 
12942
uint8_t *data = malloc(sizeof(uint8_t)*32);
 
12943
struct_type_t *good_data = (struct_type_t *)(data+0);
 
12944
struct_type_t *poor_data = (struct_type_t *)(data+1);
 
12945
uint32_t numx = 0;
 
12946
uint32_t numy = 0;
 
12947
uint8_t  ebytes[] = {0xFF,0x11};
 
12948
uint16_t echeck = ebytes[0]|ebytes[1]<< 8;
 
12949
uint16_t endian = *((uint16_t*)(&ebytes[0]));
 
12950
uint8_t  little = (endian == echeck);
 
12951
memcpy(&data[0],&init[0],32);
 
12952
if(memcmp(&data[0],&init[0],32) != 0) return 1;
 
12953
READ_UNALIGNED(numx, &(poor_data->numx),sizeof( uint32_t));
 
12954
if( (little && numx != 0x54687469) || (!little && numx != 0x69746854) ) return 1;
 
12955
READ_UNALIGNED(numy, &(poor_data->numy),sizeof( uint32_t));
 
12956
if( (little && numy != 0x44736968) || (!little && numy != 0x68697344) ) return 1;
 
12957
READ_UNALIGNED(numx, &(good_data->numx),sizeof( uint32_t));
 
12958
if( (little && numx != 0x68746957) || (!little && numx != 0x57697468) ) return 1;
 
12959
READ_UNALIGNED(numy, &(good_data->numy),sizeof( uint32_t));
 
12960
if( (little && numy != 0x73696854) || (!little && numy != 0x54686973) ) return 1;
 
12961
 
 
12962
  ;
 
12963
  return 0;
 
12964
}
 
12965
_ACEOF
 
12966
if ac_fn_c_try_run "$LINENO"; then :
 
12967
 
 
12968
 
 
12969
$as_echo "#define HAVE_UNALIGNED_MEMCPY 1" >>confdefs.h
 
12970
 
 
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12972
$as_echo "yes" >&6; }
 
12973
 
 
12974
else
 
12975
 
 
12976
 
 
12977
$as_echo "#define HAVE_UNALIGNED_MEMCPY 0" >>confdefs.h
 
12978
 
 
12979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12980
$as_echo "no" >&6; }
 
12981
 
 
12982
fi
 
12983
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12984
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12985
fi
 
12986
 
 
12987
 
 
12988
# Check for noinline memcpy unaligned copy support
 
12989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether noinline memcpy works with unaligned data" >&5
 
12990
$as_echo_n "checking whether noinline memcpy works with unaligned data... " >&6; }
 
12991
if test "$cross_compiling" = yes; then :
 
12992
 
 
12993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
 
12994
$as_echo "can not test" >&6; }
 
12995
 
 
12996
else
 
12997
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12998
/* end confdefs.h.  */
 
12999
 
 
13000
#include <stdio.h>
 
13001
#include <stdlib.h>
 
13002
#include <stdint.h>
 
13003
#include <string.h>
 
13004
#ifndef HAVE_UNALIGNED_MEMCPY
 
13005
 #if defined(__GNUC__) && (defined(__arm__) || defined(__thumb__) || defined(__sparc__))
 
13006
  #define HAVE_UNALIGNED_MEMCPY 0
 
13007
 #else
 
13008
  #define HAVE_UNALIGNED_MEMCPY 1
 
13009
 #endif
 
13010
#endif
 
13011
#if HAVE_UNALIGNED_MEMCPY == 0
 
13012
__attribute__ ((noinline)) void *memcpy_noinline( void *dst, const void *src, size_t num );
 
13013
__attribute__ ((noinline)) void *memcpy_noinline( void *dst, const void *src, size_t num ) {
 
13014
 return memcpy(dst,src,num);
 
13015
}
 
13016
#define READ_UNALIGNED(val, addr, size)  memcpy_noinline(&(val), (addr), size)
 
13017
#else
 
13018
#define READ_UNALIGNED(val, addr, size)  memcpy(&(val), (addr), size)
 
13019
#endif
 
13020
typedef struct struct_type_t {
 
13021
  uint32_t      numx;
 
13022
  uint32_t      numy;
 
13023
  uint8_t   data[1];
 
13024
} struct_type_t;
 
13025
int
 
13026
main ()
 
13027
{
 
13028
uint8_t *init = "WithThisDataICanFindManyBugs\0\0\0\0";
 
13029
uint8_t *data = malloc(sizeof(uint8_t)*32);
 
13030
struct_type_t *good_data = (struct_type_t *)(data+0);
 
13031
struct_type_t *poor_data = (struct_type_t *)(data+1);
 
13032
uint32_t numx = 0;
 
13033
uint32_t numy = 0;
 
13034
uint8_t  ebytes[] = {0xFF,0x11};
 
13035
uint16_t echeck = ebytes[0]|ebytes[1]<< 8;
 
13036
uint16_t endian = *((uint16_t*)(&ebytes[0]));
 
13037
uint8_t  little = (endian == echeck);
 
13038
memcpy(&data[0],&init[0],32);
 
13039
if(memcmp(&data[0],&init[0],32) != 0) return 1;
 
13040
READ_UNALIGNED(numx, &(poor_data->numx),sizeof( uint32_t));
 
13041
if( (little && numx != 0x54687469) || (!little && numx != 0x69746854) ) return 1;
 
13042
READ_UNALIGNED(numy, &(poor_data->numy),sizeof( uint32_t));
 
13043
if( (little && numy != 0x44736968) || (!little && numy != 0x68697344) ) return 1;
 
13044
READ_UNALIGNED(numx, &(good_data->numx),sizeof( uint32_t));
 
13045
if( (little && numx != 0x68746957) || (!little && numx != 0x57697468) ) return 1;
 
13046
READ_UNALIGNED(numy, &(good_data->numy),sizeof( uint32_t));
 
13047
if( (little && numy != 0x73696854) || (!little && numy != 0x54686973) ) return 1;
 
13048
 
 
13049
  ;
 
13050
  return 0;
 
13051
}
 
13052
_ACEOF
 
13053
if ac_fn_c_try_run "$LINENO"; then :
 
13054
 
 
13055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13056
$as_echo "yes" >&6; }
 
13057
 
 
13058
else
 
13059
 
 
13060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13061
$as_echo "no" >&6; }
 
13062
as_fn_error $? "libicns cannot work around memcpy problems on this platform" "$LINENO" 5
 
13063
 
 
13064
fi
 
13065
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13066
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13067
fi
 
13068
 
 
13069
 
21513
13070
# Check for libpng
21514
 
{ echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
21515
 
echo $ECHO_N "checking for png_create_read_struct in -lpng... $ECHO_C" >&6; }
21516
 
if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then
21517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
 
13072
$as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
 
13073
if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
 
13074
  $as_echo_n "(cached) " >&6
21518
13075
else
21519
13076
  ac_check_lib_save_LIBS=$LIBS
21520
13077
LIBS="-lpng  $LIBS"
21521
 
cat >conftest.$ac_ext <<_ACEOF
21522
 
/* confdefs.h.  */
21523
 
_ACEOF
21524
 
cat confdefs.h >>conftest.$ac_ext
21525
 
cat >>conftest.$ac_ext <<_ACEOF
 
13078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526
13079
/* end confdefs.h.  */
21527
13080
 
21528
13081
/* Override any GCC internal prototype to avoid an error.
21540
13093
  return 0;
21541
13094
}
21542
13095
_ACEOF
21543
 
rm -f conftest.$ac_objext conftest$ac_exeext
21544
 
if { (ac_try="$ac_link"
21545
 
case "(($ac_try" in
21546
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547
 
  *) ac_try_echo=$ac_try;;
21548
 
esac
21549
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550
 
  (eval "$ac_link") 2>conftest.er1
21551
 
  ac_status=$?
21552
 
  grep -v '^ *+' conftest.er1 >conftest.err
21553
 
  rm -f conftest.er1
21554
 
  cat conftest.err >&5
21555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556
 
  (exit $ac_status); } && {
21557
 
         test -z "$ac_c_werror_flag" ||
21558
 
         test ! -s conftest.err
21559
 
       } && test -s conftest$ac_exeext &&
21560
 
       $as_test_x conftest$ac_exeext; then
 
13096
if ac_fn_c_try_link "$LINENO"; then :
21561
13097
  ac_cv_lib_png_png_create_read_struct=yes
21562
13098
else
21563
 
  echo "$as_me: failed program was:" >&5
21564
 
sed 's/^/| /' conftest.$ac_ext >&5
21565
 
 
21566
 
        ac_cv_lib_png_png_create_read_struct=no
 
13099
  ac_cv_lib_png_png_create_read_struct=no
21567
13100
fi
21568
 
 
21569
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570
 
      conftest$ac_exeext conftest.$ac_ext
 
13101
rm -f core conftest.err conftest.$ac_objext \
 
13102
    conftest$ac_exeext conftest.$ac_ext
21571
13103
LIBS=$ac_check_lib_save_LIBS
21572
13104
fi
21573
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
21574
 
echo "${ECHO_T}$ac_cv_lib_png_png_create_read_struct" >&6; }
21575
 
if test $ac_cv_lib_png_png_create_read_struct = yes; then
 
13105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
 
13106
$as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
 
13107
if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
21576
13108
 
21577
13109
PNG_LIBS="-lpng"
21578
13110
 
21579
13111
 
21580
13112
else
21581
13113
 
21582
 
  { echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng10" >&5
21583
 
echo $ECHO_N "checking for png_create_read_struct in -lpng10... $ECHO_C" >&6; }
21584
 
if test "${ac_cv_lib_png10_png_create_read_struct+set}" = set; then
21585
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13114
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng10" >&5
 
13115
$as_echo_n "checking for png_create_read_struct in -lpng10... " >&6; }
 
13116
if ${ac_cv_lib_png10_png_create_read_struct+:} false; then :
 
13117
  $as_echo_n "(cached) " >&6
21586
13118
else
21587
13119
  ac_check_lib_save_LIBS=$LIBS
21588
13120
LIBS="-lpng10  $LIBS"
21589
 
cat >conftest.$ac_ext <<_ACEOF
21590
 
/* confdefs.h.  */
21591
 
_ACEOF
21592
 
cat confdefs.h >>conftest.$ac_ext
21593
 
cat >>conftest.$ac_ext <<_ACEOF
 
13121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594
13122
/* end confdefs.h.  */
21595
13123
 
21596
13124
/* Override any GCC internal prototype to avoid an error.
21608
13136
  return 0;
21609
13137
}
21610
13138
_ACEOF
21611
 
rm -f conftest.$ac_objext conftest$ac_exeext
21612
 
if { (ac_try="$ac_link"
21613
 
case "(($ac_try" in
21614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615
 
  *) ac_try_echo=$ac_try;;
21616
 
esac
21617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618
 
  (eval "$ac_link") 2>conftest.er1
21619
 
  ac_status=$?
21620
 
  grep -v '^ *+' conftest.er1 >conftest.err
21621
 
  rm -f conftest.er1
21622
 
  cat conftest.err >&5
21623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624
 
  (exit $ac_status); } && {
21625
 
         test -z "$ac_c_werror_flag" ||
21626
 
         test ! -s conftest.err
21627
 
       } && test -s conftest$ac_exeext &&
21628
 
       $as_test_x conftest$ac_exeext; then
 
13139
if ac_fn_c_try_link "$LINENO"; then :
21629
13140
  ac_cv_lib_png10_png_create_read_struct=yes
21630
13141
else
21631
 
  echo "$as_me: failed program was:" >&5
21632
 
sed 's/^/| /' conftest.$ac_ext >&5
21633
 
 
21634
 
        ac_cv_lib_png10_png_create_read_struct=no
 
13142
  ac_cv_lib_png10_png_create_read_struct=no
21635
13143
fi
21636
 
 
21637
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21638
 
      conftest$ac_exeext conftest.$ac_ext
 
13144
rm -f core conftest.err conftest.$ac_objext \
 
13145
    conftest$ac_exeext conftest.$ac_ext
21639
13146
LIBS=$ac_check_lib_save_LIBS
21640
13147
fi
21641
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png10_png_create_read_struct" >&5
21642
 
echo "${ECHO_T}$ac_cv_lib_png10_png_create_read_struct" >&6; }
21643
 
if test $ac_cv_lib_png10_png_create_read_struct = yes; then
 
13148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png10_png_create_read_struct" >&5
 
13149
$as_echo "$ac_cv_lib_png10_png_create_read_struct" >&6; }
 
13150
if test "x$ac_cv_lib_png10_png_create_read_struct" = xyes; then :
21644
13151
 
21645
13152
  PNG_LIBS="-lpng10"
21646
13153
 
21647
13154
 
21648
13155
else
21649
13156
 
21650
 
    { echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng12" >&5
21651
 
echo $ECHO_N "checking for png_create_read_struct in -lpng12... $ECHO_C" >&6; }
21652
 
if test "${ac_cv_lib_png12_png_create_read_struct+set}" = set; then
21653
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13157
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng12" >&5
 
13158
$as_echo_n "checking for png_create_read_struct in -lpng12... " >&6; }
 
13159
if ${ac_cv_lib_png12_png_create_read_struct+:} false; then :
 
13160
  $as_echo_n "(cached) " >&6
21654
13161
else
21655
13162
  ac_check_lib_save_LIBS=$LIBS
21656
13163
LIBS="-lpng12  $LIBS"
21657
 
cat >conftest.$ac_ext <<_ACEOF
21658
 
/* confdefs.h.  */
21659
 
_ACEOF
21660
 
cat confdefs.h >>conftest.$ac_ext
21661
 
cat >>conftest.$ac_ext <<_ACEOF
 
13164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21662
13165
/* end confdefs.h.  */
21663
13166
 
21664
13167
/* Override any GCC internal prototype to avoid an error.
21676
13179
  return 0;
21677
13180
}
21678
13181
_ACEOF
21679
 
rm -f conftest.$ac_objext conftest$ac_exeext
21680
 
if { (ac_try="$ac_link"
21681
 
case "(($ac_try" in
21682
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683
 
  *) ac_try_echo=$ac_try;;
21684
 
esac
21685
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686
 
  (eval "$ac_link") 2>conftest.er1
21687
 
  ac_status=$?
21688
 
  grep -v '^ *+' conftest.er1 >conftest.err
21689
 
  rm -f conftest.er1
21690
 
  cat conftest.err >&5
21691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692
 
  (exit $ac_status); } && {
21693
 
         test -z "$ac_c_werror_flag" ||
21694
 
         test ! -s conftest.err
21695
 
       } && test -s conftest$ac_exeext &&
21696
 
       $as_test_x conftest$ac_exeext; then
 
13182
if ac_fn_c_try_link "$LINENO"; then :
21697
13183
  ac_cv_lib_png12_png_create_read_struct=yes
21698
13184
else
21699
 
  echo "$as_me: failed program was:" >&5
21700
 
sed 's/^/| /' conftest.$ac_ext >&5
21701
 
 
21702
 
        ac_cv_lib_png12_png_create_read_struct=no
 
13185
  ac_cv_lib_png12_png_create_read_struct=no
21703
13186
fi
21704
 
 
21705
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21706
 
      conftest$ac_exeext conftest.$ac_ext
 
13187
rm -f core conftest.err conftest.$ac_objext \
 
13188
    conftest$ac_exeext conftest.$ac_ext
21707
13189
LIBS=$ac_check_lib_save_LIBS
21708
13190
fi
21709
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png12_png_create_read_struct" >&5
21710
 
echo "${ECHO_T}$ac_cv_lib_png12_png_create_read_struct" >&6; }
21711
 
if test $ac_cv_lib_png12_png_create_read_struct = yes; then
 
13191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_create_read_struct" >&5
 
13192
$as_echo "$ac_cv_lib_png12_png_create_read_struct" >&6; }
 
13193
if test "x$ac_cv_lib_png12_png_create_read_struct" = xyes; then :
21712
13194
 
21713
13195
    PNG_LIBS="-lpng12"
21714
13196
 
21715
13197
 
21716
13198
else
21717
13199
 
21718
 
      { { echo "$as_me:$LINENO: error: cannot find required library png" >&5
21719
 
echo "$as_me: error: cannot find required library png" >&2;}
21720
 
   { (exit 1); exit 1; }; }
21721
 
 
21722
 
fi
21723
 
 
21724
 
 
21725
 
fi
21726
 
 
21727
 
 
21728
 
fi
21729
 
 
21730
 
 
21731
 
 
21732
 
 
 
13200
      as_fn_error $? "cannot find required library png" "$LINENO" 5
 
13201
 
 
13202
fi
 
13203
 
 
13204
 
 
13205
fi
 
13206
 
 
13207
 
 
13208
fi
21733
13209
 
21734
13210
for ac_header in png.h libpng/png.h libpng10/png.h libpng12/png.h
21735
 
do
21736
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21737
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21738
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21739
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21740
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21742
 
fi
21743
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21744
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21745
 
echo "${ECHO_T}$ac_res" >&6; }
21746
 
else
21747
 
  # Is the header compilable?
21748
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21749
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21750
 
cat >conftest.$ac_ext <<_ACEOF
21751
 
/* confdefs.h.  */
21752
 
_ACEOF
21753
 
cat confdefs.h >>conftest.$ac_ext
21754
 
cat >>conftest.$ac_ext <<_ACEOF
21755
 
/* end confdefs.h.  */
21756
 
$ac_includes_default
21757
 
#include <$ac_header>
21758
 
_ACEOF
21759
 
rm -f conftest.$ac_objext
21760
 
if { (ac_try="$ac_compile"
21761
 
case "(($ac_try" in
21762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763
 
  *) ac_try_echo=$ac_try;;
21764
 
esac
21765
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766
 
  (eval "$ac_compile") 2>conftest.er1
21767
 
  ac_status=$?
21768
 
  grep -v '^ *+' conftest.er1 >conftest.err
21769
 
  rm -f conftest.er1
21770
 
  cat conftest.err >&5
21771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772
 
  (exit $ac_status); } && {
21773
 
         test -z "$ac_c_werror_flag" ||
21774
 
         test ! -s conftest.err
21775
 
       } && test -s conftest.$ac_objext; then
21776
 
  ac_header_compiler=yes
21777
 
else
21778
 
  echo "$as_me: failed program was:" >&5
21779
 
sed 's/^/| /' conftest.$ac_ext >&5
21780
 
 
21781
 
        ac_header_compiler=no
21782
 
fi
21783
 
 
21784
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21786
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21787
 
 
21788
 
# Is the header present?
21789
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21790
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21791
 
cat >conftest.$ac_ext <<_ACEOF
21792
 
/* confdefs.h.  */
21793
 
_ACEOF
21794
 
cat confdefs.h >>conftest.$ac_ext
21795
 
cat >>conftest.$ac_ext <<_ACEOF
21796
 
/* end confdefs.h.  */
21797
 
#include <$ac_header>
21798
 
_ACEOF
21799
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21800
 
case "(($ac_try" in
21801
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802
 
  *) ac_try_echo=$ac_try;;
21803
 
esac
21804
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21806
 
  ac_status=$?
21807
 
  grep -v '^ *+' conftest.er1 >conftest.err
21808
 
  rm -f conftest.er1
21809
 
  cat conftest.err >&5
21810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811
 
  (exit $ac_status); } >/dev/null && {
21812
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813
 
         test ! -s conftest.err
21814
 
       }; then
21815
 
  ac_header_preproc=yes
21816
 
else
21817
 
  echo "$as_me: failed program was:" >&5
21818
 
sed 's/^/| /' conftest.$ac_ext >&5
21819
 
 
21820
 
  ac_header_preproc=no
21821
 
fi
21822
 
 
21823
 
rm -f conftest.err conftest.$ac_ext
21824
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21826
 
 
21827
 
# So?  What about this header?
21828
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21829
 
  yes:no: )
21830
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834
 
    ac_header_preproc=yes
21835
 
    ;;
21836
 
  no:yes:* )
21837
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21840
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21841
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21844
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21845
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21849
 
    ( cat <<\_ASBOX
21850
 
## -------------------------------- ##
21851
 
## Report this to mathew@eisbox.net ##
21852
 
## -------------------------------- ##
21853
 
_ASBOX
21854
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21855
 
    ;;
21856
 
esac
21857
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21858
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21859
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21860
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21861
 
else
21862
 
  eval "$as_ac_Header=\$ac_header_preproc"
21863
 
fi
21864
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21865
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21866
 
echo "${ECHO_T}$ac_res" >&6; }
21867
 
 
21868
 
fi
21869
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13211
do :
 
13212
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13213
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13214
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21870
13215
  cat >>confdefs.h <<_ACEOF
21871
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13216
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21872
13217
_ACEOF
21873
13218
 
21874
13219
fi
21877
13222
 
21878
13223
 
21879
13224
# Check for libopenjpeg, fall back to libjasper if not available
21880
 
{ echo "$as_me:$LINENO: checking for jas_init in -ljasper" >&5
21881
 
echo $ECHO_N "checking for jas_init in -ljasper... $ECHO_C" >&6; }
21882
 
if test "${ac_cv_lib_jasper_jas_init+set}" = set; then
21883
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_init in -ljasper" >&5
 
13226
$as_echo_n "checking for jas_init in -ljasper... " >&6; }
 
13227
if ${ac_cv_lib_jasper_jas_init+:} false; then :
 
13228
  $as_echo_n "(cached) " >&6
21884
13229
else
21885
13230
  ac_check_lib_save_LIBS=$LIBS
21886
13231
LIBS="-ljasper  $LIBS"
21887
 
cat >conftest.$ac_ext <<_ACEOF
21888
 
/* confdefs.h.  */
21889
 
_ACEOF
21890
 
cat confdefs.h >>conftest.$ac_ext
21891
 
cat >>conftest.$ac_ext <<_ACEOF
 
13232
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892
13233
/* end confdefs.h.  */
21893
13234
 
21894
13235
/* Override any GCC internal prototype to avoid an error.
21906
13247
  return 0;
21907
13248
}
21908
13249
_ACEOF
21909
 
rm -f conftest.$ac_objext conftest$ac_exeext
21910
 
if { (ac_try="$ac_link"
21911
 
case "(($ac_try" in
21912
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913
 
  *) ac_try_echo=$ac_try;;
21914
 
esac
21915
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916
 
  (eval "$ac_link") 2>conftest.er1
21917
 
  ac_status=$?
21918
 
  grep -v '^ *+' conftest.er1 >conftest.err
21919
 
  rm -f conftest.er1
21920
 
  cat conftest.err >&5
21921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922
 
  (exit $ac_status); } && {
21923
 
         test -z "$ac_c_werror_flag" ||
21924
 
         test ! -s conftest.err
21925
 
       } && test -s conftest$ac_exeext &&
21926
 
       $as_test_x conftest$ac_exeext; then
 
13250
if ac_fn_c_try_link "$LINENO"; then :
21927
13251
  ac_cv_lib_jasper_jas_init=yes
21928
13252
else
21929
 
  echo "$as_me: failed program was:" >&5
21930
 
sed 's/^/| /' conftest.$ac_ext >&5
21931
 
 
21932
 
        ac_cv_lib_jasper_jas_init=no
 
13253
  ac_cv_lib_jasper_jas_init=no
21933
13254
fi
21934
 
 
21935
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21936
 
      conftest$ac_exeext conftest.$ac_ext
 
13255
rm -f core conftest.err conftest.$ac_objext \
 
13256
    conftest$ac_exeext conftest.$ac_ext
21937
13257
LIBS=$ac_check_lib_save_LIBS
21938
13258
fi
21939
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_init" >&5
21940
 
echo "${ECHO_T}$ac_cv_lib_jasper_jas_init" >&6; }
21941
 
if test $ac_cv_lib_jasper_jas_init = yes; then
 
13259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_init" >&5
 
13260
$as_echo "$ac_cv_lib_jasper_jas_init" >&6; }
 
13261
if test "x$ac_cv_lib_jasper_jas_init" = xyes; then :
21942
13262
 
21943
13263
JP2000_LIBS="-ljasper"
21944
13264
 
21945
 
 
21946
13265
for ac_header in jasper/jasper.h
21947
 
do
21948
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21949
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21951
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21952
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21954
 
fi
21955
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21956
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21957
 
echo "${ECHO_T}$ac_res" >&6; }
21958
 
else
21959
 
  # Is the header compilable?
21960
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21961
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21962
 
cat >conftest.$ac_ext <<_ACEOF
21963
 
/* confdefs.h.  */
21964
 
_ACEOF
21965
 
cat confdefs.h >>conftest.$ac_ext
21966
 
cat >>conftest.$ac_ext <<_ACEOF
21967
 
/* end confdefs.h.  */
21968
 
$ac_includes_default
21969
 
#include <$ac_header>
21970
 
_ACEOF
21971
 
rm -f conftest.$ac_objext
21972
 
if { (ac_try="$ac_compile"
21973
 
case "(($ac_try" in
21974
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975
 
  *) ac_try_echo=$ac_try;;
21976
 
esac
21977
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978
 
  (eval "$ac_compile") 2>conftest.er1
21979
 
  ac_status=$?
21980
 
  grep -v '^ *+' conftest.er1 >conftest.err
21981
 
  rm -f conftest.er1
21982
 
  cat conftest.err >&5
21983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984
 
  (exit $ac_status); } && {
21985
 
         test -z "$ac_c_werror_flag" ||
21986
 
         test ! -s conftest.err
21987
 
       } && test -s conftest.$ac_objext; then
21988
 
  ac_header_compiler=yes
21989
 
else
21990
 
  echo "$as_me: failed program was:" >&5
21991
 
sed 's/^/| /' conftest.$ac_ext >&5
21992
 
 
21993
 
        ac_header_compiler=no
21994
 
fi
21995
 
 
21996
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21998
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21999
 
 
22000
 
# Is the header present?
22001
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22002
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22003
 
cat >conftest.$ac_ext <<_ACEOF
22004
 
/* confdefs.h.  */
22005
 
_ACEOF
22006
 
cat confdefs.h >>conftest.$ac_ext
22007
 
cat >>conftest.$ac_ext <<_ACEOF
22008
 
/* end confdefs.h.  */
22009
 
#include <$ac_header>
22010
 
_ACEOF
22011
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22012
 
case "(($ac_try" in
22013
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014
 
  *) ac_try_echo=$ac_try;;
22015
 
esac
22016
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22018
 
  ac_status=$?
22019
 
  grep -v '^ *+' conftest.er1 >conftest.err
22020
 
  rm -f conftest.er1
22021
 
  cat conftest.err >&5
22022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023
 
  (exit $ac_status); } >/dev/null && {
22024
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22025
 
         test ! -s conftest.err
22026
 
       }; then
22027
 
  ac_header_preproc=yes
22028
 
else
22029
 
  echo "$as_me: failed program was:" >&5
22030
 
sed 's/^/| /' conftest.$ac_ext >&5
22031
 
 
22032
 
  ac_header_preproc=no
22033
 
fi
22034
 
 
22035
 
rm -f conftest.err conftest.$ac_ext
22036
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22037
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22038
 
 
22039
 
# So?  What about this header?
22040
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22041
 
  yes:no: )
22042
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22043
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22044
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22045
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22046
 
    ac_header_preproc=yes
22047
 
    ;;
22048
 
  no:yes:* )
22049
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22050
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22051
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22052
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22053
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22054
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22055
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22056
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22057
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22058
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22059
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22060
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22061
 
    ( cat <<\_ASBOX
22062
 
## -------------------------------- ##
22063
 
## Report this to mathew@eisbox.net ##
22064
 
## -------------------------------- ##
22065
 
_ASBOX
22066
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22067
 
    ;;
22068
 
esac
22069
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22070
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22073
 
else
22074
 
  eval "$as_ac_Header=\$ac_header_preproc"
22075
 
fi
22076
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22077
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22078
 
echo "${ECHO_T}$ac_res" >&6; }
22079
 
 
22080
 
fi
22081
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13266
do :
 
13267
  ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
 
13268
if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
22082
13269
  cat >>confdefs.h <<_ACEOF
22083
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13270
#define HAVE_JASPER_JASPER_H 1
22084
13271
_ACEOF
22085
13272
 
22086
13273
fi
22088
13275
done
22089
13276
 
22090
13277
 
22091
 
cat >>confdefs.h <<\_ACEOF
22092
 
#define ICNS_JASPER 1
22093
 
_ACEOF
 
13278
$as_echo "#define ICNS_JASPER 1" >>confdefs.h
22094
13279
 
22095
13280
 
22096
13281
else
22097
13282
 
22098
 
  { echo "$as_me:$LINENO: checking for opj_setup_decoder in -lopenjpeg2" >&5
22099
 
echo $ECHO_N "checking for opj_setup_decoder in -lopenjpeg2... $ECHO_C" >&6; }
22100
 
if test "${ac_cv_lib_openjpeg2_opj_setup_decoder+set}" = set; then
22101
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13283
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_setup_decoder in -lopenjpeg2" >&5
 
13284
$as_echo_n "checking for opj_setup_decoder in -lopenjpeg2... " >&6; }
 
13285
if ${ac_cv_lib_openjpeg2_opj_setup_decoder+:} false; then :
 
13286
  $as_echo_n "(cached) " >&6
22102
13287
else
22103
13288
  ac_check_lib_save_LIBS=$LIBS
22104
13289
LIBS="-lopenjpeg2  $LIBS"
22105
 
cat >conftest.$ac_ext <<_ACEOF
22106
 
/* confdefs.h.  */
22107
 
_ACEOF
22108
 
cat confdefs.h >>conftest.$ac_ext
22109
 
cat >>conftest.$ac_ext <<_ACEOF
 
13290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22110
13291
/* end confdefs.h.  */
22111
13292
 
22112
13293
/* Override any GCC internal prototype to avoid an error.
22124
13305
  return 0;
22125
13306
}
22126
13307
_ACEOF
22127
 
rm -f conftest.$ac_objext conftest$ac_exeext
22128
 
if { (ac_try="$ac_link"
22129
 
case "(($ac_try" in
22130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131
 
  *) ac_try_echo=$ac_try;;
22132
 
esac
22133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134
 
  (eval "$ac_link") 2>conftest.er1
22135
 
  ac_status=$?
22136
 
  grep -v '^ *+' conftest.er1 >conftest.err
22137
 
  rm -f conftest.er1
22138
 
  cat conftest.err >&5
22139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140
 
  (exit $ac_status); } && {
22141
 
         test -z "$ac_c_werror_flag" ||
22142
 
         test ! -s conftest.err
22143
 
       } && test -s conftest$ac_exeext &&
22144
 
       $as_test_x conftest$ac_exeext; then
 
13308
if ac_fn_c_try_link "$LINENO"; then :
22145
13309
  ac_cv_lib_openjpeg2_opj_setup_decoder=yes
22146
13310
else
22147
 
  echo "$as_me: failed program was:" >&5
22148
 
sed 's/^/| /' conftest.$ac_ext >&5
22149
 
 
22150
 
        ac_cv_lib_openjpeg2_opj_setup_decoder=no
 
13311
  ac_cv_lib_openjpeg2_opj_setup_decoder=no
22151
13312
fi
22152
 
 
22153
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154
 
      conftest$ac_exeext conftest.$ac_ext
 
13313
rm -f core conftest.err conftest.$ac_objext \
 
13314
    conftest$ac_exeext conftest.$ac_ext
22155
13315
LIBS=$ac_check_lib_save_LIBS
22156
13316
fi
22157
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_openjpeg2_opj_setup_decoder" >&5
22158
 
echo "${ECHO_T}$ac_cv_lib_openjpeg2_opj_setup_decoder" >&6; }
22159
 
if test $ac_cv_lib_openjpeg2_opj_setup_decoder = yes; then
 
13317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg2_opj_setup_decoder" >&5
 
13318
$as_echo "$ac_cv_lib_openjpeg2_opj_setup_decoder" >&6; }
 
13319
if test "x$ac_cv_lib_openjpeg2_opj_setup_decoder" = xyes; then :
22160
13320
 
22161
13321
  JP2000_LIBS="-lopenjpeg2"
22162
13322
 
22163
 
 
22164
 
for ac_header in openjpeg.h
22165
 
do
22166
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22167
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22168
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22169
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22170
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22171
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22172
 
fi
22173
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22174
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22175
 
echo "${ECHO_T}$ac_res" >&6; }
22176
 
else
22177
 
  # Is the header compilable?
22178
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22179
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22180
 
cat >conftest.$ac_ext <<_ACEOF
22181
 
/* confdefs.h.  */
22182
 
_ACEOF
22183
 
cat confdefs.h >>conftest.$ac_ext
22184
 
cat >>conftest.$ac_ext <<_ACEOF
22185
 
/* end confdefs.h.  */
22186
 
$ac_includes_default
22187
 
#include <$ac_header>
22188
 
_ACEOF
22189
 
rm -f conftest.$ac_objext
22190
 
if { (ac_try="$ac_compile"
22191
 
case "(($ac_try" in
22192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193
 
  *) ac_try_echo=$ac_try;;
22194
 
esac
22195
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196
 
  (eval "$ac_compile") 2>conftest.er1
22197
 
  ac_status=$?
22198
 
  grep -v '^ *+' conftest.er1 >conftest.err
22199
 
  rm -f conftest.er1
22200
 
  cat conftest.err >&5
22201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202
 
  (exit $ac_status); } && {
22203
 
         test -z "$ac_c_werror_flag" ||
22204
 
         test ! -s conftest.err
22205
 
       } && test -s conftest.$ac_objext; then
22206
 
  ac_header_compiler=yes
22207
 
else
22208
 
  echo "$as_me: failed program was:" >&5
22209
 
sed 's/^/| /' conftest.$ac_ext >&5
22210
 
 
22211
 
        ac_header_compiler=no
22212
 
fi
22213
 
 
22214
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22216
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22217
 
 
22218
 
# Is the header present?
22219
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22220
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22221
 
cat >conftest.$ac_ext <<_ACEOF
22222
 
/* confdefs.h.  */
22223
 
_ACEOF
22224
 
cat confdefs.h >>conftest.$ac_ext
22225
 
cat >>conftest.$ac_ext <<_ACEOF
22226
 
/* end confdefs.h.  */
22227
 
#include <$ac_header>
22228
 
_ACEOF
22229
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22230
 
case "(($ac_try" in
22231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232
 
  *) ac_try_echo=$ac_try;;
22233
 
esac
22234
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22236
 
  ac_status=$?
22237
 
  grep -v '^ *+' conftest.er1 >conftest.err
22238
 
  rm -f conftest.er1
22239
 
  cat conftest.err >&5
22240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241
 
  (exit $ac_status); } >/dev/null && {
22242
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22243
 
         test ! -s conftest.err
22244
 
       }; then
22245
 
  ac_header_preproc=yes
22246
 
else
22247
 
  echo "$as_me: failed program was:" >&5
22248
 
sed 's/^/| /' conftest.$ac_ext >&5
22249
 
 
22250
 
  ac_header_preproc=no
22251
 
fi
22252
 
 
22253
 
rm -f conftest.err conftest.$ac_ext
22254
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22255
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22256
 
 
22257
 
# So?  What about this header?
22258
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22259
 
  yes:no: )
22260
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22261
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22262
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22263
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22264
 
    ac_header_preproc=yes
22265
 
    ;;
22266
 
  no:yes:* )
22267
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22268
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22269
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22270
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22271
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22272
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22273
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22274
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22275
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22276
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22277
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22278
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22279
 
    ( cat <<\_ASBOX
22280
 
## -------------------------------- ##
22281
 
## Report this to mathew@eisbox.net ##
22282
 
## -------------------------------- ##
22283
 
_ASBOX
22284
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22285
 
    ;;
22286
 
esac
22287
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22288
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22289
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22291
 
else
22292
 
  eval "$as_ac_Header=\$ac_header_preproc"
22293
 
fi
22294
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22295
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22296
 
echo "${ECHO_T}$ac_res" >&6; }
22297
 
 
22298
 
fi
22299
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13323
  for ac_header in openjpeg.h
 
13324
do :
 
13325
  ac_fn_c_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
 
13326
if test "x$ac_cv_header_openjpeg_h" = xyes; then :
22300
13327
  cat >>confdefs.h <<_ACEOF
22301
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13328
#define HAVE_OPENJPEG_H 1
22302
13329
_ACEOF
22303
13330
 
22304
13331
fi
22306
13333
done
22307
13334
 
22308
13335
 
22309
 
cat >>confdefs.h <<\_ACEOF
22310
 
#define ICNS_OPENJPEG 1
22311
 
_ACEOF
 
13336
$as_echo "#define ICNS_OPENJPEG 1" >>confdefs.h
22312
13337
 
22313
13338
 
22314
13339
else
22315
13340
 
22316
 
    { echo "$as_me:$LINENO: checking for opj_setup_decoder in -lopenjpeg" >&5
22317
 
echo $ECHO_N "checking for opj_setup_decoder in -lopenjpeg... $ECHO_C" >&6; }
22318
 
if test "${ac_cv_lib_openjpeg_opj_setup_decoder+set}" = set; then
22319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13341
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_setup_decoder in -lopenjpeg" >&5
 
13342
$as_echo_n "checking for opj_setup_decoder in -lopenjpeg... " >&6; }
 
13343
if ${ac_cv_lib_openjpeg_opj_setup_decoder+:} false; then :
 
13344
  $as_echo_n "(cached) " >&6
22320
13345
else
22321
13346
  ac_check_lib_save_LIBS=$LIBS
22322
13347
LIBS="-lopenjpeg  $LIBS"
22323
 
cat >conftest.$ac_ext <<_ACEOF
22324
 
/* confdefs.h.  */
22325
 
_ACEOF
22326
 
cat confdefs.h >>conftest.$ac_ext
22327
 
cat >>conftest.$ac_ext <<_ACEOF
 
13348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328
13349
/* end confdefs.h.  */
22329
13350
 
22330
13351
/* Override any GCC internal prototype to avoid an error.
22342
13363
  return 0;
22343
13364
}
22344
13365
_ACEOF
22345
 
rm -f conftest.$ac_objext conftest$ac_exeext
22346
 
if { (ac_try="$ac_link"
22347
 
case "(($ac_try" in
22348
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349
 
  *) ac_try_echo=$ac_try;;
22350
 
esac
22351
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352
 
  (eval "$ac_link") 2>conftest.er1
22353
 
  ac_status=$?
22354
 
  grep -v '^ *+' conftest.er1 >conftest.err
22355
 
  rm -f conftest.er1
22356
 
  cat conftest.err >&5
22357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358
 
  (exit $ac_status); } && {
22359
 
         test -z "$ac_c_werror_flag" ||
22360
 
         test ! -s conftest.err
22361
 
       } && test -s conftest$ac_exeext &&
22362
 
       $as_test_x conftest$ac_exeext; then
 
13366
if ac_fn_c_try_link "$LINENO"; then :
22363
13367
  ac_cv_lib_openjpeg_opj_setup_decoder=yes
22364
13368
else
22365
 
  echo "$as_me: failed program was:" >&5
22366
 
sed 's/^/| /' conftest.$ac_ext >&5
22367
 
 
22368
 
        ac_cv_lib_openjpeg_opj_setup_decoder=no
 
13369
  ac_cv_lib_openjpeg_opj_setup_decoder=no
22369
13370
fi
22370
 
 
22371
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372
 
      conftest$ac_exeext conftest.$ac_ext
 
13371
rm -f core conftest.err conftest.$ac_objext \
 
13372
    conftest$ac_exeext conftest.$ac_ext
22373
13373
LIBS=$ac_check_lib_save_LIBS
22374
13374
fi
22375
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_openjpeg_opj_setup_decoder" >&5
22376
 
echo "${ECHO_T}$ac_cv_lib_openjpeg_opj_setup_decoder" >&6; }
22377
 
if test $ac_cv_lib_openjpeg_opj_setup_decoder = yes; then
 
13375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_setup_decoder" >&5
 
13376
$as_echo "$ac_cv_lib_openjpeg_opj_setup_decoder" >&6; }
 
13377
if test "x$ac_cv_lib_openjpeg_opj_setup_decoder" = xyes; then :
22378
13378
 
22379
13379
    JP2000_LIBS="-lopenjpeg"
22380
13380
 
22381
 
 
22382
 
for ac_header in openjpeg.h
22383
 
do
22384
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22385
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22386
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22387
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22388
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22389
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22390
 
fi
22391
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22392
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22393
 
echo "${ECHO_T}$ac_res" >&6; }
22394
 
else
22395
 
  # Is the header compilable?
22396
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22397
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22398
 
cat >conftest.$ac_ext <<_ACEOF
22399
 
/* confdefs.h.  */
22400
 
_ACEOF
22401
 
cat confdefs.h >>conftest.$ac_ext
22402
 
cat >>conftest.$ac_ext <<_ACEOF
22403
 
/* end confdefs.h.  */
22404
 
$ac_includes_default
22405
 
#include <$ac_header>
22406
 
_ACEOF
22407
 
rm -f conftest.$ac_objext
22408
 
if { (ac_try="$ac_compile"
22409
 
case "(($ac_try" in
22410
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411
 
  *) ac_try_echo=$ac_try;;
22412
 
esac
22413
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414
 
  (eval "$ac_compile") 2>conftest.er1
22415
 
  ac_status=$?
22416
 
  grep -v '^ *+' conftest.er1 >conftest.err
22417
 
  rm -f conftest.er1
22418
 
  cat conftest.err >&5
22419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420
 
  (exit $ac_status); } && {
22421
 
         test -z "$ac_c_werror_flag" ||
22422
 
         test ! -s conftest.err
22423
 
       } && test -s conftest.$ac_objext; then
22424
 
  ac_header_compiler=yes
22425
 
else
22426
 
  echo "$as_me: failed program was:" >&5
22427
 
sed 's/^/| /' conftest.$ac_ext >&5
22428
 
 
22429
 
        ac_header_compiler=no
22430
 
fi
22431
 
 
22432
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22433
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22434
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22435
 
 
22436
 
# Is the header present?
22437
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22438
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22439
 
cat >conftest.$ac_ext <<_ACEOF
22440
 
/* confdefs.h.  */
22441
 
_ACEOF
22442
 
cat confdefs.h >>conftest.$ac_ext
22443
 
cat >>conftest.$ac_ext <<_ACEOF
22444
 
/* end confdefs.h.  */
22445
 
#include <$ac_header>
22446
 
_ACEOF
22447
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22448
 
case "(($ac_try" in
22449
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450
 
  *) ac_try_echo=$ac_try;;
22451
 
esac
22452
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22454
 
  ac_status=$?
22455
 
  grep -v '^ *+' conftest.er1 >conftest.err
22456
 
  rm -f conftest.er1
22457
 
  cat conftest.err >&5
22458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459
 
  (exit $ac_status); } >/dev/null && {
22460
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22461
 
         test ! -s conftest.err
22462
 
       }; then
22463
 
  ac_header_preproc=yes
22464
 
else
22465
 
  echo "$as_me: failed program was:" >&5
22466
 
sed 's/^/| /' conftest.$ac_ext >&5
22467
 
 
22468
 
  ac_header_preproc=no
22469
 
fi
22470
 
 
22471
 
rm -f conftest.err conftest.$ac_ext
22472
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22473
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22474
 
 
22475
 
# So?  What about this header?
22476
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22477
 
  yes:no: )
22478
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22479
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22480
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22481
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22482
 
    ac_header_preproc=yes
22483
 
    ;;
22484
 
  no:yes:* )
22485
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22486
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22487
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22488
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22489
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22490
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22491
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22492
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22493
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22494
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22495
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22496
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22497
 
    ( cat <<\_ASBOX
22498
 
## -------------------------------- ##
22499
 
## Report this to mathew@eisbox.net ##
22500
 
## -------------------------------- ##
22501
 
_ASBOX
22502
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22503
 
    ;;
22504
 
esac
22505
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22506
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22507
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22509
 
else
22510
 
  eval "$as_ac_Header=\$ac_header_preproc"
22511
 
fi
22512
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22513
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22514
 
echo "${ECHO_T}$ac_res" >&6; }
22515
 
 
22516
 
fi
22517
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13381
    for ac_header in openjpeg.h
 
13382
do :
 
13383
  ac_fn_c_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
 
13384
if test "x$ac_cv_header_openjpeg_h" = xyes; then :
22518
13385
  cat >>confdefs.h <<_ACEOF
22519
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13386
#define HAVE_OPENJPEG_H 1
22520
13387
_ACEOF
22521
13388
 
22522
13389
fi
22524
13391
done
22525
13392
 
22526
13393
 
22527
 
cat >>confdefs.h <<\_ACEOF
22528
 
#define ICNS_OPENJPEG 1
22529
 
_ACEOF
 
13394
$as_echo "#define ICNS_OPENJPEG 1" >>confdefs.h
22530
13395
 
22531
13396
 
22532
13397
else
22533
13398
 
22534
 
      { echo "$as_me:$LINENO: WARNING: libopenjpeg or libjasper jp2000 codec libraries not found" >&5
22535
 
echo "$as_me: WARNING: libopenjpeg or libjasper jp2000 codec libraries not found" >&2;}
22536
 
      { echo "$as_me:$LINENO: WARNING: libicns will be built without 256x256 and 512x512 support" >&5
22537
 
echo "$as_me: WARNING: libicns will be built without 256x256 and 512x512 support" >&2;}
 
13399
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libopenjpeg or libjasper jp2000 codec libraries not found" >&5
 
13400
$as_echo "$as_me: WARNING: libopenjpeg or libjasper jp2000 codec libraries not found" >&2;}
 
13401
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libicns will be built without 256x256 and 512x512 support" >&5
 
13402
$as_echo "$as_me: WARNING: libicns will be built without 256x256 and 512x512 support" >&2;}
22538
13403
 
22539
13404
fi
22540
13405
 
22574
13439
    case $ac_val in #(
22575
13440
    *${as_nl}*)
22576
13441
      case $ac_var in #(
22577
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22578
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
13442
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13443
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22579
13444
      esac
22580
13445
      case $ac_var in #(
22581
13446
      _ | IFS | as_nl) ;; #(
22582
 
      *) $as_unset $ac_var ;;
 
13447
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13448
      *) { eval $ac_var=; unset $ac_var;} ;;
22583
13449
      esac ;;
22584
13450
    esac
22585
13451
  done
22587
13453
  (set) 2>&1 |
22588
13454
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22589
13455
    *${as_nl}ac_space=\ *)
22590
 
      # `set' does not quote correctly, so add quotes (double-quote
22591
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13456
      # `set' does not quote correctly, so add quotes: double-quote
 
13457
      # substitution turns \\\\ into \\, and sed turns \\ into \.
22592
13458
      sed -n \
22593
13459
        "s/'/'\\\\''/g;
22594
13460
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22610
13476
     :end' >>confcache
22611
13477
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22612
13478
  if test -w "$cache_file"; then
22613
 
    test "x$cache_file" != "x/dev/null" &&
22614
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22615
 
echo "$as_me: updating cache $cache_file" >&6;}
22616
 
    cat confcache >$cache_file
 
13479
    if test "x$cache_file" != "x/dev/null"; then
 
13480
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13481
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13482
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13483
        cat confcache >"$cache_file"
 
13484
      else
 
13485
        case $cache_file in #(
 
13486
        */* | ?:*)
 
13487
          mv -f confcache "$cache_file"$$ &&
 
13488
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13489
        *)
 
13490
          mv -f confcache "$cache_file" ;;
 
13491
        esac
 
13492
      fi
 
13493
    fi
22617
13494
  else
22618
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22619
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13495
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13496
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22620
13497
  fi
22621
13498
fi
22622
13499
rm -f confcache
22629
13506
 
22630
13507
ac_libobjs=
22631
13508
ac_ltlibobjs=
 
13509
U=
22632
13510
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22633
13511
  # 1. Remove the extension, and $U if already installed.
22634
13512
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22635
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
13513
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22636
13514
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22637
13515
  #    will be set to the directory where LIBOBJS objects are built.
22638
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22639
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
13516
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13517
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22640
13518
done
22641
13519
LIBOBJS=$ac_libobjs
22642
13520
 
22643
13521
LTLIBOBJS=$ac_ltlibobjs
22644
13522
 
22645
13523
 
 
13524
 if test -n "$EXEEXT"; then
 
13525
  am__EXEEXT_TRUE=
 
13526
  am__EXEEXT_FALSE='#'
 
13527
else
 
13528
  am__EXEEXT_TRUE='#'
 
13529
  am__EXEEXT_FALSE=
 
13530
fi
 
13531
 
22646
13532
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22647
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22648
 
Usually this means the macro was only invoked conditionally." >&5
22649
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22650
 
Usually this means the macro was only invoked conditionally." >&2;}
22651
 
   { (exit 1); exit 1; }; }
 
13533
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
13534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22652
13535
fi
22653
13536
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22654
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22655
 
Usually this means the macro was only invoked conditionally." >&5
22656
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22657
 
Usually this means the macro was only invoked conditionally." >&2;}
22658
 
   { (exit 1); exit 1; }; }
22659
 
fi
22660
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22661
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22662
 
Usually this means the macro was only invoked conditionally." >&5
22663
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22664
 
Usually this means the macro was only invoked conditionally." >&2;}
22665
 
   { (exit 1); exit 1; }; }
22666
 
fi
22667
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22668
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22669
 
Usually this means the macro was only invoked conditionally." >&5
22670
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22671
 
Usually this means the macro was only invoked conditionally." >&2;}
22672
 
   { (exit 1); exit 1; }; }
22673
 
fi
22674
 
 
22675
 
: ${CONFIG_STATUS=./config.status}
 
13537
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13539
fi
 
13540
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13541
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13542
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13543
fi
 
13544
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13545
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13546
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13547
fi
 
13548
 
 
13549
 
 
13550
: "${CONFIG_STATUS=./config.status}"
 
13551
ac_write_fail=0
22676
13552
ac_clean_files_save=$ac_clean_files
22677
13553
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22678
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22679
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22680
 
cat >$CONFIG_STATUS <<_ACEOF
 
13554
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13555
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13556
as_write_fail=0
 
13557
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22681
13558
#! $SHELL
22682
13559
# Generated by $as_me.
22683
13560
# Run this file to recreate the current configuration.
22687
13564
debug=false
22688
13565
ac_cs_recheck=false
22689
13566
ac_cs_silent=false
 
13567
 
22690
13568
SHELL=\${CONFIG_SHELL-$SHELL}
22691
 
_ACEOF
22692
 
 
22693
 
cat >>$CONFIG_STATUS <<\_ACEOF
22694
 
## --------------------- ##
22695
 
## M4sh Initialization.  ##
22696
 
## --------------------- ##
 
13569
export SHELL
 
13570
_ASEOF
 
13571
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13572
## -------------------- ##
 
13573
## M4sh Initialization. ##
 
13574
## -------------------- ##
22697
13575
 
22698
13576
# Be more Bourne compatible
22699
13577
DUALCASE=1; export DUALCASE # for MKS sh
22700
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13578
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22701
13579
  emulate sh
22702
13580
  NULLCMD=:
22703
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
13581
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22704
13582
  # is contrary to our usage.  Disable this feature.
22705
13583
  alias -g '${1+"$@"}'='"$@"'
22706
13584
  setopt NO_GLOB_SUBST
22707
13585
else
22708
 
  case `(set -o) 2>/dev/null` in
22709
 
  *posix*) set -o posix ;;
 
13586
  case `(set -o) 2>/dev/null` in #(
 
13587
  *posix*) :
 
13588
    set -o posix ;; #(
 
13589
  *) :
 
13590
     ;;
22710
13591
esac
22711
 
 
22712
 
fi
22713
 
 
22714
 
 
22715
 
 
22716
 
 
22717
 
# PATH needs CR
22718
 
# Avoid depending upon Character Ranges.
22719
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22720
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22721
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22722
 
as_cr_digits='0123456789'
22723
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13592
fi
 
13593
 
 
13594
 
 
13595
as_nl='
 
13596
'
 
13597
export as_nl
 
13598
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13599
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13600
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13601
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13602
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13603
# but without wasting forks for bash or zsh.
 
13604
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13605
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13606
  as_echo='print -r --'
 
13607
  as_echo_n='print -rn --'
 
13608
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13609
  as_echo='printf %s\n'
 
13610
  as_echo_n='printf %s'
 
13611
else
 
13612
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13613
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13614
    as_echo_n='/usr/ucb/echo -n'
 
13615
  else
 
13616
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13617
    as_echo_n_body='eval
 
13618
      arg=$1;
 
13619
      case $arg in #(
 
13620
      *"$as_nl"*)
 
13621
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13622
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13623
      esac;
 
13624
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13625
    '
 
13626
    export as_echo_n_body
 
13627
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13628
  fi
 
13629
  export as_echo_body
 
13630
  as_echo='sh -c $as_echo_body as_echo'
 
13631
fi
22724
13632
 
22725
13633
# The user is always right.
22726
13634
if test "${PATH_SEPARATOR+set}" != set; then
22727
 
  echo "#! /bin/sh" >conf$$.sh
22728
 
  echo  "exit 0"   >>conf$$.sh
22729
 
  chmod +x conf$$.sh
22730
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22731
 
    PATH_SEPARATOR=';'
22732
 
  else
22733
 
    PATH_SEPARATOR=:
22734
 
  fi
22735
 
  rm -f conf$$.sh
22736
 
fi
22737
 
 
22738
 
# Support unset when possible.
22739
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22740
 
  as_unset=unset
22741
 
else
22742
 
  as_unset=false
 
13635
  PATH_SEPARATOR=:
 
13636
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13637
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13638
      PATH_SEPARATOR=';'
 
13639
  }
22743
13640
fi
22744
13641
 
22745
13642
 
22748
13645
# there to prevent editors from complaining about space-tab.
22749
13646
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22750
13647
# splitting by setting IFS to empty value.)
22751
 
as_nl='
22752
 
'
22753
13648
IFS=" ""        $as_nl"
22754
13649
 
22755
13650
# Find who we are.  Look in the path if we contain no directory separator.
22756
 
case $0 in
 
13651
as_myself=
 
13652
case $0 in #((
22757
13653
  *[\\/]* ) as_myself=$0 ;;
22758
13654
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22759
13655
for as_dir in $PATH
22760
13656
do
22761
13657
  IFS=$as_save_IFS
22762
13658
  test -z "$as_dir" && as_dir=.
22763
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22764
 
done
 
13659
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13660
  done
22765
13661
IFS=$as_save_IFS
22766
13662
 
22767
13663
     ;;
22772
13668
  as_myself=$0
22773
13669
fi
22774
13670
if test ! -f "$as_myself"; then
22775
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22776
 
  { (exit 1); exit 1; }
 
13671
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13672
  exit 1
22777
13673
fi
22778
13674
 
22779
 
# Work around bugs in pre-3.0 UWIN ksh.
22780
 
for as_var in ENV MAIL MAILPATH
22781
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13675
# Unset variables that we do not need and which cause bugs (e.g. in
 
13676
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13677
# suppresses any "Segmentation fault" message there.  '((' could
 
13678
# trigger a bug in pdksh 5.2.14.
 
13679
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13680
do eval test x\${$as_var+set} = xset \
 
13681
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22782
13682
done
22783
13683
PS1='$ '
22784
13684
PS2='> '
22785
13685
PS4='+ '
22786
13686
 
22787
13687
# NLS nuisances.
22788
 
for as_var in \
22789
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22790
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22791
 
  LC_TELEPHONE LC_TIME
22792
 
do
22793
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22794
 
    eval $as_var=C; export $as_var
22795
 
  else
22796
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13688
LC_ALL=C
 
13689
export LC_ALL
 
13690
LANGUAGE=C
 
13691
export LANGUAGE
 
13692
 
 
13693
# CDPATH.
 
13694
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13695
 
 
13696
 
 
13697
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13698
# ----------------------------------------
 
13699
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13700
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13701
# script with STATUS, using 1 if that was 0.
 
13702
as_fn_error ()
 
13703
{
 
13704
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13705
  if test "$4"; then
 
13706
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13707
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22797
13708
  fi
22798
 
done
22799
 
 
22800
 
# Required to use basename.
 
13709
  $as_echo "$as_me: error: $2" >&2
 
13710
  as_fn_exit $as_status
 
13711
} # as_fn_error
 
13712
 
 
13713
 
 
13714
# as_fn_set_status STATUS
 
13715
# -----------------------
 
13716
# Set $? to STATUS, without forking.
 
13717
as_fn_set_status ()
 
13718
{
 
13719
  return $1
 
13720
} # as_fn_set_status
 
13721
 
 
13722
# as_fn_exit STATUS
 
13723
# -----------------
 
13724
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13725
as_fn_exit ()
 
13726
{
 
13727
  set +e
 
13728
  as_fn_set_status $1
 
13729
  exit $1
 
13730
} # as_fn_exit
 
13731
 
 
13732
# as_fn_unset VAR
 
13733
# ---------------
 
13734
# Portably unset VAR.
 
13735
as_fn_unset ()
 
13736
{
 
13737
  { eval $1=; unset $1;}
 
13738
}
 
13739
as_unset=as_fn_unset
 
13740
# as_fn_append VAR VALUE
 
13741
# ----------------------
 
13742
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13743
# advantage of any shell optimizations that allow amortized linear growth over
 
13744
# repeated appends, instead of the typical quadratic growth present in naive
 
13745
# implementations.
 
13746
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13747
  eval 'as_fn_append ()
 
13748
  {
 
13749
    eval $1+=\$2
 
13750
  }'
 
13751
else
 
13752
  as_fn_append ()
 
13753
  {
 
13754
    eval $1=\$$1\$2
 
13755
  }
 
13756
fi # as_fn_append
 
13757
 
 
13758
# as_fn_arith ARG...
 
13759
# ------------------
 
13760
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13761
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13762
# must be portable across $(()) and expr.
 
13763
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13764
  eval 'as_fn_arith ()
 
13765
  {
 
13766
    as_val=$(( $* ))
 
13767
  }'
 
13768
else
 
13769
  as_fn_arith ()
 
13770
  {
 
13771
    as_val=`expr "$@" || test $? -eq 1`
 
13772
  }
 
13773
fi # as_fn_arith
 
13774
 
 
13775
 
22801
13776
if expr a : '\(a\)' >/dev/null 2>&1 &&
22802
13777
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22803
13778
  as_expr=expr
22811
13786
  as_basename=false
22812
13787
fi
22813
13788
 
 
13789
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13790
  as_dirname=dirname
 
13791
else
 
13792
  as_dirname=false
 
13793
fi
22814
13794
 
22815
 
# Name of the executable.
22816
13795
as_me=`$as_basename -- "$0" ||
22817
13796
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22818
13797
         X"$0" : 'X\(//\)$' \| \
22819
13798
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22820
 
echo X/"$0" |
 
13799
$as_echo X/"$0" |
22821
13800
    sed '/^.*\/\([^/][^/]*\)\/*$/{
22822
13801
            s//\1/
22823
13802
            q
22832
13811
          }
22833
13812
          s/.*/./; q'`
22834
13813
 
22835
 
# CDPATH.
22836
 
$as_unset CDPATH
22837
 
 
22838
 
 
22839
 
 
22840
 
  as_lineno_1=$LINENO
22841
 
  as_lineno_2=$LINENO
22842
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22843
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22844
 
 
22845
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22846
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
22847
 
  # line-number line after each line using $LINENO; the second 'sed'
22848
 
  # does the real work.  The second script uses 'N' to pair each
22849
 
  # line-number line with the line containing $LINENO, and appends
22850
 
  # trailing '-' during substitution so that $LINENO is not a special
22851
 
  # case at line end.
22852
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22853
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22854
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
22855
 
  sed -n '
22856
 
    p
22857
 
    /[$]LINENO/=
22858
 
  ' <$as_myself |
22859
 
    sed '
22860
 
      s/[$]LINENO.*/&-/
22861
 
      t lineno
22862
 
      b
22863
 
      :lineno
22864
 
      N
22865
 
      :loop
22866
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22867
 
      t loop
22868
 
      s/-\n.*//
22869
 
    ' >$as_me.lineno &&
22870
 
  chmod +x "$as_me.lineno" ||
22871
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22872
 
   { (exit 1); exit 1; }; }
22873
 
 
22874
 
  # Don't try to exec as it changes $[0], causing all sort of problems
22875
 
  # (the dirname of $[0] is not the place where we might find the
22876
 
  # original and so on.  Autoconf is especially sensitive to this).
22877
 
  . "./$as_me.lineno"
22878
 
  # Exit status is that of the last command.
22879
 
  exit
22880
 
}
22881
 
 
22882
 
 
22883
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22884
 
  as_dirname=dirname
22885
 
else
22886
 
  as_dirname=false
22887
 
fi
 
13814
# Avoid depending upon Character Ranges.
 
13815
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13816
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13817
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13818
as_cr_digits='0123456789'
 
13819
as_cr_alnum=$as_cr_Letters$as_cr_digits
22888
13820
 
22889
13821
ECHO_C= ECHO_N= ECHO_T=
22890
 
case `echo -n x` in
 
13822
case `echo -n x` in #(((((
22891
13823
-n*)
22892
 
  case `echo 'x\c'` in
 
13824
  case `echo 'xy\c'` in
22893
13825
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22894
 
  *)   ECHO_C='\c';;
 
13826
  xy)  ECHO_C='\c';;
 
13827
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13828
       ECHO_T=' ';;
22895
13829
  esac;;
22896
13830
*)
22897
13831
  ECHO_N='-n';;
22898
13832
esac
22899
13833
 
22900
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
22901
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22902
 
  as_expr=expr
22903
 
else
22904
 
  as_expr=false
22905
 
fi
22906
 
 
22907
13834
rm -f conf$$ conf$$.exe conf$$.file
22908
13835
if test -d conf$$.dir; then
22909
13836
  rm -f conf$$.dir/conf$$.file
22910
13837
else
22911
13838
  rm -f conf$$.dir
22912
 
  mkdir conf$$.dir
 
13839
  mkdir conf$$.dir 2>/dev/null
22913
13840
fi
22914
 
echo >conf$$.file
22915
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
22916
 
  as_ln_s='ln -s'
22917
 
  # ... but there are two gotchas:
22918
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22919
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22920
 
  # In both cases, we have to default to `cp -p'.
22921
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22922
 
    as_ln_s='cp -p'
22923
 
elif ln conf$$.file conf$$ 2>/dev/null; then
22924
 
  as_ln_s=ln
 
13841
if (echo >conf$$.file) 2>/dev/null; then
 
13842
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13843
    as_ln_s='ln -s'
 
13844
    # ... but there are two gotchas:
 
13845
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13846
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13847
    # In both cases, we have to default to `cp -pR'.
 
13848
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13849
      as_ln_s='cp -pR'
 
13850
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13851
    as_ln_s=ln
 
13852
  else
 
13853
    as_ln_s='cp -pR'
 
13854
  fi
22925
13855
else
22926
 
  as_ln_s='cp -p'
 
13856
  as_ln_s='cp -pR'
22927
13857
fi
22928
13858
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22929
13859
rmdir conf$$.dir 2>/dev/null
22930
13860
 
 
13861
 
 
13862
# as_fn_mkdir_p
 
13863
# -------------
 
13864
# Create "$as_dir" as a directory, including parents if necessary.
 
13865
as_fn_mkdir_p ()
 
13866
{
 
13867
 
 
13868
  case $as_dir in #(
 
13869
  -*) as_dir=./$as_dir;;
 
13870
  esac
 
13871
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13872
    as_dirs=
 
13873
    while :; do
 
13874
      case $as_dir in #(
 
13875
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13876
      *) as_qdir=$as_dir;;
 
13877
      esac
 
13878
      as_dirs="'$as_qdir' $as_dirs"
 
13879
      as_dir=`$as_dirname -- "$as_dir" ||
 
13880
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13881
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13882
         X"$as_dir" : 'X\(//\)$' \| \
 
13883
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13884
$as_echo X"$as_dir" |
 
13885
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13886
            s//\1/
 
13887
            q
 
13888
          }
 
13889
          /^X\(\/\/\)[^/].*/{
 
13890
            s//\1/
 
13891
            q
 
13892
          }
 
13893
          /^X\(\/\/\)$/{
 
13894
            s//\1/
 
13895
            q
 
13896
          }
 
13897
          /^X\(\/\).*/{
 
13898
            s//\1/
 
13899
            q
 
13900
          }
 
13901
          s/.*/./; q'`
 
13902
      test -d "$as_dir" && break
 
13903
    done
 
13904
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13905
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13906
 
 
13907
 
 
13908
} # as_fn_mkdir_p
22931
13909
if mkdir -p . 2>/dev/null; then
22932
 
  as_mkdir_p=:
 
13910
  as_mkdir_p='mkdir -p "$as_dir"'
22933
13911
else
22934
13912
  test -d ./-p && rmdir ./-p
22935
13913
  as_mkdir_p=false
22936
13914
fi
22937
13915
 
22938
 
if test -x / >/dev/null 2>&1; then
22939
 
  as_test_x='test -x'
22940
 
else
22941
 
  if ls -dL / >/dev/null 2>&1; then
22942
 
    as_ls_L_option=L
22943
 
  else
22944
 
    as_ls_L_option=
22945
 
  fi
22946
 
  as_test_x='
22947
 
    eval sh -c '\''
22948
 
      if test -d "$1"; then
22949
 
        test -d "$1/.";
22950
 
      else
22951
 
        case $1 in
22952
 
        -*)set "./$1";;
22953
 
        esac;
22954
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22955
 
        ???[sx]*):;;*)false;;esac;fi
22956
 
    '\'' sh
22957
 
  '
22958
 
fi
22959
 
as_executable_p=$as_test_x
 
13916
 
 
13917
# as_fn_executable_p FILE
 
13918
# -----------------------
 
13919
# Test if FILE is an executable regular file.
 
13920
as_fn_executable_p ()
 
13921
{
 
13922
  test -f "$1" && test -x "$1"
 
13923
} # as_fn_executable_p
 
13924
as_test_x='test -x'
 
13925
as_executable_p=as_fn_executable_p
22960
13926
 
22961
13927
# Sed expression to map a string onto a valid CPP name.
22962
13928
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22966
13932
 
22967
13933
 
22968
13934
exec 6>&1
 
13935
## ----------------------------------- ##
 
13936
## Main body of $CONFIG_STATUS script. ##
 
13937
## ----------------------------------- ##
 
13938
_ASEOF
 
13939
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22969
13940
 
22970
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
13941
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13942
# Save the log message, to keep $0 and so on meaningful, and to
22971
13943
# report actual input values of CONFIG_FILES etc. instead of their
22972
13944
# values after options handling.
22973
13945
ac_log="
22974
 
This file was extended by libicns $as_me 0.5.9, which was
22975
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
13946
This file was extended by libicns $as_me 0.8.1, which was
 
13947
generated by GNU Autoconf 2.69.  Invocation command line was
22976
13948
 
22977
13949
  CONFIG_FILES    = $CONFIG_FILES
22978
13950
  CONFIG_HEADERS  = $CONFIG_HEADERS
22985
13957
 
22986
13958
_ACEOF
22987
13959
 
22988
 
cat >>$CONFIG_STATUS <<_ACEOF
 
13960
case $ac_config_files in *"
 
13961
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13962
esac
 
13963
 
 
13964
case $ac_config_headers in *"
 
13965
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13966
esac
 
13967
 
 
13968
 
 
13969
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22989
13970
# Files that config.status was made for.
22990
13971
config_files="$ac_config_files"
22991
13972
config_headers="$ac_config_headers"
22993
13974
 
22994
13975
_ACEOF
22995
13976
 
22996
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
13977
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22997
13978
ac_cs_usage="\
22998
 
\`$as_me' instantiates files from templates according to the
22999
 
current configuration.
 
13979
\`$as_me' instantiates files and other configuration actions
 
13980
from templates according to the current configuration.  Unless the files
 
13981
and actions are specified as TAGs, all are instantiated by default.
23000
13982
 
23001
 
Usage: $0 [OPTIONS] [FILE]...
 
13983
Usage: $0 [OPTION]... [TAG]...
23002
13984
 
23003
13985
  -h, --help       print this help, then exit
23004
13986
  -V, --version    print version number and configuration settings, then exit
23005
 
  -q, --quiet      do not print progress messages
 
13987
      --config     print configuration, then exit
 
13988
  -q, --quiet, --silent
 
13989
                   do not print progress messages
23006
13990
  -d, --debug      don't remove temporary files
23007
13991
      --recheck    update $as_me by reconfiguring in the same conditions
23008
 
  --file=FILE[:TEMPLATE]
23009
 
                   instantiate the configuration file FILE
23010
 
  --header=FILE[:TEMPLATE]
23011
 
                   instantiate the configuration header FILE
 
13992
      --file=FILE[:TEMPLATE]
 
13993
                   instantiate the configuration file FILE
 
13994
      --header=FILE[:TEMPLATE]
 
13995
                   instantiate the configuration header FILE
23012
13996
 
23013
13997
Configuration files:
23014
13998
$config_files
23019
14003
Configuration commands:
23020
14004
$config_commands
23021
14005
 
23022
 
Report bugs to <bug-autoconf@gnu.org>."
 
14006
Report bugs to <mathew@eisbox.net>."
23023
14007
 
23024
14008
_ACEOF
23025
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14009
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14010
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23026
14011
ac_cs_version="\\
23027
 
libicns config.status 0.5.9
23028
 
configured by $0, generated by GNU Autoconf 2.61,
23029
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
14012
libicns config.status 0.8.1
 
14013
configured by $0, generated by GNU Autoconf 2.69,
 
14014
  with options \\"\$ac_cs_config\\"
23030
14015
 
23031
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
14016
Copyright (C) 2012 Free Software Foundation, Inc.
23032
14017
This config.status script is free software; the Free Software Foundation
23033
14018
gives unlimited permission to copy, distribute and modify it."
23034
14019
 
23036
14021
srcdir='$srcdir'
23037
14022
INSTALL='$INSTALL'
23038
14023
MKDIR_P='$MKDIR_P'
 
14024
AWK='$AWK'
 
14025
test -n "\$AWK" || AWK=awk
23039
14026
_ACEOF
23040
14027
 
23041
 
cat >>$CONFIG_STATUS <<\_ACEOF
23042
 
# If no file are specified by the user, then we need to provide default
23043
 
# value.  By we need to know if files were specified by the user.
 
14028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14029
# The default lists apply if the user does not specify any file.
23044
14030
ac_need_defaults=:
23045
14031
while test $# != 0
23046
14032
do
23047
14033
  case $1 in
23048
 
  --*=*)
 
14034
  --*=?*)
23049
14035
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23050
14036
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23051
14037
    ac_shift=:
23052
14038
    ;;
 
14039
  --*=)
 
14040
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14041
    ac_optarg=
 
14042
    ac_shift=:
 
14043
    ;;
23053
14044
  *)
23054
14045
    ac_option=$1
23055
14046
    ac_optarg=$2
23062
14053
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23063
14054
    ac_cs_recheck=: ;;
23064
14055
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23065
 
    echo "$ac_cs_version"; exit ;;
 
14056
    $as_echo "$ac_cs_version"; exit ;;
 
14057
  --config | --confi | --conf | --con | --co | --c )
 
14058
    $as_echo "$ac_cs_config"; exit ;;
23066
14059
  --debug | --debu | --deb | --de | --d | -d )
23067
14060
    debug=: ;;
23068
14061
  --file | --fil | --fi | --f )
23069
14062
    $ac_shift
23070
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
14063
    case $ac_optarg in
 
14064
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14065
    '') as_fn_error $? "missing file argument" ;;
 
14066
    esac
 
14067
    as_fn_append CONFIG_FILES " '$ac_optarg'"
23071
14068
    ac_need_defaults=false;;
23072
14069
  --header | --heade | --head | --hea )
23073
14070
    $ac_shift
23074
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
14071
    case $ac_optarg in
 
14072
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14073
    esac
 
14074
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23075
14075
    ac_need_defaults=false;;
23076
14076
  --he | --h)
23077
14077
    # Conflict between --help and --header
23078
 
    { echo "$as_me: error: ambiguous option: $1
23079
 
Try \`$0 --help' for more information." >&2
23080
 
   { (exit 1); exit 1; }; };;
 
14078
    as_fn_error $? "ambiguous option: \`$1'
 
14079
Try \`$0 --help' for more information.";;
23081
14080
  --help | --hel | -h )
23082
 
    echo "$ac_cs_usage"; exit ;;
 
14081
    $as_echo "$ac_cs_usage"; exit ;;
23083
14082
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23084
14083
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23085
14084
    ac_cs_silent=: ;;
23086
14085
 
23087
14086
  # This is an error.
23088
 
  -*) { echo "$as_me: error: unrecognized option: $1
23089
 
Try \`$0 --help' for more information." >&2
23090
 
   { (exit 1); exit 1; }; } ;;
 
14087
  -*) as_fn_error $? "unrecognized option: \`$1'
 
14088
Try \`$0 --help' for more information." ;;
23091
14089
 
23092
 
  *) ac_config_targets="$ac_config_targets $1"
 
14090
  *) as_fn_append ac_config_targets " $1"
23093
14091
     ac_need_defaults=false ;;
23094
14092
 
23095
14093
  esac
23104
14102
fi
23105
14103
 
23106
14104
_ACEOF
23107
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14105
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23108
14106
if \$ac_cs_recheck; then
23109
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23110
 
  CONFIG_SHELL=$SHELL
 
14107
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14108
  shift
 
14109
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14110
  CONFIG_SHELL='$SHELL'
23111
14111
  export CONFIG_SHELL
23112
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14112
  exec "\$@"
23113
14113
fi
23114
14114
 
23115
14115
_ACEOF
23116
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14116
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23117
14117
exec 5>>config.log
23118
14118
{
23119
14119
  echo
23120
14120
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23121
14121
## Running $as_me. ##
23122
14122
_ASBOX
23123
 
  echo "$ac_log"
 
14123
  $as_echo "$ac_log"
23124
14124
} >&5
23125
14125
 
23126
14126
_ACEOF
23127
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14127
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23128
14128
#
23129
14129
# INIT-COMMANDS
23130
14130
#
23131
14131
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23132
14132
 
 
14133
 
 
14134
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14135
# if CDPATH is set.
 
14136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14137
 
 
14138
sed_quote_subst='$sed_quote_subst'
 
14139
double_quote_subst='$double_quote_subst'
 
14140
delay_variable_subst='$delay_variable_subst'
 
14141
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14142
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14143
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14144
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14145
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14146
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14147
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14148
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14149
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
14150
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14151
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14152
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14153
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14154
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14155
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14156
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14157
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14158
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
14159
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
14160
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
14161
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
14162
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
14163
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
14164
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
14165
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
14166
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
14167
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
14168
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
14169
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
14170
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14171
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14172
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
14173
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
14174
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
14175
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
14176
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
14177
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
14178
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
14179
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
14180
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
14181
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
14182
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
14183
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
14184
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
14185
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
14186
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14187
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14188
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14189
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
14190
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
14191
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
14192
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
14193
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
14194
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
14195
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
14196
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
14197
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14198
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14199
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
14200
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
14201
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
14202
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
14203
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
14204
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
14205
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
14206
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
14207
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
14208
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
14209
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
14210
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
14211
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
14212
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
14213
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
14214
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
14215
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
14216
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14217
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
14218
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
14219
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14220
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14221
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
14222
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
14223
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14224
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14225
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14226
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
14227
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14228
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
14229
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14230
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14231
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14232
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
14233
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
14234
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
14235
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
14236
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14237
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
14238
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
14239
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
14240
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
14241
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
14242
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
14243
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
14244
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
14245
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
14246
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14247
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
14248
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14249
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
14250
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
14251
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
14252
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14253
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
14254
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
14255
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
14256
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
14257
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
14258
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14259
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14260
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
14261
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
14262
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
14263
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
14264
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
14265
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
14266
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
14267
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
14268
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
14269
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
14270
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
14271
 
 
14272
LTCC='$LTCC'
 
14273
LTCFLAGS='$LTCFLAGS'
 
14274
compiler='$compiler_DEFAULT'
 
14275
 
 
14276
# A function that is used when there is no print builtin or printf.
 
14277
func_fallback_echo ()
 
14278
{
 
14279
  eval 'cat <<_LTECHO_EOF
 
14280
\$1
 
14281
_LTECHO_EOF'
 
14282
}
 
14283
 
 
14284
# Quote evaled strings.
 
14285
for var in SHELL \
 
14286
ECHO \
 
14287
PATH_SEPARATOR \
 
14288
SED \
 
14289
GREP \
 
14290
EGREP \
 
14291
FGREP \
 
14292
LD \
 
14293
NM \
 
14294
LN_S \
 
14295
lt_SP2NL \
 
14296
lt_NL2SP \
 
14297
reload_flag \
 
14298
OBJDUMP \
 
14299
deplibs_check_method \
 
14300
file_magic_cmd \
 
14301
file_magic_glob \
 
14302
want_nocaseglob \
 
14303
DLLTOOL \
 
14304
sharedlib_from_linklib_cmd \
 
14305
AR \
 
14306
AR_FLAGS \
 
14307
archiver_list_spec \
 
14308
STRIP \
 
14309
RANLIB \
 
14310
CC \
 
14311
CFLAGS \
 
14312
compiler \
 
14313
lt_cv_sys_global_symbol_pipe \
 
14314
lt_cv_sys_global_symbol_to_cdecl \
 
14315
lt_cv_sys_global_symbol_to_c_name_address \
 
14316
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14317
nm_file_list_spec \
 
14318
lt_prog_compiler_no_builtin_flag \
 
14319
lt_prog_compiler_pic \
 
14320
lt_prog_compiler_wl \
 
14321
lt_prog_compiler_static \
 
14322
lt_cv_prog_compiler_c_o \
 
14323
need_locks \
 
14324
MANIFEST_TOOL \
 
14325
DSYMUTIL \
 
14326
NMEDIT \
 
14327
LIPO \
 
14328
OTOOL \
 
14329
OTOOL64 \
 
14330
shrext_cmds \
 
14331
export_dynamic_flag_spec \
 
14332
whole_archive_flag_spec \
 
14333
compiler_needs_object \
 
14334
with_gnu_ld \
 
14335
allow_undefined_flag \
 
14336
no_undefined_flag \
 
14337
hardcode_libdir_flag_spec \
 
14338
hardcode_libdir_separator \
 
14339
exclude_expsyms \
 
14340
include_expsyms \
 
14341
file_list_spec \
 
14342
variables_saved_for_relink \
 
14343
libname_spec \
 
14344
library_names_spec \
 
14345
soname_spec \
 
14346
install_override_mode \
 
14347
finish_eval \
 
14348
old_striplib \
 
14349
striplib; do
 
14350
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14351
    *[\\\\\\\`\\"\\\$]*)
 
14352
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14353
      ;;
 
14354
    *)
 
14355
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14356
      ;;
 
14357
    esac
 
14358
done
 
14359
 
 
14360
# Double-quote double-evaled strings.
 
14361
for var in reload_cmds \
 
14362
old_postinstall_cmds \
 
14363
old_postuninstall_cmds \
 
14364
old_archive_cmds \
 
14365
extract_expsyms_cmds \
 
14366
old_archive_from_new_cmds \
 
14367
old_archive_from_expsyms_cmds \
 
14368
archive_cmds \
 
14369
archive_expsym_cmds \
 
14370
module_cmds \
 
14371
module_expsym_cmds \
 
14372
export_symbols_cmds \
 
14373
prelink_cmds \
 
14374
postlink_cmds \
 
14375
postinstall_cmds \
 
14376
postuninstall_cmds \
 
14377
finish_cmds \
 
14378
sys_lib_search_path_spec \
 
14379
sys_lib_dlsearch_path_spec; do
 
14380
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14381
    *[\\\\\\\`\\"\\\$]*)
 
14382
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14383
      ;;
 
14384
    *)
 
14385
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14386
      ;;
 
14387
    esac
 
14388
done
 
14389
 
 
14390
ac_aux_dir='$ac_aux_dir'
 
14391
xsi_shell='$xsi_shell'
 
14392
lt_shell_append='$lt_shell_append'
 
14393
 
 
14394
# See if we are running on zsh, and set the options which allow our
 
14395
# commands through without removal of \ escapes INIT.
 
14396
if test -n "\${ZSH_VERSION+set}" ; then
 
14397
   setopt NO_GLOB_SUBST
 
14398
fi
 
14399
 
 
14400
 
 
14401
    PACKAGE='$PACKAGE'
 
14402
    VERSION='$VERSION'
 
14403
    TIMESTAMP='$TIMESTAMP'
 
14404
    RM='$RM'
 
14405
    ofile='$ofile'
 
14406
 
 
14407
 
 
14408
 
 
14409
 
23133
14410
_ACEOF
23134
14411
 
23135
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14412
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23136
14413
 
23137
14414
# Handling of arguments.
23138
14415
for ac_config_target in $ac_config_targets
23140
14417
  case $ac_config_target in
23141
14418
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23142
14419
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14420
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23143
14421
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23144
14422
    "libicns.spec") CONFIG_FILES="$CONFIG_FILES libicns.spec" ;;
23145
14423
    "icnsutils/Makefile") CONFIG_FILES="$CONFIG_FILES icnsutils/Makefile" ;;
23146
14424
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23147
14425
    "src/libicns.pc") CONFIG_FILES="$CONFIG_FILES src/libicns.pc" ;;
23148
14426
 
23149
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23150
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23151
 
   { (exit 1); exit 1; }; };;
 
14427
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23152
14428
  esac
23153
14429
done
23154
14430
 
23171
14447
# after its creation but before its name has been assigned to `$tmp'.
23172
14448
$debug ||
23173
14449
{
23174
 
  tmp=
 
14450
  tmp= ac_tmp=
23175
14451
  trap 'exit_status=$?
23176
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14452
  : "${ac_tmp:=$tmp}"
 
14453
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23177
14454
' 0
23178
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
14455
  trap 'as_fn_exit 1' 1 2 13 15
23179
14456
}
23180
14457
# Create a (secure) tmp directory for tmp files.
23181
14458
 
23182
14459
{
23183
14460
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23184
 
  test -n "$tmp" && test -d "$tmp"
 
14461
  test -d "$tmp"
23185
14462
}  ||
23186
14463
{
23187
14464
  tmp=./conf$$-$RANDOM
23188
14465
  (umask 077 && mkdir "$tmp")
23189
 
} ||
23190
 
{
23191
 
   echo "$me: cannot create a temporary directory in ." >&2
23192
 
   { (exit 1); exit 1; }
23193
 
}
23194
 
 
23195
 
#
23196
 
# Set up the sed scripts for CONFIG_FILES section.
23197
 
#
23198
 
 
23199
 
# No need to generate the scripts if there are no CONFIG_FILES.
23200
 
# This happens for instance when ./config.status config.h
 
14466
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14467
ac_tmp=$tmp
 
14468
 
 
14469
# Set up the scripts for CONFIG_FILES section.
 
14470
# No need to generate them if there are no CONFIG_FILES.
 
14471
# This happens for instance with `./config.status config.h'.
23201
14472
if test -n "$CONFIG_FILES"; then
23202
14473
 
23203
 
_ACEOF
23204
 
 
23205
 
 
23206
 
 
23207
 
ac_delim='%!_!# '
23208
 
for ac_last_try in false false false false false :; do
23209
 
  cat >conf$$subs.sed <<_ACEOF
23210
 
SHELL!$SHELL$ac_delim
23211
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23212
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23213
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23214
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23215
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23216
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23217
 
exec_prefix!$exec_prefix$ac_delim
23218
 
prefix!$prefix$ac_delim
23219
 
program_transform_name!$program_transform_name$ac_delim
23220
 
bindir!$bindir$ac_delim
23221
 
sbindir!$sbindir$ac_delim
23222
 
libexecdir!$libexecdir$ac_delim
23223
 
datarootdir!$datarootdir$ac_delim
23224
 
datadir!$datadir$ac_delim
23225
 
sysconfdir!$sysconfdir$ac_delim
23226
 
sharedstatedir!$sharedstatedir$ac_delim
23227
 
localstatedir!$localstatedir$ac_delim
23228
 
includedir!$includedir$ac_delim
23229
 
oldincludedir!$oldincludedir$ac_delim
23230
 
docdir!$docdir$ac_delim
23231
 
infodir!$infodir$ac_delim
23232
 
htmldir!$htmldir$ac_delim
23233
 
dvidir!$dvidir$ac_delim
23234
 
pdfdir!$pdfdir$ac_delim
23235
 
psdir!$psdir$ac_delim
23236
 
libdir!$libdir$ac_delim
23237
 
localedir!$localedir$ac_delim
23238
 
mandir!$mandir$ac_delim
23239
 
DEFS!$DEFS$ac_delim
23240
 
ECHO_C!$ECHO_C$ac_delim
23241
 
ECHO_N!$ECHO_N$ac_delim
23242
 
ECHO_T!$ECHO_T$ac_delim
23243
 
LIBS!$LIBS$ac_delim
23244
 
build_alias!$build_alias$ac_delim
23245
 
host_alias!$host_alias$ac_delim
23246
 
target_alias!$target_alias$ac_delim
23247
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23248
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23249
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
23250
 
am__isrc!$am__isrc$ac_delim
23251
 
CYGPATH_W!$CYGPATH_W$ac_delim
23252
 
PACKAGE!$PACKAGE$ac_delim
23253
 
VERSION!$VERSION$ac_delim
23254
 
ACLOCAL!$ACLOCAL$ac_delim
23255
 
AUTOCONF!$AUTOCONF$ac_delim
23256
 
AUTOMAKE!$AUTOMAKE$ac_delim
23257
 
AUTOHEADER!$AUTOHEADER$ac_delim
23258
 
MAKEINFO!$MAKEINFO$ac_delim
23259
 
install_sh!$install_sh$ac_delim
23260
 
STRIP!$STRIP$ac_delim
23261
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23262
 
mkdir_p!$mkdir_p$ac_delim
23263
 
AWK!$AWK$ac_delim
23264
 
SET_MAKE!$SET_MAKE$ac_delim
23265
 
am__leading_dot!$am__leading_dot$ac_delim
23266
 
AMTAR!$AMTAR$ac_delim
23267
 
am__tar!$am__tar$ac_delim
23268
 
am__untar!$am__untar$ac_delim
23269
 
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23270
 
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23271
 
MAINT!$MAINT$ac_delim
23272
 
CC!$CC$ac_delim
23273
 
CFLAGS!$CFLAGS$ac_delim
23274
 
LDFLAGS!$LDFLAGS$ac_delim
23275
 
CPPFLAGS!$CPPFLAGS$ac_delim
23276
 
ac_ct_CC!$ac_ct_CC$ac_delim
23277
 
EXEEXT!$EXEEXT$ac_delim
23278
 
OBJEXT!$OBJEXT$ac_delim
23279
 
DEPDIR!$DEPDIR$ac_delim
23280
 
am__include!$am__include$ac_delim
23281
 
am__quote!$am__quote$ac_delim
23282
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23283
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23284
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23285
 
CCDEPMODE!$CCDEPMODE$ac_delim
23286
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23287
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23288
 
LN_S!$LN_S$ac_delim
23289
 
build!$build$ac_delim
23290
 
build_cpu!$build_cpu$ac_delim
23291
 
build_vendor!$build_vendor$ac_delim
23292
 
build_os!$build_os$ac_delim
23293
 
host!$host$ac_delim
23294
 
host_cpu!$host_cpu$ac_delim
23295
 
host_vendor!$host_vendor$ac_delim
23296
 
host_os!$host_os$ac_delim
23297
 
SED!$SED$ac_delim
23298
 
GREP!$GREP$ac_delim
23299
 
EGREP!$EGREP$ac_delim
23300
 
ECHO!$ECHO$ac_delim
23301
 
AR!$AR$ac_delim
23302
 
RANLIB!$RANLIB$ac_delim
23303
 
DSYMUTIL!$DSYMUTIL$ac_delim
23304
 
NMEDIT!$NMEDIT$ac_delim
23305
 
CPP!$CPP$ac_delim
23306
 
CXX!$CXX$ac_delim
23307
 
_ACEOF
23308
 
 
23309
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23310
 
    break
23311
 
  elif $ac_last_try; then
23312
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23313
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23314
 
   { (exit 1); exit 1; }; }
23315
 
  else
23316
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23317
 
  fi
23318
 
done
23319
 
 
23320
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23321
 
if test -n "$ac_eof"; then
23322
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23323
 
  ac_eof=`expr $ac_eof + 1`
23324
 
fi
23325
 
 
23326
 
cat >>$CONFIG_STATUS <<_ACEOF
23327
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23328
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23329
 
_ACEOF
23330
 
sed '
23331
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23332
 
s/^/s,@/; s/!/@,|#_!!_#|/
23333
 
:n
23334
 
t n
23335
 
s/'"$ac_delim"'$/,g/; t
23336
 
s/$/\\/; p
23337
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23338
 
' >>$CONFIG_STATUS <conf$$subs.sed
23339
 
rm -f conf$$subs.sed
23340
 
cat >>$CONFIG_STATUS <<_ACEOF
23341
 
CEOF$ac_eof
23342
 
_ACEOF
23343
 
 
23344
 
 
23345
 
ac_delim='%!_!# '
23346
 
for ac_last_try in false false false false false :; do
23347
 
  cat >conf$$subs.sed <<_ACEOF
23348
 
CXXFLAGS!$CXXFLAGS$ac_delim
23349
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
23350
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
23351
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23352
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23353
 
CXXCPP!$CXXCPP$ac_delim
23354
 
F77!$F77$ac_delim
23355
 
FFLAGS!$FFLAGS$ac_delim
23356
 
ac_ct_F77!$ac_ct_F77$ac_delim
23357
 
LIBTOOL!$LIBTOOL$ac_delim
23358
 
PNG_LIBS!$PNG_LIBS$ac_delim
23359
 
JP2000_LIBS!$JP2000_LIBS$ac_delim
23360
 
LIBOBJS!$LIBOBJS$ac_delim
23361
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
23362
 
_ACEOF
23363
 
 
23364
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
23365
 
    break
23366
 
  elif $ac_last_try; then
23367
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23368
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23369
 
   { (exit 1); exit 1; }; }
23370
 
  else
23371
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23372
 
  fi
23373
 
done
23374
 
 
23375
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23376
 
if test -n "$ac_eof"; then
23377
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23378
 
  ac_eof=`expr $ac_eof + 1`
23379
 
fi
23380
 
 
23381
 
cat >>$CONFIG_STATUS <<_ACEOF
23382
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23383
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23384
 
_ACEOF
23385
 
sed '
23386
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23387
 
s/^/s,@/; s/!/@,|#_!!_#|/
23388
 
:n
23389
 
t n
23390
 
s/'"$ac_delim"'$/,g/; t
23391
 
s/$/\\/; p
23392
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23393
 
' >>$CONFIG_STATUS <conf$$subs.sed
23394
 
rm -f conf$$subs.sed
23395
 
cat >>$CONFIG_STATUS <<_ACEOF
23396
 
:end
23397
 
s/|#_!!_#|//g
23398
 
CEOF$ac_eof
23399
 
_ACEOF
23400
 
 
23401
 
 
23402
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23403
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
14474
 
 
14475
ac_cr=`echo X | tr X '\015'`
 
14476
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14477
# But we know of no other shell where ac_cr would be empty at this
 
14478
# point, so we can use a bashism as a fallback.
 
14479
if test "x$ac_cr" = x; then
 
14480
  eval ac_cr=\$\'\\r\'
 
14481
fi
 
14482
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14483
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14484
  ac_cs_awk_cr='\\r'
 
14485
else
 
14486
  ac_cs_awk_cr=$ac_cr
 
14487
fi
 
14488
 
 
14489
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14490
_ACEOF
 
14491
 
 
14492
 
 
14493
{
 
14494
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14495
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14496
  echo "_ACEOF"
 
14497
} >conf$$subs.sh ||
 
14498
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14499
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14500
ac_delim='%!_!# '
 
14501
for ac_last_try in false false false false false :; do
 
14502
  . ./conf$$subs.sh ||
 
14503
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14504
 
 
14505
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14506
  if test $ac_delim_n = $ac_delim_num; then
 
14507
    break
 
14508
  elif $ac_last_try; then
 
14509
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14510
  else
 
14511
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14512
  fi
 
14513
done
 
14514
rm -f conf$$subs.sh
 
14515
 
 
14516
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14517
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14518
_ACEOF
 
14519
sed -n '
 
14520
h
 
14521
s/^/S["/; s/!.*/"]=/
 
14522
p
 
14523
g
 
14524
s/^[^!]*!//
 
14525
:repl
 
14526
t repl
 
14527
s/'"$ac_delim"'$//
 
14528
t delim
 
14529
:nl
 
14530
h
 
14531
s/\(.\{148\}\)..*/\1/
 
14532
t more1
 
14533
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14534
p
 
14535
n
 
14536
b repl
 
14537
:more1
 
14538
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14539
p
 
14540
g
 
14541
s/.\{148\}//
 
14542
t nl
 
14543
:delim
 
14544
h
 
14545
s/\(.\{148\}\)..*/\1/
 
14546
t more2
 
14547
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14548
p
 
14549
b
 
14550
:more2
 
14551
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14552
p
 
14553
g
 
14554
s/.\{148\}//
 
14555
t delim
 
14556
' <conf$$subs.awk | sed '
 
14557
/^[^""]/{
 
14558
  N
 
14559
  s/\n//
 
14560
}
 
14561
' >>$CONFIG_STATUS || ac_write_fail=1
 
14562
rm -f conf$$subs.awk
 
14563
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14564
_ACAWK
 
14565
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14566
  for (key in S) S_is_set[key] = 1
 
14567
  FS = ""
 
14568
 
 
14569
}
 
14570
{
 
14571
  line = $ 0
 
14572
  nfields = split(line, field, "@")
 
14573
  substed = 0
 
14574
  len = length(field[1])
 
14575
  for (i = 2; i < nfields; i++) {
 
14576
    key = field[i]
 
14577
    keylen = length(key)
 
14578
    if (S_is_set[key]) {
 
14579
      value = S[key]
 
14580
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14581
      len += length(value) + length(field[++i])
 
14582
      substed = 1
 
14583
    } else
 
14584
      len += 1 + keylen
 
14585
  }
 
14586
 
 
14587
  print line
 
14588
}
 
14589
 
 
14590
_ACAWK
 
14591
_ACEOF
 
14592
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14593
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14594
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14595
else
 
14596
  cat
 
14597
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14598
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14599
_ACEOF
 
14600
 
 
14601
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14602
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23404
14603
# trailing colons and then remove the whole line if VPATH becomes empty
23405
14604
# (actually we leave an empty line to preserve line numbers).
23406
14605
if test "x$srcdir" = x.; then
23407
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
23408
 
s/:*\$(srcdir):*/:/
23409
 
s/:*\${srcdir}:*/:/
23410
 
s/:*@srcdir@:*/:/
23411
 
s/^\([^=]*=[     ]*\):*/\1/
 
14606
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14607
h
 
14608
s///
 
14609
s/^/:/
 
14610
s/[      ]*$/:/
 
14611
s/:\$(srcdir):/:/g
 
14612
s/:\${srcdir}:/:/g
 
14613
s/:@srcdir@:/:/g
 
14614
s/^:*//
23412
14615
s/:*$//
 
14616
x
 
14617
s/\(=[   ]*\).*/\1/
 
14618
G
 
14619
s/\n//
23413
14620
s/^[^=]*=[       ]*$//
23414
14621
}'
23415
14622
fi
23416
14623
 
23417
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14624
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23418
14625
fi # test -n "$CONFIG_FILES"
23419
14626
 
23420
 
 
23421
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
14627
# Set up the scripts for CONFIG_HEADERS section.
 
14628
# No need to generate them if there are no CONFIG_HEADERS.
 
14629
# This happens for instance with `./config.status Makefile'.
 
14630
if test -n "$CONFIG_HEADERS"; then
 
14631
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14632
BEGIN {
 
14633
_ACEOF
 
14634
 
 
14635
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14636
# here-document in config.status, that substitutes the proper values into
 
14637
# config.h.in to produce config.h.
 
14638
 
 
14639
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14640
# handling of long lines.
 
14641
ac_delim='%!_!# '
 
14642
for ac_last_try in false false :; do
 
14643
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14644
  if test -z "$ac_tt"; then
 
14645
    break
 
14646
  elif $ac_last_try; then
 
14647
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14648
  else
 
14649
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14650
  fi
 
14651
done
 
14652
 
 
14653
# For the awk script, D is an array of macro values keyed by name,
 
14654
# likewise P contains macro parameters if any.  Preserve backslash
 
14655
# newline sequences.
 
14656
 
 
14657
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14658
sed -n '
 
14659
s/.\{148\}/&'"$ac_delim"'/g
 
14660
t rset
 
14661
:rset
 
14662
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14663
t def
 
14664
d
 
14665
:def
 
14666
s/\\$//
 
14667
t bsnl
 
14668
s/["\\]/\\&/g
 
14669
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14670
D["\1"]=" \3"/p
 
14671
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14672
d
 
14673
:bsnl
 
14674
s/["\\]/\\&/g
 
14675
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14676
D["\1"]=" \3\\\\\\n"\\/p
 
14677
t cont
 
14678
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14679
t cont
 
14680
d
 
14681
:cont
 
14682
n
 
14683
s/.\{148\}/&'"$ac_delim"'/g
 
14684
t clear
 
14685
:clear
 
14686
s/\\$//
 
14687
t bsnlc
 
14688
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14689
d
 
14690
:bsnlc
 
14691
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14692
b cont
 
14693
' <confdefs.h | sed '
 
14694
s/'"$ac_delim"'/"\\\
 
14695
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14696
 
 
14697
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14698
  for (key in D) D_is_set[key] = 1
 
14699
  FS = ""
 
14700
}
 
14701
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14702
  line = \$ 0
 
14703
  split(line, arg, " ")
 
14704
  if (arg[1] == "#") {
 
14705
    defundef = arg[2]
 
14706
    mac1 = arg[3]
 
14707
  } else {
 
14708
    defundef = substr(arg[1], 2)
 
14709
    mac1 = arg[2]
 
14710
  }
 
14711
  split(mac1, mac2, "(") #)
 
14712
  macro = mac2[1]
 
14713
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14714
  if (D_is_set[macro]) {
 
14715
    # Preserve the white space surrounding the "#".
 
14716
    print prefix "define", macro P[macro] D[macro]
 
14717
    next
 
14718
  } else {
 
14719
    # Replace #undef with comments.  This is necessary, for example,
 
14720
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14721
    # on some systems where configure will not decide to define it.
 
14722
    if (defundef == "undef") {
 
14723
      print "/*", prefix defundef, macro, "*/"
 
14724
      next
 
14725
    }
 
14726
  }
 
14727
}
 
14728
{ print }
 
14729
_ACAWK
 
14730
_ACEOF
 
14731
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14732
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14733
fi # test -n "$CONFIG_HEADERS"
 
14734
 
 
14735
 
 
14736
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14737
shift
 
14738
for ac_tag
23422
14739
do
23423
14740
  case $ac_tag in
23424
14741
  :[FHLC]) ac_mode=$ac_tag; continue;;
23425
14742
  esac
23426
14743
  case $ac_mode$ac_tag in
23427
14744
  :[FHL]*:*);;
23428
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23429
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23430
 
   { (exit 1); exit 1; }; };;
 
14745
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23431
14746
  :[FH]-) ac_tag=-:-;;
23432
14747
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23433
14748
  esac
23446
14761
    for ac_f
23447
14762
    do
23448
14763
      case $ac_f in
23449
 
      -) ac_f="$tmp/stdin";;
 
14764
      -) ac_f="$ac_tmp/stdin";;
23450
14765
      *) # Look for the file first in the build tree, then in the source tree
23451
14766
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
23452
14767
         # because $ac_f cannot contain `:'.
23455
14770
           [\\/$]*) false;;
23456
14771
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23457
14772
           esac ||
23458
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23459
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23460
 
   { (exit 1); exit 1; }; };;
 
14773
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23461
14774
      esac
23462
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
14775
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14776
      as_fn_append ac_file_inputs " '$ac_f'"
23463
14777
    done
23464
14778
 
23465
14779
    # Let's still pretend it is `configure' which instantiates (i.e., don't
23466
14780
    # use $as_me), people would be surprised to read:
23467
14781
    #    /* config.h.  Generated by config.status.  */
23468
 
    configure_input="Generated from "`IFS=:
23469
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
14782
    configure_input='Generated from '`
 
14783
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14784
        `' by configure.'
23470
14785
    if test x"$ac_file" != x-; then
23471
14786
      configure_input="$ac_file.  $configure_input"
23472
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
23473
 
echo "$as_me: creating $ac_file" >&6;}
 
14787
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14788
$as_echo "$as_me: creating $ac_file" >&6;}
23474
14789
    fi
 
14790
    # Neutralize special characters interpreted by sed in replacement strings.
 
14791
    case $configure_input in #(
 
14792
    *\&* | *\|* | *\\* )
 
14793
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14794
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14795
    *) ac_sed_conf_input=$configure_input;;
 
14796
    esac
23475
14797
 
23476
14798
    case $ac_tag in
23477
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
14799
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14800
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23478
14801
    esac
23479
14802
    ;;
23480
14803
  esac
23484
14807
         X"$ac_file" : 'X\(//\)[^/]' \| \
23485
14808
         X"$ac_file" : 'X\(//\)$' \| \
23486
14809
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23487
 
echo X"$ac_file" |
23488
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489
 
            s//\1/
23490
 
            q
23491
 
          }
23492
 
          /^X\(\/\/\)[^/].*/{
23493
 
            s//\1/
23494
 
            q
23495
 
          }
23496
 
          /^X\(\/\/\)$/{
23497
 
            s//\1/
23498
 
            q
23499
 
          }
23500
 
          /^X\(\/\).*/{
23501
 
            s//\1/
23502
 
            q
23503
 
          }
23504
 
          s/.*/./; q'`
23505
 
  { as_dir="$ac_dir"
23506
 
  case $as_dir in #(
23507
 
  -*) as_dir=./$as_dir;;
23508
 
  esac
23509
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23510
 
    as_dirs=
23511
 
    while :; do
23512
 
      case $as_dir in #(
23513
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23514
 
      *) as_qdir=$as_dir;;
23515
 
      esac
23516
 
      as_dirs="'$as_qdir' $as_dirs"
23517
 
      as_dir=`$as_dirname -- "$as_dir" ||
23518
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23520
 
         X"$as_dir" : 'X\(//\)$' \| \
23521
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522
 
echo X"$as_dir" |
23523
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23524
 
            s//\1/
23525
 
            q
23526
 
          }
23527
 
          /^X\(\/\/\)[^/].*/{
23528
 
            s//\1/
23529
 
            q
23530
 
          }
23531
 
          /^X\(\/\/\)$/{
23532
 
            s//\1/
23533
 
            q
23534
 
          }
23535
 
          /^X\(\/\).*/{
23536
 
            s//\1/
23537
 
            q
23538
 
          }
23539
 
          s/.*/./; q'`
23540
 
      test -d "$as_dir" && break
23541
 
    done
23542
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23543
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545
 
   { (exit 1); exit 1; }; }; }
 
14810
$as_echo X"$ac_file" |
 
14811
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14812
            s//\1/
 
14813
            q
 
14814
          }
 
14815
          /^X\(\/\/\)[^/].*/{
 
14816
            s//\1/
 
14817
            q
 
14818
          }
 
14819
          /^X\(\/\/\)$/{
 
14820
            s//\1/
 
14821
            q
 
14822
          }
 
14823
          /^X\(\/\).*/{
 
14824
            s//\1/
 
14825
            q
 
14826
          }
 
14827
          s/.*/./; q'`
 
14828
  as_dir="$ac_dir"; as_fn_mkdir_p
23546
14829
  ac_builddir=.
23547
14830
 
23548
14831
case "$ac_dir" in
23549
14832
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23550
14833
*)
23551
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
14834
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23552
14835
  # A ".." for each directory in $ac_dir_suffix.
23553
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
14836
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23554
14837
  case $ac_top_builddir_sub in
23555
14838
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23556
14839
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23595
14878
  esac
23596
14879
_ACEOF
23597
14880
 
23598
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23599
14882
# If the template does not know about datarootdir, expand it.
23600
14883
# FIXME: This hack should be removed a few years after 2.60.
23601
14884
ac_datarootdir_hack=; ac_datarootdir_seen=
23602
 
 
23603
 
case `sed -n '/datarootdir/ {
 
14885
ac_sed_dataroot='
 
14886
/datarootdir/ {
23604
14887
  p
23605
14888
  q
23606
14889
}
23608
14891
/@docdir@/p
23609
14892
/@infodir@/p
23610
14893
/@localedir@/p
23611
 
/@mandir@/p
23612
 
' $ac_file_inputs` in
 
14894
/@mandir@/p'
 
14895
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23613
14896
*datarootdir*) ac_datarootdir_seen=yes;;
23614
14897
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23615
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23616
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14898
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14899
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23617
14900
_ACEOF
23618
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14901
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23619
14902
  ac_datarootdir_hack='
23620
14903
  s&@datadir@&$datadir&g
23621
14904
  s&@docdir@&$docdir&g
23622
14905
  s&@infodir@&$infodir&g
23623
14906
  s&@localedir@&$localedir&g
23624
14907
  s&@mandir@&$mandir&g
23625
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
14908
  s&\\\${datarootdir}&$datarootdir&g' ;;
23626
14909
esac
23627
14910
_ACEOF
23628
14911
 
23629
14912
# Neutralize VPATH when `$srcdir' = `.'.
23630
14913
# Shell code in configure.ac might set extrasub.
23631
14914
# FIXME: do we really want to maintain this feature?
23632
 
cat >>$CONFIG_STATUS <<_ACEOF
23633
 
  sed "$ac_vpsub
 
14915
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14916
ac_sed_extra="$ac_vpsub
23634
14917
$extrasub
23635
14918
_ACEOF
23636
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14919
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23637
14920
:t
23638
14921
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23639
 
s&@configure_input@&$configure_input&;t t
 
14922
s|@configure_input@|$ac_sed_conf_input|;t t
23640
14923
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14924
s&@top_build_prefix@&$ac_top_build_prefix&;t t
23641
14925
s&@srcdir@&$ac_srcdir&;t t
23642
14926
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23643
14927
s&@top_srcdir@&$ac_top_srcdir&;t t
23648
14932
s&@INSTALL@&$ac_INSTALL&;t t
23649
14933
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23650
14934
$ac_datarootdir_hack
23651
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
14935
"
 
14936
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14937
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23652
14938
 
23653
14939
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23654
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23655
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23656
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23657
 
which seems to be undefined.  Please make sure it is defined." >&5
23658
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23659
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14940
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14941
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14942
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14943
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14944
which seems to be undefined.  Please make sure it is defined" >&5
 
14945
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14946
which seems to be undefined.  Please make sure it is defined" >&2;}
23660
14947
 
23661
 
  rm -f "$tmp/stdin"
 
14948
  rm -f "$ac_tmp/stdin"
23662
14949
  case $ac_file in
23663
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
23664
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23665
 
  esac
 
14950
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14951
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14952
  esac \
 
14953
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23666
14954
 ;;
23667
14955
  :H)
23668
14956
  #
23669
14957
  # CONFIG_HEADER
23670
14958
  #
23671
 
_ACEOF
23672
 
 
23673
 
# Transform confdefs.h into a sed script `conftest.defines', that
23674
 
# substitutes the proper values into config.h.in to produce config.h.
23675
 
rm -f conftest.defines conftest.tail
23676
 
# First, append a space to every undef/define line, to ease matching.
23677
 
echo 's/$/ /' >conftest.defines
23678
 
# Then, protect against being on the right side of a sed subst, or in
23679
 
# an unquoted here document, in config.status.  If some macros were
23680
 
# called several times there might be several #defines for the same
23681
 
# symbol, which is useless.  But do not sort them, since the last
23682
 
# AC_DEFINE must be honored.
23683
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23684
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23685
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23686
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
23687
 
# just an empty string.
23688
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23689
 
ac_dB='\\)[      (].*,\\1define\\2'
23690
 
ac_dC=' '
23691
 
ac_dD=' ,'
23692
 
 
23693
 
uniq confdefs.h |
23694
 
  sed -n '
23695
 
        t rset
23696
 
        :rset
23697
 
        s/^[     ]*#[    ]*define[       ][      ]*//
23698
 
        t ok
23699
 
        d
23700
 
        :ok
23701
 
        s/[\\&,]/\\&/g
23702
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23703
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23704
 
  ' >>conftest.defines
23705
 
 
23706
 
# Remove the space that was appended to ease matching.
23707
 
# Then replace #undef with comments.  This is necessary, for
23708
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
23709
 
# on some systems where configure will not decide to define it.
23710
 
# (The regexp can be short, since the line contains either #define or #undef.)
23711
 
echo 's/ $//
23712
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
23713
 
 
23714
 
# Break up conftest.defines:
23715
 
ac_max_sed_lines=50
23716
 
 
23717
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23718
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23719
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23720
 
# et cetera.
23721
 
ac_in='$ac_file_inputs'
23722
 
ac_out='"$tmp/out1"'
23723
 
ac_nxt='"$tmp/out2"'
23724
 
 
23725
 
while :
23726
 
do
23727
 
  # Write a here document:
23728
 
    cat >>$CONFIG_STATUS <<_ACEOF
23729
 
    # First, check the format of the line:
23730
 
    cat >"\$tmp/defines.sed" <<\\CEOF
23731
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23732
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23733
 
b
23734
 
:def
23735
 
_ACEOF
23736
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23737
 
  echo 'CEOF
23738
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23739
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23740
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23741
 
  grep . conftest.tail >/dev/null || break
23742
 
  rm -f conftest.defines
23743
 
  mv conftest.tail conftest.defines
23744
 
done
23745
 
rm -f conftest.defines conftest.tail
23746
 
 
23747
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23748
 
cat >>$CONFIG_STATUS <<\_ACEOF
23749
14959
  if test x"$ac_file" != x-; then
23750
 
    echo "/* $configure_input  */" >"$tmp/config.h"
23751
 
    cat "$ac_result" >>"$tmp/config.h"
23752
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23753
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23754
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
14960
    {
 
14961
      $as_echo "/* $configure_input  */" \
 
14962
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
14963
    } >"$ac_tmp/config.h" \
 
14964
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14965
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
14966
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14967
$as_echo "$as_me: $ac_file is unchanged" >&6;}
23755
14968
    else
23756
 
      rm -f $ac_file
23757
 
      mv "$tmp/config.h" $ac_file
 
14969
      rm -f "$ac_file"
 
14970
      mv "$ac_tmp/config.h" "$ac_file" \
 
14971
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23758
14972
    fi
23759
14973
  else
23760
 
    echo "/* $configure_input  */"
23761
 
    cat "$ac_result"
 
14974
    $as_echo "/* $configure_input  */" \
 
14975
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
14976
      || as_fn_error $? "could not create -" "$LINENO" 5
23762
14977
  fi
23763
 
  rm -f "$tmp/out12"
23764
 
# Compute $ac_file's index in $config_headers.
23765
 
_am_arg=$ac_file
 
14978
# Compute "$ac_file"'s index in $config_headers.
 
14979
_am_arg="$ac_file"
23766
14980
_am_stamp_count=1
23767
14981
for _am_header in $config_headers :; do
23768
14982
  case $_am_header in
23777
14991
         X"$_am_arg" : 'X\(//\)[^/]' \| \
23778
14992
         X"$_am_arg" : 'X\(//\)$' \| \
23779
14993
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23780
 
echo X"$_am_arg" |
 
14994
$as_echo X"$_am_arg" |
23781
14995
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23782
14996
            s//\1/
23783
14997
            q
23797
15011
          s/.*/./; q'`/stamp-h$_am_stamp_count
23798
15012
 ;;
23799
15013
 
23800
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23801
 
echo "$as_me: executing $ac_file commands" >&6;}
 
15014
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15015
$as_echo "$as_me: executing $ac_file commands" >&6;}
23802
15016
 ;;
23803
15017
  esac
23804
15018
 
23805
15019
 
23806
15020
  case $ac_file$ac_mode in
23807
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23808
 
  # Strip MF so we end up with the name of the file.
23809
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
23810
 
  # Check whether this is an Automake generated Makefile or not.
23811
 
  # We used to match only the files named `Makefile.in', but
23812
 
  # some people rename them; so instead we look at the file content.
23813
 
  # Grep'ing the first line is not enough: some people post-process
23814
 
  # each Makefile.in and add a new line on top of each file to say so.
23815
 
  # Grep'ing the whole file is not good either: AIX grep has a line
23816
 
  # limit of 2048, but all sed's we know have understand at least 4000.
23817
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23818
 
    dirpart=`$as_dirname -- "$mf" ||
 
15021
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15022
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15023
  # are listed without --file.  Let's play safe and only enable the eval
 
15024
  # if we detect the quoting.
 
15025
  case $CONFIG_FILES in
 
15026
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15027
  *)   set x $CONFIG_FILES ;;
 
15028
  esac
 
15029
  shift
 
15030
  for mf
 
15031
  do
 
15032
    # Strip MF so we end up with the name of the file.
 
15033
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15034
    # Check whether this is an Automake generated Makefile or not.
 
15035
    # We used to match only the files named `Makefile.in', but
 
15036
    # some people rename them; so instead we look at the file content.
 
15037
    # Grep'ing the first line is not enough: some people post-process
 
15038
    # each Makefile.in and add a new line on top of each file to say so.
 
15039
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15040
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15041
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15042
      dirpart=`$as_dirname -- "$mf" ||
23819
15043
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23820
15044
         X"$mf" : 'X\(//\)[^/]' \| \
23821
15045
         X"$mf" : 'X\(//\)$' \| \
23822
15046
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23823
 
echo X"$mf" |
 
15047
$as_echo X"$mf" |
23824
15048
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23825
15049
            s//\1/
23826
15050
            q
23838
15062
            q
23839
15063
          }
23840
15064
          s/.*/./; q'`
23841
 
  else
23842
 
    continue
23843
 
  fi
23844
 
  # Extract the definition of DEPDIR, am__include, and am__quote
23845
 
  # from the Makefile without running `make'.
23846
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23847
 
  test -z "$DEPDIR" && continue
23848
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23849
 
  test -z "am__include" && continue
23850
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23851
 
  # When using ansi2knr, U may be empty or an underscore; expand it
23852
 
  U=`sed -n 's/^U = //p' < "$mf"`
23853
 
  # Find all dependency output files, they are included files with
23854
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23855
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
23856
 
  # expansion.
23857
 
  for file in `sed -n "
23858
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23859
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23860
 
    # Make sure the directory exists.
23861
 
    test -f "$dirpart/$file" && continue
23862
 
    fdir=`$as_dirname -- "$file" ||
 
15065
    else
 
15066
      continue
 
15067
    fi
 
15068
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15069
    # from the Makefile without running `make'.
 
15070
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15071
    test -z "$DEPDIR" && continue
 
15072
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15073
    test -z "am__include" && continue
 
15074
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15075
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15076
    U=`sed -n 's/^U = //p' < "$mf"`
 
15077
    # Find all dependency output files, they are included files with
 
15078
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15079
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15080
    # expansion.
 
15081
    for file in `sed -n "
 
15082
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15083
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15084
      # Make sure the directory exists.
 
15085
      test -f "$dirpart/$file" && continue
 
15086
      fdir=`$as_dirname -- "$file" ||
23863
15087
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23864
15088
         X"$file" : 'X\(//\)[^/]' \| \
23865
15089
         X"$file" : 'X\(//\)$' \| \
23866
15090
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23867
 
echo X"$file" |
23868
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23869
 
            s//\1/
23870
 
            q
23871
 
          }
23872
 
          /^X\(\/\/\)[^/].*/{
23873
 
            s//\1/
23874
 
            q
23875
 
          }
23876
 
          /^X\(\/\/\)$/{
23877
 
            s//\1/
23878
 
            q
23879
 
          }
23880
 
          /^X\(\/\).*/{
23881
 
            s//\1/
23882
 
            q
23883
 
          }
23884
 
          s/.*/./; q'`
23885
 
    { as_dir=$dirpart/$fdir
23886
 
  case $as_dir in #(
23887
 
  -*) as_dir=./$as_dir;;
23888
 
  esac
23889
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23890
 
    as_dirs=
23891
 
    while :; do
23892
 
      case $as_dir in #(
23893
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23894
 
      *) as_qdir=$as_dir;;
23895
 
      esac
23896
 
      as_dirs="'$as_qdir' $as_dirs"
23897
 
      as_dir=`$as_dirname -- "$as_dir" ||
23898
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23899
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23900
 
         X"$as_dir" : 'X\(//\)$' \| \
23901
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23902
 
echo X"$as_dir" |
23903
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23904
 
            s//\1/
23905
 
            q
23906
 
          }
23907
 
          /^X\(\/\/\)[^/].*/{
23908
 
            s//\1/
23909
 
            q
23910
 
          }
23911
 
          /^X\(\/\/\)$/{
23912
 
            s//\1/
23913
 
            q
23914
 
          }
23915
 
          /^X\(\/\).*/{
23916
 
            s//\1/
23917
 
            q
23918
 
          }
23919
 
          s/.*/./; q'`
23920
 
      test -d "$as_dir" && break
 
15091
$as_echo X"$file" |
 
15092
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15093
            s//\1/
 
15094
            q
 
15095
          }
 
15096
          /^X\(\/\/\)[^/].*/{
 
15097
            s//\1/
 
15098
            q
 
15099
          }
 
15100
          /^X\(\/\/\)$/{
 
15101
            s//\1/
 
15102
            q
 
15103
          }
 
15104
          /^X\(\/\).*/{
 
15105
            s//\1/
 
15106
            q
 
15107
          }
 
15108
          s/.*/./; q'`
 
15109
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15110
      # echo "creating $dirpart/$file"
 
15111
      echo '# dummy' > "$dirpart/$file"
23921
15112
    done
23922
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23923
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23924
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23925
 
   { (exit 1); exit 1; }; }; }
23926
 
    # echo "creating $dirpart/$file"
23927
 
    echo '# dummy' > "$dirpart/$file"
23928
15113
  done
23929
 
done
 
15114
}
 
15115
 ;;
 
15116
    "libtool":C)
 
15117
 
 
15118
    # See if we are running on zsh, and set the options which allow our
 
15119
    # commands through without removal of \ escapes.
 
15120
    if test -n "${ZSH_VERSION+set}" ; then
 
15121
      setopt NO_GLOB_SUBST
 
15122
    fi
 
15123
 
 
15124
    cfgfile="${ofile}T"
 
15125
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15126
    $RM "$cfgfile"
 
15127
 
 
15128
    cat <<_LT_EOF >> "$cfgfile"
 
15129
#! $SHELL
 
15130
 
 
15131
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15132
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15133
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15134
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15135
#
 
15136
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15137
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
15138
#                 Foundation, Inc.
 
15139
#   Written by Gordon Matzigkeit, 1996
 
15140
#
 
15141
#   This file is part of GNU Libtool.
 
15142
#
 
15143
# GNU Libtool is free software; you can redistribute it and/or
 
15144
# modify it under the terms of the GNU General Public License as
 
15145
# published by the Free Software Foundation; either version 2 of
 
15146
# the License, or (at your option) any later version.
 
15147
#
 
15148
# As a special exception to the GNU General Public License,
 
15149
# if you distribute this file as part of a program or library that
 
15150
# is built using GNU Libtool, you may include this file under the
 
15151
# same distribution terms that you use for the rest of that program.
 
15152
#
 
15153
# GNU Libtool is distributed in the hope that it will be useful,
 
15154
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15155
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15156
# GNU General Public License for more details.
 
15157
#
 
15158
# You should have received a copy of the GNU General Public License
 
15159
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15160
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15161
# obtained by writing to the Free Software Foundation, Inc.,
 
15162
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15163
 
 
15164
 
 
15165
# The names of the tagged configurations supported by this script.
 
15166
available_tags=""
 
15167
 
 
15168
# ### BEGIN LIBTOOL CONFIG
 
15169
 
 
15170
# Which release of libtool.m4 was used?
 
15171
macro_version=$macro_version
 
15172
macro_revision=$macro_revision
 
15173
 
 
15174
# Whether or not to build shared libraries.
 
15175
build_libtool_libs=$enable_shared
 
15176
 
 
15177
# Whether or not to build static libraries.
 
15178
build_old_libs=$enable_static
 
15179
 
 
15180
# What type of objects to build.
 
15181
pic_mode=$pic_mode
 
15182
 
 
15183
# Whether or not to optimize for fast installation.
 
15184
fast_install=$enable_fast_install
 
15185
 
 
15186
# Shell to use when invoking shell scripts.
 
15187
SHELL=$lt_SHELL
 
15188
 
 
15189
# An echo program that protects backslashes.
 
15190
ECHO=$lt_ECHO
 
15191
 
 
15192
# The PATH separator for the build system.
 
15193
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
15194
 
 
15195
# The host system.
 
15196
host_alias=$host_alias
 
15197
host=$host
 
15198
host_os=$host_os
 
15199
 
 
15200
# The build system.
 
15201
build_alias=$build_alias
 
15202
build=$build
 
15203
build_os=$build_os
 
15204
 
 
15205
# A sed program that does not truncate output.
 
15206
SED=$lt_SED
 
15207
 
 
15208
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15209
Xsed="\$SED -e 1s/^X//"
 
15210
 
 
15211
# A grep program that handles long lines.
 
15212
GREP=$lt_GREP
 
15213
 
 
15214
# An ERE matcher.
 
15215
EGREP=$lt_EGREP
 
15216
 
 
15217
# A literal string matcher.
 
15218
FGREP=$lt_FGREP
 
15219
 
 
15220
# A BSD- or MS-compatible name lister.
 
15221
NM=$lt_NM
 
15222
 
 
15223
# Whether we need soft or hard links.
 
15224
LN_S=$lt_LN_S
 
15225
 
 
15226
# What is the maximum length of a command?
 
15227
max_cmd_len=$max_cmd_len
 
15228
 
 
15229
# Object file suffix (normally "o").
 
15230
objext=$ac_objext
 
15231
 
 
15232
# Executable file suffix (normally "").
 
15233
exeext=$exeext
 
15234
 
 
15235
# whether the shell understands "unset".
 
15236
lt_unset=$lt_unset
 
15237
 
 
15238
# turn spaces into newlines.
 
15239
SP2NL=$lt_lt_SP2NL
 
15240
 
 
15241
# turn newlines into spaces.
 
15242
NL2SP=$lt_lt_NL2SP
 
15243
 
 
15244
# convert \$build file names to \$host format.
 
15245
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
15246
 
 
15247
# convert \$build files to toolchain format.
 
15248
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
15249
 
 
15250
# An object symbol dumper.
 
15251
OBJDUMP=$lt_OBJDUMP
 
15252
 
 
15253
# Method to check whether dependent libraries are shared objects.
 
15254
deplibs_check_method=$lt_deplibs_check_method
 
15255
 
 
15256
# Command to use when deplibs_check_method = "file_magic".
 
15257
file_magic_cmd=$lt_file_magic_cmd
 
15258
 
 
15259
# How to find potential files when deplibs_check_method = "file_magic".
 
15260
file_magic_glob=$lt_file_magic_glob
 
15261
 
 
15262
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
15263
want_nocaseglob=$lt_want_nocaseglob
 
15264
 
 
15265
# DLL creation program.
 
15266
DLLTOOL=$lt_DLLTOOL
 
15267
 
 
15268
# Command to associate shared and link libraries.
 
15269
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
15270
 
 
15271
# The archiver.
 
15272
AR=$lt_AR
 
15273
 
 
15274
# Flags to create an archive.
 
15275
AR_FLAGS=$lt_AR_FLAGS
 
15276
 
 
15277
# How to feed a file listing to the archiver.
 
15278
archiver_list_spec=$lt_archiver_list_spec
 
15279
 
 
15280
# A symbol stripping program.
 
15281
STRIP=$lt_STRIP
 
15282
 
 
15283
# Commands used to install an old-style archive.
 
15284
RANLIB=$lt_RANLIB
 
15285
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15286
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15287
 
 
15288
# Whether to use a lock for old archive extraction.
 
15289
lock_old_archive_extraction=$lock_old_archive_extraction
 
15290
 
 
15291
# A C compiler.
 
15292
LTCC=$lt_CC
 
15293
 
 
15294
# LTCC compiler flags.
 
15295
LTCFLAGS=$lt_CFLAGS
 
15296
 
 
15297
# Take the output of nm and produce a listing of raw symbols and C names.
 
15298
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15299
 
 
15300
# Transform the output of nm in a proper C declaration.
 
15301
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15302
 
 
15303
# Transform the output of nm in a C name address pair.
 
15304
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15305
 
 
15306
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15307
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15308
 
 
15309
# Specify filename containing input files for \$NM.
 
15310
nm_file_list_spec=$lt_nm_file_list_spec
 
15311
 
 
15312
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
15313
lt_sysroot=$lt_sysroot
 
15314
 
 
15315
# The name of the directory that contains temporary libtool files.
 
15316
objdir=$objdir
 
15317
 
 
15318
# Used to examine libraries when file_magic_cmd begins with "file".
 
15319
MAGIC_CMD=$MAGIC_CMD
 
15320
 
 
15321
# Must we lock files when doing compilation?
 
15322
need_locks=$lt_need_locks
 
15323
 
 
15324
# Manifest tool.
 
15325
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
15326
 
 
15327
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15328
DSYMUTIL=$lt_DSYMUTIL
 
15329
 
 
15330
# Tool to change global to local symbols on Mac OS X.
 
15331
NMEDIT=$lt_NMEDIT
 
15332
 
 
15333
# Tool to manipulate fat objects and archives on Mac OS X.
 
15334
LIPO=$lt_LIPO
 
15335
 
 
15336
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15337
OTOOL=$lt_OTOOL
 
15338
 
 
15339
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15340
OTOOL64=$lt_OTOOL64
 
15341
 
 
15342
# Old archive suffix (normally "a").
 
15343
libext=$libext
 
15344
 
 
15345
# Shared library suffix (normally ".so").
 
15346
shrext_cmds=$lt_shrext_cmds
 
15347
 
 
15348
# The commands to extract the exported symbol list from a shared archive.
 
15349
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15350
 
 
15351
# Variables whose values should be saved in libtool wrapper scripts and
 
15352
# restored at link time.
 
15353
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15354
 
 
15355
# Do we need the "lib" prefix for modules?
 
15356
need_lib_prefix=$need_lib_prefix
 
15357
 
 
15358
# Do we need a version for libraries?
 
15359
need_version=$need_version
 
15360
 
 
15361
# Library versioning type.
 
15362
version_type=$version_type
 
15363
 
 
15364
# Shared library runtime path variable.
 
15365
runpath_var=$runpath_var
 
15366
 
 
15367
# Shared library path variable.
 
15368
shlibpath_var=$shlibpath_var
 
15369
 
 
15370
# Is shlibpath searched before the hard-coded library search path?
 
15371
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15372
 
 
15373
# Format of library name prefix.
 
15374
libname_spec=$lt_libname_spec
 
15375
 
 
15376
# List of archive names.  First name is the real one, the rest are links.
 
15377
# The last name is the one that the linker finds with -lNAME
 
15378
library_names_spec=$lt_library_names_spec
 
15379
 
 
15380
# The coded name of the library, if different from the real name.
 
15381
soname_spec=$lt_soname_spec
 
15382
 
 
15383
# Permission mode override for installation of shared libraries.
 
15384
install_override_mode=$lt_install_override_mode
 
15385
 
 
15386
# Command to use after installation of a shared archive.
 
15387
postinstall_cmds=$lt_postinstall_cmds
 
15388
 
 
15389
# Command to use after uninstallation of a shared archive.
 
15390
postuninstall_cmds=$lt_postuninstall_cmds
 
15391
 
 
15392
# Commands used to finish a libtool library installation in a directory.
 
15393
finish_cmds=$lt_finish_cmds
 
15394
 
 
15395
# As "finish_cmds", except a single script fragment to be evaled but
 
15396
# not shown.
 
15397
finish_eval=$lt_finish_eval
 
15398
 
 
15399
# Whether we should hardcode library paths into libraries.
 
15400
hardcode_into_libs=$hardcode_into_libs
 
15401
 
 
15402
# Compile-time system search path for libraries.
 
15403
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15404
 
 
15405
# Run-time system search path for libraries.
 
15406
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15407
 
 
15408
# Whether dlopen is supported.
 
15409
dlopen_support=$enable_dlopen
 
15410
 
 
15411
# Whether dlopen of programs is supported.
 
15412
dlopen_self=$enable_dlopen_self
 
15413
 
 
15414
# Whether dlopen of statically linked programs is supported.
 
15415
dlopen_self_static=$enable_dlopen_self_static
 
15416
 
 
15417
# Commands to strip libraries.
 
15418
old_striplib=$lt_old_striplib
 
15419
striplib=$lt_striplib
 
15420
 
 
15421
 
 
15422
# The linker used to build libraries.
 
15423
LD=$lt_LD
 
15424
 
 
15425
# How to create reloadable object files.
 
15426
reload_flag=$lt_reload_flag
 
15427
reload_cmds=$lt_reload_cmds
 
15428
 
 
15429
# Commands used to build an old-style archive.
 
15430
old_archive_cmds=$lt_old_archive_cmds
 
15431
 
 
15432
# A language specific compiler.
 
15433
CC=$lt_compiler
 
15434
 
 
15435
# Is the compiler the GNU compiler?
 
15436
with_gcc=$GCC
 
15437
 
 
15438
# Compiler flag to turn off builtin functions.
 
15439
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15440
 
 
15441
# Additional compiler flags for building library objects.
 
15442
pic_flag=$lt_lt_prog_compiler_pic
 
15443
 
 
15444
# How to pass a linker flag through the compiler.
 
15445
wl=$lt_lt_prog_compiler_wl
 
15446
 
 
15447
# Compiler flag to prevent dynamic linking.
 
15448
link_static_flag=$lt_lt_prog_compiler_static
 
15449
 
 
15450
# Does compiler simultaneously support -c and -o options?
 
15451
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15452
 
 
15453
# Whether or not to add -lc for building shared libraries.
 
15454
build_libtool_need_lc=$archive_cmds_need_lc
 
15455
 
 
15456
# Whether or not to disallow shared libs when runtime libs are static.
 
15457
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15458
 
 
15459
# Compiler flag to allow reflexive dlopens.
 
15460
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15461
 
 
15462
# Compiler flag to generate shared objects directly from archives.
 
15463
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15464
 
 
15465
# Whether the compiler copes with passing no objects directly.
 
15466
compiler_needs_object=$lt_compiler_needs_object
 
15467
 
 
15468
# Create an old-style archive from a shared archive.
 
15469
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15470
 
 
15471
# Create a temporary old-style archive to link instead of a shared archive.
 
15472
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15473
 
 
15474
# Commands used to build a shared archive.
 
15475
archive_cmds=$lt_archive_cmds
 
15476
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15477
 
 
15478
# Commands used to build a loadable module if different from building
 
15479
# a shared archive.
 
15480
module_cmds=$lt_module_cmds
 
15481
module_expsym_cmds=$lt_module_expsym_cmds
 
15482
 
 
15483
# Whether we are building with GNU ld or not.
 
15484
with_gnu_ld=$lt_with_gnu_ld
 
15485
 
 
15486
# Flag that allows shared libraries with undefined symbols to be built.
 
15487
allow_undefined_flag=$lt_allow_undefined_flag
 
15488
 
 
15489
# Flag that enforces no undefined symbols.
 
15490
no_undefined_flag=$lt_no_undefined_flag
 
15491
 
 
15492
# Flag to hardcode \$libdir into a binary during linking.
 
15493
# This must work even if \$libdir does not exist
 
15494
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15495
 
 
15496
# Whether we need a single "-rpath" flag with a separated argument.
 
15497
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15498
 
 
15499
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15500
# DIR into the resulting binary.
 
15501
hardcode_direct=$hardcode_direct
 
15502
 
 
15503
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15504
# DIR into the resulting binary and the resulting library dependency is
 
15505
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15506
# library is relocated.
 
15507
hardcode_direct_absolute=$hardcode_direct_absolute
 
15508
 
 
15509
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15510
# into the resulting binary.
 
15511
hardcode_minus_L=$hardcode_minus_L
 
15512
 
 
15513
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15514
# into the resulting binary.
 
15515
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15516
 
 
15517
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15518
# into the library and all subsequent libraries and executables linked
 
15519
# against it.
 
15520
hardcode_automatic=$hardcode_automatic
 
15521
 
 
15522
# Set to yes if linker adds runtime paths of dependent libraries
 
15523
# to runtime path list.
 
15524
inherit_rpath=$inherit_rpath
 
15525
 
 
15526
# Whether libtool must link a program against all its dependency libraries.
 
15527
link_all_deplibs=$link_all_deplibs
 
15528
 
 
15529
# Set to "yes" if exported symbols are required.
 
15530
always_export_symbols=$always_export_symbols
 
15531
 
 
15532
# The commands to list exported symbols.
 
15533
export_symbols_cmds=$lt_export_symbols_cmds
 
15534
 
 
15535
# Symbols that should not be listed in the preloaded symbols.
 
15536
exclude_expsyms=$lt_exclude_expsyms
 
15537
 
 
15538
# Symbols that must always be exported.
 
15539
include_expsyms=$lt_include_expsyms
 
15540
 
 
15541
# Commands necessary for linking programs (against libraries) with templates.
 
15542
prelink_cmds=$lt_prelink_cmds
 
15543
 
 
15544
# Commands necessary for finishing linking programs.
 
15545
postlink_cmds=$lt_postlink_cmds
 
15546
 
 
15547
# Specify filename containing input files.
 
15548
file_list_spec=$lt_file_list_spec
 
15549
 
 
15550
# How to hardcode a shared library path into an executable.
 
15551
hardcode_action=$hardcode_action
 
15552
 
 
15553
# ### END LIBTOOL CONFIG
 
15554
 
 
15555
_LT_EOF
 
15556
 
 
15557
  case $host_os in
 
15558
  aix3*)
 
15559
    cat <<\_LT_EOF >> "$cfgfile"
 
15560
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15561
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15562
# vanish in a puff of smoke.
 
15563
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15564
  COLLECT_NAMES=
 
15565
  export COLLECT_NAMES
 
15566
fi
 
15567
_LT_EOF
 
15568
    ;;
 
15569
  esac
 
15570
 
 
15571
 
 
15572
ltmain="$ac_aux_dir/ltmain.sh"
 
15573
 
 
15574
 
 
15575
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15576
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15577
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15578
  # is reportedly fixed, but why not run on old versions too?
 
15579
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15580
     || (rm -f "$cfgfile"; exit 1)
 
15581
 
 
15582
  if test x"$xsi_shell" = xyes; then
 
15583
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15584
func_dirname ()\
 
15585
{\
 
15586
\    case ${1} in\
 
15587
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15588
\      *  ) func_dirname_result="${3}" ;;\
 
15589
\    esac\
 
15590
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15591
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15592
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15593
test 0 -eq $? || _lt_function_replace_fail=:
 
15594
 
 
15595
 
 
15596
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15597
func_basename ()\
 
15598
{\
 
15599
\    func_basename_result="${1##*/}"\
 
15600
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15601
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15602
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15603
test 0 -eq $? || _lt_function_replace_fail=:
 
15604
 
 
15605
 
 
15606
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15607
func_dirname_and_basename ()\
 
15608
{\
 
15609
\    case ${1} in\
 
15610
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15611
\      *  ) func_dirname_result="${3}" ;;\
 
15612
\    esac\
 
15613
\    func_basename_result="${1##*/}"\
 
15614
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15615
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15616
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15617
test 0 -eq $? || _lt_function_replace_fail=:
 
15618
 
 
15619
 
 
15620
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15621
func_stripname ()\
 
15622
{\
 
15623
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15624
\    # positional parameters, so assign one to ordinary parameter first.\
 
15625
\    func_stripname_result=${3}\
 
15626
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15627
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15628
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15629
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15630
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15631
test 0 -eq $? || _lt_function_replace_fail=:
 
15632
 
 
15633
 
 
15634
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15635
func_split_long_opt ()\
 
15636
{\
 
15637
\    func_split_long_opt_name=${1%%=*}\
 
15638
\    func_split_long_opt_arg=${1#*=}\
 
15639
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15640
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15641
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15642
test 0 -eq $? || _lt_function_replace_fail=:
 
15643
 
 
15644
 
 
15645
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15646
func_split_short_opt ()\
 
15647
{\
 
15648
\    func_split_short_opt_arg=${1#??}\
 
15649
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15650
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15651
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15652
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15653
test 0 -eq $? || _lt_function_replace_fail=:
 
15654
 
 
15655
 
 
15656
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15657
func_lo2o ()\
 
15658
{\
 
15659
\    case ${1} in\
 
15660
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15661
\      *)    func_lo2o_result=${1} ;;\
 
15662
\    esac\
 
15663
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15664
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15665
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15666
test 0 -eq $? || _lt_function_replace_fail=:
 
15667
 
 
15668
 
 
15669
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15670
func_xform ()\
 
15671
{\
 
15672
    func_xform_result=${1%.*}.lo\
 
15673
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15674
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15675
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15676
test 0 -eq $? || _lt_function_replace_fail=:
 
15677
 
 
15678
 
 
15679
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15680
func_arith ()\
 
15681
{\
 
15682
    func_arith_result=$(( $* ))\
 
15683
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15684
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15685
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15686
test 0 -eq $? || _lt_function_replace_fail=:
 
15687
 
 
15688
 
 
15689
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15690
func_len ()\
 
15691
{\
 
15692
    func_len_result=${#1}\
 
15693
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15694
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15695
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15696
test 0 -eq $? || _lt_function_replace_fail=:
 
15697
 
 
15698
fi
 
15699
 
 
15700
if test x"$lt_shell_append" = xyes; then
 
15701
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15702
func_append ()\
 
15703
{\
 
15704
    eval "${1}+=\\${2}"\
 
15705
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15706
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15707
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15708
test 0 -eq $? || _lt_function_replace_fail=:
 
15709
 
 
15710
 
 
15711
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15712
func_append_quoted ()\
 
15713
{\
 
15714
\    func_quote_for_eval "${2}"\
 
15715
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15716
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15717
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15718
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15719
test 0 -eq $? || _lt_function_replace_fail=:
 
15720
 
 
15721
 
 
15722
  # Save a `func_append' function call where possible by direct use of '+='
 
15723
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15724
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15725
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15726
  test 0 -eq $? || _lt_function_replace_fail=:
 
15727
else
 
15728
  # Save a `func_append' function call even when '+=' is not available
 
15729
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15730
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15731
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15732
  test 0 -eq $? || _lt_function_replace_fail=:
 
15733
fi
 
15734
 
 
15735
if test x"$_lt_function_replace_fail" = x":"; then
 
15736
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15737
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15738
fi
 
15739
 
 
15740
 
 
15741
   mv -f "$cfgfile" "$ofile" ||
 
15742
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15743
  chmod +x "$ofile"
 
15744
 
23930
15745
 ;;
23931
15746
 
23932
15747
  esac
23933
15748
done # for ac_tag
23934
15749
 
23935
15750
 
23936
 
{ (exit 0); exit 0; }
 
15751
as_fn_exit 0
23937
15752
_ACEOF
23938
 
chmod +x $CONFIG_STATUS
23939
15753
ac_clean_files=$ac_clean_files_save
23940
15754
 
 
15755
test $ac_write_fail = 0 ||
 
15756
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15757
 
23941
15758
 
23942
15759
# configure is writing to config.log, and then calls config.status.
23943
15760
# config.status does its own redirection, appending to config.log.
23957
15774
  exec 5>>config.log
23958
15775
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23959
15776
  # would make configure fail if this is the last instruction.
23960
 
  $ac_cs_success || { (exit 1); exit 1; }
 
15777
  $ac_cs_success || as_fn_exit 1
 
15778
fi
 
15779
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15780
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15781
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23961
15782
fi
23962
15783
 
23963
15784