~ubuntu-branches/ubuntu/karmic/m17n-lib/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Harshula Jayasuriya
  • Date: 2008-04-04 23:15:32 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404231532-pys1hr3eq0qv0fcx
Tags: 1.3.4-2
libm17n-dev Depends on libxml2-dev and libthai-dev. (Closes: #473957)

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.59 for m17n-lib 1.3.1.
 
3
# Generated by GNU Autoconf 2.60a for m17n-lib 1.3.4.
4
4
#
5
5
# Report bugs to <m17n-lib-bug@m17n.org>.
6
6
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8
9
# This configure script is free software; the Free Software Foundation
9
10
# gives unlimited permission to copy, distribute and modify it.
10
11
## --------------------- ##
18
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
20
  # is contrary to our usage.  Disable this feature.
20
21
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
 
22
  setopt NO_GLOB_SUBST
 
23
else
 
24
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23
25
fi
 
26
BIN_SH=xpg4; export BIN_SH # for Tru64
24
27
DUALCASE=1; export DUALCASE # for MKS sh
25
28
 
 
29
 
 
30
# PATH needs CR
 
31
# Avoid depending upon Character Ranges.
 
32
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
33
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
34
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
35
as_cr_digits='0123456789'
 
36
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
37
 
 
38
# The user is always right.
 
39
if test "${PATH_SEPARATOR+set}" != set; then
 
40
  echo "#! /bin/sh" >conf$$.sh
 
41
  echo  "exit 0"   >>conf$$.sh
 
42
  chmod +x conf$$.sh
 
43
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
44
    PATH_SEPARATOR=';'
 
45
  else
 
46
    PATH_SEPARATOR=:
 
47
  fi
 
48
  rm -f conf$$.sh
 
49
fi
 
50
 
26
51
# Support unset when possible.
27
52
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
53
  as_unset=unset
31
56
fi
32
57
 
33
58
 
 
59
# IFS
 
60
# We need space, tab and new line, in precisely that order.  Quoting is
 
61
# there to prevent editors from complaining about space-tab.
 
62
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
63
# splitting by setting IFS to empty value.)
 
64
as_nl='
 
65
'
 
66
IFS=" ""        $as_nl"
 
67
 
 
68
# Find who we are.  Look in the path if we contain no directory separator.
 
69
case $0 in
 
70
  *[\\/]* ) as_myself=$0 ;;
 
71
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
72
for as_dir in $PATH
 
73
do
 
74
  IFS=$as_save_IFS
 
75
  test -z "$as_dir" && as_dir=.
 
76
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
77
done
 
78
IFS=$as_save_IFS
 
79
 
 
80
     ;;
 
81
esac
 
82
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
83
# in which case we are not to be found in the path.
 
84
if test "x$as_myself" = x; then
 
85
  as_myself=$0
 
86
fi
 
87
if test ! -f "$as_myself"; then
 
88
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
89
  { (exit 1); exit 1; }
 
90
fi
 
91
 
34
92
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
93
for as_var in ENV MAIL MAILPATH
 
94
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
95
done
36
96
PS1='$ '
37
97
PS2='> '
38
98
PS4='+ '
46
106
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
107
    eval $as_var=C; export $as_var
48
108
  else
49
 
    $as_unset $as_var
 
109
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50
110
  fi
51
111
done
52
112
 
53
113
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
114
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
115
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55
116
  as_expr=expr
56
117
else
57
118
  as_expr=false
58
119
fi
59
120
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
121
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61
122
  as_basename=basename
62
123
else
63
124
  as_basename=false
65
126
 
66
127
 
67
128
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
 
129
as_me=`$as_basename -- "$0" ||
69
130
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
131
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
 
132
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
73
133
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
 
134
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
135
            s//\1/
 
136
            q
 
137
          }
 
138
          /^X\/\(\/\/\)$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\).*/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          s/.*/./; q'`
 
147
 
 
148
# CDPATH.
 
149
$as_unset CDPATH
 
150
 
 
151
 
 
152
if test "x$CONFIG_SHELL" = x; then
 
153
  if (eval ":") 2>/dev/null; then
 
154
  as_have_required=yes
 
155
else
 
156
  as_have_required=no
 
157
fi
 
158
 
 
159
  if test $as_have_required = yes &&     (eval ":
 
160
(as_func_return () {
 
161
  (exit \$1)
 
162
}
 
163
as_func_success () {
 
164
  as_func_return 0
 
165
}
 
166
as_func_failure () {
 
167
  as_func_return 1
 
168
}
 
169
as_func_ret_success () {
 
170
  return 0
 
171
}
 
172
as_func_ret_failure () {
 
173
  return 1
 
174
}
 
175
 
 
176
exitcode=0
 
177
if as_func_success; then
 
178
  :
 
179
else
 
180
  exitcode=1
 
181
  echo as_func_success failed.
 
182
fi
 
183
 
 
184
if as_func_failure; then
 
185
  exitcode=1
 
186
  echo as_func_failure succeeded.
 
187
fi
 
188
 
 
189
if as_func_ret_success; then
 
190
  :
 
191
else
 
192
  exitcode=1
 
193
  echo as_func_ret_success failed.
 
194
fi
 
195
 
 
196
if as_func_ret_failure; then
 
197
  exitcode=1
 
198
  echo as_func_ret_failure succeeded.
 
199
fi
 
200
 
 
201
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
202
  :
 
203
else
 
204
  exitcode=1
 
205
  echo positional parameters were not saved.
 
206
fi
 
207
 
 
208
test \$exitcode = 0) || { (exit 1); exit 1; }
 
209
 
 
210
(
 
211
  as_lineno_1=\$LINENO
 
212
  as_lineno_2=\$LINENO
 
213
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
214
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
215
") 2> /dev/null; then
 
216
  :
 
217
else
 
218
  as_candidate_shells=
132
219
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
220
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
221
do
135
222
  IFS=$as_save_IFS
136
223
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
 
224
  case $as_dir in
139
225
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
 
226
           for as_base in sh bash ksh sh5; do
 
227
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
228
           done;;
 
229
       esac
154
230
done
155
 
;;
156
 
  esac
 
231
IFS=$as_save_IFS
 
232
 
 
233
 
 
234
      for as_shell in $as_candidate_shells $SHELL; do
 
235
         # Try only shells that exist, to save several forks.
 
236
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
237
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
238
# Be Bourne compatible
 
239
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
240
  emulate sh
 
241
  NULLCMD=:
 
242
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
243
  # is contrary to our usage.  Disable this feature.
 
244
  alias -g '${1+"$@"}'='"$@"'
 
245
  setopt NO_GLOB_SUBST
 
246
else
 
247
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
248
fi
 
249
BIN_SH=xpg4; export BIN_SH # for Tru64
 
250
DUALCASE=1; export DUALCASE # for MKS sh
 
251
 
 
252
:
 
253
_ASEOF
 
254
}; then
 
255
  CONFIG_SHELL=$as_shell
 
256
               as_have_required=yes
 
257
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
258
# Be Bourne compatible
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
268
fi
 
269
BIN_SH=xpg4; export BIN_SH # for Tru64
 
270
DUALCASE=1; export DUALCASE # for MKS sh
 
271
 
 
272
:
 
273
(as_func_return () {
 
274
  (exit $1)
 
275
}
 
276
as_func_success () {
 
277
  as_func_return 0
 
278
}
 
279
as_func_failure () {
 
280
  as_func_return 1
 
281
}
 
282
as_func_ret_success () {
 
283
  return 0
 
284
}
 
285
as_func_ret_failure () {
 
286
  return 1
 
287
}
 
288
 
 
289
exitcode=0
 
290
if as_func_success; then
 
291
  :
 
292
else
 
293
  exitcode=1
 
294
  echo as_func_success failed.
 
295
fi
 
296
 
 
297
if as_func_failure; then
 
298
  exitcode=1
 
299
  echo as_func_failure succeeded.
 
300
fi
 
301
 
 
302
if as_func_ret_success; then
 
303
  :
 
304
else
 
305
  exitcode=1
 
306
  echo as_func_ret_success failed.
 
307
fi
 
308
 
 
309
if as_func_ret_failure; then
 
310
  exitcode=1
 
311
  echo as_func_ret_failure succeeded.
 
312
fi
 
313
 
 
314
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
315
  :
 
316
else
 
317
  exitcode=1
 
318
  echo positional parameters were not saved.
 
319
fi
 
320
 
 
321
test $exitcode = 0) || { (exit 1); exit 1; }
 
322
 
 
323
(
 
324
  as_lineno_1=$LINENO
 
325
  as_lineno_2=$LINENO
 
326
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
327
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
328
 
 
329
_ASEOF
 
330
}; then
 
331
  break
 
332
fi
 
333
 
 
334
fi
 
335
 
 
336
      done
 
337
 
 
338
      if test "x$CONFIG_SHELL" != x; then
 
339
  for as_var in BASH_ENV ENV
 
340
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
341
        done
 
342
        export CONFIG_SHELL
 
343
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
344
fi
 
345
 
 
346
 
 
347
    if test $as_have_required = no; then
 
348
  echo This script requires a shell more modern than all the
 
349
      echo shells that I found on your system.  Please install a
 
350
      echo modern shell, or manually run the script under such a
 
351
      echo shell if you do have one.
 
352
      { (exit 1); exit 1; }
 
353
fi
 
354
 
 
355
 
 
356
fi
 
357
 
 
358
fi
 
359
 
 
360
 
 
361
 
 
362
(eval "as_func_return () {
 
363
  (exit \$1)
 
364
}
 
365
as_func_success () {
 
366
  as_func_return 0
 
367
}
 
368
as_func_failure () {
 
369
  as_func_return 1
 
370
}
 
371
as_func_ret_success () {
 
372
  return 0
 
373
}
 
374
as_func_ret_failure () {
 
375
  return 1
 
376
}
 
377
 
 
378
exitcode=0
 
379
if as_func_success; then
 
380
  :
 
381
else
 
382
  exitcode=1
 
383
  echo as_func_success failed.
 
384
fi
 
385
 
 
386
if as_func_failure; then
 
387
  exitcode=1
 
388
  echo as_func_failure succeeded.
 
389
fi
 
390
 
 
391
if as_func_ret_success; then
 
392
  :
 
393
else
 
394
  exitcode=1
 
395
  echo as_func_ret_success failed.
 
396
fi
 
397
 
 
398
if as_func_ret_failure; then
 
399
  exitcode=1
 
400
  echo as_func_ret_failure succeeded.
 
401
fi
 
402
 
 
403
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
404
  :
 
405
else
 
406
  exitcode=1
 
407
  echo positional parameters were not saved.
 
408
fi
 
409
 
 
410
test \$exitcode = 0") || {
 
411
  echo No shell found that supports shell functions.
 
412
  echo Please tell autoconf@gnu.org about your system,
 
413
  echo including any error possibly output before this
 
414
  echo message
 
415
}
 
416
 
 
417
 
 
418
 
 
419
  as_lineno_1=$LINENO
 
420
  as_lineno_2=$LINENO
 
421
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
422
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157
423
 
158
424
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
425
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
 
426
  # line-number line after each line using $LINENO; the second 'sed'
 
427
  # does the real work.  The second script uses 'N' to pair each
 
428
  # line-number line with the line containing $LINENO, and appends
 
429
  # trailing '-' during substitution so that $LINENO is not a special
 
430
  # case at line end.
164
431
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
 
432
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
433
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
434
  sed -n '
 
435
    p
 
436
    /[$]LINENO/=
 
437
  ' <$as_myself |
167
438
    sed '
 
439
      s/[$]LINENO.*/&-/
 
440
      t lineno
 
441
      b
 
442
      :lineno
168
443
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
444
      :loop
 
445
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
446
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
 
447
      s/-\n.*//
175
448
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
 
449
  chmod +x "$as_me.lineno" ||
177
450
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
451
   { (exit 1); exit 1; }; }
179
452
 
180
453
  # Don't try to exec as it changes $[0], causing all sort of problems
181
454
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
 
455
  # original and so on.  Autoconf is especially sensitive to this).
 
456
  . "./$as_me.lineno"
184
457
  # Exit status is that of the last command.
185
458
  exit
186
459
}
187
460
 
188
461
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
462
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
463
  as_dirname=dirname
 
464
else
 
465
  as_dirname=false
 
466
fi
 
467
 
 
468
ECHO_C= ECHO_N= ECHO_T=
 
469
case `echo -n x` in
 
470
-n*)
 
471
  case `echo 'x\c'` in
 
472
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
473
  *)   ECHO_C='\c';;
 
474
  esac;;
 
475
*)
 
476
  ECHO_N='-n';;
194
477
esac
195
478
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
479
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
480
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
197
481
  as_expr=expr
198
482
else
199
483
  as_expr=false
200
484
fi
201
485
 
202
486
rm -f conf$$ conf$$.exe conf$$.file
 
487
if test -d conf$$.dir; then
 
488
  rm -f conf$$.dir/conf$$.file
 
489
else
 
490
  rm -f conf$$.dir
 
491
  mkdir conf$$.dir
 
492
fi
203
493
echo >conf$$.file
204
494
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
 
495
  as_ln_s='ln -s'
 
496
  # ... but there are two gotchas:
 
497
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
498
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
499
  # In both cases, we have to default to `cp -p'.
 
500
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209
501
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
502
elif ln conf$$.file conf$$ 2>/dev/null; then
214
503
  as_ln_s=ln
215
504
else
216
505
  as_ln_s='cp -p'
217
506
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
 
507
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
508
rmdir conf$$.dir 2>/dev/null
219
509
 
220
510
if mkdir -p . 2>/dev/null; then
221
511
  as_mkdir_p=:
224
514
  as_mkdir_p=false
225
515
fi
226
516
 
227
 
as_executable_p="test -f"
 
517
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
518
# systems may use methods other than mode bits to determine executability.
 
519
cat >conf$$.file <<_ASEOF
 
520
#! /bin/sh
 
521
exit 0
 
522
_ASEOF
 
523
chmod +x conf$$.file
 
524
if test -x conf$$.file >/dev/null 2>&1; then
 
525
  as_executable_p="test -x"
 
526
else
 
527
  as_executable_p=:
 
528
fi
 
529
rm -f conf$$.file
228
530
 
229
531
# Sed expression to map a string onto a valid CPP name.
230
532
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
535
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
536
 
235
537
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
245
538
 
246
539
 
247
540
# Check that we are running under the correct shell.
280
573
 
281
574
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
575
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
576
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
577
 
285
578
if test -z "$ECHO"; then
286
579
if test "X${echo_test_string+set}" != Xset; then
287
580
# find a string as large as possible, as long as the shell can cope with it
288
581
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
582
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
583
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
584
       echo_test_string=`eval $cmd` &&
292
585
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
586
    then
294
587
      break
397
690
 
398
691
tagnames=${tagnames+${tagnames},}F77
399
692
 
 
693
exec 7<&0 </dev/null 6>&1
 
694
 
400
695
# Name of the host.
401
696
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
697
# so uname gets run too.
403
698
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
699
 
405
 
exec 6>&1
406
 
 
407
700
#
408
701
# Initializations.
409
702
#
410
703
ac_default_prefix=/usr/local
 
704
ac_clean_files=
411
705
ac_config_libobj_dir=.
 
706
LIBOBJS=
412
707
cross_compiling=no
413
708
subdirs=
414
709
MFLAGS=
415
710
MAKEFLAGS=
416
711
SHELL=${CONFIG_SHELL-/bin/sh}
417
712
 
418
 
# Maximum number of lines to put in a shell here document.
419
 
# This variable seems obsolete.  It should probably be removed, and
420
 
# only ac_max_sed_lines should be used.
421
 
: ${ac_max_here_lines=38}
422
 
 
423
713
# Identity of this package.
424
714
PACKAGE_NAME='m17n-lib'
425
715
PACKAGE_TARNAME='m17n-lib'
426
 
PACKAGE_VERSION='1.3.1'
427
 
PACKAGE_STRING='m17n-lib 1.3.1'
 
716
PACKAGE_VERSION='1.3.4'
 
717
PACKAGE_STRING='m17n-lib 1.3.4'
428
718
PACKAGE_BUGREPORT='m17n-lib-bug@m17n.org'
429
719
 
430
720
# Factoring default headers for most tests.
431
721
ac_includes_default="\
432
722
#include <stdio.h>
433
 
#if HAVE_SYS_TYPES_H
 
723
#ifdef HAVE_SYS_TYPES_H
434
724
# include <sys/types.h>
435
725
#endif
436
 
#if HAVE_SYS_STAT_H
 
726
#ifdef HAVE_SYS_STAT_H
437
727
# include <sys/stat.h>
438
728
#endif
439
 
#if STDC_HEADERS
 
729
#ifdef STDC_HEADERS
440
730
# include <stdlib.h>
441
731
# include <stddef.h>
442
732
#else
443
 
# if HAVE_STDLIB_H
 
733
# ifdef HAVE_STDLIB_H
444
734
#  include <stdlib.h>
445
735
# endif
446
736
#endif
447
 
#if HAVE_STRING_H
448
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
737
#ifdef HAVE_STRING_H
 
738
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
449
739
#  include <memory.h>
450
740
# endif
451
741
# include <string.h>
452
742
#endif
453
 
#if HAVE_STRINGS_H
 
743
#ifdef HAVE_STRINGS_H
454
744
# include <strings.h>
455
745
#endif
456
 
#if HAVE_INTTYPES_H
 
746
#ifdef HAVE_INTTYPES_H
457
747
# include <inttypes.h>
458
 
#else
459
 
# if HAVE_STDINT_H
460
 
#  include <stdint.h>
461
 
# endif
462
 
#endif
463
 
#if HAVE_UNISTD_H
 
748
#endif
 
749
#ifdef HAVE_STDINT_H
 
750
# include <stdint.h>
 
751
#endif
 
752
#ifdef HAVE_UNISTD_H
464
753
# include <unistd.h>
465
754
#endif"
466
755
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT API_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ALLOCA LIBOBJS POW_LIB HAVE_M17N_DB M17NDIR WITH_GUI_TRUE WITH_GUI_FALSE X11_LD_FLAGS XAW_LD_FLAGS HAVE_FRIBIDI_CONFIG FRIBIDI_LD_FLAGS HAVE_OTFLIB_CONFIG OTF_LD_FLAGS HAVE_FREETYPE_CONFIG FREETYPE_LD_FLAGS HAVE_PKG_CONFIG HAVE_XFT_CONFIG XFT2_LD_FLAGS FONTCONFIG_LD_FLAGS GD_LD_FLAGS HAVE_XML2_CONFIG XML2_LD_FLAGS ANTHY_LD_FLAGS HAVE_ISPELL PKG_CONFIG ac_pt_PKG_CONFIG LIBTHAI_CFLAGS LIBTHAI_LIBS WORDCUT_CFLAGS WORDCUT_LIBS GLIB_2_0_CFLAGS GLIB_2_0_LIBS THAI_WORDSEG_LD_FLAGS CONFIG_FLAGS LTLIBOBJS'
 
756
ac_subst_vars='SHELL
 
757
PATH_SEPARATOR
 
758
PACKAGE_NAME
 
759
PACKAGE_TARNAME
 
760
PACKAGE_VERSION
 
761
PACKAGE_STRING
 
762
PACKAGE_BUGREPORT
 
763
exec_prefix
 
764
prefix
 
765
program_transform_name
 
766
bindir
 
767
sbindir
 
768
libexecdir
 
769
datarootdir
 
770
datadir
 
771
sysconfdir
 
772
sharedstatedir
 
773
localstatedir
 
774
includedir
 
775
oldincludedir
 
776
docdir
 
777
infodir
 
778
htmldir
 
779
dvidir
 
780
pdfdir
 
781
psdir
 
782
libdir
 
783
localedir
 
784
mandir
 
785
DEFS
 
786
ECHO_C
 
787
ECHO_N
 
788
ECHO_T
 
789
LIBS
 
790
build_alias
 
791
host_alias
 
792
target_alias
 
793
INSTALL_PROGRAM
 
794
INSTALL_SCRIPT
 
795
INSTALL_DATA
 
796
CYGPATH_W
 
797
PACKAGE
 
798
VERSION
 
799
ACLOCAL
 
800
AUTOCONF
 
801
AUTOMAKE
 
802
AUTOHEADER
 
803
MAKEINFO
 
804
install_sh
 
805
STRIP
 
806
INSTALL_STRIP_PROGRAM
 
807
mkdir_p
 
808
AWK
 
809
SET_MAKE
 
810
am__leading_dot
 
811
AMTAR
 
812
am__tar
 
813
am__untar
 
814
MAINTAINER_MODE_TRUE
 
815
MAINTAINER_MODE_FALSE
 
816
MAINT
 
817
API_VERSION
 
818
MKINSTALLDIRS
 
819
USE_NLS
 
820
MSGFMT
 
821
GMSGFMT
 
822
XGETTEXT
 
823
MSGMERGE
 
824
CC
 
825
CFLAGS
 
826
LDFLAGS
 
827
CPPFLAGS
 
828
ac_ct_CC
 
829
EXEEXT
 
830
OBJEXT
 
831
DEPDIR
 
832
am__include
 
833
am__quote
 
834
AMDEP_TRUE
 
835
AMDEP_FALSE
 
836
AMDEPBACKSLASH
 
837
CCDEPMODE
 
838
am__fastdepCC_TRUE
 
839
am__fastdepCC_FALSE
 
840
build
 
841
build_cpu
 
842
build_vendor
 
843
build_os
 
844
host
 
845
host_cpu
 
846
host_vendor
 
847
host_os
 
848
CPP
 
849
GREP
 
850
EGREP
 
851
GLIBC2
 
852
RANLIB
 
853
ALLOCA
 
854
GLIBC21
 
855
INTL_MACOSX_LIBS
 
856
HAVE_POSIX_PRINTF
 
857
HAVE_ASPRINTF
 
858
HAVE_SNPRINTF
 
859
HAVE_WPRINTF
 
860
LIBICONV
 
861
LTLIBICONV
 
862
INTLBISON
 
863
BUILD_INCLUDED_LIBINTL
 
864
USE_INCLUDED_LIBINTL
 
865
CATOBJEXT
 
866
DATADIRNAME
 
867
INSTOBJEXT
 
868
GENCAT
 
869
INTLOBJS
 
870
INTL_LIBTOOL_SUFFIX_PREFIX
 
871
INTLLIBS
 
872
LIBINTL
 
873
LTLIBINTL
 
874
POSUB
 
875
GETTEXTDIR
 
876
LN_S
 
877
ECHO
 
878
AR
 
879
CXX
 
880
CXXFLAGS
 
881
ac_ct_CXX
 
882
CXXDEPMODE
 
883
am__fastdepCXX_TRUE
 
884
am__fastdepCXX_FALSE
 
885
CXXCPP
 
886
F77
 
887
FFLAGS
 
888
ac_ct_F77
 
889
LIBTOOL
 
890
XMKMF
 
891
X_CFLAGS
 
892
X_PRE_LIBS
 
893
X_LIBS
 
894
X_EXTRA_LIBS
 
895
LIBOBJS
 
896
POW_LIB
 
897
HAVE_M17N_DB
 
898
M17NDIR
 
899
WITH_GUI_TRUE
 
900
WITH_GUI_FALSE
 
901
HAVE_PKG_CONFIG
 
902
X11_LD_FLAGS
 
903
XAW_LD_FLAGS
 
904
HAVE_FRIBIDI_CONFIG
 
905
FRIBIDI_LD_FLAGS
 
906
HAVE_OTFLIB_CONFIG
 
907
OTF_LD_FLAGS
 
908
HAVE_FREETYPE_CONFIG
 
909
FREETYPE_LD_FLAGS
 
910
HAVE_XFT_CONFIG
 
911
XFT2_LD_FLAGS
 
912
FONTCONFIG_LD_FLAGS
 
913
GD_LD_FLAGS
 
914
HAVE_XML2_CONFIG
 
915
XML2_LD_FLAGS
 
916
ANTHY_LD_FLAGS
 
917
HAVE_ISPELL
 
918
PKG_CONFIG
 
919
LIBTHAI_CFLAGS
 
920
LIBTHAI_LIBS
 
921
WORDCUT_CFLAGS
 
922
WORDCUT_LIBS
 
923
GLIB_2_0_CFLAGS
 
924
GLIB_2_0_LIBS
 
925
THAI_WORDSEG_LD_FLAGS
 
926
CONFIG_FLAGS
 
927
LTLIBOBJS'
468
928
ac_subst_files=''
 
929
      ac_precious_vars='build_alias
 
930
host_alias
 
931
target_alias
 
932
CC
 
933
CFLAGS
 
934
LDFLAGS
 
935
CPPFLAGS
 
936
CPP
 
937
CXX
 
938
CXXFLAGS
 
939
CCC
 
940
CXXCPP
 
941
F77
 
942
FFLAGS
 
943
XMKMF
 
944
PKG_CONFIG
 
945
LIBTHAI_CFLAGS
 
946
LIBTHAI_LIBS
 
947
WORDCUT_CFLAGS
 
948
WORDCUT_LIBS
 
949
GLIB_2_0_CFLAGS
 
950
GLIB_2_0_LIBS'
 
951
 
469
952
 
470
953
# Initialize some variables set by options.
471
954
ac_init_help=
492
975
# and all the variables that are supposed to be based on exec_prefix
493
976
# by default will actually change.
494
977
# Use braces instead of parens because sh, perl, etc. also accept them.
 
978
# (The list follows the same order as the GNU Coding Standards.)
495
979
bindir='${exec_prefix}/bin'
496
980
sbindir='${exec_prefix}/sbin'
497
981
libexecdir='${exec_prefix}/libexec'
498
 
datadir='${prefix}/share'
 
982
datarootdir='${prefix}/share'
 
983
datadir='${datarootdir}'
499
984
sysconfdir='${prefix}/etc'
500
985
sharedstatedir='${prefix}/com'
501
986
localstatedir='${prefix}/var'
502
 
libdir='${exec_prefix}/lib'
503
987
includedir='${prefix}/include'
504
988
oldincludedir='/usr/include'
505
 
infodir='${prefix}/info'
506
 
mandir='${prefix}/man'
 
989
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
990
infodir='${datarootdir}/info'
 
991
htmldir='${docdir}'
 
992
dvidir='${docdir}'
 
993
pdfdir='${docdir}'
 
994
psdir='${docdir}'
 
995
libdir='${exec_prefix}/lib'
 
996
localedir='${datarootdir}/locale'
 
997
mandir='${datarootdir}/man'
507
998
 
508
999
ac_prev=
 
1000
ac_dashdash=
509
1001
for ac_option
510
1002
do
511
1003
  # If the previous option needs an argument, assign it.
512
1004
  if test -n "$ac_prev"; then
513
 
    eval "$ac_prev=\$ac_option"
 
1005
    eval $ac_prev=\$ac_option
514
1006
    ac_prev=
515
1007
    continue
516
1008
  fi
517
1009
 
518
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
1010
  case $ac_option in
 
1011
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1012
  *)    ac_optarg=yes ;;
 
1013
  esac
519
1014
 
520
1015
  # Accept the important Cygnus configure options, so we can diagnose typos.
521
1016
 
522
 
  case $ac_option in
 
1017
  case $ac_dashdash$ac_option in
 
1018
  --)
 
1019
    ac_dashdash=yes ;;
523
1020
 
524
1021
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525
1022
    ac_prev=bindir ;;
541
1038
  --config-cache | -C)
542
1039
    cache_file=config.cache ;;
543
1040
 
544
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
1041
  -datadir | --datadir | --datadi | --datad)
545
1042
    ac_prev=datadir ;;
546
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
 
  | --da=*)
 
1043
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
548
1044
    datadir=$ac_optarg ;;
549
1045
 
 
1046
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1047
  | --dataroo | --dataro | --datar)
 
1048
    ac_prev=datarootdir ;;
 
1049
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1050
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1051
    datarootdir=$ac_optarg ;;
 
1052
 
550
1053
  -disable-* | --disable-*)
551
1054
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
1055
    # Reject names that are not valid shell variable names.
554
1057
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
1058
   { (exit 1); exit 1; }; }
556
1059
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
 
    eval "enable_$ac_feature=no" ;;
 
1060
    eval enable_$ac_feature=no ;;
 
1061
 
 
1062
  -docdir | --docdir | --docdi | --doc | --do)
 
1063
    ac_prev=docdir ;;
 
1064
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1065
    docdir=$ac_optarg ;;
 
1066
 
 
1067
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1068
    ac_prev=dvidir ;;
 
1069
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1070
    dvidir=$ac_optarg ;;
558
1071
 
559
1072
  -enable-* | --enable-*)
560
1073
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563
1076
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
1077
   { (exit 1); exit 1; }; }
565
1078
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
 
    case $ac_option in
567
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
 
      *) ac_optarg=yes ;;
569
 
    esac
570
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
1079
    eval enable_$ac_feature=\$ac_optarg ;;
571
1080
 
572
1081
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
1082
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
594
1103
  -host=* | --host=* | --hos=* | --ho=*)
595
1104
    host_alias=$ac_optarg ;;
596
1105
 
 
1106
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1107
    ac_prev=htmldir ;;
 
1108
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1109
  | --ht=*)
 
1110
    htmldir=$ac_optarg ;;
 
1111
 
597
1112
  -includedir | --includedir | --includedi | --included | --include \
598
1113
  | --includ | --inclu | --incl | --inc)
599
1114
    ac_prev=includedir ;;
618
1133
  | --libexe=* | --libex=* | --libe=*)
619
1134
    libexecdir=$ac_optarg ;;
620
1135
 
 
1136
  -localedir | --localedir | --localedi | --localed | --locale)
 
1137
    ac_prev=localedir ;;
 
1138
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1139
    localedir=$ac_optarg ;;
 
1140
 
621
1141
  -localstatedir | --localstatedir | --localstatedi | --localstated \
622
 
  | --localstate | --localstat | --localsta | --localst \
623
 
  | --locals | --local | --loca | --loc | --lo)
 
1142
  | --localstate | --localstat | --localsta | --localst | --locals)
624
1143
    ac_prev=localstatedir ;;
625
1144
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1145
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
628
1146
    localstatedir=$ac_optarg ;;
629
1147
 
630
1148
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
689
1207
  | --progr-tra=* | --program-tr=* | --program-t=*)
690
1208
    program_transform_name=$ac_optarg ;;
691
1209
 
 
1210
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1211
    ac_prev=pdfdir ;;
 
1212
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1213
    pdfdir=$ac_optarg ;;
 
1214
 
 
1215
  -psdir | --psdir | --psdi | --psd | --ps)
 
1216
    ac_prev=psdir ;;
 
1217
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1218
    psdir=$ac_optarg ;;
 
1219
 
692
1220
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
1221
  | -silent | --silent | --silen | --sile | --sil)
694
1222
    silent=yes ;;
745
1273
      { echo "$as_me: error: invalid package name: $ac_package" >&2
746
1274
   { (exit 1); exit 1; }; }
747
1275
    ac_package=`echo $ac_package| sed 's/-/_/g'`
748
 
    case $ac_option in
749
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
 
      *) ac_optarg=yes ;;
751
 
    esac
752
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1276
    eval with_$ac_package=\$ac_optarg ;;
753
1277
 
754
1278
  -without-* | --without-*)
755
1279
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758
1282
      { echo "$as_me: error: invalid package name: $ac_package" >&2
759
1283
   { (exit 1); exit 1; }; }
760
1284
    ac_package=`echo $ac_package | sed 's/-/_/g'`
761
 
    eval "with_$ac_package=no" ;;
 
1285
    eval with_$ac_package=no ;;
762
1286
 
763
1287
  --x)
764
1288
    # Obsolete; use --with-x.
789
1313
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
1314
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
1315
   { (exit 1); exit 1; }; }
792
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
 
    eval "$ac_envvar='$ac_optarg'"
 
1316
    eval $ac_envvar=\$ac_optarg
794
1317
    export $ac_envvar ;;
795
1318
 
796
1319
  *)
810
1333
   { (exit 1); exit 1; }; }
811
1334
fi
812
1335
 
813
 
# Be sure to have absolute paths.
814
 
for ac_var in exec_prefix prefix
815
 
do
816
 
  eval ac_val=$`echo $ac_var`
817
 
  case $ac_val in
818
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
 
   { (exit 1); exit 1; }; };;
821
 
  esac
822
 
done
823
 
 
824
 
# Be sure to have absolute paths.
825
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
 
              localstatedir libdir includedir oldincludedir infodir mandir
827
 
do
828
 
  eval ac_val=$`echo $ac_var`
829
 
  case $ac_val in
830
 
    [\\/$]* | ?:[\\/]* ) ;;
831
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
 
   { (exit 1); exit 1; }; };;
833
 
  esac
 
1336
# Be sure to have absolute directory names.
 
1337
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1338
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1339
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1340
                libdir localedir mandir
 
1341
do
 
1342
  eval ac_val=\$$ac_var
 
1343
  case $ac_val in
 
1344
    [\\/$]* | ?:[\\/]* )  continue;;
 
1345
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1346
  esac
 
1347
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1348
   { (exit 1); exit 1; }; }
834
1349
done
835
1350
 
836
1351
# There might be people who depend on the old broken behavior: `$host'
857
1372
test "$silent" = yes && exec 6>/dev/null
858
1373
 
859
1374
 
 
1375
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1376
ac_ls_di=`ls -di .` &&
 
1377
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1378
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1381
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
 
 
1384
 
860
1385
# Find the source files, if location was not specified.
861
1386
if test -z "$srcdir"; then
862
1387
  ac_srcdir_defaulted=yes
863
 
  # Try the directory containing this script, then its parent.
864
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1388
  # Try the directory containing this script, then the parent directory.
 
1389
  ac_confdir=`$as_dirname -- "$0" ||
865
1390
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
1391
         X"$0" : 'X\(//\)[^/]' \| \
867
1392
         X"$0" : 'X\(//\)$' \| \
868
 
         X"$0" : 'X\(/\)' \| \
869
 
         .     : '\(.\)' 2>/dev/null ||
 
1393
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
870
1394
echo X"$0" |
871
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
 
          /^X\(\/\/\)$/{ s//\1/; q; }
874
 
          /^X\(\/\).*/{ s//\1/; q; }
875
 
          s/.*/./; q'`
 
1395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1396
            s//\1/
 
1397
            q
 
1398
          }
 
1399
          /^X\(\/\/\)[^/].*/{
 
1400
            s//\1/
 
1401
            q
 
1402
          }
 
1403
          /^X\(\/\/\)$/{
 
1404
            s//\1/
 
1405
            q
 
1406
          }
 
1407
          /^X\(\/\).*/{
 
1408
            s//\1/
 
1409
            q
 
1410
          }
 
1411
          s/.*/./; q'`
876
1412
  srcdir=$ac_confdir
877
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1413
  if test ! -r "$srcdir/$ac_unique_file"; then
878
1414
    srcdir=..
879
1415
  fi
880
1416
else
881
1417
  ac_srcdir_defaulted=no
882
1418
fi
883
 
if test ! -r $srcdir/$ac_unique_file; then
884
 
  if test "$ac_srcdir_defaulted" = yes; then
885
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
 
   { (exit 1); exit 1; }; }
887
 
  else
888
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
 
   { (exit 1); exit 1; }; }
890
 
  fi
891
 
fi
892
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
 
   { (exit 1); exit 1; }; }
895
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
 
ac_env_build_alias_set=${build_alias+set}
897
 
ac_env_build_alias_value=$build_alias
898
 
ac_cv_env_build_alias_set=${build_alias+set}
899
 
ac_cv_env_build_alias_value=$build_alias
900
 
ac_env_host_alias_set=${host_alias+set}
901
 
ac_env_host_alias_value=$host_alias
902
 
ac_cv_env_host_alias_set=${host_alias+set}
903
 
ac_cv_env_host_alias_value=$host_alias
904
 
ac_env_target_alias_set=${target_alias+set}
905
 
ac_env_target_alias_value=$target_alias
906
 
ac_cv_env_target_alias_set=${target_alias+set}
907
 
ac_cv_env_target_alias_value=$target_alias
908
 
ac_env_CC_set=${CC+set}
909
 
ac_env_CC_value=$CC
910
 
ac_cv_env_CC_set=${CC+set}
911
 
ac_cv_env_CC_value=$CC
912
 
ac_env_CFLAGS_set=${CFLAGS+set}
913
 
ac_env_CFLAGS_value=$CFLAGS
914
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
 
ac_cv_env_CFLAGS_value=$CFLAGS
916
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
 
ac_env_LDFLAGS_value=$LDFLAGS
918
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
 
ac_env_CPPFLAGS_value=$CPPFLAGS
922
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
 
ac_env_CPP_set=${CPP+set}
925
 
ac_env_CPP_value=$CPP
926
 
ac_cv_env_CPP_set=${CPP+set}
927
 
ac_cv_env_CPP_value=$CPP
928
 
ac_env_CXX_set=${CXX+set}
929
 
ac_env_CXX_value=$CXX
930
 
ac_cv_env_CXX_set=${CXX+set}
931
 
ac_cv_env_CXX_value=$CXX
932
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
 
ac_env_CXXFLAGS_value=$CXXFLAGS
934
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
 
ac_env_CXXCPP_set=${CXXCPP+set}
937
 
ac_env_CXXCPP_value=$CXXCPP
938
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
 
ac_cv_env_CXXCPP_value=$CXXCPP
940
 
ac_env_F77_set=${F77+set}
941
 
ac_env_F77_value=$F77
942
 
ac_cv_env_F77_set=${F77+set}
943
 
ac_cv_env_F77_value=$F77
944
 
ac_env_FFLAGS_set=${FFLAGS+set}
945
 
ac_env_FFLAGS_value=$FFLAGS
946
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
 
ac_cv_env_FFLAGS_value=$FFLAGS
948
 
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949
 
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
 
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
 
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
 
ac_env_LIBTHAI_CFLAGS_set=${LIBTHAI_CFLAGS+set}
953
 
ac_env_LIBTHAI_CFLAGS_value=$LIBTHAI_CFLAGS
954
 
ac_cv_env_LIBTHAI_CFLAGS_set=${LIBTHAI_CFLAGS+set}
955
 
ac_cv_env_LIBTHAI_CFLAGS_value=$LIBTHAI_CFLAGS
956
 
ac_env_LIBTHAI_LIBS_set=${LIBTHAI_LIBS+set}
957
 
ac_env_LIBTHAI_LIBS_value=$LIBTHAI_LIBS
958
 
ac_cv_env_LIBTHAI_LIBS_set=${LIBTHAI_LIBS+set}
959
 
ac_cv_env_LIBTHAI_LIBS_value=$LIBTHAI_LIBS
960
 
ac_env_WORDCUT_CFLAGS_set=${WORDCUT_CFLAGS+set}
961
 
ac_env_WORDCUT_CFLAGS_value=$WORDCUT_CFLAGS
962
 
ac_cv_env_WORDCUT_CFLAGS_set=${WORDCUT_CFLAGS+set}
963
 
ac_cv_env_WORDCUT_CFLAGS_value=$WORDCUT_CFLAGS
964
 
ac_env_WORDCUT_LIBS_set=${WORDCUT_LIBS+set}
965
 
ac_env_WORDCUT_LIBS_value=$WORDCUT_LIBS
966
 
ac_cv_env_WORDCUT_LIBS_set=${WORDCUT_LIBS+set}
967
 
ac_cv_env_WORDCUT_LIBS_value=$WORDCUT_LIBS
968
 
ac_env_GLIB_2_0_CFLAGS_set=${GLIB_2_0_CFLAGS+set}
969
 
ac_env_GLIB_2_0_CFLAGS_value=$GLIB_2_0_CFLAGS
970
 
ac_cv_env_GLIB_2_0_CFLAGS_set=${GLIB_2_0_CFLAGS+set}
971
 
ac_cv_env_GLIB_2_0_CFLAGS_value=$GLIB_2_0_CFLAGS
972
 
ac_env_GLIB_2_0_LIBS_set=${GLIB_2_0_LIBS+set}
973
 
ac_env_GLIB_2_0_LIBS_value=$GLIB_2_0_LIBS
974
 
ac_cv_env_GLIB_2_0_LIBS_set=${GLIB_2_0_LIBS+set}
975
 
ac_cv_env_GLIB_2_0_LIBS_value=$GLIB_2_0_LIBS
 
1419
if test ! -r "$srcdir/$ac_unique_file"; then
 
1420
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1421
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1422
   { (exit 1); exit 1; }; }
 
1423
fi
 
1424
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1425
ac_abs_confdir=`(
 
1426
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1427
   { (exit 1); exit 1; }; }
 
1428
        pwd)`
 
1429
# When building in place, set srcdir=.
 
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1431
  srcdir=.
 
1432
fi
 
1433
# Remove unnecessary trailing slashes from srcdir.
 
1434
# Double slashes in file names in object file debugging info
 
1435
# mess up M-x gdb in Emacs.
 
1436
case $srcdir in
 
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1438
esac
 
1439
for ac_var in $ac_precious_vars; do
 
1440
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1441
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1442
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1443
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1444
done
976
1445
 
977
1446
#
978
1447
# Report the --help message.
981
1450
  # Omit some internal or obsolete options to make the list less imposing.
982
1451
  # This message is too long to be a string in the A/UX 3.1 sh.
983
1452
  cat <<_ACEOF
984
 
\`configure' configures m17n-lib 1.3.1 to adapt to many kinds of systems.
 
1453
\`configure' configures m17n-lib 1.3.4 to adapt to many kinds of systems.
985
1454
 
986
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
987
1456
 
1001
1470
  -n, --no-create         do not create output files
1002
1471
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1003
1472
 
1004
 
_ACEOF
1005
 
 
1006
 
  cat <<_ACEOF
1007
1473
Installation directories:
1008
1474
  --prefix=PREFIX         install architecture-independent files in PREFIX
1009
1475
                          [$ac_default_prefix]
1021
1487
  --bindir=DIR           user executables [EPREFIX/bin]
1022
1488
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1023
1489
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1024
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1025
1490
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1026
1491
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1027
1492
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1028
1493
  --libdir=DIR           object code libraries [EPREFIX/lib]
1029
1494
  --includedir=DIR       C header files [PREFIX/include]
1030
1495
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1031
 
  --infodir=DIR          info documentation [PREFIX/info]
1032
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1496
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1497
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1498
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1499
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1500
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1501
  --docdir=DIR           documentation root [DATAROOTDIR/doc/m17n-lib]
 
1502
  --htmldir=DIR          html documentation [DOCDIR]
 
1503
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1504
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1505
  --psdir=DIR            ps documentation [DOCDIR]
1033
1506
_ACEOF
1034
1507
 
1035
1508
  cat <<\_ACEOF
1051
1524
 
1052
1525
if test -n "$ac_init_help"; then
1053
1526
  case $ac_init_help in
1054
 
     short | recursive ) echo "Configuration of m17n-lib 1.3.1:";;
 
1527
     short | recursive ) echo "Configuration of m17n-lib 1.3.4:";;
1055
1528
   esac
1056
1529
  cat <<\_ACEOF
1057
1530
 
1060
1533
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061
1534
  --enable-maintainer-mode  enable make rules and dependencies not useful
1062
1535
                          (and sometimes confusing) to the casual installer
 
1536
  --disable-nls           do not use Native Language Support
1063
1537
  --disable-dependency-tracking  speeds up one-time build
1064
1538
  --enable-dependency-tracking   do not reject slow dependency extractors
1065
 
  --enable-shared[=PKGS]
1066
 
                          build shared libraries [default=yes]
1067
 
  --enable-static[=PKGS]
1068
 
                          build static libraries [default=yes]
 
1539
  --disable-rpath         do not hardcode runtime library paths
 
1540
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1541
  --enable-static[=PKGS]  build static libraries [default=yes]
1069
1542
  --enable-fast-install[=PKGS]
1070
1543
                          optimize for fast installation [default=yes]
1071
1544
  --disable-libtool-lock  avoid locking (might break parallel builds)
1074
1547
Optional Packages:
1075
1548
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1076
1549
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1550
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1551
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1552
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1553
  --with-included-gettext use the GNU gettext library included here
 
1554
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1555
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1077
1556
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1078
1557
  --with-pic              try to use only PIC/non-PIC objects [default=use
1079
1558
                          both]
1080
 
  --with-tags[=TAGS]
1081
 
                          include additional configurations [automatic]
 
1559
  --with-tags[=TAGS]      include additional configurations [automatic]
1082
1560
  --with-x                use the X Window System
1083
1561
  --with-libotf           with OpenType font suport (default is YES)
 
1562
  --with-fontconfig       with FontConfig library (default is YES)
1084
1563
  --with-gd               suport graphic device by GD library (default is YES)
1085
1564
 
1086
1565
Some influential environment variables:
1088
1567
  CFLAGS      C compiler flags
1089
1568
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090
1569
              nonstandard directory <lib dir>
1091
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092
 
              headers in a nonstandard directory <include dir>
 
1570
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1571
              you have headers in a nonstandard directory <include dir>
1093
1572
  CPP         C preprocessor
1094
1573
  CXX         C++ compiler command
1095
1574
  CXXFLAGS    C++ compiler flags
1096
1575
  CXXCPP      C++ preprocessor
1097
1576
  F77         Fortran 77 compiler command
1098
1577
  FFLAGS      Fortran 77 compiler flags
 
1578
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1099
1579
  PKG_CONFIG  path to pkg-config utility
1100
1580
  LIBTHAI_CFLAGS
1101
1581
              C compiler flags for LIBTHAI, overriding pkg-config
1115
1595
 
1116
1596
Report bugs to <m17n-lib-bug@m17n.org>.
1117
1597
_ACEOF
 
1598
ac_status=$?
1118
1599
fi
1119
1600
 
1120
1601
if test "$ac_init_help" = "recursive"; then
1121
1602
  # If there are subdirs, report their specific --help.
1122
 
  ac_popdir=`pwd`
1123
1603
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1124
 
    test -d $ac_dir || continue
 
1604
    test -d "$ac_dir" || continue
1125
1605
    ac_builddir=.
1126
1606
 
1127
 
if test "$ac_dir" != .; then
 
1607
case "$ac_dir" in
 
1608
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1609
*)
1128
1610
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1129
 
  # A "../" for each directory in $ac_dir_suffix.
1130
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1131
 
else
1132
 
  ac_dir_suffix= ac_top_builddir=
1133
 
fi
 
1611
  # A ".." for each directory in $ac_dir_suffix.
 
1612
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1613
  case $ac_top_builddir_sub in
 
1614
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1615
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1616
  esac ;;
 
1617
esac
 
1618
ac_abs_top_builddir=$ac_pwd
 
1619
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1620
# for backward compatibility:
 
1621
ac_top_builddir=$ac_top_build_prefix
1134
1622
 
1135
1623
case $srcdir in
1136
 
  .)  # No --srcdir option.  We are building in place.
 
1624
  .)  # We are building in place.
1137
1625
    ac_srcdir=.
1138
 
    if test -z "$ac_top_builddir"; then
1139
 
       ac_top_srcdir=.
1140
 
    else
1141
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1142
 
    fi ;;
1143
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1626
    ac_top_srcdir=$ac_top_builddir_sub
 
1627
    ac_abs_top_srcdir=$ac_pwd ;;
 
1628
  [\\/]* | ?:[\\/]* )  # Absolute name.
1144
1629
    ac_srcdir=$srcdir$ac_dir_suffix;
1145
 
    ac_top_srcdir=$srcdir ;;
1146
 
  *) # Relative path.
1147
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1148
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1149
 
esac
1150
 
 
1151
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1152
 
# the directories may not exist.
1153
 
case `pwd` in
1154
 
.) ac_abs_builddir="$ac_dir";;
1155
 
*)
1156
 
  case "$ac_dir" in
1157
 
  .) ac_abs_builddir=`pwd`;;
1158
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1159
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1160
 
  esac;;
1161
 
esac
1162
 
case $ac_abs_builddir in
1163
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1164
 
*)
1165
 
  case ${ac_top_builddir}. in
1166
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1167
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1168
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1169
 
  esac;;
1170
 
esac
1171
 
case $ac_abs_builddir in
1172
 
.) ac_abs_srcdir=$ac_srcdir;;
1173
 
*)
1174
 
  case $ac_srcdir in
1175
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1176
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1177
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1178
 
  esac;;
1179
 
esac
1180
 
case $ac_abs_builddir in
1181
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1182
 
*)
1183
 
  case $ac_top_srcdir in
1184
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1185
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1186
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187
 
  esac;;
1188
 
esac
1189
 
 
1190
 
    cd $ac_dir
1191
 
    # Check for guested configure; otherwise get Cygnus style configure.
1192
 
    if test -f $ac_srcdir/configure.gnu; then
1193
 
      echo
1194
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1195
 
    elif test -f $ac_srcdir/configure; then
1196
 
      echo
1197
 
      $SHELL $ac_srcdir/configure  --help=recursive
1198
 
    elif test -f $ac_srcdir/configure.ac ||
1199
 
           test -f $ac_srcdir/configure.in; then
1200
 
      echo
1201
 
      $ac_configure --help
 
1630
    ac_top_srcdir=$srcdir
 
1631
    ac_abs_top_srcdir=$srcdir ;;
 
1632
  *) # Relative name.
 
1633
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1634
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1635
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1636
esac
 
1637
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1638
 
 
1639
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1640
    # Check for guested configure.
 
1641
    if test -f "$ac_srcdir/configure.gnu"; then
 
1642
      echo &&
 
1643
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1644
    elif test -f "$ac_srcdir/configure"; then
 
1645
      echo &&
 
1646
      $SHELL "$ac_srcdir/configure" --help=recursive
1202
1647
    else
1203
1648
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204
 
    fi
1205
 
    cd $ac_popdir
 
1649
    fi || ac_status=$?
 
1650
    cd "$ac_pwd" || { ac_status=$?; break; }
1206
1651
  done
1207
1652
fi
1208
1653
 
1209
 
test -n "$ac_init_help" && exit 0
 
1654
test -n "$ac_init_help" && exit $ac_status
1210
1655
if $ac_init_version; then
1211
1656
  cat <<\_ACEOF
1212
 
m17n-lib configure 1.3.1
1213
 
generated by GNU Autoconf 2.59
 
1657
m17n-lib configure 1.3.4
 
1658
generated by GNU Autoconf 2.60a
1214
1659
 
1215
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1660
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1661
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1216
1662
This configure script is free software; the Free Software Foundation
1217
1663
gives unlimited permission to copy, distribute and modify it.
1218
1664
_ACEOF
1219
 
  exit 0
 
1665
  exit
1220
1666
fi
1221
 
exec 5>config.log
1222
 
cat >&5 <<_ACEOF
 
1667
cat >config.log <<_ACEOF
1223
1668
This file contains any messages produced by compilers while
1224
1669
running configure, to aid debugging if configure makes a mistake.
1225
1670
 
1226
 
It was created by m17n-lib $as_me 1.3.1, which was
1227
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1671
It was created by m17n-lib $as_me 1.3.4, which was
 
1672
generated by GNU Autoconf 2.60a.  Invocation command line was
1228
1673
 
1229
1674
  $ $0 $@
1230
1675
 
1231
1676
_ACEOF
 
1677
exec 5>>config.log
1232
1678
{
1233
1679
cat <<_ASUNAME
1234
1680
## --------- ##
1247
1693
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1248
1694
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1249
1695
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1250
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1696
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1251
1697
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1252
1698
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1253
1699
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
1707
  test -z "$as_dir" && as_dir=.
1262
1708
  echo "PATH: $as_dir"
1263
1709
done
 
1710
IFS=$as_save_IFS
1264
1711
 
1265
1712
} >&5
1266
1713
 
1282
1729
ac_configure_args=
1283
1730
ac_configure_args0=
1284
1731
ac_configure_args1=
1285
 
ac_sep=
1286
1732
ac_must_keep_next=false
1287
1733
for ac_pass in 1 2
1288
1734
do
1293
1739
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294
1740
    | -silent | --silent | --silen | --sile | --sil)
1295
1741
      continue ;;
1296
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1742
    *\'*)
1297
1743
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298
1744
    esac
1299
1745
    case $ac_pass in
1315
1761
          -* ) ac_must_keep_next=true ;;
1316
1762
        esac
1317
1763
      fi
1318
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1319
 
      # Get rid of the leading space.
1320
 
      ac_sep=" "
 
1764
      ac_configure_args="$ac_configure_args '$ac_arg'"
1321
1765
      ;;
1322
1766
    esac
1323
1767
  done
1328
1772
# When interrupted or exit'd, cleanup temporary files, and complete
1329
1773
# config.log.  We remove comments because anyway the quotes in there
1330
1774
# would cause problems or look ugly.
1331
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1332
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1775
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1776
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1333
1777
trap 'exit_status=$?
1334
1778
  # Save into config.log some information that might help in debugging.
1335
1779
  {
1342
1786
_ASBOX
1343
1787
    echo
1344
1788
    # The following way of writing the cache mishandles newlines in values,
1345
 
{
 
1789
(
 
1790
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1791
    eval ac_val=\$$ac_var
 
1792
    case $ac_val in #(
 
1793
    *${as_nl}*)
 
1794
      case $ac_var in #(
 
1795
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1796
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1797
      esac
 
1798
      case $ac_var in #(
 
1799
      _ | IFS | as_nl) ;; #(
 
1800
      *) $as_unset $ac_var ;;
 
1801
      esac ;;
 
1802
    esac
 
1803
  done
1346
1804
  (set) 2>&1 |
1347
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348
 
    *ac_space=\ *)
 
1805
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1806
    *${as_nl}ac_space=\ *)
1349
1807
      sed -n \
1350
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1351
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352
 
      ;;
 
1808
        "s/'\''/'\''\\\\'\'''\''/g;
 
1809
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1810
      ;; #(
1353
1811
    *)
1354
 
      sed -n \
1355
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1812
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1356
1813
      ;;
1357
 
    esac;
1358
 
}
 
1814
    esac |
 
1815
    sort
 
1816
)
1359
1817
    echo
1360
1818
 
1361
1819
    cat <<\_ASBOX
1366
1824
    echo
1367
1825
    for ac_var in $ac_subst_vars
1368
1826
    do
1369
 
      eval ac_val=$`echo $ac_var`
1370
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1827
      eval ac_val=\$$ac_var
 
1828
      case $ac_val in
 
1829
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1830
      esac
 
1831
      echo "$ac_var='\''$ac_val'\''"
1371
1832
    done | sort
1372
1833
    echo
1373
1834
 
1374
1835
    if test -n "$ac_subst_files"; then
1375
1836
      cat <<\_ASBOX
1376
 
## ------------- ##
1377
 
## Output files. ##
1378
 
## ------------- ##
 
1837
## ------------------- ##
 
1838
## File substitutions. ##
 
1839
## ------------------- ##
1379
1840
_ASBOX
1380
1841
      echo
1381
1842
      for ac_var in $ac_subst_files
1382
1843
      do
1383
 
        eval ac_val=$`echo $ac_var`
1384
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1844
        eval ac_val=\$$ac_var
 
1845
        case $ac_val in
 
1846
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1847
        esac
 
1848
        echo "$ac_var='\''$ac_val'\''"
1385
1849
      done | sort
1386
1850
      echo
1387
1851
    fi
1393
1857
## ----------- ##
1394
1858
_ASBOX
1395
1859
      echo
1396
 
      sed "/^$/d" confdefs.h | sort
 
1860
      cat confdefs.h
1397
1861
      echo
1398
1862
    fi
1399
1863
    test "$ac_signal" != 0 &&
1400
1864
      echo "$as_me: caught signal $ac_signal"
1401
1865
    echo "$as_me: exit $exit_status"
1402
1866
  } >&5
1403
 
  rm -f core *.core &&
1404
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1867
  rm -f core *.core core.conftest.* &&
 
1868
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1405
1869
    exit $exit_status
1406
 
     ' 0
 
1870
' 0
1407
1871
for ac_signal in 1 2 13 15; do
1408
1872
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409
1873
done
1410
1874
ac_signal=0
1411
1875
 
1412
1876
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1413
 
rm -rf conftest* confdefs.h
1414
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415
 
echo >confdefs.h
 
1877
rm -f -r conftest* confdefs.h
1416
1878
 
1417
1879
# Predefined preprocessor variables.
1418
1880
 
1443
1905
 
1444
1906
# Let the site file select an alternate cache file if it wants to.
1445
1907
# Prefer explicitly selected file to automatically selected ones.
1446
 
if test -z "$CONFIG_SITE"; then
1447
 
  if test "x$prefix" != xNONE; then
1448
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1449
 
  else
1450
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451
 
  fi
 
1908
if test -n "$CONFIG_SITE"; then
 
1909
  set x "$CONFIG_SITE"
 
1910
elif test "x$prefix" != xNONE; then
 
1911
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1912
else
 
1913
  set x "$ac_default_prefix/share/config.site" \
 
1914
        "$ac_default_prefix/etc/config.site"
1452
1915
fi
1453
 
for ac_site_file in $CONFIG_SITE; do
 
1916
shift
 
1917
for ac_site_file
 
1918
do
1454
1919
  if test -r "$ac_site_file"; then
1455
1920
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1456
1921
echo "$as_me: loading site script $ac_site_file" >&6;}
1466
1931
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1467
1932
echo "$as_me: loading cache $cache_file" >&6;}
1468
1933
    case $cache_file in
1469
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1470
 
      *)                      . ./$cache_file;;
 
1934
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1935
      *)                      . "./$cache_file";;
1471
1936
    esac
1472
1937
  fi
1473
1938
else
1479
1944
# Check that the precious variables saved in the cache have kept the same
1480
1945
# value.
1481
1946
ac_cache_corrupted=false
1482
 
for ac_var in `(set) 2>&1 |
1483
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1947
for ac_var in $ac_precious_vars; do
1484
1948
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485
1949
  eval ac_new_set=\$ac_env_${ac_var}_set
1486
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1950
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1951
  eval ac_new_val=\$ac_env_${ac_var}_value
1488
1952
  case $ac_old_set,$ac_new_set in
1489
1953
    set,)
1490
1954
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1509
1973
  # Pass precious variables to config.status.
1510
1974
  if test "$ac_new_set" = set; then
1511
1975
    case $ac_new_val in
1512
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1976
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514
1977
    *) ac_arg=$ac_var=$ac_new_val ;;
1515
1978
    esac
1516
1979
    case " $ac_configure_args " in
1527
1990
   { (exit 1); exit 1; }; }
1528
1991
fi
1529
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
 
 
2005
 
 
2006
 
 
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
 
 
2012
 
 
2013
 
 
2014
 
 
2015
 
 
2016
 
1530
2017
ac_ext=c
1531
2018
ac_cpp='$CPP $CPPFLAGS'
1532
2019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534
2021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
2022
 
1536
2023
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
2024
am__api_version="1.9"
1563
2025
ac_aux_dir=
1564
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1565
 
  if test -f $ac_dir/install-sh; then
 
2026
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2027
  if test -f "$ac_dir/install-sh"; then
1566
2028
    ac_aux_dir=$ac_dir
1567
2029
    ac_install_sh="$ac_aux_dir/install-sh -c"
1568
2030
    break
1569
 
  elif test -f $ac_dir/install.sh; then
 
2031
  elif test -f "$ac_dir/install.sh"; then
1570
2032
    ac_aux_dir=$ac_dir
1571
2033
    ac_install_sh="$ac_aux_dir/install.sh -c"
1572
2034
    break
1573
 
  elif test -f $ac_dir/shtool; then
 
2035
  elif test -f "$ac_dir/shtool"; then
1574
2036
    ac_aux_dir=$ac_dir
1575
2037
    ac_install_sh="$ac_aux_dir/shtool install -c"
1576
2038
    break
1577
2039
  fi
1578
2040
done
1579
2041
if test -z "$ac_aux_dir"; then
1580
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1581
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2042
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2043
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1582
2044
   { (exit 1); exit 1; }; }
1583
2045
fi
1584
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2046
 
 
2047
# These three variables are undocumented and unsupported,
 
2048
# and are intended to be withdrawn in a future Autoconf release.
 
2049
# They can cause serious problems if a builder's source tree is in a directory
 
2050
# whose full name contains unusual characters.
 
2051
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2052
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2053
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2054
 
1587
2055
 
1588
2056
# Find a good install program.  We prefer a C program (faster),
1589
2057
# so one script is as good as another.  But avoid the broken or
1598
2066
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599
2067
# OS/2's system install, which has a completely different semantic
1600
2068
# ./install, which can be erroneously created by make from ./install.sh.
1601
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1602
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2069
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2070
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1603
2071
if test -z "$INSTALL"; then
1604
2072
if test "${ac_cv_path_install+set}" = set; then
1605
2073
  echo $ECHO_N "(cached) $ECHO_C" >&6
1621
2089
    # by default.
1622
2090
    for ac_prog in ginstall scoinst install; do
1623
2091
      for ac_exec_ext in '' $ac_executable_extensions; do
1624
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2092
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1625
2093
          if test $ac_prog = install &&
1626
2094
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1627
2095
            # AIX install.  It has an incompatible calling convention.
1640
2108
    ;;
1641
2109
esac
1642
2110
done
 
2111
IFS=$as_save_IFS
1643
2112
 
1644
2113
 
1645
2114
fi
1646
2115
  if test "${ac_cv_path_install+set}" = set; then
1647
2116
    INSTALL=$ac_cv_path_install
1648
2117
  else
1649
 
    # As a last resort, use the slow shell script.  We don't cache a
1650
 
    # path for INSTALL within a source directory, because that will
 
2118
    # As a last resort, use the slow shell script.  Don't cache a
 
2119
    # value for INSTALL within a source directory, because that will
1651
2120
    # break other packages using the cache if that directory is
1652
 
    # removed, or if the path is relative.
 
2121
    # removed, or if the value is a relative name.
1653
2122
    INSTALL=$ac_install_sh
1654
2123
  fi
1655
2124
fi
1656
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1657
 
echo "${ECHO_T}$INSTALL" >&6
 
2125
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2126
echo "${ECHO_T}$INSTALL" >&6; }
1658
2127
 
1659
2128
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1660
2129
# It thinks the first close brace ends the variable substitution.
1664
2133
 
1665
2134
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1666
2135
 
1667
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1668
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2136
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2137
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1669
2138
# Just in case
1670
2139
sleep 1
1671
2140
echo timestamp > conftest.file
1707
2176
Check your system clock" >&2;}
1708
2177
   { (exit 1); exit 1; }; }
1709
2178
fi
1710
 
echo "$as_me:$LINENO: result: yes" >&5
1711
 
echo "${ECHO_T}yes" >&6
 
2179
{ echo "$as_me:$LINENO: result: yes" >&5
 
2180
echo "${ECHO_T}yes" >&6; }
1712
2181
test "$program_prefix" != NONE &&
1713
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2182
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1714
2183
# Use a double $ so make ignores it.
1715
2184
test "$program_suffix" != NONE &&
1716
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2185
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1717
2186
# Double any \ or $.  echo might interpret backslashes.
1718
2187
# By default was `s,x,x', remove it if useless.
1719
2188
cat <<\_ACEOF >conftest.sed
1720
2189
s/[\\$]/&&/g;s/;s,x,x,$//
1721
2190
_ACEOF
1722
2191
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1723
 
rm conftest.sed
 
2192
rm -f conftest.sed
1724
2193
 
1725
2194
# expand $ac_aux_dir to an absolute path
1726
2195
am_aux_dir=`cd $ac_aux_dir && pwd`
1772
2241
do
1773
2242
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1774
2243
set dummy $ac_prog; ac_word=$2
1775
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1776
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2244
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1777
2246
if test "${ac_cv_prog_AWK+set}" = set; then
1778
2247
  echo $ECHO_N "(cached) $ECHO_C" >&6
1779
2248
else
1786
2255
  IFS=$as_save_IFS
1787
2256
  test -z "$as_dir" && as_dir=.
1788
2257
  for ac_exec_ext in '' $ac_executable_extensions; do
1789
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1790
2259
    ac_cv_prog_AWK="$ac_prog"
1791
2260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792
2261
    break 2
1793
2262
  fi
1794
2263
done
1795
2264
done
 
2265
IFS=$as_save_IFS
1796
2266
 
1797
2267
fi
1798
2268
fi
1799
2269
AWK=$ac_cv_prog_AWK
1800
2270
if test -n "$AWK"; then
1801
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1802
 
echo "${ECHO_T}$AWK" >&6
 
2271
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2272
echo "${ECHO_T}$AWK" >&6; }
1803
2273
else
1804
 
  echo "$as_me:$LINENO: result: no" >&5
1805
 
echo "${ECHO_T}no" >&6
 
2274
  { echo "$as_me:$LINENO: result: no" >&5
 
2275
echo "${ECHO_T}no" >&6; }
1806
2276
fi
1807
2277
 
 
2278
 
1808
2279
  test -n "$AWK" && break
1809
2280
done
1810
2281
 
1811
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1812
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1813
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1814
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2282
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2283
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2284
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2285
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1815
2286
  echo $ECHO_N "(cached) $ECHO_C" >&6
1816
2287
else
1817
2288
  cat >conftest.make <<\_ACEOF
 
2289
SHELL = /bin/sh
1818
2290
all:
1819
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2291
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1820
2292
_ACEOF
1821
2293
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1822
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1823
 
if test -n "$ac_maketemp"; then
1824
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1825
 
else
1826
 
  eval ac_cv_prog_make_${ac_make}_set=no
1827
 
fi
 
2294
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2295
  *@@@%%%=?*=@@@%%%*)
 
2296
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2297
  *)
 
2298
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2299
esac
1828
2300
rm -f conftest.make
1829
2301
fi
1830
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1831
 
  echo "$as_me:$LINENO: result: yes" >&5
1832
 
echo "${ECHO_T}yes" >&6
 
2302
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2303
  { echo "$as_me:$LINENO: result: yes" >&5
 
2304
echo "${ECHO_T}yes" >&6; }
1833
2305
  SET_MAKE=
1834
2306
else
1835
 
  echo "$as_me:$LINENO: result: no" >&5
1836
 
echo "${ECHO_T}no" >&6
 
2307
  { echo "$as_me:$LINENO: result: no" >&5
 
2308
echo "${ECHO_T}no" >&6; }
1837
2309
  SET_MAKE="MAKE=${MAKE-make}"
1838
2310
fi
1839
2311
 
1865
2337
 
1866
2338
 
1867
2339
# Define the identity of the package.
1868
 
 PACKAGE=m17n-lib
1869
 
 VERSION=1.3.1
 
2340
 PACKAGE='m17n-lib'
 
2341
 VERSION='1.3.4'
1870
2342
 
1871
2343
 
1872
2344
cat >>confdefs.h <<_ACEOF
1904
2376
  if test -n "$ac_tool_prefix"; then
1905
2377
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906
2378
set dummy ${ac_tool_prefix}strip; ac_word=$2
1907
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1908
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2379
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1909
2381
if test "${ac_cv_prog_STRIP+set}" = set; then
1910
2382
  echo $ECHO_N "(cached) $ECHO_C" >&6
1911
2383
else
1918
2390
  IFS=$as_save_IFS
1919
2391
  test -z "$as_dir" && as_dir=.
1920
2392
  for ac_exec_ext in '' $ac_executable_extensions; do
1921
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2393
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1922
2394
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923
2395
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924
2396
    break 2
1925
2397
  fi
1926
2398
done
1927
2399
done
 
2400
IFS=$as_save_IFS
1928
2401
 
1929
2402
fi
1930
2403
fi
1931
2404
STRIP=$ac_cv_prog_STRIP
1932
2405
if test -n "$STRIP"; then
1933
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1934
 
echo "${ECHO_T}$STRIP" >&6
 
2406
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2407
echo "${ECHO_T}$STRIP" >&6; }
1935
2408
else
1936
 
  echo "$as_me:$LINENO: result: no" >&5
1937
 
echo "${ECHO_T}no" >&6
 
2409
  { echo "$as_me:$LINENO: result: no" >&5
 
2410
echo "${ECHO_T}no" >&6; }
1938
2411
fi
 
2412
 
1939
2413
 
1940
2414
fi
1941
2415
if test -z "$ac_cv_prog_STRIP"; then
1942
2416
  ac_ct_STRIP=$STRIP
1943
2417
  # Extract the first word of "strip", so it can be a program name with args.
1944
2418
set dummy strip; ac_word=$2
1945
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1946
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2419
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1947
2421
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948
2422
  echo $ECHO_N "(cached) $ECHO_C" >&6
1949
2423
else
1956
2430
  IFS=$as_save_IFS
1957
2431
  test -z "$as_dir" && as_dir=.
1958
2432
  for ac_exec_ext in '' $ac_executable_extensions; do
1959
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2433
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1960
2434
    ac_cv_prog_ac_ct_STRIP="strip"
1961
2435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962
2436
    break 2
1963
2437
  fi
1964
2438
done
1965
2439
done
 
2440
IFS=$as_save_IFS
1966
2441
 
1967
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1968
2442
fi
1969
2443
fi
1970
2444
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971
2445
if test -n "$ac_ct_STRIP"; then
1972
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2446
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2447
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1974
2448
else
1975
 
  echo "$as_me:$LINENO: result: no" >&5
1976
 
echo "${ECHO_T}no" >&6
 
2449
  { echo "$as_me:$LINENO: result: no" >&5
 
2450
echo "${ECHO_T}no" >&6; }
1977
2451
fi
1978
2452
 
1979
 
  STRIP=$ac_ct_STRIP
 
2453
  if test "x$ac_ct_STRIP" = x; then
 
2454
    STRIP=":"
 
2455
  else
 
2456
    case $cross_compiling:$ac_tool_warned in
 
2457
yes:)
 
2458
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2459
whose name does not start with the host triplet.  If you think this
 
2460
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2461
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2462
whose name does not start with the host triplet.  If you think this
 
2463
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2464
ac_tool_warned=yes ;;
 
2465
esac
 
2466
    STRIP=$ac_ct_STRIP
 
2467
  fi
1980
2468
else
1981
2469
  STRIP="$ac_cv_prog_STRIP"
1982
2470
fi
1996
2484
 
1997
2485
 
1998
2486
 
1999
 
          ac_config_headers="$ac_config_headers src/config.h"
 
2487
ac_config_headers="$ac_config_headers src/config.h"
2000
2488
 
2001
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2002
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2003
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
2489
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2490
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2491
    # Check whether --enable-maintainer-mode was given.
2004
2492
if test "${enable_maintainer_mode+set}" = set; then
2005
 
  enableval="$enable_maintainer_mode"
2006
 
  USE_MAINTAINER_MODE=$enableval
 
2493
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2007
2494
else
2008
2495
  USE_MAINTAINER_MODE=no
2009
 
fi;
2010
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2011
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
2496
fi
 
2497
 
 
2498
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2499
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2012
2500
 
2013
2501
 
2014
2502
if test $USE_MAINTAINER_MODE = yes; then
2026
2514
API_VERSION=1:0:1
2027
2515
 
2028
2516
 
 
2517
 
 
2518
 
 
2519
        MKINSTALLDIRS=
 
2520
  if test -n "$ac_aux_dir"; then
 
2521
    case "$ac_aux_dir" in
 
2522
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
2523
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
2524
    esac
 
2525
  fi
 
2526
  if test -z "$MKINSTALLDIRS"; then
 
2527
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
2528
  fi
 
2529
 
 
2530
 
 
2531
 
 
2532
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
2533
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
2534
    # Check whether --enable-nls was given.
 
2535
if test "${enable_nls+set}" = set; then
 
2536
  enableval=$enable_nls; USE_NLS=$enableval
 
2537
else
 
2538
  USE_NLS=yes
 
2539
fi
 
2540
 
 
2541
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
2542
echo "${ECHO_T}$USE_NLS" >&6; }
 
2543
 
 
2544
 
 
2545
 
 
2546
 
 
2547
 
 
2548
 
 
2549
# Prepare PATH_SEPARATOR.
 
2550
# The user is always right.
 
2551
if test "${PATH_SEPARATOR+set}" != set; then
 
2552
  echo "#! /bin/sh" >conf$$.sh
 
2553
  echo  "exit 0"   >>conf$$.sh
 
2554
  chmod +x conf$$.sh
 
2555
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
2556
    PATH_SEPARATOR=';'
 
2557
  else
 
2558
    PATH_SEPARATOR=:
 
2559
  fi
 
2560
  rm -f conf$$.sh
 
2561
fi
 
2562
 
 
2563
# Find out how to test for executable files. Don't use a zero-byte file,
 
2564
# as systems may use methods other than mode bits to determine executability.
 
2565
cat >conf$$.file <<_ASEOF
 
2566
#! /bin/sh
 
2567
exit 0
 
2568
_ASEOF
 
2569
chmod +x conf$$.file
 
2570
if test -x conf$$.file >/dev/null 2>&1; then
 
2571
  ac_executable_p="test -x"
 
2572
else
 
2573
  ac_executable_p="test -f"
 
2574
fi
 
2575
rm -f conf$$.file
 
2576
 
 
2577
# Extract the first word of "msgfmt", so it can be a program name with args.
 
2578
set dummy msgfmt; ac_word=$2
 
2579
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2581
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
2582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2583
else
 
2584
  case "$MSGFMT" in
 
2585
  [\\/]* | ?:[\\/]*)
 
2586
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2587
    ;;
 
2588
  *)
 
2589
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
2590
    for ac_dir in $PATH; do
 
2591
      IFS="$ac_save_IFS"
 
2592
      test -z "$ac_dir" && ac_dir=.
 
2593
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2594
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
2595
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
2596
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
2597
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
2598
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
2599
            break 2
 
2600
          fi
 
2601
        fi
 
2602
      done
 
2603
    done
 
2604
    IFS="$ac_save_IFS"
 
2605
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
2606
    ;;
 
2607
esac
 
2608
fi
 
2609
MSGFMT="$ac_cv_path_MSGFMT"
 
2610
if test "$MSGFMT" != ":"; then
 
2611
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
2612
echo "${ECHO_T}$MSGFMT" >&6; }
 
2613
else
 
2614
  { echo "$as_me:$LINENO: result: no" >&5
 
2615
echo "${ECHO_T}no" >&6; }
 
2616
fi
 
2617
 
 
2618
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2619
set dummy gmsgfmt; ac_word=$2
 
2620
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2622
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
2623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2624
else
 
2625
  case $GMSGFMT in
 
2626
  [\\/]* | ?:[\\/]*)
 
2627
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2628
  ;;
 
2629
  *)
 
2630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2631
for as_dir in $PATH
 
2632
do
 
2633
  IFS=$as_save_IFS
 
2634
  test -z "$as_dir" && as_dir=.
 
2635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2637
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
2638
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2639
    break 2
 
2640
  fi
 
2641
done
 
2642
done
 
2643
IFS=$as_save_IFS
 
2644
 
 
2645
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2646
  ;;
 
2647
esac
 
2648
fi
 
2649
GMSGFMT=$ac_cv_path_GMSGFMT
 
2650
if test -n "$GMSGFMT"; then
 
2651
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
2652
echo "${ECHO_T}$GMSGFMT" >&6; }
 
2653
else
 
2654
  { echo "$as_me:$LINENO: result: no" >&5
 
2655
echo "${ECHO_T}no" >&6; }
 
2656
fi
 
2657
 
 
2658
 
 
2659
 
 
2660
 
 
2661
# Prepare PATH_SEPARATOR.
 
2662
# The user is always right.
 
2663
if test "${PATH_SEPARATOR+set}" != set; then
 
2664
  echo "#! /bin/sh" >conf$$.sh
 
2665
  echo  "exit 0"   >>conf$$.sh
 
2666
  chmod +x conf$$.sh
 
2667
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
2668
    PATH_SEPARATOR=';'
 
2669
  else
 
2670
    PATH_SEPARATOR=:
 
2671
  fi
 
2672
  rm -f conf$$.sh
 
2673
fi
 
2674
 
 
2675
# Find out how to test for executable files. Don't use a zero-byte file,
 
2676
# as systems may use methods other than mode bits to determine executability.
 
2677
cat >conf$$.file <<_ASEOF
 
2678
#! /bin/sh
 
2679
exit 0
 
2680
_ASEOF
 
2681
chmod +x conf$$.file
 
2682
if test -x conf$$.file >/dev/null 2>&1; then
 
2683
  ac_executable_p="test -x"
 
2684
else
 
2685
  ac_executable_p="test -f"
 
2686
fi
 
2687
rm -f conf$$.file
 
2688
 
 
2689
# Extract the first word of "xgettext", so it can be a program name with args.
 
2690
set dummy xgettext; ac_word=$2
 
2691
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2693
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
2694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2695
else
 
2696
  case "$XGETTEXT" in
 
2697
  [\\/]* | ?:[\\/]*)
 
2698
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2699
    ;;
 
2700
  *)
 
2701
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
2702
    for ac_dir in $PATH; do
 
2703
      IFS="$ac_save_IFS"
 
2704
      test -z "$ac_dir" && ac_dir=.
 
2705
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2706
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
2707
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
2708
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
2709
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
2710
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
2711
            break 2
 
2712
          fi
 
2713
        fi
 
2714
      done
 
2715
    done
 
2716
    IFS="$ac_save_IFS"
 
2717
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2718
    ;;
 
2719
esac
 
2720
fi
 
2721
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2722
if test "$XGETTEXT" != ":"; then
 
2723
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
2724
echo "${ECHO_T}$XGETTEXT" >&6; }
 
2725
else
 
2726
  { echo "$as_me:$LINENO: result: no" >&5
 
2727
echo "${ECHO_T}no" >&6; }
 
2728
fi
 
2729
 
 
2730
    rm -f messages.po
 
2731
 
 
2732
 
 
2733
# Prepare PATH_SEPARATOR.
 
2734
# The user is always right.
 
2735
if test "${PATH_SEPARATOR+set}" != set; then
 
2736
  echo "#! /bin/sh" >conf$$.sh
 
2737
  echo  "exit 0"   >>conf$$.sh
 
2738
  chmod +x conf$$.sh
 
2739
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
2740
    PATH_SEPARATOR=';'
 
2741
  else
 
2742
    PATH_SEPARATOR=:
 
2743
  fi
 
2744
  rm -f conf$$.sh
 
2745
fi
 
2746
 
 
2747
# Find out how to test for executable files. Don't use a zero-byte file,
 
2748
# as systems may use methods other than mode bits to determine executability.
 
2749
cat >conf$$.file <<_ASEOF
 
2750
#! /bin/sh
 
2751
exit 0
 
2752
_ASEOF
 
2753
chmod +x conf$$.file
 
2754
if test -x conf$$.file >/dev/null 2>&1; then
 
2755
  ac_executable_p="test -x"
 
2756
else
 
2757
  ac_executable_p="test -f"
 
2758
fi
 
2759
rm -f conf$$.file
 
2760
 
 
2761
# Extract the first word of "msgmerge", so it can be a program name with args.
 
2762
set dummy msgmerge; ac_word=$2
 
2763
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2764
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2765
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
2766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2767
else
 
2768
  case "$MSGMERGE" in
 
2769
  [\\/]* | ?:[\\/]*)
 
2770
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
2771
    ;;
 
2772
  *)
 
2773
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
2774
    for ac_dir in $PATH; do
 
2775
      IFS="$ac_save_IFS"
 
2776
      test -z "$ac_dir" && ac_dir=.
 
2777
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2778
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
2779
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
2780
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
2781
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
2782
            break 2
 
2783
          fi
 
2784
        fi
 
2785
      done
 
2786
    done
 
2787
    IFS="$ac_save_IFS"
 
2788
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
2789
    ;;
 
2790
esac
 
2791
fi
 
2792
MSGMERGE="$ac_cv_path_MSGMERGE"
 
2793
if test "$MSGMERGE" != ":"; then
 
2794
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
2795
echo "${ECHO_T}$MSGMERGE" >&6; }
 
2796
else
 
2797
  { echo "$as_me:$LINENO: result: no" >&5
 
2798
echo "${ECHO_T}no" >&6; }
 
2799
fi
 
2800
 
 
2801
 
 
2802
      if test "$GMSGFMT" != ":"; then
 
2803
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
2804
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
2805
      : ;
 
2806
    else
 
2807
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
2808
      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
2809
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
 
2810
      GMSGFMT=":"
 
2811
    fi
 
2812
  fi
 
2813
 
 
2814
      if test "$XGETTEXT" != ":"; then
 
2815
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
2816
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
2817
      : ;
 
2818
    else
 
2819
      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
2820
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 
2821
      XGETTEXT=":"
 
2822
    fi
 
2823
        rm -f messages.po
 
2824
  fi
 
2825
 
 
2826
  ac_config_commands="$ac_config_commands default-1"
 
2827
 
 
2828
 
 
2829
DEPDIR="${am__leading_dot}deps"
 
2830
 
 
2831
ac_config_commands="$ac_config_commands depfiles"
 
2832
 
 
2833
 
 
2834
am_make=${MAKE-make}
 
2835
cat > confinc << 'END'
 
2836
am__doit:
 
2837
        @echo done
 
2838
.PHONY: am__doit
 
2839
END
 
2840
# If we don't find an include directive, just comment out the code.
 
2841
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2842
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2843
am__include="#"
 
2844
am__quote=
 
2845
_am_result=none
 
2846
# First try GNU make style include.
 
2847
echo "include confinc" > confmf
 
2848
# We grep out `Entering directory' and `Leaving directory'
 
2849
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2850
# In particular we don't look at `^make:' because GNU make might
 
2851
# be invoked under some other name (usually "gmake"), in which
 
2852
# case it prints its new name instead of `make'.
 
2853
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2854
   am__include=include
 
2855
   am__quote=
 
2856
   _am_result=GNU
 
2857
fi
 
2858
# Now try BSD make style include.
 
2859
if test "$am__include" = "#"; then
 
2860
   echo '.include "confinc"' > confmf
 
2861
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2862
      am__include=.include
 
2863
      am__quote="\""
 
2864
      _am_result=BSD
 
2865
   fi
 
2866
fi
 
2867
 
 
2868
 
 
2869
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2870
echo "${ECHO_T}$_am_result" >&6; }
 
2871
rm -f confinc confmf
 
2872
 
 
2873
# Check whether --enable-dependency-tracking was given.
 
2874
if test "${enable_dependency_tracking+set}" = set; then
 
2875
  enableval=$enable_dependency_tracking;
 
2876
fi
 
2877
 
 
2878
if test "x$enable_dependency_tracking" != xno; then
 
2879
  am_depcomp="$ac_aux_dir/depcomp"
 
2880
  AMDEPBACKSLASH='\'
 
2881
fi
 
2882
 
 
2883
 
 
2884
if test "x$enable_dependency_tracking" != xno; then
 
2885
  AMDEP_TRUE=
 
2886
  AMDEP_FALSE='#'
 
2887
else
 
2888
  AMDEP_TRUE='#'
 
2889
  AMDEP_FALSE=
 
2890
fi
 
2891
 
 
2892
 
 
2893
 
2029
2894
ac_ext=c
2030
2895
ac_cpp='$CPP $CPPFLAGS'
2031
2896
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034
2899
if test -n "$ac_tool_prefix"; then
2035
2900
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036
2901
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2038
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2902
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039
2904
if test "${ac_cv_prog_CC+set}" = set; then
2040
2905
  echo $ECHO_N "(cached) $ECHO_C" >&6
2041
2906
else
2048
2913
  IFS=$as_save_IFS
2049
2914
  test -z "$as_dir" && as_dir=.
2050
2915
  for ac_exec_ext in '' $ac_executable_extensions; do
2051
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2916
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052
2917
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053
2918
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054
2919
    break 2
2055
2920
  fi
2056
2921
done
2057
2922
done
 
2923
IFS=$as_save_IFS
2058
2924
 
2059
2925
fi
2060
2926
fi
2061
2927
CC=$ac_cv_prog_CC
2062
2928
if test -n "$CC"; then
2063
 
  echo "$as_me:$LINENO: result: $CC" >&5
2064
 
echo "${ECHO_T}$CC" >&6
 
2929
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2930
echo "${ECHO_T}$CC" >&6; }
2065
2931
else
2066
 
  echo "$as_me:$LINENO: result: no" >&5
2067
 
echo "${ECHO_T}no" >&6
 
2932
  { echo "$as_me:$LINENO: result: no" >&5
 
2933
echo "${ECHO_T}no" >&6; }
2068
2934
fi
 
2935
 
2069
2936
 
2070
2937
fi
2071
2938
if test -z "$ac_cv_prog_CC"; then
2072
2939
  ac_ct_CC=$CC
2073
2940
  # Extract the first word of "gcc", so it can be a program name with args.
2074
2941
set dummy gcc; ac_word=$2
2075
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2076
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2942
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2943
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077
2944
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078
2945
  echo $ECHO_N "(cached) $ECHO_C" >&6
2079
2946
else
2086
2953
  IFS=$as_save_IFS
2087
2954
  test -z "$as_dir" && as_dir=.
2088
2955
  for ac_exec_ext in '' $ac_executable_extensions; do
2089
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2956
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2090
2957
    ac_cv_prog_ac_ct_CC="gcc"
2091
2958
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092
2959
    break 2
2093
2960
  fi
2094
2961
done
2095
2962
done
 
2963
IFS=$as_save_IFS
2096
2964
 
2097
2965
fi
2098
2966
fi
2099
2967
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100
2968
if test -n "$ac_ct_CC"; then
2101
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2969
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2970
echo "${ECHO_T}$ac_ct_CC" >&6; }
2103
2971
else
2104
 
  echo "$as_me:$LINENO: result: no" >&5
2105
 
echo "${ECHO_T}no" >&6
 
2972
  { echo "$as_me:$LINENO: result: no" >&5
 
2973
echo "${ECHO_T}no" >&6; }
2106
2974
fi
2107
2975
 
2108
 
  CC=$ac_ct_CC
 
2976
  if test "x$ac_ct_CC" = x; then
 
2977
    CC=""
 
2978
  else
 
2979
    case $cross_compiling:$ac_tool_warned in
 
2980
yes:)
 
2981
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2982
whose name does not start with the host triplet.  If you think this
 
2983
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2984
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2985
whose name does not start with the host triplet.  If you think this
 
2986
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2987
ac_tool_warned=yes ;;
 
2988
esac
 
2989
    CC=$ac_ct_CC
 
2990
  fi
2109
2991
else
2110
2992
  CC="$ac_cv_prog_CC"
2111
2993
fi
2112
2994
 
2113
2995
if test -z "$CC"; then
2114
 
  if test -n "$ac_tool_prefix"; then
2115
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2996
          if test -n "$ac_tool_prefix"; then
 
2997
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2116
2998
set dummy ${ac_tool_prefix}cc; ac_word=$2
2117
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2118
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2999
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3000
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2119
3001
if test "${ac_cv_prog_CC+set}" = set; then
2120
3002
  echo $ECHO_N "(cached) $ECHO_C" >&6
2121
3003
else
2128
3010
  IFS=$as_save_IFS
2129
3011
  test -z "$as_dir" && as_dir=.
2130
3012
  for ac_exec_ext in '' $ac_executable_extensions; do
2131
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2132
3014
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2133
3015
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134
3016
    break 2
2135
3017
  fi
2136
3018
done
2137
3019
done
 
3020
IFS=$as_save_IFS
2138
3021
 
2139
3022
fi
2140
3023
fi
2141
3024
CC=$ac_cv_prog_CC
2142
3025
if test -n "$CC"; then
2143
 
  echo "$as_me:$LINENO: result: $CC" >&5
2144
 
echo "${ECHO_T}$CC" >&6
2145
 
else
2146
 
  echo "$as_me:$LINENO: result: no" >&5
2147
 
echo "${ECHO_T}no" >&6
2148
 
fi
2149
 
 
2150
 
fi
2151
 
if test -z "$ac_cv_prog_CC"; then
2152
 
  ac_ct_CC=$CC
2153
 
  # Extract the first word of "cc", so it can be a program name with args.
2154
 
set dummy cc; ac_word=$2
2155
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2156
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2159
 
else
2160
 
  if test -n "$ac_ct_CC"; then
2161
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162
 
else
2163
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164
 
for as_dir in $PATH
2165
 
do
2166
 
  IFS=$as_save_IFS
2167
 
  test -z "$as_dir" && as_dir=.
2168
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2169
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170
 
    ac_cv_prog_ac_ct_CC="cc"
2171
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172
 
    break 2
 
3026
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3027
echo "${ECHO_T}$CC" >&6; }
 
3028
else
 
3029
  { echo "$as_me:$LINENO: result: no" >&5
 
3030
echo "${ECHO_T}no" >&6; }
 
3031
fi
 
3032
 
 
3033
 
2173
3034
  fi
2174
 
done
2175
 
done
2176
 
 
2177
 
fi
2178
 
fi
2179
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180
 
if test -n "$ac_ct_CC"; then
2181
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182
 
echo "${ECHO_T}$ac_ct_CC" >&6
2183
 
else
2184
 
  echo "$as_me:$LINENO: result: no" >&5
2185
 
echo "${ECHO_T}no" >&6
2186
 
fi
2187
 
 
2188
 
  CC=$ac_ct_CC
2189
 
else
2190
 
  CC="$ac_cv_prog_CC"
2191
 
fi
2192
 
 
2193
3035
fi
2194
3036
if test -z "$CC"; then
2195
3037
  # Extract the first word of "cc", so it can be a program name with args.
2196
3038
set dummy cc; ac_word=$2
2197
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2198
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3039
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3040
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199
3041
if test "${ac_cv_prog_CC+set}" = set; then
2200
3042
  echo $ECHO_N "(cached) $ECHO_C" >&6
2201
3043
else
2209
3051
  IFS=$as_save_IFS
2210
3052
  test -z "$as_dir" && as_dir=.
2211
3053
  for ac_exec_ext in '' $ac_executable_extensions; do
2212
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2213
3055
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2214
3056
       ac_prog_rejected=yes
2215
3057
       continue
2220
3062
  fi
2221
3063
done
2222
3064
done
 
3065
IFS=$as_save_IFS
2223
3066
 
2224
3067
if test $ac_prog_rejected = yes; then
2225
3068
  # We found a bogon in the path, so make sure we never use it.
2237
3080
fi
2238
3081
CC=$ac_cv_prog_CC
2239
3082
if test -n "$CC"; then
2240
 
  echo "$as_me:$LINENO: result: $CC" >&5
2241
 
echo "${ECHO_T}$CC" >&6
 
3083
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3084
echo "${ECHO_T}$CC" >&6; }
2242
3085
else
2243
 
  echo "$as_me:$LINENO: result: no" >&5
2244
 
echo "${ECHO_T}no" >&6
 
3086
  { echo "$as_me:$LINENO: result: no" >&5
 
3087
echo "${ECHO_T}no" >&6; }
2245
3088
fi
 
3089
 
2246
3090
 
2247
3091
fi
2248
3092
if test -z "$CC"; then
2249
3093
  if test -n "$ac_tool_prefix"; then
2250
 
  for ac_prog in cl
 
3094
  for ac_prog in cl.exe
2251
3095
  do
2252
3096
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2253
3097
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2254
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2255
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3098
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256
3100
if test "${ac_cv_prog_CC+set}" = set; then
2257
3101
  echo $ECHO_N "(cached) $ECHO_C" >&6
2258
3102
else
2265
3109
  IFS=$as_save_IFS
2266
3110
  test -z "$as_dir" && as_dir=.
2267
3111
  for ac_exec_ext in '' $ac_executable_extensions; do
2268
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2269
3113
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2270
3114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271
3115
    break 2
2272
3116
  fi
2273
3117
done
2274
3118
done
 
3119
IFS=$as_save_IFS
2275
3120
 
2276
3121
fi
2277
3122
fi
2278
3123
CC=$ac_cv_prog_CC
2279
3124
if test -n "$CC"; then
2280
 
  echo "$as_me:$LINENO: result: $CC" >&5
2281
 
echo "${ECHO_T}$CC" >&6
 
3125
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3126
echo "${ECHO_T}$CC" >&6; }
2282
3127
else
2283
 
  echo "$as_me:$LINENO: result: no" >&5
2284
 
echo "${ECHO_T}no" >&6
 
3128
  { echo "$as_me:$LINENO: result: no" >&5
 
3129
echo "${ECHO_T}no" >&6; }
2285
3130
fi
2286
3131
 
 
3132
 
2287
3133
    test -n "$CC" && break
2288
3134
  done
2289
3135
fi
2290
3136
if test -z "$CC"; then
2291
3137
  ac_ct_CC=$CC
2292
 
  for ac_prog in cl
 
3138
  for ac_prog in cl.exe
2293
3139
do
2294
3140
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2295
3141
set dummy $ac_prog; ac_word=$2
2296
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2297
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3142
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298
3144
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299
3145
  echo $ECHO_N "(cached) $ECHO_C" >&6
2300
3146
else
2307
3153
  IFS=$as_save_IFS
2308
3154
  test -z "$as_dir" && as_dir=.
2309
3155
  for ac_exec_ext in '' $ac_executable_extensions; do
2310
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3156
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2311
3157
    ac_cv_prog_ac_ct_CC="$ac_prog"
2312
3158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313
3159
    break 2
2314
3160
  fi
2315
3161
done
2316
3162
done
 
3163
IFS=$as_save_IFS
2317
3164
 
2318
3165
fi
2319
3166
fi
2320
3167
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321
3168
if test -n "$ac_ct_CC"; then
2322
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3169
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3170
echo "${ECHO_T}$ac_ct_CC" >&6; }
2324
3171
else
2325
 
  echo "$as_me:$LINENO: result: no" >&5
2326
 
echo "${ECHO_T}no" >&6
 
3172
  { echo "$as_me:$LINENO: result: no" >&5
 
3173
echo "${ECHO_T}no" >&6; }
2327
3174
fi
2328
3175
 
 
3176
 
2329
3177
  test -n "$ac_ct_CC" && break
2330
3178
done
2331
3179
 
2332
 
  CC=$ac_ct_CC
 
3180
  if test "x$ac_ct_CC" = x; then
 
3181
    CC=""
 
3182
  else
 
3183
    case $cross_compiling:$ac_tool_warned in
 
3184
yes:)
 
3185
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3186
whose name does not start with the host triplet.  If you think this
 
3187
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3188
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3189
whose name does not start with the host triplet.  If you think this
 
3190
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3191
ac_tool_warned=yes ;;
 
3192
esac
 
3193
    CC=$ac_ct_CC
 
3194
  fi
2333
3195
fi
2334
3196
 
2335
3197
fi
2342
3204
   { (exit 1); exit 1; }; }
2343
3205
 
2344
3206
# Provide some information about the compiler.
2345
 
echo "$as_me:$LINENO:" \
2346
 
     "checking for C compiler version" >&5
 
3207
echo "$as_me:$LINENO: checking for C compiler version" >&5
2347
3208
ac_compiler=`set X $ac_compile; echo $2`
2348
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2349
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2350
 
  ac_status=$?
2351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
 
  (exit $ac_status); }
2353
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2354
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2355
 
  ac_status=$?
2356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357
 
  (exit $ac_status); }
2358
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2359
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3209
{ (ac_try="$ac_compiler --version >&5"
 
3210
case "(($ac_try" in
 
3211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3212
  *) ac_try_echo=$ac_try;;
 
3213
esac
 
3214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3215
  (eval "$ac_compiler --version >&5") 2>&5
 
3216
  ac_status=$?
 
3217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3218
  (exit $ac_status); }
 
3219
{ (ac_try="$ac_compiler -v >&5"
 
3220
case "(($ac_try" in
 
3221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3222
  *) ac_try_echo=$ac_try;;
 
3223
esac
 
3224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3225
  (eval "$ac_compiler -v >&5") 2>&5
 
3226
  ac_status=$?
 
3227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3228
  (exit $ac_status); }
 
3229
{ (ac_try="$ac_compiler -V >&5"
 
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_compiler -V >&5") 2>&5
2360
3236
  ac_status=$?
2361
3237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362
3238
  (exit $ac_status); }
2381
3257
# Try to create an executable without -o first, disregard a.out.
2382
3258
# It will help us diagnose broken compilers, and finding out an intuition
2383
3259
# of exeext.
2384
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2385
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3260
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3261
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2386
3262
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2387
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2388
 
  (eval $ac_link_default) 2>&5
 
3263
#
 
3264
# List of possible output files, starting from the most likely.
 
3265
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3266
# only as a last resort.  b.out is created by i960 compilers.
 
3267
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3268
#
 
3269
# The IRIX 6 linker writes into existing files which may not be
 
3270
# executable, retaining their permissions.  Remove them first so a
 
3271
# subsequent execution test works.
 
3272
ac_rmfiles=
 
3273
for ac_file in $ac_files
 
3274
do
 
3275
  case $ac_file in
 
3276
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3277
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3278
  esac
 
3279
done
 
3280
rm -f $ac_rmfiles
 
3281
 
 
3282
if { (ac_try="$ac_link_default"
 
3283
case "(($ac_try" in
 
3284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3285
  *) ac_try_echo=$ac_try;;
 
3286
esac
 
3287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3288
  (eval "$ac_link_default") 2>&5
2389
3289
  ac_status=$?
2390
3290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391
3291
  (exit $ac_status); }; then
2392
 
  # Find the output, starting from the most likely.  This scheme is
2393
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2394
 
# resort.
2395
 
 
2396
 
# Be careful to initialize this variable, since it used to be cached.
2397
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2398
 
ac_cv_exeext=
2399
 
# b.out is created by i960 compilers.
2400
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3292
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3293
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3294
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3295
# so that the user can short-circuit this test for compilers unknown to
 
3296
# Autoconf.
 
3297
for ac_file in $ac_files ''
2401
3298
do
2402
3299
  test -f "$ac_file" || continue
2403
3300
  case $ac_file in
2404
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2405
 
        ;;
2406
 
    conftest.$ac_ext )
2407
 
        # This is the source file.
 
3301
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2408
3302
        ;;
2409
3303
    [ab].out )
2410
3304
        # We found the default executable, but exeext='' is most
2411
3305
        # certainly right.
2412
3306
        break;;
2413
3307
    *.* )
2414
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2416
 
        # but it would be cool to find out if it's true.  Does anybody
2417
 
        # maintain Libtool? --akim.
2418
 
        export ac_cv_exeext
 
3308
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3309
        then :; else
 
3310
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3311
        fi
 
3312
        # We set ac_cv_exeext here because the later test for it is not
 
3313
        # safe: cross compilers may not add the suffix if given an `-o'
 
3314
        # argument, so we may need to know it at that point already.
 
3315
        # Even if this section looks crufty: it has the advantage of
 
3316
        # actually working.
2419
3317
        break;;
2420
3318
    * )
2421
3319
        break;;
2422
3320
  esac
2423
3321
done
 
3322
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3323
 
2424
3324
else
 
3325
  ac_file=''
 
3326
fi
 
3327
 
 
3328
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3329
echo "${ECHO_T}$ac_file" >&6; }
 
3330
if test -z "$ac_file"; then
2425
3331
  echo "$as_me: failed program was:" >&5
2426
3332
sed 's/^/| /' conftest.$ac_ext >&5
2427
3333
 
2433
3339
fi
2434
3340
 
2435
3341
ac_exeext=$ac_cv_exeext
2436
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2437
 
echo "${ECHO_T}$ac_file" >&6
2438
3342
 
2439
 
# Check the compiler produces executables we can run.  If not, either
 
3343
# Check that the compiler produces executables we can run.  If not, either
2440
3344
# the compiler is broken, or we cross compile.
2441
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3345
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3346
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2443
3347
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444
3348
# If not cross compiling, check that we can run a simple program.
2445
3349
if test "$cross_compiling" != yes; then
2446
3350
  if { ac_try='./$ac_file'
2447
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448
 
  (eval $ac_try) 2>&5
 
3351
  { (case "(($ac_try" in
 
3352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3353
  *) ac_try_echo=$ac_try;;
 
3354
esac
 
3355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3356
  (eval "$ac_try") 2>&5
2449
3357
  ac_status=$?
2450
3358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451
3359
  (exit $ac_status); }; }; then
2464
3372
    fi
2465
3373
  fi
2466
3374
fi
2467
 
echo "$as_me:$LINENO: result: yes" >&5
2468
 
echo "${ECHO_T}yes" >&6
 
3375
{ echo "$as_me:$LINENO: result: yes" >&5
 
3376
echo "${ECHO_T}yes" >&6; }
2469
3377
 
2470
3378
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2471
3379
ac_clean_files=$ac_clean_files_save
2472
 
# Check the compiler produces executables we can run.  If not, either
 
3380
# Check that the compiler produces executables we can run.  If not, either
2473
3381
# the compiler is broken, or we cross compile.
2474
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2475
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2476
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2477
 
echo "${ECHO_T}$cross_compiling" >&6
 
3382
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3383
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3384
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3385
echo "${ECHO_T}$cross_compiling" >&6; }
2478
3386
 
2479
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2480
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2481
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2482
 
  (eval $ac_link) 2>&5
 
3387
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3388
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3389
if { (ac_try="$ac_link"
 
3390
case "(($ac_try" in
 
3391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3392
  *) ac_try_echo=$ac_try;;
 
3393
esac
 
3394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3395
  (eval "$ac_link") 2>&5
2483
3396
  ac_status=$?
2484
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
3398
  (exit $ac_status); }; then
2490
3403
for ac_file in conftest.exe conftest conftest.*; do
2491
3404
  test -f "$ac_file" || continue
2492
3405
  case $ac_file in
2493
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3406
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2494
3407
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2495
 
          export ac_cv_exeext
2496
3408
          break;;
2497
3409
    * ) break;;
2498
3410
  esac
2506
3418
fi
2507
3419
 
2508
3420
rm -f conftest$ac_cv_exeext
2509
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2510
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3421
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3422
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2511
3423
 
2512
3424
rm -f conftest.$ac_ext
2513
3425
EXEEXT=$ac_cv_exeext
2514
3426
ac_exeext=$EXEEXT
2515
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2516
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3427
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3428
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2517
3429
if test "${ac_cv_objext+set}" = set; then
2518
3430
  echo $ECHO_N "(cached) $ECHO_C" >&6
2519
3431
else
2533
3445
}
2534
3446
_ACEOF
2535
3447
rm -f conftest.o conftest.obj
2536
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537
 
  (eval $ac_compile) 2>&5
 
3448
if { (ac_try="$ac_compile"
 
3449
case "(($ac_try" in
 
3450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3451
  *) ac_try_echo=$ac_try;;
 
3452
esac
 
3453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3454
  (eval "$ac_compile") 2>&5
2538
3455
  ac_status=$?
2539
3456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
3457
  (exit $ac_status); }; then
2541
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3458
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3459
  test -f "$ac_file" || continue;
2542
3460
  case $ac_file in
2543
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3461
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2544
3462
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2545
3463
       break;;
2546
3464
  esac
2558
3476
 
2559
3477
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2560
3478
fi
2561
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2562
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3479
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3480
echo "${ECHO_T}$ac_cv_objext" >&6; }
2563
3481
OBJEXT=$ac_cv_objext
2564
3482
ac_objext=$OBJEXT
2565
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2566
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3483
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3484
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2567
3485
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2568
3486
  echo $ECHO_N "(cached) $ECHO_C" >&6
2569
3487
else
2586
3504
}
2587
3505
_ACEOF
2588
3506
rm -f conftest.$ac_objext
2589
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590
 
  (eval $ac_compile) 2>conftest.er1
 
3507
if { (ac_try="$ac_compile"
 
3508
case "(($ac_try" in
 
3509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3510
  *) ac_try_echo=$ac_try;;
 
3511
esac
 
3512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3513
  (eval "$ac_compile") 2>conftest.er1
2591
3514
  ac_status=$?
2592
3515
  grep -v '^ *+' conftest.er1 >conftest.err
2593
3516
  rm -f conftest.er1
2594
3517
  cat conftest.err >&5
2595
3518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596
3519
  (exit $ac_status); } &&
2597
 
         { ac_try='test -z "$ac_c_werror_flag"
2598
 
                         || test ! -s conftest.err'
2599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600
 
  (eval $ac_try) 2>&5
 
3520
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3521
  { (case "(($ac_try" in
 
3522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3523
  *) ac_try_echo=$ac_try;;
 
3524
esac
 
3525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3526
  (eval "$ac_try") 2>&5
2601
3527
  ac_status=$?
2602
3528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
3529
  (exit $ac_status); }; } &&
2604
3530
         { ac_try='test -s conftest.$ac_objext'
2605
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606
 
  (eval $ac_try) 2>&5
 
3531
  { (case "(($ac_try" in
 
3532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3533
  *) ac_try_echo=$ac_try;;
 
3534
esac
 
3535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3536
  (eval "$ac_try") 2>&5
2607
3537
  ac_status=$?
2608
3538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609
3539
  (exit $ac_status); }; }; then
2612
3542
  echo "$as_me: failed program was:" >&5
2613
3543
sed 's/^/| /' conftest.$ac_ext >&5
2614
3544
 
2615
 
ac_compiler_gnu=no
 
3545
        ac_compiler_gnu=no
2616
3546
fi
2617
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3547
 
 
3548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618
3549
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2619
3550
 
2620
3551
fi
2621
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2622
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3552
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3553
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2623
3554
GCC=`test $ac_compiler_gnu = yes && echo yes`
2624
3555
ac_test_CFLAGS=${CFLAGS+set}
2625
3556
ac_save_CFLAGS=$CFLAGS
2626
 
CFLAGS="-g"
2627
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2628
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3557
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3558
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2629
3559
if test "${ac_cv_prog_cc_g+set}" = set; then
2630
3560
  echo $ECHO_N "(cached) $ECHO_C" >&6
2631
3561
else
2632
 
  cat >conftest.$ac_ext <<_ACEOF
2633
 
/* confdefs.h.  */
2634
 
_ACEOF
2635
 
cat confdefs.h >>conftest.$ac_ext
2636
 
cat >>conftest.$ac_ext <<_ACEOF
2637
 
/* end confdefs.h.  */
2638
 
 
2639
 
int
2640
 
main ()
2641
 
{
2642
 
 
2643
 
  ;
2644
 
  return 0;
2645
 
}
2646
 
_ACEOF
2647
 
rm -f conftest.$ac_objext
2648
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649
 
  (eval $ac_compile) 2>conftest.er1
2650
 
  ac_status=$?
2651
 
  grep -v '^ *+' conftest.er1 >conftest.err
2652
 
  rm -f conftest.er1
2653
 
  cat conftest.err >&5
2654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
 
  (exit $ac_status); } &&
2656
 
         { ac_try='test -z "$ac_c_werror_flag"
2657
 
                         || test ! -s conftest.err'
2658
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659
 
  (eval $ac_try) 2>&5
2660
 
  ac_status=$?
2661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662
 
  (exit $ac_status); }; } &&
2663
 
         { ac_try='test -s conftest.$ac_objext'
2664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665
 
  (eval $ac_try) 2>&5
2666
 
  ac_status=$?
2667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668
 
  (exit $ac_status); }; }; then
2669
 
  ac_cv_prog_cc_g=yes
2670
 
else
2671
 
  echo "$as_me: failed program was:" >&5
2672
 
sed 's/^/| /' conftest.$ac_ext >&5
2673
 
 
2674
 
ac_cv_prog_cc_g=no
2675
 
fi
2676
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677
 
fi
2678
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2679
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3562
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3563
   ac_c_werror_flag=yes
 
3564
   ac_cv_prog_cc_g=no
 
3565
   CFLAGS="-g"
 
3566
   cat >conftest.$ac_ext <<_ACEOF
 
3567
/* confdefs.h.  */
 
3568
_ACEOF
 
3569
cat confdefs.h >>conftest.$ac_ext
 
3570
cat >>conftest.$ac_ext <<_ACEOF
 
3571
/* end confdefs.h.  */
 
3572
 
 
3573
int
 
3574
main ()
 
3575
{
 
3576
 
 
3577
  ;
 
3578
  return 0;
 
3579
}
 
3580
_ACEOF
 
3581
rm -f conftest.$ac_objext
 
3582
if { (ac_try="$ac_compile"
 
3583
case "(($ac_try" in
 
3584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3585
  *) ac_try_echo=$ac_try;;
 
3586
esac
 
3587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3588
  (eval "$ac_compile") 2>conftest.er1
 
3589
  ac_status=$?
 
3590
  grep -v '^ *+' conftest.er1 >conftest.err
 
3591
  rm -f conftest.er1
 
3592
  cat conftest.err >&5
 
3593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3594
  (exit $ac_status); } &&
 
3595
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3596
  { (case "(($ac_try" in
 
3597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3598
  *) ac_try_echo=$ac_try;;
 
3599
esac
 
3600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3601
  (eval "$ac_try") 2>&5
 
3602
  ac_status=$?
 
3603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3604
  (exit $ac_status); }; } &&
 
3605
         { ac_try='test -s conftest.$ac_objext'
 
3606
  { (case "(($ac_try" in
 
3607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3608
  *) ac_try_echo=$ac_try;;
 
3609
esac
 
3610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3611
  (eval "$ac_try") 2>&5
 
3612
  ac_status=$?
 
3613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3614
  (exit $ac_status); }; }; then
 
3615
  ac_cv_prog_cc_g=yes
 
3616
else
 
3617
  echo "$as_me: failed program was:" >&5
 
3618
sed 's/^/| /' conftest.$ac_ext >&5
 
3619
 
 
3620
        CFLAGS=""
 
3621
      cat >conftest.$ac_ext <<_ACEOF
 
3622
/* confdefs.h.  */
 
3623
_ACEOF
 
3624
cat confdefs.h >>conftest.$ac_ext
 
3625
cat >>conftest.$ac_ext <<_ACEOF
 
3626
/* end confdefs.h.  */
 
3627
 
 
3628
int
 
3629
main ()
 
3630
{
 
3631
 
 
3632
  ;
 
3633
  return 0;
 
3634
}
 
3635
_ACEOF
 
3636
rm -f conftest.$ac_objext
 
3637
if { (ac_try="$ac_compile"
 
3638
case "(($ac_try" in
 
3639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3640
  *) ac_try_echo=$ac_try;;
 
3641
esac
 
3642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3643
  (eval "$ac_compile") 2>conftest.er1
 
3644
  ac_status=$?
 
3645
  grep -v '^ *+' conftest.er1 >conftest.err
 
3646
  rm -f conftest.er1
 
3647
  cat conftest.err >&5
 
3648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3649
  (exit $ac_status); } &&
 
3650
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3651
  { (case "(($ac_try" in
 
3652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3653
  *) ac_try_echo=$ac_try;;
 
3654
esac
 
3655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3656
  (eval "$ac_try") 2>&5
 
3657
  ac_status=$?
 
3658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3659
  (exit $ac_status); }; } &&
 
3660
         { ac_try='test -s conftest.$ac_objext'
 
3661
  { (case "(($ac_try" in
 
3662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3663
  *) ac_try_echo=$ac_try;;
 
3664
esac
 
3665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3666
  (eval "$ac_try") 2>&5
 
3667
  ac_status=$?
 
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3669
  (exit $ac_status); }; }; then
 
3670
  :
 
3671
else
 
3672
  echo "$as_me: failed program was:" >&5
 
3673
sed 's/^/| /' conftest.$ac_ext >&5
 
3674
 
 
3675
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3676
         CFLAGS="-g"
 
3677
         cat >conftest.$ac_ext <<_ACEOF
 
3678
/* confdefs.h.  */
 
3679
_ACEOF
 
3680
cat confdefs.h >>conftest.$ac_ext
 
3681
cat >>conftest.$ac_ext <<_ACEOF
 
3682
/* end confdefs.h.  */
 
3683
 
 
3684
int
 
3685
main ()
 
3686
{
 
3687
 
 
3688
  ;
 
3689
  return 0;
 
3690
}
 
3691
_ACEOF
 
3692
rm -f conftest.$ac_objext
 
3693
if { (ac_try="$ac_compile"
 
3694
case "(($ac_try" in
 
3695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3696
  *) ac_try_echo=$ac_try;;
 
3697
esac
 
3698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3699
  (eval "$ac_compile") 2>conftest.er1
 
3700
  ac_status=$?
 
3701
  grep -v '^ *+' conftest.er1 >conftest.err
 
3702
  rm -f conftest.er1
 
3703
  cat conftest.err >&5
 
3704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3705
  (exit $ac_status); } &&
 
3706
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3707
  { (case "(($ac_try" in
 
3708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3709
  *) ac_try_echo=$ac_try;;
 
3710
esac
 
3711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3712
  (eval "$ac_try") 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; } &&
 
3716
         { ac_try='test -s conftest.$ac_objext'
 
3717
  { (case "(($ac_try" in
 
3718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3719
  *) ac_try_echo=$ac_try;;
 
3720
esac
 
3721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3722
  (eval "$ac_try") 2>&5
 
3723
  ac_status=$?
 
3724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3725
  (exit $ac_status); }; }; then
 
3726
  ac_cv_prog_cc_g=yes
 
3727
else
 
3728
  echo "$as_me: failed program was:" >&5
 
3729
sed 's/^/| /' conftest.$ac_ext >&5
 
3730
 
 
3731
 
 
3732
fi
 
3733
 
 
3734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3735
fi
 
3736
 
 
3737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3738
fi
 
3739
 
 
3740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3741
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3742
fi
 
3743
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3744
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2680
3745
if test "$ac_test_CFLAGS" = set; then
2681
3746
  CFLAGS=$ac_save_CFLAGS
2682
3747
elif test $ac_cv_prog_cc_g = yes; then
2692
3757
    CFLAGS=
2693
3758
  fi
2694
3759
fi
2695
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2696
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2697
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3760
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3761
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3762
if test "${ac_cv_prog_cc_c89+set}" = set; then
2698
3763
  echo $ECHO_N "(cached) $ECHO_C" >&6
2699
3764
else
2700
 
  ac_cv_prog_cc_stdc=no
 
3765
  ac_cv_prog_cc_c89=no
2701
3766
ac_save_CC=$CC
2702
3767
cat >conftest.$ac_ext <<_ACEOF
2703
3768
/* confdefs.h.  */
2731
3796
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2732
3797
   function prototypes and stuff, but not '\xHH' hex character constants.
2733
3798
   These don't provoke an error unfortunately, instead are silently treated
2734
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3799
   as 'x'.  The following induces an error, until -std is added to get
2735
3800
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2736
3801
   array size at least.  It's necessary to write '\x00'==0 to get something
2737
 
   that's true only with -std1.  */
 
3802
   that's true only with -std.  */
2738
3803
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2739
3804
 
 
3805
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3806
   inside strings and character constants.  */
 
3807
#define FOO(x) 'x'
 
3808
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3809
 
2740
3810
int test (int i, double x);
2741
3811
struct s1 {int (*f) (int a);};
2742
3812
struct s2 {int (*f) (double a);};
2751
3821
  return 0;
2752
3822
}
2753
3823
_ACEOF
2754
 
# Don't try gcc -ansi; that turns off useful extensions and
2755
 
# breaks some systems' header files.
2756
 
# AIX                   -qlanglvl=ansi
2757
 
# Ultrix and OSF/1      -std1
2758
 
# HP-UX 10.20 and later -Ae
2759
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2760
 
# SVR4                  -Xc -D__EXTENSIONS__
2761
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3824
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3825
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2762
3826
do
2763
3827
  CC="$ac_save_CC $ac_arg"
2764
3828
  rm -f conftest.$ac_objext
2765
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766
 
  (eval $ac_compile) 2>conftest.er1
 
3829
if { (ac_try="$ac_compile"
 
3830
case "(($ac_try" in
 
3831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3832
  *) ac_try_echo=$ac_try;;
 
3833
esac
 
3834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3835
  (eval "$ac_compile") 2>conftest.er1
2767
3836
  ac_status=$?
2768
3837
  grep -v '^ *+' conftest.er1 >conftest.err
2769
3838
  rm -f conftest.er1
2770
3839
  cat conftest.err >&5
2771
3840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
3841
  (exit $ac_status); } &&
2773
 
         { ac_try='test -z "$ac_c_werror_flag"
2774
 
                         || test ! -s conftest.err'
2775
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776
 
  (eval $ac_try) 2>&5
 
3842
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3843
  { (case "(($ac_try" in
 
3844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3845
  *) ac_try_echo=$ac_try;;
 
3846
esac
 
3847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3848
  (eval "$ac_try") 2>&5
2777
3849
  ac_status=$?
2778
3850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
3851
  (exit $ac_status); }; } &&
2780
3852
         { ac_try='test -s conftest.$ac_objext'
2781
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782
 
  (eval $ac_try) 2>&5
 
3853
  { (case "(($ac_try" in
 
3854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3855
  *) ac_try_echo=$ac_try;;
 
3856
esac
 
3857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3858
  (eval "$ac_try") 2>&5
2783
3859
  ac_status=$?
2784
3860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
3861
  (exit $ac_status); }; }; then
2786
 
  ac_cv_prog_cc_stdc=$ac_arg
2787
 
break
 
3862
  ac_cv_prog_cc_c89=$ac_arg
2788
3863
else
2789
3864
  echo "$as_me: failed program was:" >&5
2790
3865
sed 's/^/| /' conftest.$ac_ext >&5
2791
3866
 
 
3867
 
2792
3868
fi
2793
 
rm -f conftest.err conftest.$ac_objext
 
3869
 
 
3870
rm -f core conftest.err conftest.$ac_objext
 
3871
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2794
3872
done
2795
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3873
rm -f conftest.$ac_ext
2796
3874
CC=$ac_save_CC
2797
3875
 
2798
3876
fi
2799
 
 
2800
 
case "x$ac_cv_prog_cc_stdc" in
2801
 
  x|xno)
2802
 
    echo "$as_me:$LINENO: result: none needed" >&5
2803
 
echo "${ECHO_T}none needed" >&6 ;;
 
3877
# AC_CACHE_VAL
 
3878
case "x$ac_cv_prog_cc_c89" in
 
3879
  x)
 
3880
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3881
echo "${ECHO_T}none needed" >&6; } ;;
 
3882
  xno)
 
3883
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3884
echo "${ECHO_T}unsupported" >&6; } ;;
2804
3885
  *)
2805
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2806
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2807
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2808
 
esac
2809
 
 
2810
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2811
 
# in C++ we need to declare it.  In case someone uses the same compiler
2812
 
# for both compiling C and C++ we need to have the C++ compiler decide
2813
 
# the declaration of exit, since it's the most demanding environment.
2814
 
cat >conftest.$ac_ext <<_ACEOF
2815
 
#ifndef __cplusplus
2816
 
  choke me
 
3886
    CC="$CC $ac_cv_prog_cc_c89"
 
3887
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3888
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3889
esac
 
3890
 
 
3891
 
 
3892
ac_ext=c
 
3893
ac_cpp='$CPP $CPPFLAGS'
 
3894
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3897
 
 
3898
depcc="$CC"   am_compiler_list=
 
3899
 
 
3900
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3901
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3902
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3904
else
 
3905
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3906
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3907
  # making bogus files that we don't know about and never remove.  For
 
3908
  # instance it was reported that on HP-UX the gcc test will end up
 
3909
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3910
  # in D'.
 
3911
  mkdir conftest.dir
 
3912
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3913
  # using a relative directory.
 
3914
  cp "$am_depcomp" conftest.dir
 
3915
  cd conftest.dir
 
3916
  # We will build objects and dependencies in a subdirectory because
 
3917
  # it helps to detect inapplicable dependency modes.  For instance
 
3918
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3919
  # side effect of compilation, but ICC will put the dependencies in
 
3920
  # the current directory while Tru64 will put them in the object
 
3921
  # directory.
 
3922
  mkdir sub
 
3923
 
 
3924
  am_cv_CC_dependencies_compiler_type=none
 
3925
  if test "$am_compiler_list" = ""; then
 
3926
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3927
  fi
 
3928
  for depmode in $am_compiler_list; do
 
3929
    # Setup a source with many dependencies, because some compilers
 
3930
    # like to wrap large dependency lists on column 80 (with \), and
 
3931
    # we should not choose a depcomp mode which is confused by this.
 
3932
    #
 
3933
    # We need to recreate these files for each test, as the compiler may
 
3934
    # overwrite some of them when testing with obscure command lines.
 
3935
    # This happens at least with the AIX C compiler.
 
3936
    : > sub/conftest.c
 
3937
    for i in 1 2 3 4 5 6; do
 
3938
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3939
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3940
      # Solaris 8's {/usr,}/bin/sh.
 
3941
      touch sub/conftst$i.h
 
3942
    done
 
3943
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3944
 
 
3945
    case $depmode in
 
3946
    nosideeffect)
 
3947
      # after this tag, mechanisms are not by side-effect, so they'll
 
3948
      # only be used when explicitly requested
 
3949
      if test "x$enable_dependency_tracking" = xyes; then
 
3950
        continue
 
3951
      else
 
3952
        break
 
3953
      fi
 
3954
      ;;
 
3955
    none) break ;;
 
3956
    esac
 
3957
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3958
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3959
    # handle `-M -o', and we need to detect this.
 
3960
    if depmode=$depmode \
 
3961
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3962
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3963
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3964
         >/dev/null 2>conftest.err &&
 
3965
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3966
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3967
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3968
      # icc doesn't choke on unknown options, it will just issue warnings
 
3969
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3970
      # that says an option was ignored or not supported.
 
3971
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3972
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3973
      # The diagnosis changed in icc 8.0:
 
3974
      #   icc: Command line remark: option '-MP' not supported
 
3975
      if (grep 'ignoring option' conftest.err ||
 
3976
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3977
        am_cv_CC_dependencies_compiler_type=$depmode
 
3978
        break
 
3979
      fi
 
3980
    fi
 
3981
  done
 
3982
 
 
3983
  cd ..
 
3984
  rm -rf conftest.dir
 
3985
else
 
3986
  am_cv_CC_dependencies_compiler_type=none
 
3987
fi
 
3988
 
 
3989
fi
 
3990
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3991
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3992
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3993
 
 
3994
 
 
3995
 
 
3996
if
 
3997
  test "x$enable_dependency_tracking" != xno \
 
3998
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3999
  am__fastdepCC_TRUE=
 
4000
  am__fastdepCC_FALSE='#'
 
4001
else
 
4002
  am__fastdepCC_TRUE='#'
 
4003
  am__fastdepCC_FALSE=
 
4004
fi
 
4005
 
 
4006
 
 
4007
# Make sure we can run config.sub.
 
4008
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4009
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
4010
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
4011
   { (exit 1); exit 1; }; }
 
4012
 
 
4013
{ echo "$as_me:$LINENO: checking build system type" >&5
 
4014
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
4015
if test "${ac_cv_build+set}" = set; then
 
4016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4017
else
 
4018
  ac_build_alias=$build_alias
 
4019
test "x$ac_build_alias" = x &&
 
4020
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4021
test "x$ac_build_alias" = x &&
 
4022
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4023
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4024
   { (exit 1); exit 1; }; }
 
4025
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4026
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
4027
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
4028
   { (exit 1); exit 1; }; }
 
4029
 
 
4030
fi
 
4031
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4032
echo "${ECHO_T}$ac_cv_build" >&6; }
 
4033
case $ac_cv_build in
 
4034
*-*-*) ;;
 
4035
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
4036
echo "$as_me: error: invalid value of canonical build" >&2;}
 
4037
   { (exit 1); exit 1; }; };;
 
4038
esac
 
4039
build=$ac_cv_build
 
4040
ac_save_IFS=$IFS; IFS='-'
 
4041
set x $ac_cv_build
 
4042
shift
 
4043
build_cpu=$1
 
4044
build_vendor=$2
 
4045
shift; shift
 
4046
# Remember, the first character of IFS is used to create $*,
 
4047
# except with old shells:
 
4048
build_os=$*
 
4049
IFS=$ac_save_IFS
 
4050
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4051
 
 
4052
 
 
4053
{ echo "$as_me:$LINENO: checking host system type" >&5
 
4054
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
4055
if test "${ac_cv_host+set}" = set; then
 
4056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4057
else
 
4058
  if test "x$host_alias" = x; then
 
4059
  ac_cv_host=$ac_cv_build
 
4060
else
 
4061
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4062
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
4063
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
4064
   { (exit 1); exit 1; }; }
 
4065
fi
 
4066
 
 
4067
fi
 
4068
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4069
echo "${ECHO_T}$ac_cv_host" >&6; }
 
4070
case $ac_cv_host in
 
4071
*-*-*) ;;
 
4072
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
4073
echo "$as_me: error: invalid value of canonical host" >&2;}
 
4074
   { (exit 1); exit 1; }; };;
 
4075
esac
 
4076
host=$ac_cv_host
 
4077
ac_save_IFS=$IFS; IFS='-'
 
4078
set x $ac_cv_host
 
4079
shift
 
4080
host_cpu=$1
 
4081
host_vendor=$2
 
4082
shift; shift
 
4083
# Remember, the first character of IFS is used to create $*,
 
4084
# except with old shells:
 
4085
host_os=$*
 
4086
IFS=$ac_save_IFS
 
4087
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4088
 
 
4089
 
 
4090
 
 
4091
ac_ext=c
 
4092
ac_cpp='$CPP $CPPFLAGS'
 
4093
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4094
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4095
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4096
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4097
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4098
# On Suns, sometimes $CPP names a directory.
 
4099
if test -n "$CPP" && test -d "$CPP"; then
 
4100
  CPP=
 
4101
fi
 
4102
if test -z "$CPP"; then
 
4103
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4105
else
 
4106
      # Double quotes because CPP needs to be expanded
 
4107
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4108
    do
 
4109
      ac_preproc_ok=false
 
4110
for ac_c_preproc_warn_flag in '' yes
 
4111
do
 
4112
  # Use a header file that comes with gcc, so configuring glibc
 
4113
  # with a fresh cross-compiler works.
 
4114
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4115
  # <limits.h> exists even on freestanding compilers.
 
4116
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4117
  # not just through cpp. "Syntax error" is here to catch this case.
 
4118
  cat >conftest.$ac_ext <<_ACEOF
 
4119
/* confdefs.h.  */
 
4120
_ACEOF
 
4121
cat confdefs.h >>conftest.$ac_ext
 
4122
cat >>conftest.$ac_ext <<_ACEOF
 
4123
/* end confdefs.h.  */
 
4124
#ifdef __STDC__
 
4125
# include <limits.h>
 
4126
#else
 
4127
# include <assert.h>
2817
4128
#endif
2818
 
_ACEOF
2819
 
rm -f conftest.$ac_objext
2820
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821
 
  (eval $ac_compile) 2>conftest.er1
2822
 
  ac_status=$?
2823
 
  grep -v '^ *+' conftest.er1 >conftest.err
2824
 
  rm -f conftest.er1
2825
 
  cat conftest.err >&5
2826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827
 
  (exit $ac_status); } &&
2828
 
         { ac_try='test -z "$ac_c_werror_flag"
2829
 
                         || test ! -s conftest.err'
2830
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831
 
  (eval $ac_try) 2>&5
2832
 
  ac_status=$?
2833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
 
  (exit $ac_status); }; } &&
2835
 
         { ac_try='test -s conftest.$ac_objext'
2836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837
 
  (eval $ac_try) 2>&5
2838
 
  ac_status=$?
2839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
 
  (exit $ac_status); }; }; then
2841
 
  for ac_declaration in \
2842
 
   '' \
2843
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2844
 
   'extern "C" void std::exit (int); using std::exit;' \
2845
 
   'extern "C" void exit (int) throw ();' \
2846
 
   'extern "C" void exit (int);' \
2847
 
   'void exit (int);'
2848
 
do
2849
 
  cat >conftest.$ac_ext <<_ACEOF
2850
 
/* confdefs.h.  */
2851
 
_ACEOF
2852
 
cat confdefs.h >>conftest.$ac_ext
2853
 
cat >>conftest.$ac_ext <<_ACEOF
2854
 
/* end confdefs.h.  */
2855
 
$ac_declaration
2856
 
#include <stdlib.h>
2857
 
int
2858
 
main ()
2859
 
{
2860
 
exit (42);
2861
 
  ;
2862
 
  return 0;
2863
 
}
2864
 
_ACEOF
2865
 
rm -f conftest.$ac_objext
2866
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867
 
  (eval $ac_compile) 2>conftest.er1
2868
 
  ac_status=$?
2869
 
  grep -v '^ *+' conftest.er1 >conftest.err
2870
 
  rm -f conftest.er1
2871
 
  cat conftest.err >&5
2872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873
 
  (exit $ac_status); } &&
2874
 
         { ac_try='test -z "$ac_c_werror_flag"
2875
 
                         || test ! -s conftest.err'
2876
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877
 
  (eval $ac_try) 2>&5
2878
 
  ac_status=$?
2879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880
 
  (exit $ac_status); }; } &&
2881
 
         { ac_try='test -s conftest.$ac_objext'
2882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883
 
  (eval $ac_try) 2>&5
2884
 
  ac_status=$?
2885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
 
  (exit $ac_status); }; }; then
 
4129
                     Syntax error
 
4130
_ACEOF
 
4131
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4132
case "(($ac_try" in
 
4133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4134
  *) ac_try_echo=$ac_try;;
 
4135
esac
 
4136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4137
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4138
  ac_status=$?
 
4139
  grep -v '^ *+' conftest.er1 >conftest.err
 
4140
  rm -f conftest.er1
 
4141
  cat conftest.err >&5
 
4142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4143
  (exit $ac_status); } >/dev/null; then
 
4144
  if test -s conftest.err; then
 
4145
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4146
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4147
  else
 
4148
    ac_cpp_err=
 
4149
  fi
 
4150
else
 
4151
  ac_cpp_err=yes
 
4152
fi
 
4153
if test -z "$ac_cpp_err"; then
2887
4154
  :
2888
4155
else
2889
4156
  echo "$as_me: failed program was:" >&5
2890
4157
sed 's/^/| /' conftest.$ac_ext >&5
2891
4158
 
 
4159
  # Broken: fails on valid input.
2892
4160
continue
2893
4161
fi
2894
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4162
 
 
4163
rm -f conftest.err conftest.$ac_ext
 
4164
 
 
4165
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4166
  # can be detected and how.
2895
4167
  cat >conftest.$ac_ext <<_ACEOF
2896
4168
/* confdefs.h.  */
2897
4169
_ACEOF
2898
4170
cat confdefs.h >>conftest.$ac_ext
2899
4171
cat >>conftest.$ac_ext <<_ACEOF
2900
4172
/* end confdefs.h.  */
2901
 
$ac_declaration
2902
 
int
2903
 
main ()
2904
 
{
2905
 
exit (42);
2906
 
  ;
2907
 
  return 0;
2908
 
}
 
4173
#include <ac_nonexistent.h>
2909
4174
_ACEOF
2910
 
rm -f conftest.$ac_objext
2911
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912
 
  (eval $ac_compile) 2>conftest.er1
 
4175
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4176
case "(($ac_try" in
 
4177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4178
  *) ac_try_echo=$ac_try;;
 
4179
esac
 
4180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4181
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2913
4182
  ac_status=$?
2914
4183
  grep -v '^ *+' conftest.er1 >conftest.err
2915
4184
  rm -f conftest.er1
2916
4185
  cat conftest.err >&5
2917
4186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918
 
  (exit $ac_status); } &&
2919
 
         { ac_try='test -z "$ac_c_werror_flag"
2920
 
                         || test ! -s conftest.err'
2921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922
 
  (eval $ac_try) 2>&5
2923
 
  ac_status=$?
2924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
 
  (exit $ac_status); }; } &&
2926
 
         { ac_try='test -s conftest.$ac_objext'
2927
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
 
  (eval $ac_try) 2>&5
2929
 
  ac_status=$?
2930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
 
  (exit $ac_status); }; }; then
 
4187
  (exit $ac_status); } >/dev/null; then
 
4188
  if test -s conftest.err; then
 
4189
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4190
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4191
  else
 
4192
    ac_cpp_err=
 
4193
  fi
 
4194
else
 
4195
  ac_cpp_err=yes
 
4196
fi
 
4197
if test -z "$ac_cpp_err"; then
 
4198
  # Broken: success on invalid input.
 
4199
continue
 
4200
else
 
4201
  echo "$as_me: failed program was:" >&5
 
4202
sed 's/^/| /' conftest.$ac_ext >&5
 
4203
 
 
4204
  # Passes both tests.
 
4205
ac_preproc_ok=:
 
4206
break
 
4207
fi
 
4208
 
 
4209
rm -f conftest.err conftest.$ac_ext
 
4210
 
 
4211
done
 
4212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4213
rm -f conftest.err conftest.$ac_ext
 
4214
if $ac_preproc_ok; then
2932
4215
  break
2933
 
else
2934
 
  echo "$as_me: failed program was:" >&5
2935
 
sed 's/^/| /' conftest.$ac_ext >&5
2936
 
 
2937
 
fi
2938
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4216
fi
 
4217
 
 
4218
    done
 
4219
    ac_cv_prog_CPP=$CPP
 
4220
 
 
4221
fi
 
4222
  CPP=$ac_cv_prog_CPP
 
4223
else
 
4224
  ac_cv_prog_CPP=$CPP
 
4225
fi
 
4226
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4227
echo "${ECHO_T}$CPP" >&6; }
 
4228
ac_preproc_ok=false
 
4229
for ac_c_preproc_warn_flag in '' yes
 
4230
do
 
4231
  # Use a header file that comes with gcc, so configuring glibc
 
4232
  # with a fresh cross-compiler works.
 
4233
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4234
  # <limits.h> exists even on freestanding compilers.
 
4235
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4236
  # not just through cpp. "Syntax error" is here to catch this case.
 
4237
  cat >conftest.$ac_ext <<_ACEOF
 
4238
/* confdefs.h.  */
 
4239
_ACEOF
 
4240
cat confdefs.h >>conftest.$ac_ext
 
4241
cat >>conftest.$ac_ext <<_ACEOF
 
4242
/* end confdefs.h.  */
 
4243
#ifdef __STDC__
 
4244
# include <limits.h>
 
4245
#else
 
4246
# include <assert.h>
 
4247
#endif
 
4248
                     Syntax error
 
4249
_ACEOF
 
4250
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4251
case "(($ac_try" in
 
4252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4253
  *) ac_try_echo=$ac_try;;
 
4254
esac
 
4255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4256
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4257
  ac_status=$?
 
4258
  grep -v '^ *+' conftest.er1 >conftest.err
 
4259
  rm -f conftest.er1
 
4260
  cat conftest.err >&5
 
4261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4262
  (exit $ac_status); } >/dev/null; then
 
4263
  if test -s conftest.err; then
 
4264
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4265
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4266
  else
 
4267
    ac_cpp_err=
 
4268
  fi
 
4269
else
 
4270
  ac_cpp_err=yes
 
4271
fi
 
4272
if test -z "$ac_cpp_err"; then
 
4273
  :
 
4274
else
 
4275
  echo "$as_me: failed program was:" >&5
 
4276
sed 's/^/| /' conftest.$ac_ext >&5
 
4277
 
 
4278
  # Broken: fails on valid input.
 
4279
continue
 
4280
fi
 
4281
 
 
4282
rm -f conftest.err conftest.$ac_ext
 
4283
 
 
4284
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4285
  # can be detected and how.
 
4286
  cat >conftest.$ac_ext <<_ACEOF
 
4287
/* confdefs.h.  */
 
4288
_ACEOF
 
4289
cat confdefs.h >>conftest.$ac_ext
 
4290
cat >>conftest.$ac_ext <<_ACEOF
 
4291
/* end confdefs.h.  */
 
4292
#include <ac_nonexistent.h>
 
4293
_ACEOF
 
4294
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4295
case "(($ac_try" in
 
4296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4297
  *) ac_try_echo=$ac_try;;
 
4298
esac
 
4299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4300
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4301
  ac_status=$?
 
4302
  grep -v '^ *+' conftest.er1 >conftest.err
 
4303
  rm -f conftest.er1
 
4304
  cat conftest.err >&5
 
4305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4306
  (exit $ac_status); } >/dev/null; then
 
4307
  if test -s conftest.err; then
 
4308
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4309
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4310
  else
 
4311
    ac_cpp_err=
 
4312
  fi
 
4313
else
 
4314
  ac_cpp_err=yes
 
4315
fi
 
4316
if test -z "$ac_cpp_err"; then
 
4317
  # Broken: success on invalid input.
 
4318
continue
 
4319
else
 
4320
  echo "$as_me: failed program was:" >&5
 
4321
sed 's/^/| /' conftest.$ac_ext >&5
 
4322
 
 
4323
  # Passes both tests.
 
4324
ac_preproc_ok=:
 
4325
break
 
4326
fi
 
4327
 
 
4328
rm -f conftest.err conftest.$ac_ext
 
4329
 
2939
4330
done
2940
 
rm -f conftest*
2941
 
if test -n "$ac_declaration"; then
2942
 
  echo '#ifdef __cplusplus' >>confdefs.h
2943
 
  echo $ac_declaration      >>confdefs.h
2944
 
  echo '#endif'             >>confdefs.h
2945
 
fi
2946
 
 
 
4331
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4332
rm -f conftest.err conftest.$ac_ext
 
4333
if $ac_preproc_ok; then
 
4334
  :
2947
4335
else
2948
 
  echo "$as_me: failed program was:" >&5
2949
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4336
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4337
See \`config.log' for more details." >&5
 
4338
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4339
See \`config.log' for more details." >&2;}
 
4340
   { (exit 1); exit 1; }; }
 
4341
fi
2950
4342
 
2951
 
fi
2952
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953
4343
ac_ext=c
2954
4344
ac_cpp='$CPP $CPPFLAGS'
2955
4345
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956
4346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957
4347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
 
DEPDIR="${am__leading_dot}deps"
2959
 
 
2960
 
          ac_config_commands="$ac_config_commands depfiles"
2961
 
 
2962
 
 
2963
 
am_make=${MAKE-make}
2964
 
cat > confinc << 'END'
2965
 
am__doit:
2966
 
        @echo done
2967
 
.PHONY: am__doit
2968
 
END
2969
 
# If we don't find an include directive, just comment out the code.
2970
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2971
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2972
 
am__include="#"
2973
 
am__quote=
2974
 
_am_result=none
2975
 
# First try GNU make style include.
2976
 
echo "include confinc" > confmf
2977
 
# We grep out `Entering directory' and `Leaving directory'
2978
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2979
 
# In particular we don't look at `^make:' because GNU make might
2980
 
# be invoked under some other name (usually "gmake"), in which
2981
 
# case it prints its new name instead of `make'.
2982
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2983
 
   am__include=include
2984
 
   am__quote=
2985
 
   _am_result=GNU
2986
 
fi
2987
 
# Now try BSD make style include.
2988
 
if test "$am__include" = "#"; then
2989
 
   echo '.include "confinc"' > confmf
2990
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2991
 
      am__include=.include
2992
 
      am__quote="\""
2993
 
      _am_result=BSD
 
4348
 
 
4349
 
 
4350
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4351
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4352
if test "${ac_cv_path_GREP+set}" = set; then
 
4353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4354
else
 
4355
  # Extract the first word of "grep ggrep" to use in msg output
 
4356
if test -z "$GREP"; then
 
4357
set dummy grep ggrep; ac_prog_name=$2
 
4358
if test "${ac_cv_path_GREP+set}" = set; then
 
4359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4360
else
 
4361
  ac_path_GREP_found=false
 
4362
# Loop through the user's path and test for each of PROGNAME-LIST
 
4363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4364
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4365
do
 
4366
  IFS=$as_save_IFS
 
4367
  test -z "$as_dir" && as_dir=.
 
4368
  for ac_prog in grep ggrep; do
 
4369
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4370
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4371
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
 
4372
    # Check for GNU ac_path_GREP and select it if it is found.
 
4373
  # Check for GNU $ac_path_GREP
 
4374
case `"$ac_path_GREP" --version 2>&1` in
 
4375
*GNU*)
 
4376
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4377
*)
 
4378
  ac_count=0
 
4379
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4380
  while :
 
4381
  do
 
4382
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4383
    mv "conftest.tmp" "conftest.in"
 
4384
    cp "conftest.in" "conftest.nl"
 
4385
    echo 'GREP' >> "conftest.nl"
 
4386
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4387
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4388
    ac_count=`expr $ac_count + 1`
 
4389
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4390
      # Best one so far, save it but keep looking for a better one
 
4391
      ac_cv_path_GREP="$ac_path_GREP"
 
4392
      ac_path_GREP_max=$ac_count
 
4393
    fi
 
4394
    # 10*(2^10) chars as input seems more than enough
 
4395
    test $ac_count -gt 10 && break
 
4396
  done
 
4397
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4398
esac
 
4399
 
 
4400
 
 
4401
    $ac_path_GREP_found && break 3
 
4402
  done
 
4403
done
 
4404
 
 
4405
done
 
4406
IFS=$as_save_IFS
 
4407
 
 
4408
 
 
4409
fi
 
4410
 
 
4411
GREP="$ac_cv_path_GREP"
 
4412
if test -z "$GREP"; then
 
4413
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4414
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4415
   { (exit 1); exit 1; }; }
 
4416
fi
 
4417
 
 
4418
else
 
4419
  ac_cv_path_GREP=$GREP
 
4420
fi
 
4421
 
 
4422
 
 
4423
fi
 
4424
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4425
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4426
 GREP="$ac_cv_path_GREP"
 
4427
 
 
4428
 
 
4429
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4430
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4431
if test "${ac_cv_path_EGREP+set}" = set; then
 
4432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4433
else
 
4434
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4435
   then ac_cv_path_EGREP="$GREP -E"
 
4436
   else
 
4437
     # Extract the first word of "egrep" to use in msg output
 
4438
if test -z "$EGREP"; then
 
4439
set dummy egrep; ac_prog_name=$2
 
4440
if test "${ac_cv_path_EGREP+set}" = set; then
 
4441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4442
else
 
4443
  ac_path_EGREP_found=false
 
4444
# Loop through the user's path and test for each of PROGNAME-LIST
 
4445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4446
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4447
do
 
4448
  IFS=$as_save_IFS
 
4449
  test -z "$as_dir" && as_dir=.
 
4450
  for ac_prog in egrep; do
 
4451
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4452
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4453
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
 
4454
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4455
  # Check for GNU $ac_path_EGREP
 
4456
case `"$ac_path_EGREP" --version 2>&1` in
 
4457
*GNU*)
 
4458
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4459
*)
 
4460
  ac_count=0
 
4461
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4462
  while :
 
4463
  do
 
4464
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4465
    mv "conftest.tmp" "conftest.in"
 
4466
    cp "conftest.in" "conftest.nl"
 
4467
    echo 'EGREP' >> "conftest.nl"
 
4468
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4469
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4470
    ac_count=`expr $ac_count + 1`
 
4471
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4472
      # Best one so far, save it but keep looking for a better one
 
4473
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4474
      ac_path_EGREP_max=$ac_count
 
4475
    fi
 
4476
    # 10*(2^10) chars as input seems more than enough
 
4477
    test $ac_count -gt 10 && break
 
4478
  done
 
4479
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4480
esac
 
4481
 
 
4482
 
 
4483
    $ac_path_EGREP_found && break 3
 
4484
  done
 
4485
done
 
4486
 
 
4487
done
 
4488
IFS=$as_save_IFS
 
4489
 
 
4490
 
 
4491
fi
 
4492
 
 
4493
EGREP="$ac_cv_path_EGREP"
 
4494
if test -z "$EGREP"; then
 
4495
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4496
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4497
   { (exit 1); exit 1; }; }
 
4498
fi
 
4499
 
 
4500
else
 
4501
  ac_cv_path_EGREP=$EGREP
 
4502
fi
 
4503
 
 
4504
 
2994
4505
   fi
2995
4506
fi
2996
 
 
2997
 
 
2998
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2999
 
echo "${ECHO_T}$_am_result" >&6
3000
 
rm -f confinc confmf
3001
 
 
3002
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3003
 
if test "${enable_dependency_tracking+set}" = set; then
3004
 
  enableval="$enable_dependency_tracking"
3005
 
 
3006
 
fi;
3007
 
if test "x$enable_dependency_tracking" != xno; then
3008
 
  am_depcomp="$ac_aux_dir/depcomp"
3009
 
  AMDEPBACKSLASH='\'
3010
 
fi
3011
 
 
3012
 
 
3013
 
if test "x$enable_dependency_tracking" != xno; then
3014
 
  AMDEP_TRUE=
3015
 
  AMDEP_FALSE='#'
3016
 
else
3017
 
  AMDEP_TRUE='#'
3018
 
  AMDEP_FALSE=
3019
 
fi
3020
 
 
3021
 
 
3022
 
 
 
4507
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4508
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4509
 EGREP="$ac_cv_path_EGREP"
 
4510
 
 
4511
 
 
4512
 
 
4513
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
 
4514
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
 
4515
if test "${ac_cv_gnu_library_2+set}" = set; then
 
4516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4517
else
 
4518
  cat >conftest.$ac_ext <<_ACEOF
 
4519
/* confdefs.h.  */
 
4520
_ACEOF
 
4521
cat confdefs.h >>conftest.$ac_ext
 
4522
cat >>conftest.$ac_ext <<_ACEOF
 
4523
/* end confdefs.h.  */
 
4524
 
 
4525
#include <features.h>
 
4526
#ifdef __GNU_LIBRARY__
 
4527
 #if (__GLIBC__ >= 2)
 
4528
  Lucky GNU user
 
4529
 #endif
 
4530
#endif
 
4531
 
 
4532
_ACEOF
 
4533
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4534
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
4535
  ac_cv_gnu_library_2=yes
 
4536
else
 
4537
  ac_cv_gnu_library_2=no
 
4538
fi
 
4539
rm -f conftest*
 
4540
 
 
4541
 
 
4542
 
 
4543
fi
 
4544
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
 
4545
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
 
4546
 
 
4547
    GLIBC2="$ac_cv_gnu_library_2"
 
4548
 
 
4549
 
 
4550
if test -n "$ac_tool_prefix"; then
 
4551
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4552
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4555
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4557
else
 
4558
  if test -n "$RANLIB"; then
 
4559
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4560
else
 
4561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4562
for as_dir in $PATH
 
4563
do
 
4564
  IFS=$as_save_IFS
 
4565
  test -z "$as_dir" && as_dir=.
 
4566
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4568
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4569
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4570
    break 2
 
4571
  fi
 
4572
done
 
4573
done
 
4574
IFS=$as_save_IFS
 
4575
 
 
4576
fi
 
4577
fi
 
4578
RANLIB=$ac_cv_prog_RANLIB
 
4579
if test -n "$RANLIB"; then
 
4580
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4581
echo "${ECHO_T}$RANLIB" >&6; }
 
4582
else
 
4583
  { echo "$as_me:$LINENO: result: no" >&5
 
4584
echo "${ECHO_T}no" >&6; }
 
4585
fi
 
4586
 
 
4587
 
 
4588
fi
 
4589
if test -z "$ac_cv_prog_RANLIB"; then
 
4590
  ac_ct_RANLIB=$RANLIB
 
4591
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4592
set dummy ranlib; ac_word=$2
 
4593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4595
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4597
else
 
4598
  if test -n "$ac_ct_RANLIB"; then
 
4599
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4600
else
 
4601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4602
for as_dir in $PATH
 
4603
do
 
4604
  IFS=$as_save_IFS
 
4605
  test -z "$as_dir" && as_dir=.
 
4606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4608
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4609
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4610
    break 2
 
4611
  fi
 
4612
done
 
4613
done
 
4614
IFS=$as_save_IFS
 
4615
 
 
4616
fi
 
4617
fi
 
4618
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4619
if test -n "$ac_ct_RANLIB"; then
 
4620
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4621
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4622
else
 
4623
  { echo "$as_me:$LINENO: result: no" >&5
 
4624
echo "${ECHO_T}no" >&6; }
 
4625
fi
 
4626
 
 
4627
  if test "x$ac_ct_RANLIB" = x; then
 
4628
    RANLIB=":"
 
4629
  else
 
4630
    case $cross_compiling:$ac_tool_warned in
 
4631
yes:)
 
4632
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4633
whose name does not start with the host triplet.  If you think this
 
4634
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4635
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4636
whose name does not start with the host triplet.  If you think this
 
4637
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4638
ac_tool_warned=yes ;;
 
4639
esac
 
4640
    RANLIB=$ac_ct_RANLIB
 
4641
  fi
 
4642
else
 
4643
  RANLIB="$ac_cv_prog_RANLIB"
 
4644
fi
 
4645
 
 
4646
 
 
4647
        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
4648
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
 
4649
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
4650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4651
else
 
4652
  ac_check_lib_save_LIBS=$LIBS
 
4653
LIBS="-lcposix  $LIBS"
 
4654
cat >conftest.$ac_ext <<_ACEOF
 
4655
/* confdefs.h.  */
 
4656
_ACEOF
 
4657
cat confdefs.h >>conftest.$ac_ext
 
4658
cat >>conftest.$ac_ext <<_ACEOF
 
4659
/* end confdefs.h.  */
 
4660
 
 
4661
/* Override any GCC internal prototype to avoid an error.
 
4662
   Use char because int might match the return type of a GCC
 
4663
   builtin and then its argument prototype would still apply.  */
 
4664
#ifdef __cplusplus
 
4665
extern "C"
 
4666
#endif
 
4667
char strerror ();
 
4668
int
 
4669
main ()
 
4670
{
 
4671
return strerror ();
 
4672
  ;
 
4673
  return 0;
 
4674
}
 
4675
_ACEOF
 
4676
rm -f conftest.$ac_objext conftest$ac_exeext
 
4677
if { (ac_try="$ac_link"
 
4678
case "(($ac_try" in
 
4679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4680
  *) ac_try_echo=$ac_try;;
 
4681
esac
 
4682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4683
  (eval "$ac_link") 2>conftest.er1
 
4684
  ac_status=$?
 
4685
  grep -v '^ *+' conftest.er1 >conftest.err
 
4686
  rm -f conftest.er1
 
4687
  cat conftest.err >&5
 
4688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4689
  (exit $ac_status); } &&
 
4690
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4691
  { (case "(($ac_try" in
 
4692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4693
  *) ac_try_echo=$ac_try;;
 
4694
esac
 
4695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4696
  (eval "$ac_try") 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); }; } &&
 
4700
         { ac_try='test -s conftest$ac_exeext'
 
4701
  { (case "(($ac_try" in
 
4702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4703
  *) ac_try_echo=$ac_try;;
 
4704
esac
 
4705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4706
  (eval "$ac_try") 2>&5
 
4707
  ac_status=$?
 
4708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4709
  (exit $ac_status); }; }; then
 
4710
  ac_cv_lib_cposix_strerror=yes
 
4711
else
 
4712
  echo "$as_me: failed program was:" >&5
 
4713
sed 's/^/| /' conftest.$ac_ext >&5
 
4714
 
 
4715
        ac_cv_lib_cposix_strerror=no
 
4716
fi
 
4717
 
 
4718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4719
      conftest$ac_exeext conftest.$ac_ext
 
4720
LIBS=$ac_check_lib_save_LIBS
 
4721
fi
 
4722
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
4723
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
 
4724
if test $ac_cv_lib_cposix_strerror = yes; then
 
4725
  LIBS="$LIBS -lcposix"
 
4726
fi
 
4727
 
 
4728
 
 
4729
 
 
4730
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4731
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4732
if test "${ac_cv_header_stdc+set}" = set; then
 
4733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4734
else
 
4735
  cat >conftest.$ac_ext <<_ACEOF
 
4736
/* confdefs.h.  */
 
4737
_ACEOF
 
4738
cat confdefs.h >>conftest.$ac_ext
 
4739
cat >>conftest.$ac_ext <<_ACEOF
 
4740
/* end confdefs.h.  */
 
4741
#include <stdlib.h>
 
4742
#include <stdarg.h>
 
4743
#include <string.h>
 
4744
#include <float.h>
 
4745
 
 
4746
int
 
4747
main ()
 
4748
{
 
4749
 
 
4750
  ;
 
4751
  return 0;
 
4752
}
 
4753
_ACEOF
 
4754
rm -f conftest.$ac_objext
 
4755
if { (ac_try="$ac_compile"
 
4756
case "(($ac_try" in
 
4757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4758
  *) ac_try_echo=$ac_try;;
 
4759
esac
 
4760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4761
  (eval "$ac_compile") 2>conftest.er1
 
4762
  ac_status=$?
 
4763
  grep -v '^ *+' conftest.er1 >conftest.err
 
4764
  rm -f conftest.er1
 
4765
  cat conftest.err >&5
 
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4767
  (exit $ac_status); } &&
 
4768
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4769
  { (case "(($ac_try" in
 
4770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4771
  *) ac_try_echo=$ac_try;;
 
4772
esac
 
4773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4774
  (eval "$ac_try") 2>&5
 
4775
  ac_status=$?
 
4776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4777
  (exit $ac_status); }; } &&
 
4778
         { ac_try='test -s conftest.$ac_objext'
 
4779
  { (case "(($ac_try" in
 
4780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4781
  *) ac_try_echo=$ac_try;;
 
4782
esac
 
4783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4784
  (eval "$ac_try") 2>&5
 
4785
  ac_status=$?
 
4786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4787
  (exit $ac_status); }; }; then
 
4788
  ac_cv_header_stdc=yes
 
4789
else
 
4790
  echo "$as_me: failed program was:" >&5
 
4791
sed 's/^/| /' conftest.$ac_ext >&5
 
4792
 
 
4793
        ac_cv_header_stdc=no
 
4794
fi
 
4795
 
 
4796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4797
 
 
4798
if test $ac_cv_header_stdc = yes; then
 
4799
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4800
  cat >conftest.$ac_ext <<_ACEOF
 
4801
/* confdefs.h.  */
 
4802
_ACEOF
 
4803
cat confdefs.h >>conftest.$ac_ext
 
4804
cat >>conftest.$ac_ext <<_ACEOF
 
4805
/* end confdefs.h.  */
 
4806
#include <string.h>
 
4807
 
 
4808
_ACEOF
 
4809
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4810
  $EGREP "memchr" >/dev/null 2>&1; then
 
4811
  :
 
4812
else
 
4813
  ac_cv_header_stdc=no
 
4814
fi
 
4815
rm -f conftest*
 
4816
 
 
4817
fi
 
4818
 
 
4819
if test $ac_cv_header_stdc = yes; then
 
4820
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4821
  cat >conftest.$ac_ext <<_ACEOF
 
4822
/* confdefs.h.  */
 
4823
_ACEOF
 
4824
cat confdefs.h >>conftest.$ac_ext
 
4825
cat >>conftest.$ac_ext <<_ACEOF
 
4826
/* end confdefs.h.  */
 
4827
#include <stdlib.h>
 
4828
 
 
4829
_ACEOF
 
4830
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4831
  $EGREP "free" >/dev/null 2>&1; then
 
4832
  :
 
4833
else
 
4834
  ac_cv_header_stdc=no
 
4835
fi
 
4836
rm -f conftest*
 
4837
 
 
4838
fi
 
4839
 
 
4840
if test $ac_cv_header_stdc = yes; then
 
4841
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4842
  if test "$cross_compiling" = yes; then
 
4843
  :
 
4844
else
 
4845
  cat >conftest.$ac_ext <<_ACEOF
 
4846
/* confdefs.h.  */
 
4847
_ACEOF
 
4848
cat confdefs.h >>conftest.$ac_ext
 
4849
cat >>conftest.$ac_ext <<_ACEOF
 
4850
/* end confdefs.h.  */
 
4851
#include <ctype.h>
 
4852
#include <stdlib.h>
 
4853
#if ((' ' & 0x0FF) == 0x020)
 
4854
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4855
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4856
#else
 
4857
# define ISLOWER(c) \
 
4858
                   (('a' <= (c) && (c) <= 'i') \
 
4859
                     || ('j' <= (c) && (c) <= 'r') \
 
4860
                     || ('s' <= (c) && (c) <= 'z'))
 
4861
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4862
#endif
 
4863
 
 
4864
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4865
int
 
4866
main ()
 
4867
{
 
4868
  int i;
 
4869
  for (i = 0; i < 256; i++)
 
4870
    if (XOR (islower (i), ISLOWER (i))
 
4871
        || toupper (i) != TOUPPER (i))
 
4872
      return 2;
 
4873
  return 0;
 
4874
}
 
4875
_ACEOF
 
4876
rm -f conftest$ac_exeext
 
4877
if { (ac_try="$ac_link"
 
4878
case "(($ac_try" in
 
4879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4880
  *) ac_try_echo=$ac_try;;
 
4881
esac
 
4882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4883
  (eval "$ac_link") 2>&5
 
4884
  ac_status=$?
 
4885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4886
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4887
  { (case "(($ac_try" in
 
4888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4889
  *) ac_try_echo=$ac_try;;
 
4890
esac
 
4891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4892
  (eval "$ac_try") 2>&5
 
4893
  ac_status=$?
 
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4895
  (exit $ac_status); }; }; then
 
4896
  :
 
4897
else
 
4898
  echo "$as_me: program exited with status $ac_status" >&5
 
4899
echo "$as_me: failed program was:" >&5
 
4900
sed 's/^/| /' conftest.$ac_ext >&5
 
4901
 
 
4902
( exit $ac_status )
 
4903
ac_cv_header_stdc=no
 
4904
fi
 
4905
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4906
fi
 
4907
 
 
4908
 
 
4909
fi
 
4910
fi
 
4911
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4912
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4913
if test $ac_cv_header_stdc = yes; then
 
4914
 
 
4915
cat >>confdefs.h <<\_ACEOF
 
4916
#define STDC_HEADERS 1
 
4917
_ACEOF
 
4918
 
 
4919
fi
 
4920
 
 
4921
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4922
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
4923
if test "${ac_cv_c_const+set}" = set; then
 
4924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4925
else
 
4926
  cat >conftest.$ac_ext <<_ACEOF
 
4927
/* confdefs.h.  */
 
4928
_ACEOF
 
4929
cat confdefs.h >>conftest.$ac_ext
 
4930
cat >>conftest.$ac_ext <<_ACEOF
 
4931
/* end confdefs.h.  */
 
4932
 
 
4933
int
 
4934
main ()
 
4935
{
 
4936
/* FIXME: Include the comments suggested by Paul. */
 
4937
#ifndef __cplusplus
 
4938
  /* Ultrix mips cc rejects this.  */
 
4939
  typedef int charset[2];
 
4940
  const charset cs;
 
4941
  /* SunOS 4.1.1 cc rejects this.  */
 
4942
  char const *const *pcpcc;
 
4943
  char **ppc;
 
4944
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4945
  struct point {int x, y;};
 
4946
  static struct point const zero = {0,0};
 
4947
  /* AIX XL C 1.02.0.0 rejects this.
 
4948
     It does not let you subtract one const X* pointer from another in
 
4949
     an arm of an if-expression whose if-part is not a constant
 
4950
     expression */
 
4951
  const char *g = "string";
 
4952
  pcpcc = &g + (g ? g-g : 0);
 
4953
  /* HPUX 7.0 cc rejects these. */
 
4954
  ++pcpcc;
 
4955
  ppc = (char**) pcpcc;
 
4956
  pcpcc = (char const *const *) ppc;
 
4957
  { /* SCO 3.2v4 cc rejects this.  */
 
4958
    char *t;
 
4959
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4960
 
 
4961
    *t++ = 0;
 
4962
    if (s) return 0;
 
4963
  }
 
4964
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4965
    int x[] = {25, 17};
 
4966
    const int *foo = &x[0];
 
4967
    ++foo;
 
4968
  }
 
4969
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4970
    typedef const int *iptr;
 
4971
    iptr p = 0;
 
4972
    ++p;
 
4973
  }
 
4974
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4975
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4976
    struct s { int j; const int *ap[3]; };
 
4977
    struct s *b; b->j = 5;
 
4978
  }
 
4979
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4980
    const int foo = 10;
 
4981
    if (!foo) return 0;
 
4982
  }
 
4983
  return !cs[0] && !zero.x;
 
4984
#endif
 
4985
 
 
4986
  ;
 
4987
  return 0;
 
4988
}
 
4989
_ACEOF
 
4990
rm -f conftest.$ac_objext
 
4991
if { (ac_try="$ac_compile"
 
4992
case "(($ac_try" in
 
4993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4994
  *) ac_try_echo=$ac_try;;
 
4995
esac
 
4996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4997
  (eval "$ac_compile") 2>conftest.er1
 
4998
  ac_status=$?
 
4999
  grep -v '^ *+' conftest.er1 >conftest.err
 
5000
  rm -f conftest.er1
 
5001
  cat conftest.err >&5
 
5002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5003
  (exit $ac_status); } &&
 
5004
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5005
  { (case "(($ac_try" in
 
5006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5007
  *) ac_try_echo=$ac_try;;
 
5008
esac
 
5009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5010
  (eval "$ac_try") 2>&5
 
5011
  ac_status=$?
 
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); }; } &&
 
5014
         { ac_try='test -s conftest.$ac_objext'
 
5015
  { (case "(($ac_try" in
 
5016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5017
  *) ac_try_echo=$ac_try;;
 
5018
esac
 
5019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5020
  (eval "$ac_try") 2>&5
 
5021
  ac_status=$?
 
5022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5023
  (exit $ac_status); }; }; then
 
5024
  ac_cv_c_const=yes
 
5025
else
 
5026
  echo "$as_me: failed program was:" >&5
 
5027
sed 's/^/| /' conftest.$ac_ext >&5
 
5028
 
 
5029
        ac_cv_c_const=no
 
5030
fi
 
5031
 
 
5032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5033
fi
 
5034
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
5035
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
5036
if test $ac_cv_c_const = no; then
 
5037
 
 
5038
cat >>confdefs.h <<\_ACEOF
 
5039
#define const
 
5040
_ACEOF
 
5041
 
 
5042
fi
 
5043
 
 
5044
 
 
5045
  { echo "$as_me:$LINENO: checking for signed" >&5
 
5046
echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
 
5047
if test "${bh_cv_c_signed+set}" = set; then
 
5048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5049
else
 
5050
  cat >conftest.$ac_ext <<_ACEOF
 
5051
/* confdefs.h.  */
 
5052
_ACEOF
 
5053
cat confdefs.h >>conftest.$ac_ext
 
5054
cat >>conftest.$ac_ext <<_ACEOF
 
5055
/* end confdefs.h.  */
 
5056
 
 
5057
int
 
5058
main ()
 
5059
{
 
5060
signed char x;
 
5061
  ;
 
5062
  return 0;
 
5063
}
 
5064
_ACEOF
 
5065
rm -f conftest.$ac_objext
 
5066
if { (ac_try="$ac_compile"
 
5067
case "(($ac_try" in
 
5068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5069
  *) ac_try_echo=$ac_try;;
 
5070
esac
 
5071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5072
  (eval "$ac_compile") 2>conftest.er1
 
5073
  ac_status=$?
 
5074
  grep -v '^ *+' conftest.er1 >conftest.err
 
5075
  rm -f conftest.er1
 
5076
  cat conftest.err >&5
 
5077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5078
  (exit $ac_status); } &&
 
5079
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5080
  { (case "(($ac_try" in
 
5081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5082
  *) ac_try_echo=$ac_try;;
 
5083
esac
 
5084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5085
  (eval "$ac_try") 2>&5
 
5086
  ac_status=$?
 
5087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5088
  (exit $ac_status); }; } &&
 
5089
         { ac_try='test -s conftest.$ac_objext'
 
5090
  { (case "(($ac_try" in
 
5091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5092
  *) ac_try_echo=$ac_try;;
 
5093
esac
 
5094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5095
  (eval "$ac_try") 2>&5
 
5096
  ac_status=$?
 
5097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5098
  (exit $ac_status); }; }; then
 
5099
  bh_cv_c_signed=yes
 
5100
else
 
5101
  echo "$as_me: failed program was:" >&5
 
5102
sed 's/^/| /' conftest.$ac_ext >&5
 
5103
 
 
5104
        bh_cv_c_signed=no
 
5105
fi
 
5106
 
 
5107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5108
fi
 
5109
{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
 
5110
echo "${ECHO_T}$bh_cv_c_signed" >&6; }
 
5111
  if test $bh_cv_c_signed = no; then
 
5112
 
 
5113
cat >>confdefs.h <<\_ACEOF
 
5114
#define signed
 
5115
_ACEOF
 
5116
 
 
5117
  fi
 
5118
 
 
5119
{ echo "$as_me:$LINENO: checking for inline" >&5
 
5120
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
5121
if test "${ac_cv_c_inline+set}" = set; then
 
5122
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5123
else
 
5124
  ac_cv_c_inline=no
 
5125
for ac_kw in inline __inline__ __inline; do
 
5126
  cat >conftest.$ac_ext <<_ACEOF
 
5127
/* confdefs.h.  */
 
5128
_ACEOF
 
5129
cat confdefs.h >>conftest.$ac_ext
 
5130
cat >>conftest.$ac_ext <<_ACEOF
 
5131
/* end confdefs.h.  */
 
5132
#ifndef __cplusplus
 
5133
typedef int foo_t;
 
5134
static $ac_kw foo_t static_foo () {return 0; }
 
5135
$ac_kw foo_t foo () {return 0; }
 
5136
#endif
 
5137
 
 
5138
_ACEOF
 
5139
rm -f conftest.$ac_objext
 
5140
if { (ac_try="$ac_compile"
 
5141
case "(($ac_try" in
 
5142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5143
  *) ac_try_echo=$ac_try;;
 
5144
esac
 
5145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5146
  (eval "$ac_compile") 2>conftest.er1
 
5147
  ac_status=$?
 
5148
  grep -v '^ *+' conftest.er1 >conftest.err
 
5149
  rm -f conftest.er1
 
5150
  cat conftest.err >&5
 
5151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5152
  (exit $ac_status); } &&
 
5153
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5154
  { (case "(($ac_try" in
 
5155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5156
  *) ac_try_echo=$ac_try;;
 
5157
esac
 
5158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5159
  (eval "$ac_try") 2>&5
 
5160
  ac_status=$?
 
5161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5162
  (exit $ac_status); }; } &&
 
5163
         { ac_try='test -s conftest.$ac_objext'
 
5164
  { (case "(($ac_try" in
 
5165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5166
  *) ac_try_echo=$ac_try;;
 
5167
esac
 
5168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5169
  (eval "$ac_try") 2>&5
 
5170
  ac_status=$?
 
5171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5172
  (exit $ac_status); }; }; then
 
5173
  ac_cv_c_inline=$ac_kw
 
5174
else
 
5175
  echo "$as_me: failed program was:" >&5
 
5176
sed 's/^/| /' conftest.$ac_ext >&5
 
5177
 
 
5178
 
 
5179
fi
 
5180
 
 
5181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5182
  test "$ac_cv_c_inline" != no && break
 
5183
done
 
5184
 
 
5185
fi
 
5186
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
5187
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
5188
 
 
5189
 
 
5190
case $ac_cv_c_inline in
 
5191
  inline | yes) ;;
 
5192
  *)
 
5193
    case $ac_cv_c_inline in
 
5194
      no) ac_val=;;
 
5195
      *) ac_val=$ac_cv_c_inline;;
 
5196
    esac
 
5197
    cat >>confdefs.h <<_ACEOF
 
5198
#ifndef __cplusplus
 
5199
#define inline $ac_val
 
5200
#endif
 
5201
_ACEOF
 
5202
    ;;
 
5203
esac
 
5204
 
 
5205
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5206
 
 
5207
 
 
5208
 
 
5209
 
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
 
 
5215
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5216
                  inttypes.h stdint.h unistd.h
 
5217
do
 
5218
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5219
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5223
else
 
5224
  cat >conftest.$ac_ext <<_ACEOF
 
5225
/* confdefs.h.  */
 
5226
_ACEOF
 
5227
cat confdefs.h >>conftest.$ac_ext
 
5228
cat >>conftest.$ac_ext <<_ACEOF
 
5229
/* end confdefs.h.  */
 
5230
$ac_includes_default
 
5231
 
 
5232
#include <$ac_header>
 
5233
_ACEOF
 
5234
rm -f conftest.$ac_objext
 
5235
if { (ac_try="$ac_compile"
 
5236
case "(($ac_try" in
 
5237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5238
  *) ac_try_echo=$ac_try;;
 
5239
esac
 
5240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5241
  (eval "$ac_compile") 2>conftest.er1
 
5242
  ac_status=$?
 
5243
  grep -v '^ *+' conftest.er1 >conftest.err
 
5244
  rm -f conftest.er1
 
5245
  cat conftest.err >&5
 
5246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5247
  (exit $ac_status); } &&
 
5248
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5249
  { (case "(($ac_try" in
 
5250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5251
  *) ac_try_echo=$ac_try;;
 
5252
esac
 
5253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5254
  (eval "$ac_try") 2>&5
 
5255
  ac_status=$?
 
5256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5257
  (exit $ac_status); }; } &&
 
5258
         { ac_try='test -s conftest.$ac_objext'
 
5259
  { (case "(($ac_try" in
 
5260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5261
  *) ac_try_echo=$ac_try;;
 
5262
esac
 
5263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5264
  (eval "$ac_try") 2>&5
 
5265
  ac_status=$?
 
5266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5267
  (exit $ac_status); }; }; then
 
5268
  eval "$as_ac_Header=yes"
 
5269
else
 
5270
  echo "$as_me: failed program was:" >&5
 
5271
sed 's/^/| /' conftest.$ac_ext >&5
 
5272
 
 
5273
        eval "$as_ac_Header=no"
 
5274
fi
 
5275
 
 
5276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5277
fi
 
5278
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5279
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5280
echo "${ECHO_T}$ac_res" >&6; }
 
5281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5282
  cat >>confdefs.h <<_ACEOF
 
5283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5284
_ACEOF
 
5285
 
 
5286
fi
 
5287
 
 
5288
done
 
5289
 
 
5290
 
 
5291
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
5292
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
 
5293
if test "${ac_cv_type_off_t+set}" = set; then
 
5294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5295
else
 
5296
  cat >conftest.$ac_ext <<_ACEOF
 
5297
/* confdefs.h.  */
 
5298
_ACEOF
 
5299
cat confdefs.h >>conftest.$ac_ext
 
5300
cat >>conftest.$ac_ext <<_ACEOF
 
5301
/* end confdefs.h.  */
 
5302
$ac_includes_default
 
5303
typedef off_t ac__type_new_;
 
5304
int
 
5305
main ()
 
5306
{
 
5307
if ((ac__type_new_ *) 0)
 
5308
  return 0;
 
5309
if (sizeof (ac__type_new_))
 
5310
  return 0;
 
5311
  ;
 
5312
  return 0;
 
5313
}
 
5314
_ACEOF
 
5315
rm -f conftest.$ac_objext
 
5316
if { (ac_try="$ac_compile"
 
5317
case "(($ac_try" in
 
5318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5319
  *) ac_try_echo=$ac_try;;
 
5320
esac
 
5321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5322
  (eval "$ac_compile") 2>conftest.er1
 
5323
  ac_status=$?
 
5324
  grep -v '^ *+' conftest.er1 >conftest.err
 
5325
  rm -f conftest.er1
 
5326
  cat conftest.err >&5
 
5327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5328
  (exit $ac_status); } &&
 
5329
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5330
  { (case "(($ac_try" in
 
5331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5332
  *) ac_try_echo=$ac_try;;
 
5333
esac
 
5334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5335
  (eval "$ac_try") 2>&5
 
5336
  ac_status=$?
 
5337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5338
  (exit $ac_status); }; } &&
 
5339
         { ac_try='test -s conftest.$ac_objext'
 
5340
  { (case "(($ac_try" in
 
5341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5342
  *) ac_try_echo=$ac_try;;
 
5343
esac
 
5344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5345
  (eval "$ac_try") 2>&5
 
5346
  ac_status=$?
 
5347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5348
  (exit $ac_status); }; }; then
 
5349
  ac_cv_type_off_t=yes
 
5350
else
 
5351
  echo "$as_me: failed program was:" >&5
 
5352
sed 's/^/| /' conftest.$ac_ext >&5
 
5353
 
 
5354
        ac_cv_type_off_t=no
 
5355
fi
 
5356
 
 
5357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5358
fi
 
5359
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
5360
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
 
5361
if test $ac_cv_type_off_t = yes; then
 
5362
  :
 
5363
else
 
5364
 
 
5365
cat >>confdefs.h <<_ACEOF
 
5366
#define off_t long int
 
5367
_ACEOF
 
5368
 
 
5369
fi
 
5370
 
 
5371
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
5372
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
5373
if test "${ac_cv_type_size_t+set}" = set; then
 
5374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5375
else
 
5376
  cat >conftest.$ac_ext <<_ACEOF
 
5377
/* confdefs.h.  */
 
5378
_ACEOF
 
5379
cat confdefs.h >>conftest.$ac_ext
 
5380
cat >>conftest.$ac_ext <<_ACEOF
 
5381
/* end confdefs.h.  */
 
5382
$ac_includes_default
 
5383
typedef size_t ac__type_new_;
 
5384
int
 
5385
main ()
 
5386
{
 
5387
if ((ac__type_new_ *) 0)
 
5388
  return 0;
 
5389
if (sizeof (ac__type_new_))
 
5390
  return 0;
 
5391
  ;
 
5392
  return 0;
 
5393
}
 
5394
_ACEOF
 
5395
rm -f conftest.$ac_objext
 
5396
if { (ac_try="$ac_compile"
 
5397
case "(($ac_try" in
 
5398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5399
  *) ac_try_echo=$ac_try;;
 
5400
esac
 
5401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5402
  (eval "$ac_compile") 2>conftest.er1
 
5403
  ac_status=$?
 
5404
  grep -v '^ *+' conftest.er1 >conftest.err
 
5405
  rm -f conftest.er1
 
5406
  cat conftest.err >&5
 
5407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); } &&
 
5409
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5410
  { (case "(($ac_try" in
 
5411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5412
  *) ac_try_echo=$ac_try;;
 
5413
esac
 
5414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5415
  (eval "$ac_try") 2>&5
 
5416
  ac_status=$?
 
5417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5418
  (exit $ac_status); }; } &&
 
5419
         { ac_try='test -s conftest.$ac_objext'
 
5420
  { (case "(($ac_try" in
 
5421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5422
  *) ac_try_echo=$ac_try;;
 
5423
esac
 
5424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5425
  (eval "$ac_try") 2>&5
 
5426
  ac_status=$?
 
5427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5428
  (exit $ac_status); }; }; then
 
5429
  ac_cv_type_size_t=yes
 
5430
else
 
5431
  echo "$as_me: failed program was:" >&5
 
5432
sed 's/^/| /' conftest.$ac_ext >&5
 
5433
 
 
5434
        ac_cv_type_size_t=no
 
5435
fi
 
5436
 
 
5437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5438
fi
 
5439
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5440
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
5441
if test $ac_cv_type_size_t = yes; then
 
5442
  :
 
5443
else
 
5444
 
 
5445
cat >>confdefs.h <<_ACEOF
 
5446
#define size_t unsigned int
 
5447
_ACEOF
 
5448
 
 
5449
fi
 
5450
 
 
5451
 
 
5452
  { echo "$as_me:$LINENO: checking for long long" >&5
 
5453
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
 
5454
if test "${ac_cv_type_long_long+set}" = set; then
 
5455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5456
else
 
5457
  cat >conftest.$ac_ext <<_ACEOF
 
5458
/* confdefs.h.  */
 
5459
_ACEOF
 
5460
cat confdefs.h >>conftest.$ac_ext
 
5461
cat >>conftest.$ac_ext <<_ACEOF
 
5462
/* end confdefs.h.  */
 
5463
long long ll = 1LL; int i = 63;
 
5464
int
 
5465
main ()
 
5466
{
 
5467
long long llmax = (long long) -1;
 
5468
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
5469
  ;
 
5470
  return 0;
 
5471
}
 
5472
_ACEOF
 
5473
rm -f conftest.$ac_objext conftest$ac_exeext
 
5474
if { (ac_try="$ac_link"
 
5475
case "(($ac_try" in
 
5476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5477
  *) ac_try_echo=$ac_try;;
 
5478
esac
 
5479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5480
  (eval "$ac_link") 2>conftest.er1
 
5481
  ac_status=$?
 
5482
  grep -v '^ *+' conftest.er1 >conftest.err
 
5483
  rm -f conftest.er1
 
5484
  cat conftest.err >&5
 
5485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5486
  (exit $ac_status); } &&
 
5487
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5488
  { (case "(($ac_try" in
 
5489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5490
  *) ac_try_echo=$ac_try;;
 
5491
esac
 
5492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5493
  (eval "$ac_try") 2>&5
 
5494
  ac_status=$?
 
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5496
  (exit $ac_status); }; } &&
 
5497
         { ac_try='test -s conftest$ac_exeext'
 
5498
  { (case "(($ac_try" in
 
5499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5500
  *) ac_try_echo=$ac_try;;
 
5501
esac
 
5502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5503
  (eval "$ac_try") 2>&5
 
5504
  ac_status=$?
 
5505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5506
  (exit $ac_status); }; }; then
 
5507
  ac_cv_type_long_long=yes
 
5508
else
 
5509
  echo "$as_me: failed program was:" >&5
 
5510
sed 's/^/| /' conftest.$ac_ext >&5
 
5511
 
 
5512
        ac_cv_type_long_long=no
 
5513
fi
 
5514
 
 
5515
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5516
      conftest$ac_exeext conftest.$ac_ext
 
5517
fi
 
5518
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
5519
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
 
5520
  if test $ac_cv_type_long_long = yes; then
 
5521
 
 
5522
cat >>confdefs.h <<\_ACEOF
 
5523
#define HAVE_LONG_LONG 1
 
5524
_ACEOF
 
5525
 
 
5526
  fi
 
5527
 
 
5528
 
 
5529
  { echo "$as_me:$LINENO: checking for long double" >&5
 
5530
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
5531
if test "${gt_cv_c_long_double+set}" = set; then
 
5532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5533
else
 
5534
  if test "$GCC" = yes; then
 
5535
       gt_cv_c_long_double=yes
 
5536
     else
 
5537
       cat >conftest.$ac_ext <<_ACEOF
 
5538
/* confdefs.h.  */
 
5539
_ACEOF
 
5540
cat confdefs.h >>conftest.$ac_ext
 
5541
cat >>conftest.$ac_ext <<_ACEOF
 
5542
/* end confdefs.h.  */
 
5543
 
 
5544
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
5545
         long double foo = 0.0;
 
5546
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
5547
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
5548
 
 
5549
int
 
5550
main ()
 
5551
{
 
5552
 
 
5553
  ;
 
5554
  return 0;
 
5555
}
 
5556
_ACEOF
 
5557
rm -f conftest.$ac_objext
 
5558
if { (ac_try="$ac_compile"
 
5559
case "(($ac_try" in
 
5560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5561
  *) ac_try_echo=$ac_try;;
 
5562
esac
 
5563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5564
  (eval "$ac_compile") 2>conftest.er1
 
5565
  ac_status=$?
 
5566
  grep -v '^ *+' conftest.er1 >conftest.err
 
5567
  rm -f conftest.er1
 
5568
  cat conftest.err >&5
 
5569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5570
  (exit $ac_status); } &&
 
5571
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5572
  { (case "(($ac_try" in
 
5573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5574
  *) ac_try_echo=$ac_try;;
 
5575
esac
 
5576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5577
  (eval "$ac_try") 2>&5
 
5578
  ac_status=$?
 
5579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5580
  (exit $ac_status); }; } &&
 
5581
         { ac_try='test -s conftest.$ac_objext'
 
5582
  { (case "(($ac_try" in
 
5583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5584
  *) ac_try_echo=$ac_try;;
 
5585
esac
 
5586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5587
  (eval "$ac_try") 2>&5
 
5588
  ac_status=$?
 
5589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5590
  (exit $ac_status); }; }; then
 
5591
  gt_cv_c_long_double=yes
 
5592
else
 
5593
  echo "$as_me: failed program was:" >&5
 
5594
sed 's/^/| /' conftest.$ac_ext >&5
 
5595
 
 
5596
        gt_cv_c_long_double=no
 
5597
fi
 
5598
 
 
5599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5600
     fi
 
5601
fi
 
5602
{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
5603
echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
 
5604
  if test $gt_cv_c_long_double = yes; then
 
5605
 
 
5606
cat >>confdefs.h <<\_ACEOF
 
5607
#define HAVE_LONG_DOUBLE 1
 
5608
_ACEOF
 
5609
 
 
5610
  fi
 
5611
 
 
5612
 
 
5613
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
5614
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
5615
if test "${gt_cv_c_wchar_t+set}" = set; then
 
5616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5617
else
 
5618
  cat >conftest.$ac_ext <<_ACEOF
 
5619
/* confdefs.h.  */
 
5620
_ACEOF
 
5621
cat confdefs.h >>conftest.$ac_ext
 
5622
cat >>conftest.$ac_ext <<_ACEOF
 
5623
/* end confdefs.h.  */
 
5624
#include <stddef.h>
 
5625
       wchar_t foo = (wchar_t)'\0';
 
5626
int
 
5627
main ()
 
5628
{
 
5629
 
 
5630
  ;
 
5631
  return 0;
 
5632
}
 
5633
_ACEOF
 
5634
rm -f conftest.$ac_objext
 
5635
if { (ac_try="$ac_compile"
 
5636
case "(($ac_try" in
 
5637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5638
  *) ac_try_echo=$ac_try;;
 
5639
esac
 
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5641
  (eval "$ac_compile") 2>conftest.er1
 
5642
  ac_status=$?
 
5643
  grep -v '^ *+' conftest.er1 >conftest.err
 
5644
  rm -f conftest.er1
 
5645
  cat conftest.err >&5
 
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5647
  (exit $ac_status); } &&
 
5648
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5649
  { (case "(($ac_try" in
 
5650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5651
  *) ac_try_echo=$ac_try;;
 
5652
esac
 
5653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5654
  (eval "$ac_try") 2>&5
 
5655
  ac_status=$?
 
5656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5657
  (exit $ac_status); }; } &&
 
5658
         { ac_try='test -s conftest.$ac_objext'
 
5659
  { (case "(($ac_try" in
 
5660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5661
  *) ac_try_echo=$ac_try;;
 
5662
esac
 
5663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5664
  (eval "$ac_try") 2>&5
 
5665
  ac_status=$?
 
5666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5667
  (exit $ac_status); }; }; then
 
5668
  gt_cv_c_wchar_t=yes
 
5669
else
 
5670
  echo "$as_me: failed program was:" >&5
 
5671
sed 's/^/| /' conftest.$ac_ext >&5
 
5672
 
 
5673
        gt_cv_c_wchar_t=no
 
5674
fi
 
5675
 
 
5676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5677
fi
 
5678
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
5679
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
 
5680
  if test $gt_cv_c_wchar_t = yes; then
 
5681
 
 
5682
cat >>confdefs.h <<\_ACEOF
 
5683
#define HAVE_WCHAR_T 1
 
5684
_ACEOF
 
5685
 
 
5686
  fi
 
5687
 
 
5688
 
 
5689
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
5690
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
5691
if test "${gt_cv_c_wint_t+set}" = set; then
 
5692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5693
else
 
5694
  cat >conftest.$ac_ext <<_ACEOF
 
5695
/* confdefs.h.  */
 
5696
_ACEOF
 
5697
cat confdefs.h >>conftest.$ac_ext
 
5698
cat >>conftest.$ac_ext <<_ACEOF
 
5699
/* end confdefs.h.  */
 
5700
#include <wchar.h>
 
5701
       wint_t foo = (wchar_t)'\0';
 
5702
int
 
5703
main ()
 
5704
{
 
5705
 
 
5706
  ;
 
5707
  return 0;
 
5708
}
 
5709
_ACEOF
 
5710
rm -f conftest.$ac_objext
 
5711
if { (ac_try="$ac_compile"
 
5712
case "(($ac_try" in
 
5713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5714
  *) ac_try_echo=$ac_try;;
 
5715
esac
 
5716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5717
  (eval "$ac_compile") 2>conftest.er1
 
5718
  ac_status=$?
 
5719
  grep -v '^ *+' conftest.er1 >conftest.err
 
5720
  rm -f conftest.er1
 
5721
  cat conftest.err >&5
 
5722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5723
  (exit $ac_status); } &&
 
5724
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5725
  { (case "(($ac_try" in
 
5726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5727
  *) ac_try_echo=$ac_try;;
 
5728
esac
 
5729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5730
  (eval "$ac_try") 2>&5
 
5731
  ac_status=$?
 
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5733
  (exit $ac_status); }; } &&
 
5734
         { ac_try='test -s conftest.$ac_objext'
 
5735
  { (case "(($ac_try" in
 
5736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5737
  *) ac_try_echo=$ac_try;;
 
5738
esac
 
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5740
  (eval "$ac_try") 2>&5
 
5741
  ac_status=$?
 
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5743
  (exit $ac_status); }; }; then
 
5744
  gt_cv_c_wint_t=yes
 
5745
else
 
5746
  echo "$as_me: failed program was:" >&5
 
5747
sed 's/^/| /' conftest.$ac_ext >&5
 
5748
 
 
5749
        gt_cv_c_wint_t=no
 
5750
fi
 
5751
 
 
5752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5753
fi
 
5754
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
5755
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
5756
  if test $gt_cv_c_wint_t = yes; then
 
5757
 
 
5758
cat >>confdefs.h <<\_ACEOF
 
5759
#define HAVE_WINT_T 1
 
5760
_ACEOF
 
5761
 
 
5762
  fi
 
5763
 
 
5764
 
 
5765
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
5766
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
5767
if test "${gl_cv_header_inttypes_h+set}" = set; then
 
5768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5769
else
 
5770
  cat >conftest.$ac_ext <<_ACEOF
 
5771
/* confdefs.h.  */
 
5772
_ACEOF
 
5773
cat confdefs.h >>conftest.$ac_ext
 
5774
cat >>conftest.$ac_ext <<_ACEOF
 
5775
/* end confdefs.h.  */
 
5776
#include <sys/types.h>
 
5777
#include <inttypes.h>
 
5778
int
 
5779
main ()
 
5780
{
 
5781
uintmax_t i = (uintmax_t) -1;
 
5782
  ;
 
5783
  return 0;
 
5784
}
 
5785
_ACEOF
 
5786
rm -f conftest.$ac_objext
 
5787
if { (ac_try="$ac_compile"
 
5788
case "(($ac_try" in
 
5789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5790
  *) ac_try_echo=$ac_try;;
 
5791
esac
 
5792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5793
  (eval "$ac_compile") 2>conftest.er1
 
5794
  ac_status=$?
 
5795
  grep -v '^ *+' conftest.er1 >conftest.err
 
5796
  rm -f conftest.er1
 
5797
  cat conftest.err >&5
 
5798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5799
  (exit $ac_status); } &&
 
5800
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5801
  { (case "(($ac_try" in
 
5802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5803
  *) ac_try_echo=$ac_try;;
 
5804
esac
 
5805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5806
  (eval "$ac_try") 2>&5
 
5807
  ac_status=$?
 
5808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5809
  (exit $ac_status); }; } &&
 
5810
         { ac_try='test -s conftest.$ac_objext'
 
5811
  { (case "(($ac_try" in
 
5812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5813
  *) ac_try_echo=$ac_try;;
 
5814
esac
 
5815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5816
  (eval "$ac_try") 2>&5
 
5817
  ac_status=$?
 
5818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5819
  (exit $ac_status); }; }; then
 
5820
  gl_cv_header_inttypes_h=yes
 
5821
else
 
5822
  echo "$as_me: failed program was:" >&5
 
5823
sed 's/^/| /' conftest.$ac_ext >&5
 
5824
 
 
5825
        gl_cv_header_inttypes_h=no
 
5826
fi
 
5827
 
 
5828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5829
fi
 
5830
{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
5831
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
 
5832
  if test $gl_cv_header_inttypes_h = yes; then
 
5833
 
 
5834
cat >>confdefs.h <<_ACEOF
 
5835
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
5836
_ACEOF
 
5837
 
 
5838
  fi
 
5839
 
 
5840
 
 
5841
  { echo "$as_me:$LINENO: checking for stdint.h" >&5
 
5842
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
 
5843
if test "${gl_cv_header_stdint_h+set}" = set; then
 
5844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5845
else
 
5846
  cat >conftest.$ac_ext <<_ACEOF
 
5847
/* confdefs.h.  */
 
5848
_ACEOF
 
5849
cat confdefs.h >>conftest.$ac_ext
 
5850
cat >>conftest.$ac_ext <<_ACEOF
 
5851
/* end confdefs.h.  */
 
5852
#include <sys/types.h>
 
5853
#include <stdint.h>
 
5854
int
 
5855
main ()
 
5856
{
 
5857
uintmax_t i = (uintmax_t) -1;
 
5858
  ;
 
5859
  return 0;
 
5860
}
 
5861
_ACEOF
 
5862
rm -f conftest.$ac_objext
 
5863
if { (ac_try="$ac_compile"
 
5864
case "(($ac_try" in
 
5865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5866
  *) ac_try_echo=$ac_try;;
 
5867
esac
 
5868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5869
  (eval "$ac_compile") 2>conftest.er1
 
5870
  ac_status=$?
 
5871
  grep -v '^ *+' conftest.er1 >conftest.err
 
5872
  rm -f conftest.er1
 
5873
  cat conftest.err >&5
 
5874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5875
  (exit $ac_status); } &&
 
5876
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5877
  { (case "(($ac_try" in
 
5878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5879
  *) ac_try_echo=$ac_try;;
 
5880
esac
 
5881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5882
  (eval "$ac_try") 2>&5
 
5883
  ac_status=$?
 
5884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5885
  (exit $ac_status); }; } &&
 
5886
         { ac_try='test -s conftest.$ac_objext'
 
5887
  { (case "(($ac_try" in
 
5888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5889
  *) ac_try_echo=$ac_try;;
 
5890
esac
 
5891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5892
  (eval "$ac_try") 2>&5
 
5893
  ac_status=$?
 
5894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5895
  (exit $ac_status); }; }; then
 
5896
  gl_cv_header_stdint_h=yes
 
5897
else
 
5898
  echo "$as_me: failed program was:" >&5
 
5899
sed 's/^/| /' conftest.$ac_ext >&5
 
5900
 
 
5901
        gl_cv_header_stdint_h=no
 
5902
fi
 
5903
 
 
5904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5905
fi
 
5906
{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
5907
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
 
5908
  if test $gl_cv_header_stdint_h = yes; then
 
5909
 
 
5910
cat >>confdefs.h <<_ACEOF
 
5911
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
5912
_ACEOF
 
5913
 
 
5914
  fi
 
5915
 
 
5916
 
 
5917
 
 
5918
 
 
5919
  { echo "$as_me:$LINENO: checking for intmax_t" >&5
 
5920
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
 
5921
if test "${gt_cv_c_intmax_t+set}" = set; then
 
5922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5923
else
 
5924
  cat >conftest.$ac_ext <<_ACEOF
 
5925
/* confdefs.h.  */
 
5926
_ACEOF
 
5927
cat confdefs.h >>conftest.$ac_ext
 
5928
cat >>conftest.$ac_ext <<_ACEOF
 
5929
/* end confdefs.h.  */
 
5930
 
 
5931
#include <stddef.h>
 
5932
#include <stdlib.h>
 
5933
#if HAVE_STDINT_H_WITH_UINTMAX
 
5934
#include <stdint.h>
 
5935
#endif
 
5936
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
5937
#include <inttypes.h>
 
5938
#endif
 
5939
 
 
5940
int
 
5941
main ()
 
5942
{
 
5943
intmax_t x = -1;
 
5944
  ;
 
5945
  return 0;
 
5946
}
 
5947
_ACEOF
 
5948
rm -f conftest.$ac_objext
 
5949
if { (ac_try="$ac_compile"
 
5950
case "(($ac_try" in
 
5951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5952
  *) ac_try_echo=$ac_try;;
 
5953
esac
 
5954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5955
  (eval "$ac_compile") 2>conftest.er1
 
5956
  ac_status=$?
 
5957
  grep -v '^ *+' conftest.er1 >conftest.err
 
5958
  rm -f conftest.er1
 
5959
  cat conftest.err >&5
 
5960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5961
  (exit $ac_status); } &&
 
5962
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5963
  { (case "(($ac_try" in
 
5964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5965
  *) ac_try_echo=$ac_try;;
 
5966
esac
 
5967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5968
  (eval "$ac_try") 2>&5
 
5969
  ac_status=$?
 
5970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5971
  (exit $ac_status); }; } &&
 
5972
         { ac_try='test -s conftest.$ac_objext'
 
5973
  { (case "(($ac_try" in
 
5974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5975
  *) ac_try_echo=$ac_try;;
 
5976
esac
 
5977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5978
  (eval "$ac_try") 2>&5
 
5979
  ac_status=$?
 
5980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5981
  (exit $ac_status); }; }; then
 
5982
  gt_cv_c_intmax_t=yes
 
5983
else
 
5984
  echo "$as_me: failed program was:" >&5
 
5985
sed 's/^/| /' conftest.$ac_ext >&5
 
5986
 
 
5987
        gt_cv_c_intmax_t=no
 
5988
fi
 
5989
 
 
5990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5991
fi
 
5992
{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
5993
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
 
5994
  if test $gt_cv_c_intmax_t = yes; then
 
5995
 
 
5996
cat >>confdefs.h <<\_ACEOF
 
5997
#define HAVE_INTMAX_T 1
 
5998
_ACEOF
 
5999
 
 
6000
  fi
 
6001
 
 
6002
 
 
6003
 
 
6004
  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
6005
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
 
6006
if test "${gt_cv_func_printf_posix+set}" = set; then
 
6007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6008
else
 
6009
 
 
6010
      if test "$cross_compiling" = yes; then
 
6011
 
 
6012
        cat >conftest.$ac_ext <<_ACEOF
 
6013
/* confdefs.h.  */
 
6014
_ACEOF
 
6015
cat confdefs.h >>conftest.$ac_ext
 
6016
cat >>conftest.$ac_ext <<_ACEOF
 
6017
/* end confdefs.h.  */
 
6018
 
 
6019
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
6020
  notposix
 
6021
#endif
 
6022
 
 
6023
_ACEOF
 
6024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6025
  $EGREP "notposix" >/dev/null 2>&1; then
 
6026
  gt_cv_func_printf_posix="guessing no"
 
6027
else
 
6028
  gt_cv_func_printf_posix="guessing yes"
 
6029
fi
 
6030
rm -f conftest*
 
6031
 
 
6032
 
 
6033
else
 
6034
  cat >conftest.$ac_ext <<_ACEOF
 
6035
/* confdefs.h.  */
 
6036
_ACEOF
 
6037
cat confdefs.h >>conftest.$ac_ext
 
6038
cat >>conftest.$ac_ext <<_ACEOF
 
6039
/* end confdefs.h.  */
 
6040
 
 
6041
#include <stdio.h>
 
6042
#include <string.h>
 
6043
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
6044
   dollar expansion (possibly an autoconf bug).  */
 
6045
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
6046
static char buf[100];
 
6047
int main ()
 
6048
{
 
6049
  sprintf (buf, format, 33, 55);
 
6050
  return (strcmp (buf, "55 33") != 0);
 
6051
}
 
6052
_ACEOF
 
6053
rm -f conftest$ac_exeext
 
6054
if { (ac_try="$ac_link"
 
6055
case "(($ac_try" in
 
6056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6057
  *) ac_try_echo=$ac_try;;
 
6058
esac
 
6059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6060
  (eval "$ac_link") 2>&5
 
6061
  ac_status=$?
 
6062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6063
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6064
  { (case "(($ac_try" in
 
6065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6066
  *) ac_try_echo=$ac_try;;
 
6067
esac
 
6068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6069
  (eval "$ac_try") 2>&5
 
6070
  ac_status=$?
 
6071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6072
  (exit $ac_status); }; }; then
 
6073
  gt_cv_func_printf_posix=yes
 
6074
else
 
6075
  echo "$as_me: program exited with status $ac_status" >&5
 
6076
echo "$as_me: failed program was:" >&5
 
6077
sed 's/^/| /' conftest.$ac_ext >&5
 
6078
 
 
6079
( exit $ac_status )
 
6080
gt_cv_func_printf_posix=no
 
6081
fi
 
6082
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6083
fi
 
6084
 
 
6085
 
 
6086
 
 
6087
fi
 
6088
{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
6089
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
 
6090
  case $gt_cv_func_printf_posix in
 
6091
    *yes)
 
6092
 
 
6093
cat >>confdefs.h <<\_ACEOF
 
6094
#define HAVE_POSIX_PRINTF 1
 
6095
_ACEOF
 
6096
 
 
6097
      ;;
 
6098
  esac
 
6099
 
 
6100
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
6101
# for constant arguments.  Useless!
 
6102
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
6103
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
6104
if test "${ac_cv_working_alloca_h+set}" = set; then
 
6105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6106
else
 
6107
  cat >conftest.$ac_ext <<_ACEOF
 
6108
/* confdefs.h.  */
 
6109
_ACEOF
 
6110
cat confdefs.h >>conftest.$ac_ext
 
6111
cat >>conftest.$ac_ext <<_ACEOF
 
6112
/* end confdefs.h.  */
 
6113
#include <alloca.h>
 
6114
int
 
6115
main ()
 
6116
{
 
6117
char *p = (char *) alloca (2 * sizeof (int));
 
6118
                          if (p) return 0;
 
6119
  ;
 
6120
  return 0;
 
6121
}
 
6122
_ACEOF
 
6123
rm -f conftest.$ac_objext conftest$ac_exeext
 
6124
if { (ac_try="$ac_link"
 
6125
case "(($ac_try" in
 
6126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6127
  *) ac_try_echo=$ac_try;;
 
6128
esac
 
6129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6130
  (eval "$ac_link") 2>conftest.er1
 
6131
  ac_status=$?
 
6132
  grep -v '^ *+' conftest.er1 >conftest.err
 
6133
  rm -f conftest.er1
 
6134
  cat conftest.err >&5
 
6135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6136
  (exit $ac_status); } &&
 
6137
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
6138
  { (case "(($ac_try" in
 
6139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6140
  *) ac_try_echo=$ac_try;;
 
6141
esac
 
6142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6143
  (eval "$ac_try") 2>&5
 
6144
  ac_status=$?
 
6145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6146
  (exit $ac_status); }; } &&
 
6147
         { ac_try='test -s conftest$ac_exeext'
 
6148
  { (case "(($ac_try" in
 
6149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6150
  *) ac_try_echo=$ac_try;;
 
6151
esac
 
6152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6153
  (eval "$ac_try") 2>&5
 
6154
  ac_status=$?
 
6155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6156
  (exit $ac_status); }; }; then
 
6157
  ac_cv_working_alloca_h=yes
 
6158
else
 
6159
  echo "$as_me: failed program was:" >&5
 
6160
sed 's/^/| /' conftest.$ac_ext >&5
 
6161
 
 
6162
        ac_cv_working_alloca_h=no
 
6163
fi
 
6164
 
 
6165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6166
      conftest$ac_exeext conftest.$ac_ext
 
6167
fi
 
6168
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
6169
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
6170
if test $ac_cv_working_alloca_h = yes; then
 
6171
 
 
6172
cat >>confdefs.h <<\_ACEOF
 
6173
#define HAVE_ALLOCA_H 1
 
6174
_ACEOF
 
6175
 
 
6176
fi
 
6177
 
 
6178
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
6179
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
6180
if test "${ac_cv_func_alloca_works+set}" = set; then
 
6181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6182
else
 
6183
  cat >conftest.$ac_ext <<_ACEOF
 
6184
/* confdefs.h.  */
 
6185
_ACEOF
 
6186
cat confdefs.h >>conftest.$ac_ext
 
6187
cat >>conftest.$ac_ext <<_ACEOF
 
6188
/* end confdefs.h.  */
 
6189
#ifdef __GNUC__
 
6190
# define alloca __builtin_alloca
 
6191
#else
 
6192
# ifdef _MSC_VER
 
6193
#  include <malloc.h>
 
6194
#  define alloca _alloca
 
6195
# else
 
6196
#  ifdef HAVE_ALLOCA_H
 
6197
#   include <alloca.h>
 
6198
#  else
 
6199
#   ifdef _AIX
 
6200
 #pragma alloca
 
6201
#   else
 
6202
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
6203
char *alloca ();
 
6204
#    endif
 
6205
#   endif
 
6206
#  endif
 
6207
# endif
 
6208
#endif
 
6209
 
 
6210
int
 
6211
main ()
 
6212
{
 
6213
char *p = (char *) alloca (1);
 
6214
                                    if (p) return 0;
 
6215
  ;
 
6216
  return 0;
 
6217
}
 
6218
_ACEOF
 
6219
rm -f conftest.$ac_objext conftest$ac_exeext
 
6220
if { (ac_try="$ac_link"
 
6221
case "(($ac_try" in
 
6222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6223
  *) ac_try_echo=$ac_try;;
 
6224
esac
 
6225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6226
  (eval "$ac_link") 2>conftest.er1
 
6227
  ac_status=$?
 
6228
  grep -v '^ *+' conftest.er1 >conftest.err
 
6229
  rm -f conftest.er1
 
6230
  cat conftest.err >&5
 
6231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6232
  (exit $ac_status); } &&
 
6233
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
6234
  { (case "(($ac_try" in
 
6235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6236
  *) ac_try_echo=$ac_try;;
 
6237
esac
 
6238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6239
  (eval "$ac_try") 2>&5
 
6240
  ac_status=$?
 
6241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6242
  (exit $ac_status); }; } &&
 
6243
         { ac_try='test -s conftest$ac_exeext'
 
6244
  { (case "(($ac_try" in
 
6245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6246
  *) ac_try_echo=$ac_try;;
 
6247
esac
 
6248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6249
  (eval "$ac_try") 2>&5
 
6250
  ac_status=$?
 
6251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6252
  (exit $ac_status); }; }; then
 
6253
  ac_cv_func_alloca_works=yes
 
6254
else
 
6255
  echo "$as_me: failed program was:" >&5
 
6256
sed 's/^/| /' conftest.$ac_ext >&5
 
6257
 
 
6258
        ac_cv_func_alloca_works=no
 
6259
fi
 
6260
 
 
6261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6262
      conftest$ac_exeext conftest.$ac_ext
 
6263
fi
 
6264
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
6265
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
6266
 
 
6267
if test $ac_cv_func_alloca_works = yes; then
 
6268
 
 
6269
cat >>confdefs.h <<\_ACEOF
 
6270
#define HAVE_ALLOCA 1
 
6271
_ACEOF
 
6272
 
 
6273
else
 
6274
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
6275
# that cause trouble.  Some versions do not even contain alloca or
 
6276
# contain a buggy version.  If you still want to use their alloca,
 
6277
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
6278
 
 
6279
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
6280
 
 
6281
cat >>confdefs.h <<\_ACEOF
 
6282
#define C_ALLOCA 1
 
6283
_ACEOF
 
6284
 
 
6285
 
 
6286
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
6287
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
6288
if test "${ac_cv_os_cray+set}" = set; then
 
6289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6290
else
 
6291
  cat >conftest.$ac_ext <<_ACEOF
 
6292
/* confdefs.h.  */
 
6293
_ACEOF
 
6294
cat confdefs.h >>conftest.$ac_ext
 
6295
cat >>conftest.$ac_ext <<_ACEOF
 
6296
/* end confdefs.h.  */
 
6297
#if defined CRAY && ! defined CRAY2
 
6298
webecray
 
6299
#else
 
6300
wenotbecray
 
6301
#endif
 
6302
 
 
6303
_ACEOF
 
6304
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6305
  $EGREP "webecray" >/dev/null 2>&1; then
 
6306
  ac_cv_os_cray=yes
 
6307
else
 
6308
  ac_cv_os_cray=no
 
6309
fi
 
6310
rm -f conftest*
 
6311
 
 
6312
fi
 
6313
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
6314
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
6315
if test $ac_cv_os_cray = yes; then
 
6316
  for ac_func in _getb67 GETB67 getb67; do
 
6317
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6322
else
 
6323
  cat >conftest.$ac_ext <<_ACEOF
 
6324
/* confdefs.h.  */
 
6325
_ACEOF
 
6326
cat confdefs.h >>conftest.$ac_ext
 
6327
cat >>conftest.$ac_ext <<_ACEOF
 
6328
/* end confdefs.h.  */
 
6329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6330
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6331
#define $ac_func innocuous_$ac_func
 
6332
 
 
6333
/* System header to define __stub macros and hopefully few prototypes,
 
6334
    which can conflict with char $ac_func (); below.
 
6335
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6336
    <limits.h> exists even on freestanding compilers.  */
 
6337
 
 
6338
#ifdef __STDC__
 
6339
# include <limits.h>
 
6340
#else
 
6341
# include <assert.h>
 
6342
#endif
 
6343
 
 
6344
#undef $ac_func
 
6345
 
 
6346
/* Override any GCC internal prototype to avoid an error.
 
6347
   Use char because int might match the return type of a GCC
 
6348
   builtin and then its argument prototype would still apply.  */
 
6349
#ifdef __cplusplus
 
6350
extern "C"
 
6351
#endif
 
6352
char $ac_func ();
 
6353
/* The GNU C library defines this for functions which it implements
 
6354
    to always fail with ENOSYS.  Some functions are actually named
 
6355
    something starting with __ and the normal name is an alias.  */
 
6356
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6357
choke me
 
6358
#endif
 
6359
 
 
6360
int
 
6361
main ()
 
6362
{
 
6363
return $ac_func ();
 
6364
  ;
 
6365
  return 0;
 
6366
}
 
6367
_ACEOF
 
6368
rm -f conftest.$ac_objext conftest$ac_exeext
 
6369
if { (ac_try="$ac_link"
 
6370
case "(($ac_try" in
 
6371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6372
  *) ac_try_echo=$ac_try;;
 
6373
esac
 
6374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6375
  (eval "$ac_link") 2>conftest.er1
 
6376
  ac_status=$?
 
6377
  grep -v '^ *+' conftest.er1 >conftest.err
 
6378
  rm -f conftest.er1
 
6379
  cat conftest.err >&5
 
6380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6381
  (exit $ac_status); } &&
 
6382
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
6383
  { (case "(($ac_try" in
 
6384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6385
  *) ac_try_echo=$ac_try;;
 
6386
esac
 
6387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6388
  (eval "$ac_try") 2>&5
 
6389
  ac_status=$?
 
6390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6391
  (exit $ac_status); }; } &&
 
6392
         { ac_try='test -s conftest$ac_exeext'
 
6393
  { (case "(($ac_try" in
 
6394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6395
  *) ac_try_echo=$ac_try;;
 
6396
esac
 
6397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6398
  (eval "$ac_try") 2>&5
 
6399
  ac_status=$?
 
6400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6401
  (exit $ac_status); }; }; then
 
6402
  eval "$as_ac_var=yes"
 
6403
else
 
6404
  echo "$as_me: failed program was:" >&5
 
6405
sed 's/^/| /' conftest.$ac_ext >&5
 
6406
 
 
6407
        eval "$as_ac_var=no"
 
6408
fi
 
6409
 
 
6410
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6411
      conftest$ac_exeext conftest.$ac_ext
 
6412
fi
 
6413
ac_res=`eval echo '${'$as_ac_var'}'`
 
6414
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6415
echo "${ECHO_T}$ac_res" >&6; }
 
6416
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6417
 
 
6418
cat >>confdefs.h <<_ACEOF
 
6419
#define CRAY_STACKSEG_END $ac_func
 
6420
_ACEOF
 
6421
 
 
6422
    break
 
6423
fi
 
6424
 
 
6425
  done
 
6426
fi
 
6427
 
 
6428
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
6429
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
6430
if test "${ac_cv_c_stack_direction+set}" = set; then
 
6431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6432
else
 
6433
  if test "$cross_compiling" = yes; then
 
6434
  ac_cv_c_stack_direction=0
 
6435
else
 
6436
  cat >conftest.$ac_ext <<_ACEOF
 
6437
/* confdefs.h.  */
 
6438
_ACEOF
 
6439
cat confdefs.h >>conftest.$ac_ext
 
6440
cat >>conftest.$ac_ext <<_ACEOF
 
6441
/* end confdefs.h.  */
 
6442
$ac_includes_default
 
6443
int
 
6444
find_stack_direction ()
 
6445
{
 
6446
  static char *addr = 0;
 
6447
  auto char dummy;
 
6448
  if (addr == 0)
 
6449
    {
 
6450
      addr = &dummy;
 
6451
      return find_stack_direction ();
 
6452
    }
 
6453
  else
 
6454
    return (&dummy > addr) ? 1 : -1;
 
6455
}
 
6456
 
 
6457
int
 
6458
main ()
 
6459
{
 
6460
  return find_stack_direction () < 0;
 
6461
}
 
6462
_ACEOF
 
6463
rm -f conftest$ac_exeext
 
6464
if { (ac_try="$ac_link"
 
6465
case "(($ac_try" in
 
6466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6467
  *) ac_try_echo=$ac_try;;
 
6468
esac
 
6469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6470
  (eval "$ac_link") 2>&5
 
6471
  ac_status=$?
 
6472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6473
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6474
  { (case "(($ac_try" in
 
6475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6476
  *) ac_try_echo=$ac_try;;
 
6477
esac
 
6478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6479
  (eval "$ac_try") 2>&5
 
6480
  ac_status=$?
 
6481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6482
  (exit $ac_status); }; }; then
 
6483
  ac_cv_c_stack_direction=1
 
6484
else
 
6485
  echo "$as_me: program exited with status $ac_status" >&5
 
6486
echo "$as_me: failed program was:" >&5
 
6487
sed 's/^/| /' conftest.$ac_ext >&5
 
6488
 
 
6489
( exit $ac_status )
 
6490
ac_cv_c_stack_direction=-1
 
6491
fi
 
6492
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6493
fi
 
6494
 
 
6495
 
 
6496
fi
 
6497
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
6498
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
6499
 
 
6500
cat >>confdefs.h <<_ACEOF
 
6501
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
6502
_ACEOF
 
6503
 
 
6504
 
 
6505
fi
 
6506
 
 
6507
 
 
6508
 
 
6509
for ac_header in stdlib.h unistd.h
 
6510
do
 
6511
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6512
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6513
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6514
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6515
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6517
fi
 
6518
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6519
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6520
echo "${ECHO_T}$ac_res" >&6; }
 
6521
else
 
6522
  # Is the header compilable?
 
6523
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6524
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
6525
cat >conftest.$ac_ext <<_ACEOF
 
6526
/* confdefs.h.  */
 
6527
_ACEOF
 
6528
cat confdefs.h >>conftest.$ac_ext
 
6529
cat >>conftest.$ac_ext <<_ACEOF
 
6530
/* end confdefs.h.  */
 
6531
$ac_includes_default
 
6532
#include <$ac_header>
 
6533
_ACEOF
 
6534
rm -f conftest.$ac_objext
 
6535
if { (ac_try="$ac_compile"
 
6536
case "(($ac_try" in
 
6537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6538
  *) ac_try_echo=$ac_try;;
 
6539
esac
 
6540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6541
  (eval "$ac_compile") 2>conftest.er1
 
6542
  ac_status=$?
 
6543
  grep -v '^ *+' conftest.er1 >conftest.err
 
6544
  rm -f conftest.er1
 
6545
  cat conftest.err >&5
 
6546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6547
  (exit $ac_status); } &&
 
6548
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
6549
  { (case "(($ac_try" in
 
6550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6551
  *) ac_try_echo=$ac_try;;
 
6552
esac
 
6553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6554
  (eval "$ac_try") 2>&5
 
6555
  ac_status=$?
 
6556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6557
  (exit $ac_status); }; } &&
 
6558
         { ac_try='test -s conftest.$ac_objext'
 
6559
  { (case "(($ac_try" in
 
6560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6561
  *) ac_try_echo=$ac_try;;
 
6562
esac
 
6563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6564
  (eval "$ac_try") 2>&5
 
6565
  ac_status=$?
 
6566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6567
  (exit $ac_status); }; }; then
 
6568
  ac_header_compiler=yes
 
6569
else
 
6570
  echo "$as_me: failed program was:" >&5
 
6571
sed 's/^/| /' conftest.$ac_ext >&5
 
6572
 
 
6573
        ac_header_compiler=no
 
6574
fi
 
6575
 
 
6576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6577
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6578
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6579
 
 
6580
# Is the header present?
 
6581
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6582
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
6583
cat >conftest.$ac_ext <<_ACEOF
 
6584
/* confdefs.h.  */
 
6585
_ACEOF
 
6586
cat confdefs.h >>conftest.$ac_ext
 
6587
cat >>conftest.$ac_ext <<_ACEOF
 
6588
/* end confdefs.h.  */
 
6589
#include <$ac_header>
 
6590
_ACEOF
 
6591
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6592
case "(($ac_try" in
 
6593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6594
  *) ac_try_echo=$ac_try;;
 
6595
esac
 
6596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6597
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6598
  ac_status=$?
 
6599
  grep -v '^ *+' conftest.er1 >conftest.err
 
6600
  rm -f conftest.er1
 
6601
  cat conftest.err >&5
 
6602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6603
  (exit $ac_status); } >/dev/null; then
 
6604
  if test -s conftest.err; then
 
6605
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6606
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6607
  else
 
6608
    ac_cpp_err=
 
6609
  fi
 
6610
else
 
6611
  ac_cpp_err=yes
 
6612
fi
 
6613
if test -z "$ac_cpp_err"; then
 
6614
  ac_header_preproc=yes
 
6615
else
 
6616
  echo "$as_me: failed program was:" >&5
 
6617
sed 's/^/| /' conftest.$ac_ext >&5
 
6618
 
 
6619
  ac_header_preproc=no
 
6620
fi
 
6621
 
 
6622
rm -f conftest.err conftest.$ac_ext
 
6623
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6624
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6625
 
 
6626
# So?  What about this header?
 
6627
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6628
  yes:no: )
 
6629
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6630
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6631
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6632
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6633
    ac_header_preproc=yes
 
6634
    ;;
 
6635
  no:yes:* )
 
6636
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6637
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6638
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6639
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6640
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6641
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6642
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6643
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6644
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6645
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6646
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6647
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6648
    ( cat <<\_ASBOX
 
6649
## ------------------------------------ ##
 
6650
## Report this to m17n-lib-bug@m17n.org ##
 
6651
## ------------------------------------ ##
 
6652
_ASBOX
 
6653
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6654
    ;;
 
6655
esac
 
6656
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6658
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6660
else
 
6661
  eval "$as_ac_Header=\$ac_header_preproc"
 
6662
fi
 
6663
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6664
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6665
echo "${ECHO_T}$ac_res" >&6; }
 
6666
 
 
6667
fi
 
6668
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6669
  cat >>confdefs.h <<_ACEOF
 
6670
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6671
_ACEOF
 
6672
 
 
6673
fi
 
6674
 
 
6675
done
 
6676
 
 
6677
 
 
6678
for ac_func in getpagesize
 
6679
do
 
6680
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6681
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6682
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6683
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6685
else
 
6686
  cat >conftest.$ac_ext <<_ACEOF
 
6687
/* confdefs.h.  */
 
6688
_ACEOF
 
6689
cat confdefs.h >>conftest.$ac_ext
 
6690
cat >>conftest.$ac_ext <<_ACEOF
 
6691
/* end confdefs.h.  */
 
6692
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6693
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6694
#define $ac_func innocuous_$ac_func
 
6695
 
 
6696
/* System header to define __stub macros and hopefully few prototypes,
 
6697
    which can conflict with char $ac_func (); below.
 
6698
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6699
    <limits.h> exists even on freestanding compilers.  */
 
6700
 
 
6701
#ifdef __STDC__
 
6702
# include <limits.h>
 
6703
#else
 
6704
# include <assert.h>
 
6705
#endif
 
6706
 
 
6707
#undef $ac_func
 
6708
 
 
6709
/* Override any GCC internal prototype to avoid an error.
 
6710
   Use char because int might match the return type of a GCC
 
6711
   builtin and then its argument prototype would still apply.  */
 
6712
#ifdef __cplusplus
 
6713
extern "C"
 
6714
#endif
 
6715
char $ac_func ();
 
6716
/* The GNU C library defines this for functions which it implements
 
6717
    to always fail with ENOSYS.  Some functions are actually named
 
6718
    something starting with __ and the normal name is an alias.  */
 
6719
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6720
choke me
 
6721
#endif
 
6722
 
 
6723
int
 
6724
main ()
 
6725
{
 
6726
return $ac_func ();
 
6727
  ;
 
6728
  return 0;
 
6729
}
 
6730
_ACEOF
 
6731
rm -f conftest.$ac_objext conftest$ac_exeext
 
6732
if { (ac_try="$ac_link"
 
6733
case "(($ac_try" in
 
6734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6735
  *) ac_try_echo=$ac_try;;
 
6736
esac
 
6737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6738
  (eval "$ac_link") 2>conftest.er1
 
6739
  ac_status=$?
 
6740
  grep -v '^ *+' conftest.er1 >conftest.err
 
6741
  rm -f conftest.er1
 
6742
  cat conftest.err >&5
 
6743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6744
  (exit $ac_status); } &&
 
6745
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
6746
  { (case "(($ac_try" in
 
6747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6748
  *) ac_try_echo=$ac_try;;
 
6749
esac
 
6750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6751
  (eval "$ac_try") 2>&5
 
6752
  ac_status=$?
 
6753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6754
  (exit $ac_status); }; } &&
 
6755
         { ac_try='test -s conftest$ac_exeext'
 
6756
  { (case "(($ac_try" in
 
6757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6758
  *) ac_try_echo=$ac_try;;
 
6759
esac
 
6760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6761
  (eval "$ac_try") 2>&5
 
6762
  ac_status=$?
 
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6764
  (exit $ac_status); }; }; then
 
6765
  eval "$as_ac_var=yes"
 
6766
else
 
6767
  echo "$as_me: failed program was:" >&5
 
6768
sed 's/^/| /' conftest.$ac_ext >&5
 
6769
 
 
6770
        eval "$as_ac_var=no"
 
6771
fi
 
6772
 
 
6773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6774
      conftest$ac_exeext conftest.$ac_ext
 
6775
fi
 
6776
ac_res=`eval echo '${'$as_ac_var'}'`
 
6777
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6778
echo "${ECHO_T}$ac_res" >&6; }
 
6779
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6780
  cat >>confdefs.h <<_ACEOF
 
6781
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6782
_ACEOF
 
6783
 
 
6784
fi
 
6785
done
 
6786
 
 
6787
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
6788
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
 
6789
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
6790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6791
else
 
6792
  if test "$cross_compiling" = yes; then
 
6793
  ac_cv_func_mmap_fixed_mapped=no
 
6794
else
 
6795
  cat >conftest.$ac_ext <<_ACEOF
 
6796
/* confdefs.h.  */
 
6797
_ACEOF
 
6798
cat confdefs.h >>conftest.$ac_ext
 
6799
cat >>conftest.$ac_ext <<_ACEOF
 
6800
/* end confdefs.h.  */
 
6801
$ac_includes_default
 
6802
/* malloc might have been renamed as rpl_malloc. */
 
6803
#undef malloc
 
6804
 
 
6805
/* Thanks to Mike Haertel and Jim Avera for this test.
 
6806
   Here is a matrix of mmap possibilities:
 
6807
        mmap private not fixed
 
6808
        mmap private fixed at somewhere currently unmapped
 
6809
        mmap private fixed at somewhere already mapped
 
6810
        mmap shared not fixed
 
6811
        mmap shared fixed at somewhere currently unmapped
 
6812
        mmap shared fixed at somewhere already mapped
 
6813
   For private mappings, we should verify that changes cannot be read()
 
6814
   back from the file, nor mmap's back from the file at a different
 
6815
   address.  (There have been systems where private was not correctly
 
6816
   implemented like the infamous i386 svr4.0, and systems where the
 
6817
   VM page cache was not coherent with the file system buffer cache
 
6818
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
6819
   For shared mappings, we should conversely verify that changes get
 
6820
   propagated back to all the places they're supposed to be.
 
6821
 
 
6822
   Grep wants private fixed already mapped.
 
6823
   The main things grep needs to know about mmap are:
 
6824
   * does it exist and is it safe to write into the mmap'd area
 
6825
   * how to use it (BSD variants)  */
 
6826
 
 
6827
#include <fcntl.h>
 
6828
#include <sys/mman.h>
 
6829
 
 
6830
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
6831
char *malloc ();
 
6832
#endif
 
6833
 
 
6834
/* This mess was copied from the GNU getpagesize.h.  */
 
6835
#ifndef HAVE_GETPAGESIZE
 
6836
/* Assume that all systems that can run configure have sys/param.h.  */
 
6837
# ifndef HAVE_SYS_PARAM_H
 
6838
#  define HAVE_SYS_PARAM_H 1
 
6839
# endif
 
6840
 
 
6841
# ifdef _SC_PAGESIZE
 
6842
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
6843
# else /* no _SC_PAGESIZE */
 
6844
#  ifdef HAVE_SYS_PARAM_H
 
6845
#   include <sys/param.h>
 
6846
#   ifdef EXEC_PAGESIZE
 
6847
#    define getpagesize() EXEC_PAGESIZE
 
6848
#   else /* no EXEC_PAGESIZE */
 
6849
#    ifdef NBPG
 
6850
#     define getpagesize() NBPG * CLSIZE
 
6851
#     ifndef CLSIZE
 
6852
#      define CLSIZE 1
 
6853
#     endif /* no CLSIZE */
 
6854
#    else /* no NBPG */
 
6855
#     ifdef NBPC
 
6856
#      define getpagesize() NBPC
 
6857
#     else /* no NBPC */
 
6858
#      ifdef PAGESIZE
 
6859
#       define getpagesize() PAGESIZE
 
6860
#      endif /* PAGESIZE */
 
6861
#     endif /* no NBPC */
 
6862
#    endif /* no NBPG */
 
6863
#   endif /* no EXEC_PAGESIZE */
 
6864
#  else /* no HAVE_SYS_PARAM_H */
 
6865
#   define getpagesize() 8192   /* punt totally */
 
6866
#  endif /* no HAVE_SYS_PARAM_H */
 
6867
# endif /* no _SC_PAGESIZE */
 
6868
 
 
6869
#endif /* no HAVE_GETPAGESIZE */
 
6870
 
 
6871
int
 
6872
main ()
 
6873
{
 
6874
  char *data, *data2, *data3;
 
6875
  int i, pagesize;
 
6876
  int fd;
 
6877
 
 
6878
  pagesize = getpagesize ();
 
6879
 
 
6880
  /* First, make a file with some known garbage in it. */
 
6881
  data = (char *) malloc (pagesize);
 
6882
  if (!data)
 
6883
    return 1;
 
6884
  for (i = 0; i < pagesize; ++i)
 
6885
    *(data + i) = rand ();
 
6886
  umask (0);
 
6887
  fd = creat ("conftest.mmap", 0600);
 
6888
  if (fd < 0)
 
6889
    return 1;
 
6890
  if (write (fd, data, pagesize) != pagesize)
 
6891
    return 1;
 
6892
  close (fd);
 
6893
 
 
6894
  /* Next, try to mmap the file at a fixed address which already has
 
6895
     something else allocated at it.  If we can, also make sure that
 
6896
     we see the same garbage.  */
 
6897
  fd = open ("conftest.mmap", O_RDWR);
 
6898
  if (fd < 0)
 
6899
    return 1;
 
6900
  data2 = (char *) malloc (2 * pagesize);
 
6901
  if (!data2)
 
6902
    return 1;
 
6903
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
 
6904
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
6905
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
6906
    return 1;
 
6907
  for (i = 0; i < pagesize; ++i)
 
6908
    if (*(data + i) != *(data2 + i))
 
6909
      return 1;
 
6910
 
 
6911
  /* Finally, make sure that changes to the mapped area do not
 
6912
     percolate back to the file as seen by read().  (This is a bug on
 
6913
     some variants of i386 svr4.0.)  */
 
6914
  for (i = 0; i < pagesize; ++i)
 
6915
    *(data2 + i) = *(data2 + i) + 1;
 
6916
  data3 = (char *) malloc (pagesize);
 
6917
  if (!data3)
 
6918
    return 1;
 
6919
  if (read (fd, data3, pagesize) != pagesize)
 
6920
    return 1;
 
6921
  for (i = 0; i < pagesize; ++i)
 
6922
    if (*(data + i) != *(data3 + i))
 
6923
      return 1;
 
6924
  close (fd);
 
6925
  return 0;
 
6926
}
 
6927
_ACEOF
 
6928
rm -f conftest$ac_exeext
 
6929
if { (ac_try="$ac_link"
 
6930
case "(($ac_try" in
 
6931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6932
  *) ac_try_echo=$ac_try;;
 
6933
esac
 
6934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6935
  (eval "$ac_link") 2>&5
 
6936
  ac_status=$?
 
6937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6938
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6939
  { (case "(($ac_try" in
 
6940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6941
  *) ac_try_echo=$ac_try;;
 
6942
esac
 
6943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6944
  (eval "$ac_try") 2>&5
 
6945
  ac_status=$?
 
6946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6947
  (exit $ac_status); }; }; then
 
6948
  ac_cv_func_mmap_fixed_mapped=yes
 
6949
else
 
6950
  echo "$as_me: program exited with status $ac_status" >&5
 
6951
echo "$as_me: failed program was:" >&5
 
6952
sed 's/^/| /' conftest.$ac_ext >&5
 
6953
 
 
6954
( exit $ac_status )
 
6955
ac_cv_func_mmap_fixed_mapped=no
 
6956
fi
 
6957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6958
fi
 
6959
 
 
6960
 
 
6961
fi
 
6962
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
6963
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
 
6964
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
6965
 
 
6966
cat >>confdefs.h <<\_ACEOF
 
6967
#define HAVE_MMAP 1
 
6968
_ACEOF
 
6969
 
 
6970
fi
 
6971
rm -f conftest.mmap
 
6972
 
 
6973
 
 
6974
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
6975
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
 
6976
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
6977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6978
else
 
6979
  cat >conftest.$ac_ext <<_ACEOF
 
6980
/* confdefs.h.  */
 
6981
_ACEOF
 
6982
cat confdefs.h >>conftest.$ac_ext
 
6983
cat >>conftest.$ac_ext <<_ACEOF
 
6984
/* end confdefs.h.  */
 
6985
 
 
6986
#include <features.h>
 
6987
#ifdef __GNU_LIBRARY__
 
6988
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
6989
  Lucky GNU user
 
6990
 #endif
 
6991
#endif
 
6992
 
 
6993
_ACEOF
 
6994
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6995
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
6996
  ac_cv_gnu_library_2_1=yes
 
6997
else
 
6998
  ac_cv_gnu_library_2_1=no
 
6999
fi
 
7000
rm -f conftest*
 
7001
 
 
7002
 
 
7003
 
 
7004
fi
 
7005
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
7006
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
 
7007
 
 
7008
    GLIBC21="$ac_cv_gnu_library_2_1"
 
7009
 
 
7010
 
 
7011
 
 
7012
 
 
7013
  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
7014
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
 
7015
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
7016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7017
else
 
7018
 
 
7019
      if test "$cross_compiling" = yes; then
 
7020
 
 
7021
          # Guess based on the CPU.
 
7022
          case "$host_cpu" in
 
7023
            alpha* | i3456786 | m68k | s390*)
 
7024
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
7025
            *)
 
7026
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
7027
          esac
 
7028
 
 
7029
else
 
7030
  cat >conftest.$ac_ext <<_ACEOF
 
7031
/* confdefs.h.  */
 
7032
_ACEOF
 
7033
cat confdefs.h >>conftest.$ac_ext
 
7034
cat >>conftest.$ac_ext <<_ACEOF
 
7035
/* end confdefs.h.  */
 
7036
 
 
7037
#include <stdlib.h>
 
7038
#include <signal.h>
 
7039
 
 
7040
static void
 
7041
#ifdef __cplusplus
 
7042
sigfpe_handler (int sig)
 
7043
#else
 
7044
sigfpe_handler (sig) int sig;
 
7045
#endif
 
7046
{
 
7047
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
7048
  exit (sig != SIGFPE);
 
7049
}
 
7050
 
 
7051
int x = 1;
 
7052
int y = 0;
 
7053
int z;
 
7054
int nan;
 
7055
 
 
7056
int main ()
 
7057
{
 
7058
  signal (SIGFPE, sigfpe_handler);
 
7059
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
7060
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
7061
  signal (SIGTRAP, sigfpe_handler);
 
7062
#endif
 
7063
/* Linux/SPARC yields signal SIGILL.  */
 
7064
#if defined (__sparc__) && defined (__linux__)
 
7065
  signal (SIGILL, sigfpe_handler);
 
7066
#endif
 
7067
 
 
7068
  z = x / y;
 
7069
  nan = y / y;
 
7070
  exit (1);
 
7071
}
 
7072
 
 
7073
_ACEOF
 
7074
rm -f conftest$ac_exeext
 
7075
if { (ac_try="$ac_link"
 
7076
case "(($ac_try" in
 
7077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7078
  *) ac_try_echo=$ac_try;;
 
7079
esac
 
7080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7081
  (eval "$ac_link") 2>&5
 
7082
  ac_status=$?
 
7083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7084
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7085
  { (case "(($ac_try" in
 
7086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7087
  *) ac_try_echo=$ac_try;;
 
7088
esac
 
7089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7090
  (eval "$ac_try") 2>&5
 
7091
  ac_status=$?
 
7092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7093
  (exit $ac_status); }; }; then
 
7094
  gt_cv_int_divbyzero_sigfpe=yes
 
7095
else
 
7096
  echo "$as_me: program exited with status $ac_status" >&5
 
7097
echo "$as_me: failed program was:" >&5
 
7098
sed 's/^/| /' conftest.$ac_ext >&5
 
7099
 
 
7100
( exit $ac_status )
 
7101
gt_cv_int_divbyzero_sigfpe=no
 
7102
fi
 
7103
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7104
fi
 
7105
 
 
7106
 
 
7107
 
 
7108
fi
 
7109
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
7110
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
 
7111
  case "$gt_cv_int_divbyzero_sigfpe" in
 
7112
    *yes) value=1;;
 
7113
    *) value=0;;
 
7114
  esac
 
7115
 
 
7116
cat >>confdefs.h <<_ACEOF
 
7117
#define INTDIV0_RAISES_SIGFPE $value
 
7118
_ACEOF
 
7119
 
 
7120
 
 
7121
 
 
7122
  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
7123
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
 
7124
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
7125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7126
else
 
7127
  cat >conftest.$ac_ext <<_ACEOF
 
7128
/* confdefs.h.  */
 
7129
_ACEOF
 
7130
cat confdefs.h >>conftest.$ac_ext
 
7131
cat >>conftest.$ac_ext <<_ACEOF
 
7132
/* end confdefs.h.  */
 
7133
unsigned long long ull = 1ULL; int i = 63;
 
7134
int
 
7135
main ()
 
7136
{
 
7137
unsigned long long ullmax = (unsigned long long) -1;
 
7138
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
7139
  ;
 
7140
  return 0;
 
7141
}
 
7142
_ACEOF
 
7143
rm -f conftest.$ac_objext conftest$ac_exeext
 
7144
if { (ac_try="$ac_link"
 
7145
case "(($ac_try" in
 
7146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7147
  *) ac_try_echo=$ac_try;;
 
7148
esac
 
7149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7150
  (eval "$ac_link") 2>conftest.er1
 
7151
  ac_status=$?
 
7152
  grep -v '^ *+' conftest.er1 >conftest.err
 
7153
  rm -f conftest.er1
 
7154
  cat conftest.err >&5
 
7155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7156
  (exit $ac_status); } &&
 
7157
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7158
  { (case "(($ac_try" in
 
7159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7160
  *) ac_try_echo=$ac_try;;
 
7161
esac
 
7162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7163
  (eval "$ac_try") 2>&5
 
7164
  ac_status=$?
 
7165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7166
  (exit $ac_status); }; } &&
 
7167
         { ac_try='test -s conftest$ac_exeext'
 
7168
  { (case "(($ac_try" in
 
7169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7170
  *) ac_try_echo=$ac_try;;
 
7171
esac
 
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7173
  (eval "$ac_try") 2>&5
 
7174
  ac_status=$?
 
7175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7176
  (exit $ac_status); }; }; then
 
7177
  ac_cv_type_unsigned_long_long=yes
 
7178
else
 
7179
  echo "$as_me: failed program was:" >&5
 
7180
sed 's/^/| /' conftest.$ac_ext >&5
 
7181
 
 
7182
        ac_cv_type_unsigned_long_long=no
 
7183
fi
 
7184
 
 
7185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7186
      conftest$ac_exeext conftest.$ac_ext
 
7187
fi
 
7188
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
7189
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
 
7190
  if test $ac_cv_type_unsigned_long_long = yes; then
 
7191
 
 
7192
cat >>confdefs.h <<\_ACEOF
 
7193
#define HAVE_UNSIGNED_LONG_LONG 1
 
7194
_ACEOF
 
7195
 
 
7196
  fi
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
7202
 
 
7203
    test $ac_cv_type_unsigned_long_long = yes \
 
7204
      && ac_type='unsigned long long' \
 
7205
      || ac_type='unsigned long'
 
7206
 
 
7207
cat >>confdefs.h <<_ACEOF
 
7208
#define uintmax_t $ac_type
 
7209
_ACEOF
 
7210
 
 
7211
  else
 
7212
 
 
7213
cat >>confdefs.h <<\_ACEOF
 
7214
#define HAVE_UINTMAX_T 1
 
7215
_ACEOF
 
7216
 
 
7217
  fi
 
7218
 
 
7219
 
 
7220
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
7221
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
7222
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
7223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7224
else
 
7225
 
 
7226
    cat >conftest.$ac_ext <<_ACEOF
 
7227
/* confdefs.h.  */
 
7228
_ACEOF
 
7229
cat confdefs.h >>conftest.$ac_ext
 
7230
cat >>conftest.$ac_ext <<_ACEOF
 
7231
/* end confdefs.h.  */
 
7232
#include <sys/types.h>
 
7233
#include <inttypes.h>
 
7234
int
 
7235
main ()
 
7236
{
 
7237
 
 
7238
  ;
 
7239
  return 0;
 
7240
}
 
7241
_ACEOF
 
7242
rm -f conftest.$ac_objext
 
7243
if { (ac_try="$ac_compile"
 
7244
case "(($ac_try" in
 
7245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7246
  *) ac_try_echo=$ac_try;;
 
7247
esac
 
7248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7249
  (eval "$ac_compile") 2>conftest.er1
 
7250
  ac_status=$?
 
7251
  grep -v '^ *+' conftest.er1 >conftest.err
 
7252
  rm -f conftest.er1
 
7253
  cat conftest.err >&5
 
7254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7255
  (exit $ac_status); } &&
 
7256
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7257
  { (case "(($ac_try" in
 
7258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7259
  *) ac_try_echo=$ac_try;;
 
7260
esac
 
7261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7262
  (eval "$ac_try") 2>&5
 
7263
  ac_status=$?
 
7264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7265
  (exit $ac_status); }; } &&
 
7266
         { ac_try='test -s conftest.$ac_objext'
 
7267
  { (case "(($ac_try" in
 
7268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7269
  *) ac_try_echo=$ac_try;;
 
7270
esac
 
7271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7272
  (eval "$ac_try") 2>&5
 
7273
  ac_status=$?
 
7274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7275
  (exit $ac_status); }; }; then
 
7276
  gt_cv_header_inttypes_h=yes
 
7277
else
 
7278
  echo "$as_me: failed program was:" >&5
 
7279
sed 's/^/| /' conftest.$ac_ext >&5
 
7280
 
 
7281
        gt_cv_header_inttypes_h=no
 
7282
fi
 
7283
 
 
7284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7285
 
 
7286
fi
 
7287
{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
 
7288
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
 
7289
  if test $gt_cv_header_inttypes_h = yes; then
 
7290
 
 
7291
cat >>confdefs.h <<_ACEOF
 
7292
#define HAVE_INTTYPES_H 1
 
7293
_ACEOF
 
7294
 
 
7295
  fi
 
7296
 
 
7297
 
 
7298
 
 
7299
  if test $gt_cv_header_inttypes_h = yes; then
 
7300
    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
7301
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
 
7302
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
7303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7304
else
 
7305
 
 
7306
        cat >conftest.$ac_ext <<_ACEOF
 
7307
/* confdefs.h.  */
 
7308
_ACEOF
 
7309
cat confdefs.h >>conftest.$ac_ext
 
7310
cat >>conftest.$ac_ext <<_ACEOF
 
7311
/* end confdefs.h.  */
 
7312
#include <inttypes.h>
 
7313
#ifdef PRId32
 
7314
char *p = PRId32;
 
7315
#endif
 
7316
 
 
7317
int
 
7318
main ()
 
7319
{
 
7320
 
 
7321
  ;
 
7322
  return 0;
 
7323
}
 
7324
_ACEOF
 
7325
rm -f conftest.$ac_objext
 
7326
if { (ac_try="$ac_compile"
 
7327
case "(($ac_try" in
 
7328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7329
  *) ac_try_echo=$ac_try;;
 
7330
esac
 
7331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7332
  (eval "$ac_compile") 2>conftest.er1
 
7333
  ac_status=$?
 
7334
  grep -v '^ *+' conftest.er1 >conftest.err
 
7335
  rm -f conftest.er1
 
7336
  cat conftest.err >&5
 
7337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7338
  (exit $ac_status); } &&
 
7339
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7340
  { (case "(($ac_try" in
 
7341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7342
  *) ac_try_echo=$ac_try;;
 
7343
esac
 
7344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7345
  (eval "$ac_try") 2>&5
 
7346
  ac_status=$?
 
7347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7348
  (exit $ac_status); }; } &&
 
7349
         { ac_try='test -s conftest.$ac_objext'
 
7350
  { (case "(($ac_try" in
 
7351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7352
  *) ac_try_echo=$ac_try;;
 
7353
esac
 
7354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7355
  (eval "$ac_try") 2>&5
 
7356
  ac_status=$?
 
7357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7358
  (exit $ac_status); }; }; then
 
7359
  gt_cv_inttypes_pri_broken=no
 
7360
else
 
7361
  echo "$as_me: failed program was:" >&5
 
7362
sed 's/^/| /' conftest.$ac_ext >&5
 
7363
 
 
7364
        gt_cv_inttypes_pri_broken=yes
 
7365
fi
 
7366
 
 
7367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7368
 
 
7369
fi
 
7370
{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
7371
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
 
7372
  fi
 
7373
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
7374
 
 
7375
cat >>confdefs.h <<_ACEOF
 
7376
#define PRI_MACROS_BROKEN 1
 
7377
_ACEOF
 
7378
 
 
7379
  fi
 
7380
 
 
7381
 
 
7382
 
 
7383
for ac_header in stdint.h
 
7384
do
 
7385
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7386
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7387
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7389
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7391
fi
 
7392
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7393
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7394
echo "${ECHO_T}$ac_res" >&6; }
 
7395
else
 
7396
  # Is the header compilable?
 
7397
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7398
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
7399
cat >conftest.$ac_ext <<_ACEOF
 
7400
/* confdefs.h.  */
 
7401
_ACEOF
 
7402
cat confdefs.h >>conftest.$ac_ext
 
7403
cat >>conftest.$ac_ext <<_ACEOF
 
7404
/* end confdefs.h.  */
 
7405
$ac_includes_default
 
7406
#include <$ac_header>
 
7407
_ACEOF
 
7408
rm -f conftest.$ac_objext
 
7409
if { (ac_try="$ac_compile"
 
7410
case "(($ac_try" in
 
7411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7412
  *) ac_try_echo=$ac_try;;
 
7413
esac
 
7414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7415
  (eval "$ac_compile") 2>conftest.er1
 
7416
  ac_status=$?
 
7417
  grep -v '^ *+' conftest.er1 >conftest.err
 
7418
  rm -f conftest.er1
 
7419
  cat conftest.err >&5
 
7420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7421
  (exit $ac_status); } &&
 
7422
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7423
  { (case "(($ac_try" in
 
7424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7425
  *) ac_try_echo=$ac_try;;
 
7426
esac
 
7427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7428
  (eval "$ac_try") 2>&5
 
7429
  ac_status=$?
 
7430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7431
  (exit $ac_status); }; } &&
 
7432
         { ac_try='test -s conftest.$ac_objext'
 
7433
  { (case "(($ac_try" in
 
7434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7435
  *) ac_try_echo=$ac_try;;
 
7436
esac
 
7437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7438
  (eval "$ac_try") 2>&5
 
7439
  ac_status=$?
 
7440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7441
  (exit $ac_status); }; }; then
 
7442
  ac_header_compiler=yes
 
7443
else
 
7444
  echo "$as_me: failed program was:" >&5
 
7445
sed 's/^/| /' conftest.$ac_ext >&5
 
7446
 
 
7447
        ac_header_compiler=no
 
7448
fi
 
7449
 
 
7450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7451
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7452
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
7453
 
 
7454
# Is the header present?
 
7455
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7456
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
7457
cat >conftest.$ac_ext <<_ACEOF
 
7458
/* confdefs.h.  */
 
7459
_ACEOF
 
7460
cat confdefs.h >>conftest.$ac_ext
 
7461
cat >>conftest.$ac_ext <<_ACEOF
 
7462
/* end confdefs.h.  */
 
7463
#include <$ac_header>
 
7464
_ACEOF
 
7465
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7466
case "(($ac_try" in
 
7467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7468
  *) ac_try_echo=$ac_try;;
 
7469
esac
 
7470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7471
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7472
  ac_status=$?
 
7473
  grep -v '^ *+' conftest.er1 >conftest.err
 
7474
  rm -f conftest.er1
 
7475
  cat conftest.err >&5
 
7476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7477
  (exit $ac_status); } >/dev/null; then
 
7478
  if test -s conftest.err; then
 
7479
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7480
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7481
  else
 
7482
    ac_cpp_err=
 
7483
  fi
 
7484
else
 
7485
  ac_cpp_err=yes
 
7486
fi
 
7487
if test -z "$ac_cpp_err"; then
 
7488
  ac_header_preproc=yes
 
7489
else
 
7490
  echo "$as_me: failed program was:" >&5
 
7491
sed 's/^/| /' conftest.$ac_ext >&5
 
7492
 
 
7493
  ac_header_preproc=no
 
7494
fi
 
7495
 
 
7496
rm -f conftest.err conftest.$ac_ext
 
7497
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7498
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
7499
 
 
7500
# So?  What about this header?
 
7501
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7502
  yes:no: )
 
7503
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7504
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7505
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7506
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7507
    ac_header_preproc=yes
 
7508
    ;;
 
7509
  no:yes:* )
 
7510
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7511
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7512
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7513
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7514
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7515
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7516
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7517
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7518
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7519
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7520
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7521
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7522
    ( cat <<\_ASBOX
 
7523
## ------------------------------------ ##
 
7524
## Report this to m17n-lib-bug@m17n.org ##
 
7525
## ------------------------------------ ##
 
7526
_ASBOX
 
7527
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
7528
    ;;
 
7529
esac
 
7530
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7531
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7532
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7534
else
 
7535
  eval "$as_ac_Header=\$ac_header_preproc"
 
7536
fi
 
7537
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7538
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7539
echo "${ECHO_T}$ac_res" >&6; }
 
7540
 
 
7541
fi
 
7542
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7543
  cat >>confdefs.h <<_ACEOF
 
7544
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7545
_ACEOF
 
7546
 
 
7547
fi
 
7548
 
 
7549
done
 
7550
 
 
7551
    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
7552
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
 
7553
  result=
 
7554
  cat >conftest.$ac_ext <<_ACEOF
 
7555
/* confdefs.h.  */
 
7556
_ACEOF
 
7557
cat confdefs.h >>conftest.$ac_ext
 
7558
cat >>conftest.$ac_ext <<_ACEOF
 
7559
/* end confdefs.h.  */
 
7560
 
 
7561
#include <limits.h>
 
7562
#if HAVE_STDINT_H
 
7563
#include <stdint.h>
 
7564
#endif
 
7565
#ifdef SIZE_MAX
 
7566
Found it
 
7567
#endif
 
7568
 
 
7569
_ACEOF
 
7570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7571
  $EGREP "Found it" >/dev/null 2>&1; then
 
7572
  result=yes
 
7573
fi
 
7574
rm -f conftest*
 
7575
 
 
7576
  if test -z "$result"; then
 
7577
                    if test "$cross_compiling" = yes; then
 
7578
  # Depending upon the size, compute the lo and hi bounds.
 
7579
cat >conftest.$ac_ext <<_ACEOF
 
7580
/* confdefs.h.  */
 
7581
_ACEOF
 
7582
cat confdefs.h >>conftest.$ac_ext
 
7583
cat >>conftest.$ac_ext <<_ACEOF
 
7584
/* end confdefs.h.  */
 
7585
#include <stddef.h>
 
7586
int
 
7587
main ()
 
7588
{
 
7589
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
7590
test_array [0] = 0
 
7591
 
 
7592
  ;
 
7593
  return 0;
 
7594
}
 
7595
_ACEOF
 
7596
rm -f conftest.$ac_objext
 
7597
if { (ac_try="$ac_compile"
 
7598
case "(($ac_try" in
 
7599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7600
  *) ac_try_echo=$ac_try;;
 
7601
esac
 
7602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7603
  (eval "$ac_compile") 2>conftest.er1
 
7604
  ac_status=$?
 
7605
  grep -v '^ *+' conftest.er1 >conftest.err
 
7606
  rm -f conftest.er1
 
7607
  cat conftest.err >&5
 
7608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7609
  (exit $ac_status); } &&
 
7610
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7611
  { (case "(($ac_try" in
 
7612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7613
  *) ac_try_echo=$ac_try;;
 
7614
esac
 
7615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7616
  (eval "$ac_try") 2>&5
 
7617
  ac_status=$?
 
7618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7619
  (exit $ac_status); }; } &&
 
7620
         { ac_try='test -s conftest.$ac_objext'
 
7621
  { (case "(($ac_try" in
 
7622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7623
  *) ac_try_echo=$ac_try;;
 
7624
esac
 
7625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7626
  (eval "$ac_try") 2>&5
 
7627
  ac_status=$?
 
7628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7629
  (exit $ac_status); }; }; then
 
7630
  ac_lo=0 ac_mid=0
 
7631
  while :; do
 
7632
    cat >conftest.$ac_ext <<_ACEOF
 
7633
/* confdefs.h.  */
 
7634
_ACEOF
 
7635
cat confdefs.h >>conftest.$ac_ext
 
7636
cat >>conftest.$ac_ext <<_ACEOF
 
7637
/* end confdefs.h.  */
 
7638
#include <stddef.h>
 
7639
int
 
7640
main ()
 
7641
{
 
7642
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
7643
test_array [0] = 0
 
7644
 
 
7645
  ;
 
7646
  return 0;
 
7647
}
 
7648
_ACEOF
 
7649
rm -f conftest.$ac_objext
 
7650
if { (ac_try="$ac_compile"
 
7651
case "(($ac_try" in
 
7652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7653
  *) ac_try_echo=$ac_try;;
 
7654
esac
 
7655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7656
  (eval "$ac_compile") 2>conftest.er1
 
7657
  ac_status=$?
 
7658
  grep -v '^ *+' conftest.er1 >conftest.err
 
7659
  rm -f conftest.er1
 
7660
  cat conftest.err >&5
 
7661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7662
  (exit $ac_status); } &&
 
7663
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7664
  { (case "(($ac_try" in
 
7665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7666
  *) ac_try_echo=$ac_try;;
 
7667
esac
 
7668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7669
  (eval "$ac_try") 2>&5
 
7670
  ac_status=$?
 
7671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7672
  (exit $ac_status); }; } &&
 
7673
         { ac_try='test -s conftest.$ac_objext'
 
7674
  { (case "(($ac_try" in
 
7675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7676
  *) ac_try_echo=$ac_try;;
 
7677
esac
 
7678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7679
  (eval "$ac_try") 2>&5
 
7680
  ac_status=$?
 
7681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7682
  (exit $ac_status); }; }; then
 
7683
  ac_hi=$ac_mid; break
 
7684
else
 
7685
  echo "$as_me: failed program was:" >&5
 
7686
sed 's/^/| /' conftest.$ac_ext >&5
 
7687
 
 
7688
        ac_lo=`expr $ac_mid + 1`
 
7689
                        if test $ac_lo -le $ac_mid; then
 
7690
                          ac_lo= ac_hi=
 
7691
                          break
 
7692
                        fi
 
7693
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7694
fi
 
7695
 
 
7696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7697
  done
 
7698
else
 
7699
  echo "$as_me: failed program was:" >&5
 
7700
sed 's/^/| /' conftest.$ac_ext >&5
 
7701
 
 
7702
        cat >conftest.$ac_ext <<_ACEOF
 
7703
/* confdefs.h.  */
 
7704
_ACEOF
 
7705
cat confdefs.h >>conftest.$ac_ext
 
7706
cat >>conftest.$ac_ext <<_ACEOF
 
7707
/* end confdefs.h.  */
 
7708
#include <stddef.h>
 
7709
int
 
7710
main ()
 
7711
{
 
7712
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
7713
test_array [0] = 0
 
7714
 
 
7715
  ;
 
7716
  return 0;
 
7717
}
 
7718
_ACEOF
 
7719
rm -f conftest.$ac_objext
 
7720
if { (ac_try="$ac_compile"
 
7721
case "(($ac_try" in
 
7722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7723
  *) ac_try_echo=$ac_try;;
 
7724
esac
 
7725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7726
  (eval "$ac_compile") 2>conftest.er1
 
7727
  ac_status=$?
 
7728
  grep -v '^ *+' conftest.er1 >conftest.err
 
7729
  rm -f conftest.er1
 
7730
  cat conftest.err >&5
 
7731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7732
  (exit $ac_status); } &&
 
7733
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7734
  { (case "(($ac_try" in
 
7735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7736
  *) ac_try_echo=$ac_try;;
 
7737
esac
 
7738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7739
  (eval "$ac_try") 2>&5
 
7740
  ac_status=$?
 
7741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7742
  (exit $ac_status); }; } &&
 
7743
         { ac_try='test -s conftest.$ac_objext'
 
7744
  { (case "(($ac_try" in
 
7745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7746
  *) ac_try_echo=$ac_try;;
 
7747
esac
 
7748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7749
  (eval "$ac_try") 2>&5
 
7750
  ac_status=$?
 
7751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7752
  (exit $ac_status); }; }; then
 
7753
  ac_hi=-1 ac_mid=-1
 
7754
  while :; do
 
7755
    cat >conftest.$ac_ext <<_ACEOF
 
7756
/* confdefs.h.  */
 
7757
_ACEOF
 
7758
cat confdefs.h >>conftest.$ac_ext
 
7759
cat >>conftest.$ac_ext <<_ACEOF
 
7760
/* end confdefs.h.  */
 
7761
#include <stddef.h>
 
7762
int
 
7763
main ()
 
7764
{
 
7765
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
7766
test_array [0] = 0
 
7767
 
 
7768
  ;
 
7769
  return 0;
 
7770
}
 
7771
_ACEOF
 
7772
rm -f conftest.$ac_objext
 
7773
if { (ac_try="$ac_compile"
 
7774
case "(($ac_try" in
 
7775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7776
  *) ac_try_echo=$ac_try;;
 
7777
esac
 
7778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7779
  (eval "$ac_compile") 2>conftest.er1
 
7780
  ac_status=$?
 
7781
  grep -v '^ *+' conftest.er1 >conftest.err
 
7782
  rm -f conftest.er1
 
7783
  cat conftest.err >&5
 
7784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7785
  (exit $ac_status); } &&
 
7786
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7787
  { (case "(($ac_try" in
 
7788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7789
  *) ac_try_echo=$ac_try;;
 
7790
esac
 
7791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7792
  (eval "$ac_try") 2>&5
 
7793
  ac_status=$?
 
7794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7795
  (exit $ac_status); }; } &&
 
7796
         { ac_try='test -s conftest.$ac_objext'
 
7797
  { (case "(($ac_try" in
 
7798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7799
  *) ac_try_echo=$ac_try;;
 
7800
esac
 
7801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7802
  (eval "$ac_try") 2>&5
 
7803
  ac_status=$?
 
7804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7805
  (exit $ac_status); }; }; then
 
7806
  ac_lo=$ac_mid; break
 
7807
else
 
7808
  echo "$as_me: failed program was:" >&5
 
7809
sed 's/^/| /' conftest.$ac_ext >&5
 
7810
 
 
7811
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7812
                        if test $ac_mid -le $ac_hi; then
 
7813
                          ac_lo= ac_hi=
 
7814
                          break
 
7815
                        fi
 
7816
                        ac_mid=`expr 2 '*' $ac_mid`
 
7817
fi
 
7818
 
 
7819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7820
  done
 
7821
else
 
7822
  echo "$as_me: failed program was:" >&5
 
7823
sed 's/^/| /' conftest.$ac_ext >&5
 
7824
 
 
7825
        ac_lo= ac_hi=
 
7826
fi
 
7827
 
 
7828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7829
fi
 
7830
 
 
7831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7832
# Binary search between lo and hi bounds.
 
7833
while test "x$ac_lo" != "x$ac_hi"; do
 
7834
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7835
  cat >conftest.$ac_ext <<_ACEOF
 
7836
/* confdefs.h.  */
 
7837
_ACEOF
 
7838
cat confdefs.h >>conftest.$ac_ext
 
7839
cat >>conftest.$ac_ext <<_ACEOF
 
7840
/* end confdefs.h.  */
 
7841
#include <stddef.h>
 
7842
int
 
7843
main ()
 
7844
{
 
7845
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
7846
test_array [0] = 0
 
7847
 
 
7848
  ;
 
7849
  return 0;
 
7850
}
 
7851
_ACEOF
 
7852
rm -f conftest.$ac_objext
 
7853
if { (ac_try="$ac_compile"
 
7854
case "(($ac_try" in
 
7855
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7856
  *) ac_try_echo=$ac_try;;
 
7857
esac
 
7858
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7859
  (eval "$ac_compile") 2>conftest.er1
 
7860
  ac_status=$?
 
7861
  grep -v '^ *+' conftest.er1 >conftest.err
 
7862
  rm -f conftest.er1
 
7863
  cat conftest.err >&5
 
7864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7865
  (exit $ac_status); } &&
 
7866
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
7867
  { (case "(($ac_try" in
 
7868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7869
  *) ac_try_echo=$ac_try;;
 
7870
esac
 
7871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7872
  (eval "$ac_try") 2>&5
 
7873
  ac_status=$?
 
7874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7875
  (exit $ac_status); }; } &&
 
7876
         { ac_try='test -s conftest.$ac_objext'
 
7877
  { (case "(($ac_try" in
 
7878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7879
  *) ac_try_echo=$ac_try;;
 
7880
esac
 
7881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7882
  (eval "$ac_try") 2>&5
 
7883
  ac_status=$?
 
7884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7885
  (exit $ac_status); }; }; then
 
7886
  ac_hi=$ac_mid
 
7887
else
 
7888
  echo "$as_me: failed program was:" >&5
 
7889
sed 's/^/| /' conftest.$ac_ext >&5
 
7890
 
 
7891
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7892
fi
 
7893
 
 
7894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7895
done
 
7896
case $ac_lo in
 
7897
?*) res_hi=$ac_lo;;
 
7898
'') result=? ;;
 
7899
esac
 
7900
else
 
7901
  cat >conftest.$ac_ext <<_ACEOF
 
7902
/* confdefs.h.  */
 
7903
_ACEOF
 
7904
cat confdefs.h >>conftest.$ac_ext
 
7905
cat >>conftest.$ac_ext <<_ACEOF
 
7906
/* end confdefs.h.  */
 
7907
#include <stddef.h>
 
7908
static long int longval () { return ~(size_t)0 / 10; }
 
7909
static unsigned long int ulongval () { return ~(size_t)0 / 10; }
 
7910
#include <stdio.h>
 
7911
#include <stdlib.h>
 
7912
int
 
7913
main ()
 
7914
{
 
7915
 
 
7916
  FILE *f = fopen ("conftest.val", "w");
 
7917
  if (! f)
 
7918
    return 1;
 
7919
  if ((~(size_t)0 / 10) < 0)
 
7920
    {
 
7921
      long int i = longval ();
 
7922
      if (i != (~(size_t)0 / 10))
 
7923
        return 1;
 
7924
      fprintf (f, "%ld\n", i);
 
7925
    }
 
7926
  else
 
7927
    {
 
7928
      unsigned long int i = ulongval ();
 
7929
      if (i != (~(size_t)0 / 10))
 
7930
        return 1;
 
7931
      fprintf (f, "%lu\n", i);
 
7932
    }
 
7933
  return ferror (f) || fclose (f) != 0;
 
7934
 
 
7935
  ;
 
7936
  return 0;
 
7937
}
 
7938
_ACEOF
 
7939
rm -f conftest$ac_exeext
 
7940
if { (ac_try="$ac_link"
 
7941
case "(($ac_try" in
 
7942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7943
  *) ac_try_echo=$ac_try;;
 
7944
esac
 
7945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7946
  (eval "$ac_link") 2>&5
 
7947
  ac_status=$?
 
7948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7949
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7950
  { (case "(($ac_try" in
 
7951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7952
  *) ac_try_echo=$ac_try;;
 
7953
esac
 
7954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7955
  (eval "$ac_try") 2>&5
 
7956
  ac_status=$?
 
7957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7958
  (exit $ac_status); }; }; then
 
7959
  res_hi=`cat conftest.val`
 
7960
else
 
7961
  echo "$as_me: program exited with status $ac_status" >&5
 
7962
echo "$as_me: failed program was:" >&5
 
7963
sed 's/^/| /' conftest.$ac_ext >&5
 
7964
 
 
7965
( exit $ac_status )
 
7966
result=?
 
7967
fi
 
7968
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7969
fi
 
7970
rm -f conftest.val
 
7971
    if test "$cross_compiling" = yes; then
 
7972
  # Depending upon the size, compute the lo and hi bounds.
 
7973
cat >conftest.$ac_ext <<_ACEOF
 
7974
/* confdefs.h.  */
 
7975
_ACEOF
 
7976
cat confdefs.h >>conftest.$ac_ext
 
7977
cat >>conftest.$ac_ext <<_ACEOF
 
7978
/* end confdefs.h.  */
 
7979
#include <stddef.h>
 
7980
int
 
7981
main ()
 
7982
{
 
7983
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
7984
test_array [0] = 0
 
7985
 
 
7986
  ;
 
7987
  return 0;
 
7988
}
 
7989
_ACEOF
 
7990
rm -f conftest.$ac_objext
 
7991
if { (ac_try="$ac_compile"
 
7992
case "(($ac_try" in
 
7993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7994
  *) ac_try_echo=$ac_try;;
 
7995
esac
 
7996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7997
  (eval "$ac_compile") 2>conftest.er1
 
7998
  ac_status=$?
 
7999
  grep -v '^ *+' conftest.er1 >conftest.err
 
8000
  rm -f conftest.er1
 
8001
  cat conftest.err >&5
 
8002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8003
  (exit $ac_status); } &&
 
8004
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8005
  { (case "(($ac_try" in
 
8006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8007
  *) ac_try_echo=$ac_try;;
 
8008
esac
 
8009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8010
  (eval "$ac_try") 2>&5
 
8011
  ac_status=$?
 
8012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8013
  (exit $ac_status); }; } &&
 
8014
         { ac_try='test -s conftest.$ac_objext'
 
8015
  { (case "(($ac_try" in
 
8016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8017
  *) ac_try_echo=$ac_try;;
 
8018
esac
 
8019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8020
  (eval "$ac_try") 2>&5
 
8021
  ac_status=$?
 
8022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8023
  (exit $ac_status); }; }; then
 
8024
  ac_lo=0 ac_mid=0
 
8025
  while :; do
 
8026
    cat >conftest.$ac_ext <<_ACEOF
 
8027
/* confdefs.h.  */
 
8028
_ACEOF
 
8029
cat confdefs.h >>conftest.$ac_ext
 
8030
cat >>conftest.$ac_ext <<_ACEOF
 
8031
/* end confdefs.h.  */
 
8032
#include <stddef.h>
 
8033
int
 
8034
main ()
 
8035
{
 
8036
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
8037
test_array [0] = 0
 
8038
 
 
8039
  ;
 
8040
  return 0;
 
8041
}
 
8042
_ACEOF
 
8043
rm -f conftest.$ac_objext
 
8044
if { (ac_try="$ac_compile"
 
8045
case "(($ac_try" in
 
8046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8047
  *) ac_try_echo=$ac_try;;
 
8048
esac
 
8049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8050
  (eval "$ac_compile") 2>conftest.er1
 
8051
  ac_status=$?
 
8052
  grep -v '^ *+' conftest.er1 >conftest.err
 
8053
  rm -f conftest.er1
 
8054
  cat conftest.err >&5
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); } &&
 
8057
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8058
  { (case "(($ac_try" in
 
8059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8060
  *) ac_try_echo=$ac_try;;
 
8061
esac
 
8062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8063
  (eval "$ac_try") 2>&5
 
8064
  ac_status=$?
 
8065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8066
  (exit $ac_status); }; } &&
 
8067
         { ac_try='test -s conftest.$ac_objext'
 
8068
  { (case "(($ac_try" in
 
8069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8070
  *) ac_try_echo=$ac_try;;
 
8071
esac
 
8072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8073
  (eval "$ac_try") 2>&5
 
8074
  ac_status=$?
 
8075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8076
  (exit $ac_status); }; }; then
 
8077
  ac_hi=$ac_mid; break
 
8078
else
 
8079
  echo "$as_me: failed program was:" >&5
 
8080
sed 's/^/| /' conftest.$ac_ext >&5
 
8081
 
 
8082
        ac_lo=`expr $ac_mid + 1`
 
8083
                        if test $ac_lo -le $ac_mid; then
 
8084
                          ac_lo= ac_hi=
 
8085
                          break
 
8086
                        fi
 
8087
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8088
fi
 
8089
 
 
8090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8091
  done
 
8092
else
 
8093
  echo "$as_me: failed program was:" >&5
 
8094
sed 's/^/| /' conftest.$ac_ext >&5
 
8095
 
 
8096
        cat >conftest.$ac_ext <<_ACEOF
 
8097
/* confdefs.h.  */
 
8098
_ACEOF
 
8099
cat confdefs.h >>conftest.$ac_ext
 
8100
cat >>conftest.$ac_ext <<_ACEOF
 
8101
/* end confdefs.h.  */
 
8102
#include <stddef.h>
 
8103
int
 
8104
main ()
 
8105
{
 
8106
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
8107
test_array [0] = 0
 
8108
 
 
8109
  ;
 
8110
  return 0;
 
8111
}
 
8112
_ACEOF
 
8113
rm -f conftest.$ac_objext
 
8114
if { (ac_try="$ac_compile"
 
8115
case "(($ac_try" in
 
8116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8117
  *) ac_try_echo=$ac_try;;
 
8118
esac
 
8119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8120
  (eval "$ac_compile") 2>conftest.er1
 
8121
  ac_status=$?
 
8122
  grep -v '^ *+' conftest.er1 >conftest.err
 
8123
  rm -f conftest.er1
 
8124
  cat conftest.err >&5
 
8125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8126
  (exit $ac_status); } &&
 
8127
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8128
  { (case "(($ac_try" in
 
8129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8130
  *) ac_try_echo=$ac_try;;
 
8131
esac
 
8132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8133
  (eval "$ac_try") 2>&5
 
8134
  ac_status=$?
 
8135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8136
  (exit $ac_status); }; } &&
 
8137
         { ac_try='test -s conftest.$ac_objext'
 
8138
  { (case "(($ac_try" in
 
8139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8140
  *) ac_try_echo=$ac_try;;
 
8141
esac
 
8142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8143
  (eval "$ac_try") 2>&5
 
8144
  ac_status=$?
 
8145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8146
  (exit $ac_status); }; }; then
 
8147
  ac_hi=-1 ac_mid=-1
 
8148
  while :; do
 
8149
    cat >conftest.$ac_ext <<_ACEOF
 
8150
/* confdefs.h.  */
 
8151
_ACEOF
 
8152
cat confdefs.h >>conftest.$ac_ext
 
8153
cat >>conftest.$ac_ext <<_ACEOF
 
8154
/* end confdefs.h.  */
 
8155
#include <stddef.h>
 
8156
int
 
8157
main ()
 
8158
{
 
8159
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
8160
test_array [0] = 0
 
8161
 
 
8162
  ;
 
8163
  return 0;
 
8164
}
 
8165
_ACEOF
 
8166
rm -f conftest.$ac_objext
 
8167
if { (ac_try="$ac_compile"
 
8168
case "(($ac_try" in
 
8169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8170
  *) ac_try_echo=$ac_try;;
 
8171
esac
 
8172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8173
  (eval "$ac_compile") 2>conftest.er1
 
8174
  ac_status=$?
 
8175
  grep -v '^ *+' conftest.er1 >conftest.err
 
8176
  rm -f conftest.er1
 
8177
  cat conftest.err >&5
 
8178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8179
  (exit $ac_status); } &&
 
8180
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8181
  { (case "(($ac_try" in
 
8182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8183
  *) ac_try_echo=$ac_try;;
 
8184
esac
 
8185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8186
  (eval "$ac_try") 2>&5
 
8187
  ac_status=$?
 
8188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8189
  (exit $ac_status); }; } &&
 
8190
         { ac_try='test -s conftest.$ac_objext'
 
8191
  { (case "(($ac_try" in
 
8192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8193
  *) ac_try_echo=$ac_try;;
 
8194
esac
 
8195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8196
  (eval "$ac_try") 2>&5
 
8197
  ac_status=$?
 
8198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8199
  (exit $ac_status); }; }; then
 
8200
  ac_lo=$ac_mid; break
 
8201
else
 
8202
  echo "$as_me: failed program was:" >&5
 
8203
sed 's/^/| /' conftest.$ac_ext >&5
 
8204
 
 
8205
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8206
                        if test $ac_mid -le $ac_hi; then
 
8207
                          ac_lo= ac_hi=
 
8208
                          break
 
8209
                        fi
 
8210
                        ac_mid=`expr 2 '*' $ac_mid`
 
8211
fi
 
8212
 
 
8213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8214
  done
 
8215
else
 
8216
  echo "$as_me: failed program was:" >&5
 
8217
sed 's/^/| /' conftest.$ac_ext >&5
 
8218
 
 
8219
        ac_lo= ac_hi=
 
8220
fi
 
8221
 
 
8222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8223
fi
 
8224
 
 
8225
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8226
# Binary search between lo and hi bounds.
 
8227
while test "x$ac_lo" != "x$ac_hi"; do
 
8228
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8229
  cat >conftest.$ac_ext <<_ACEOF
 
8230
/* confdefs.h.  */
 
8231
_ACEOF
 
8232
cat confdefs.h >>conftest.$ac_ext
 
8233
cat >>conftest.$ac_ext <<_ACEOF
 
8234
/* end confdefs.h.  */
 
8235
#include <stddef.h>
 
8236
int
 
8237
main ()
 
8238
{
 
8239
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
8240
test_array [0] = 0
 
8241
 
 
8242
  ;
 
8243
  return 0;
 
8244
}
 
8245
_ACEOF
 
8246
rm -f conftest.$ac_objext
 
8247
if { (ac_try="$ac_compile"
 
8248
case "(($ac_try" in
 
8249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8250
  *) ac_try_echo=$ac_try;;
 
8251
esac
 
8252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8253
  (eval "$ac_compile") 2>conftest.er1
 
8254
  ac_status=$?
 
8255
  grep -v '^ *+' conftest.er1 >conftest.err
 
8256
  rm -f conftest.er1
 
8257
  cat conftest.err >&5
 
8258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8259
  (exit $ac_status); } &&
 
8260
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8261
  { (case "(($ac_try" in
 
8262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8263
  *) ac_try_echo=$ac_try;;
 
8264
esac
 
8265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8266
  (eval "$ac_try") 2>&5
 
8267
  ac_status=$?
 
8268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8269
  (exit $ac_status); }; } &&
 
8270
         { ac_try='test -s conftest.$ac_objext'
 
8271
  { (case "(($ac_try" in
 
8272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8273
  *) ac_try_echo=$ac_try;;
 
8274
esac
 
8275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8276
  (eval "$ac_try") 2>&5
 
8277
  ac_status=$?
 
8278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8279
  (exit $ac_status); }; }; then
 
8280
  ac_hi=$ac_mid
 
8281
else
 
8282
  echo "$as_me: failed program was:" >&5
 
8283
sed 's/^/| /' conftest.$ac_ext >&5
 
8284
 
 
8285
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8286
fi
 
8287
 
 
8288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8289
done
 
8290
case $ac_lo in
 
8291
?*) res_lo=$ac_lo;;
 
8292
'') result=? ;;
 
8293
esac
 
8294
else
 
8295
  cat >conftest.$ac_ext <<_ACEOF
 
8296
/* confdefs.h.  */
 
8297
_ACEOF
 
8298
cat confdefs.h >>conftest.$ac_ext
 
8299
cat >>conftest.$ac_ext <<_ACEOF
 
8300
/* end confdefs.h.  */
 
8301
#include <stddef.h>
 
8302
static long int longval () { return ~(size_t)0 % 10; }
 
8303
static unsigned long int ulongval () { return ~(size_t)0 % 10; }
 
8304
#include <stdio.h>
 
8305
#include <stdlib.h>
 
8306
int
 
8307
main ()
 
8308
{
 
8309
 
 
8310
  FILE *f = fopen ("conftest.val", "w");
 
8311
  if (! f)
 
8312
    return 1;
 
8313
  if ((~(size_t)0 % 10) < 0)
 
8314
    {
 
8315
      long int i = longval ();
 
8316
      if (i != (~(size_t)0 % 10))
 
8317
        return 1;
 
8318
      fprintf (f, "%ld\n", i);
 
8319
    }
 
8320
  else
 
8321
    {
 
8322
      unsigned long int i = ulongval ();
 
8323
      if (i != (~(size_t)0 % 10))
 
8324
        return 1;
 
8325
      fprintf (f, "%lu\n", i);
 
8326
    }
 
8327
  return ferror (f) || fclose (f) != 0;
 
8328
 
 
8329
  ;
 
8330
  return 0;
 
8331
}
 
8332
_ACEOF
 
8333
rm -f conftest$ac_exeext
 
8334
if { (ac_try="$ac_link"
 
8335
case "(($ac_try" in
 
8336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8337
  *) ac_try_echo=$ac_try;;
 
8338
esac
 
8339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8340
  (eval "$ac_link") 2>&5
 
8341
  ac_status=$?
 
8342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8343
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8344
  { (case "(($ac_try" in
 
8345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8346
  *) ac_try_echo=$ac_try;;
 
8347
esac
 
8348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8349
  (eval "$ac_try") 2>&5
 
8350
  ac_status=$?
 
8351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8352
  (exit $ac_status); }; }; then
 
8353
  res_lo=`cat conftest.val`
 
8354
else
 
8355
  echo "$as_me: program exited with status $ac_status" >&5
 
8356
echo "$as_me: failed program was:" >&5
 
8357
sed 's/^/| /' conftest.$ac_ext >&5
 
8358
 
 
8359
( exit $ac_status )
 
8360
result=?
 
8361
fi
 
8362
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8363
fi
 
8364
rm -f conftest.val
 
8365
    if test "$cross_compiling" = yes; then
 
8366
  # Depending upon the size, compute the lo and hi bounds.
 
8367
cat >conftest.$ac_ext <<_ACEOF
 
8368
/* confdefs.h.  */
 
8369
_ACEOF
 
8370
cat confdefs.h >>conftest.$ac_ext
 
8371
cat >>conftest.$ac_ext <<_ACEOF
 
8372
/* end confdefs.h.  */
 
8373
#include <stddef.h>
 
8374
int
 
8375
main ()
 
8376
{
 
8377
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
8378
test_array [0] = 0
 
8379
 
 
8380
  ;
 
8381
  return 0;
 
8382
}
 
8383
_ACEOF
 
8384
rm -f conftest.$ac_objext
 
8385
if { (ac_try="$ac_compile"
 
8386
case "(($ac_try" in
 
8387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8388
  *) ac_try_echo=$ac_try;;
 
8389
esac
 
8390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8391
  (eval "$ac_compile") 2>conftest.er1
 
8392
  ac_status=$?
 
8393
  grep -v '^ *+' conftest.er1 >conftest.err
 
8394
  rm -f conftest.er1
 
8395
  cat conftest.err >&5
 
8396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8397
  (exit $ac_status); } &&
 
8398
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8399
  { (case "(($ac_try" in
 
8400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8401
  *) ac_try_echo=$ac_try;;
 
8402
esac
 
8403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8404
  (eval "$ac_try") 2>&5
 
8405
  ac_status=$?
 
8406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8407
  (exit $ac_status); }; } &&
 
8408
         { ac_try='test -s conftest.$ac_objext'
 
8409
  { (case "(($ac_try" in
 
8410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8411
  *) ac_try_echo=$ac_try;;
 
8412
esac
 
8413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8414
  (eval "$ac_try") 2>&5
 
8415
  ac_status=$?
 
8416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8417
  (exit $ac_status); }; }; then
 
8418
  ac_lo=0 ac_mid=0
 
8419
  while :; do
 
8420
    cat >conftest.$ac_ext <<_ACEOF
 
8421
/* confdefs.h.  */
 
8422
_ACEOF
 
8423
cat confdefs.h >>conftest.$ac_ext
 
8424
cat >>conftest.$ac_ext <<_ACEOF
 
8425
/* end confdefs.h.  */
 
8426
#include <stddef.h>
 
8427
int
 
8428
main ()
 
8429
{
 
8430
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
8431
test_array [0] = 0
 
8432
 
 
8433
  ;
 
8434
  return 0;
 
8435
}
 
8436
_ACEOF
 
8437
rm -f conftest.$ac_objext
 
8438
if { (ac_try="$ac_compile"
 
8439
case "(($ac_try" in
 
8440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8441
  *) ac_try_echo=$ac_try;;
 
8442
esac
 
8443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8444
  (eval "$ac_compile") 2>conftest.er1
 
8445
  ac_status=$?
 
8446
  grep -v '^ *+' conftest.er1 >conftest.err
 
8447
  rm -f conftest.er1
 
8448
  cat conftest.err >&5
 
8449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8450
  (exit $ac_status); } &&
 
8451
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8452
  { (case "(($ac_try" in
 
8453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8454
  *) ac_try_echo=$ac_try;;
 
8455
esac
 
8456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8457
  (eval "$ac_try") 2>&5
 
8458
  ac_status=$?
 
8459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8460
  (exit $ac_status); }; } &&
 
8461
         { ac_try='test -s conftest.$ac_objext'
 
8462
  { (case "(($ac_try" in
 
8463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8464
  *) ac_try_echo=$ac_try;;
 
8465
esac
 
8466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8467
  (eval "$ac_try") 2>&5
 
8468
  ac_status=$?
 
8469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8470
  (exit $ac_status); }; }; then
 
8471
  ac_hi=$ac_mid; break
 
8472
else
 
8473
  echo "$as_me: failed program was:" >&5
 
8474
sed 's/^/| /' conftest.$ac_ext >&5
 
8475
 
 
8476
        ac_lo=`expr $ac_mid + 1`
 
8477
                        if test $ac_lo -le $ac_mid; then
 
8478
                          ac_lo= ac_hi=
 
8479
                          break
 
8480
                        fi
 
8481
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8482
fi
 
8483
 
 
8484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8485
  done
 
8486
else
 
8487
  echo "$as_me: failed program was:" >&5
 
8488
sed 's/^/| /' conftest.$ac_ext >&5
 
8489
 
 
8490
        cat >conftest.$ac_ext <<_ACEOF
 
8491
/* confdefs.h.  */
 
8492
_ACEOF
 
8493
cat confdefs.h >>conftest.$ac_ext
 
8494
cat >>conftest.$ac_ext <<_ACEOF
 
8495
/* end confdefs.h.  */
 
8496
#include <stddef.h>
 
8497
int
 
8498
main ()
 
8499
{
 
8500
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
8501
test_array [0] = 0
 
8502
 
 
8503
  ;
 
8504
  return 0;
 
8505
}
 
8506
_ACEOF
 
8507
rm -f conftest.$ac_objext
 
8508
if { (ac_try="$ac_compile"
 
8509
case "(($ac_try" in
 
8510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8511
  *) ac_try_echo=$ac_try;;
 
8512
esac
 
8513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8514
  (eval "$ac_compile") 2>conftest.er1
 
8515
  ac_status=$?
 
8516
  grep -v '^ *+' conftest.er1 >conftest.err
 
8517
  rm -f conftest.er1
 
8518
  cat conftest.err >&5
 
8519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8520
  (exit $ac_status); } &&
 
8521
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8522
  { (case "(($ac_try" in
 
8523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8524
  *) ac_try_echo=$ac_try;;
 
8525
esac
 
8526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8527
  (eval "$ac_try") 2>&5
 
8528
  ac_status=$?
 
8529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8530
  (exit $ac_status); }; } &&
 
8531
         { ac_try='test -s conftest.$ac_objext'
 
8532
  { (case "(($ac_try" in
 
8533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8534
  *) ac_try_echo=$ac_try;;
 
8535
esac
 
8536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8537
  (eval "$ac_try") 2>&5
 
8538
  ac_status=$?
 
8539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8540
  (exit $ac_status); }; }; then
 
8541
  ac_hi=-1 ac_mid=-1
 
8542
  while :; do
 
8543
    cat >conftest.$ac_ext <<_ACEOF
 
8544
/* confdefs.h.  */
 
8545
_ACEOF
 
8546
cat confdefs.h >>conftest.$ac_ext
 
8547
cat >>conftest.$ac_ext <<_ACEOF
 
8548
/* end confdefs.h.  */
 
8549
#include <stddef.h>
 
8550
int
 
8551
main ()
 
8552
{
 
8553
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
8554
test_array [0] = 0
 
8555
 
 
8556
  ;
 
8557
  return 0;
 
8558
}
 
8559
_ACEOF
 
8560
rm -f conftest.$ac_objext
 
8561
if { (ac_try="$ac_compile"
 
8562
case "(($ac_try" in
 
8563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8564
  *) ac_try_echo=$ac_try;;
 
8565
esac
 
8566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8567
  (eval "$ac_compile") 2>conftest.er1
 
8568
  ac_status=$?
 
8569
  grep -v '^ *+' conftest.er1 >conftest.err
 
8570
  rm -f conftest.er1
 
8571
  cat conftest.err >&5
 
8572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8573
  (exit $ac_status); } &&
 
8574
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8575
  { (case "(($ac_try" in
 
8576
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8577
  *) ac_try_echo=$ac_try;;
 
8578
esac
 
8579
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8580
  (eval "$ac_try") 2>&5
 
8581
  ac_status=$?
 
8582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8583
  (exit $ac_status); }; } &&
 
8584
         { ac_try='test -s conftest.$ac_objext'
 
8585
  { (case "(($ac_try" in
 
8586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8587
  *) ac_try_echo=$ac_try;;
 
8588
esac
 
8589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8590
  (eval "$ac_try") 2>&5
 
8591
  ac_status=$?
 
8592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8593
  (exit $ac_status); }; }; then
 
8594
  ac_lo=$ac_mid; break
 
8595
else
 
8596
  echo "$as_me: failed program was:" >&5
 
8597
sed 's/^/| /' conftest.$ac_ext >&5
 
8598
 
 
8599
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8600
                        if test $ac_mid -le $ac_hi; then
 
8601
                          ac_lo= ac_hi=
 
8602
                          break
 
8603
                        fi
 
8604
                        ac_mid=`expr 2 '*' $ac_mid`
 
8605
fi
 
8606
 
 
8607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8608
  done
 
8609
else
 
8610
  echo "$as_me: failed program was:" >&5
 
8611
sed 's/^/| /' conftest.$ac_ext >&5
 
8612
 
 
8613
        ac_lo= ac_hi=
 
8614
fi
 
8615
 
 
8616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8617
fi
 
8618
 
 
8619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8620
# Binary search between lo and hi bounds.
 
8621
while test "x$ac_lo" != "x$ac_hi"; do
 
8622
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8623
  cat >conftest.$ac_ext <<_ACEOF
 
8624
/* confdefs.h.  */
 
8625
_ACEOF
 
8626
cat confdefs.h >>conftest.$ac_ext
 
8627
cat >>conftest.$ac_ext <<_ACEOF
 
8628
/* end confdefs.h.  */
 
8629
#include <stddef.h>
 
8630
int
 
8631
main ()
 
8632
{
 
8633
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
8634
test_array [0] = 0
 
8635
 
 
8636
  ;
 
8637
  return 0;
 
8638
}
 
8639
_ACEOF
 
8640
rm -f conftest.$ac_objext
 
8641
if { (ac_try="$ac_compile"
 
8642
case "(($ac_try" in
 
8643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8644
  *) ac_try_echo=$ac_try;;
 
8645
esac
 
8646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8647
  (eval "$ac_compile") 2>conftest.er1
 
8648
  ac_status=$?
 
8649
  grep -v '^ *+' conftest.er1 >conftest.err
 
8650
  rm -f conftest.er1
 
8651
  cat conftest.err >&5
 
8652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8653
  (exit $ac_status); } &&
 
8654
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8655
  { (case "(($ac_try" in
 
8656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8657
  *) ac_try_echo=$ac_try;;
 
8658
esac
 
8659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8660
  (eval "$ac_try") 2>&5
 
8661
  ac_status=$?
 
8662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8663
  (exit $ac_status); }; } &&
 
8664
         { ac_try='test -s conftest.$ac_objext'
 
8665
  { (case "(($ac_try" in
 
8666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8667
  *) ac_try_echo=$ac_try;;
 
8668
esac
 
8669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8670
  (eval "$ac_try") 2>&5
 
8671
  ac_status=$?
 
8672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8673
  (exit $ac_status); }; }; then
 
8674
  ac_hi=$ac_mid
 
8675
else
 
8676
  echo "$as_me: failed program was:" >&5
 
8677
sed 's/^/| /' conftest.$ac_ext >&5
 
8678
 
 
8679
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8680
fi
 
8681
 
 
8682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8683
done
 
8684
case $ac_lo in
 
8685
?*) fits_in_uint=$ac_lo;;
 
8686
'') result=? ;;
 
8687
esac
 
8688
else
 
8689
  cat >conftest.$ac_ext <<_ACEOF
 
8690
/* confdefs.h.  */
 
8691
_ACEOF
 
8692
cat confdefs.h >>conftest.$ac_ext
 
8693
cat >>conftest.$ac_ext <<_ACEOF
 
8694
/* end confdefs.h.  */
 
8695
#include <stddef.h>
 
8696
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
8697
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
8698
#include <stdio.h>
 
8699
#include <stdlib.h>
 
8700
int
 
8701
main ()
 
8702
{
 
8703
 
 
8704
  FILE *f = fopen ("conftest.val", "w");
 
8705
  if (! f)
 
8706
    return 1;
 
8707
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
8708
    {
 
8709
      long int i = longval ();
 
8710
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
8711
        return 1;
 
8712
      fprintf (f, "%ld\n", i);
 
8713
    }
 
8714
  else
 
8715
    {
 
8716
      unsigned long int i = ulongval ();
 
8717
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
8718
        return 1;
 
8719
      fprintf (f, "%lu\n", i);
 
8720
    }
 
8721
  return ferror (f) || fclose (f) != 0;
 
8722
 
 
8723
  ;
 
8724
  return 0;
 
8725
}
 
8726
_ACEOF
 
8727
rm -f conftest$ac_exeext
 
8728
if { (ac_try="$ac_link"
 
8729
case "(($ac_try" in
 
8730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8731
  *) ac_try_echo=$ac_try;;
 
8732
esac
 
8733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8734
  (eval "$ac_link") 2>&5
 
8735
  ac_status=$?
 
8736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8737
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8738
  { (case "(($ac_try" in
 
8739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8740
  *) ac_try_echo=$ac_try;;
 
8741
esac
 
8742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8743
  (eval "$ac_try") 2>&5
 
8744
  ac_status=$?
 
8745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8746
  (exit $ac_status); }; }; then
 
8747
  fits_in_uint=`cat conftest.val`
 
8748
else
 
8749
  echo "$as_me: program exited with status $ac_status" >&5
 
8750
echo "$as_me: failed program was:" >&5
 
8751
sed 's/^/| /' conftest.$ac_ext >&5
 
8752
 
 
8753
( exit $ac_status )
 
8754
result=?
 
8755
fi
 
8756
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8757
fi
 
8758
rm -f conftest.val
 
8759
    if test "$fits_in_uint" = 1; then
 
8760
                  cat >conftest.$ac_ext <<_ACEOF
 
8761
/* confdefs.h.  */
 
8762
_ACEOF
 
8763
cat confdefs.h >>conftest.$ac_ext
 
8764
cat >>conftest.$ac_ext <<_ACEOF
 
8765
/* end confdefs.h.  */
 
8766
#include <stddef.h>
 
8767
        extern size_t foo;
 
8768
        extern unsigned long foo;
 
8769
 
 
8770
int
 
8771
main ()
 
8772
{
 
8773
 
 
8774
  ;
 
8775
  return 0;
 
8776
}
 
8777
_ACEOF
 
8778
rm -f conftest.$ac_objext
 
8779
if { (ac_try="$ac_compile"
 
8780
case "(($ac_try" in
 
8781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8782
  *) ac_try_echo=$ac_try;;
 
8783
esac
 
8784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8785
  (eval "$ac_compile") 2>conftest.er1
 
8786
  ac_status=$?
 
8787
  grep -v '^ *+' conftest.er1 >conftest.err
 
8788
  rm -f conftest.er1
 
8789
  cat conftest.err >&5
 
8790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8791
  (exit $ac_status); } &&
 
8792
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8793
  { (case "(($ac_try" in
 
8794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8795
  *) ac_try_echo=$ac_try;;
 
8796
esac
 
8797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8798
  (eval "$ac_try") 2>&5
 
8799
  ac_status=$?
 
8800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8801
  (exit $ac_status); }; } &&
 
8802
         { ac_try='test -s conftest.$ac_objext'
 
8803
  { (case "(($ac_try" in
 
8804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8805
  *) ac_try_echo=$ac_try;;
 
8806
esac
 
8807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8808
  (eval "$ac_try") 2>&5
 
8809
  ac_status=$?
 
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8811
  (exit $ac_status); }; }; then
 
8812
  fits_in_uint=0
 
8813
else
 
8814
  echo "$as_me: failed program was:" >&5
 
8815
sed 's/^/| /' conftest.$ac_ext >&5
 
8816
 
 
8817
 
 
8818
fi
 
8819
 
 
8820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8821
    fi
 
8822
    if test -z "$result"; then
 
8823
      if test "$fits_in_uint" = 1; then
 
8824
        result="$res_hi$res_lo"U
 
8825
      else
 
8826
        result="$res_hi$res_lo"UL
 
8827
      fi
 
8828
    else
 
8829
            result='~(size_t)0'
 
8830
    fi
 
8831
  fi
 
8832
  { echo "$as_me:$LINENO: result: $result" >&5
 
8833
echo "${ECHO_T}$result" >&6; }
 
8834
  if test "$result" != yes; then
 
8835
 
 
8836
cat >>confdefs.h <<_ACEOF
 
8837
#define SIZE_MAX $result
 
8838
_ACEOF
 
8839
 
 
8840
  fi
 
8841
 
 
8842
 
 
8843
 
 
8844
 
 
8845
 
 
8846
for ac_header in stdint.h
 
8847
do
 
8848
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8849
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8850
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8851
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8852
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8854
fi
 
8855
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8856
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8857
echo "${ECHO_T}$ac_res" >&6; }
 
8858
else
 
8859
  # Is the header compilable?
 
8860
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8861
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
8862
cat >conftest.$ac_ext <<_ACEOF
 
8863
/* confdefs.h.  */
 
8864
_ACEOF
 
8865
cat confdefs.h >>conftest.$ac_ext
 
8866
cat >>conftest.$ac_ext <<_ACEOF
 
8867
/* end confdefs.h.  */
 
8868
$ac_includes_default
 
8869
#include <$ac_header>
 
8870
_ACEOF
 
8871
rm -f conftest.$ac_objext
 
8872
if { (ac_try="$ac_compile"
 
8873
case "(($ac_try" in
 
8874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8875
  *) ac_try_echo=$ac_try;;
 
8876
esac
 
8877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8878
  (eval "$ac_compile") 2>conftest.er1
 
8879
  ac_status=$?
 
8880
  grep -v '^ *+' conftest.er1 >conftest.err
 
8881
  rm -f conftest.er1
 
8882
  cat conftest.err >&5
 
8883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8884
  (exit $ac_status); } &&
 
8885
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8886
  { (case "(($ac_try" in
 
8887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8888
  *) ac_try_echo=$ac_try;;
 
8889
esac
 
8890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8891
  (eval "$ac_try") 2>&5
 
8892
  ac_status=$?
 
8893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8894
  (exit $ac_status); }; } &&
 
8895
         { ac_try='test -s conftest.$ac_objext'
 
8896
  { (case "(($ac_try" in
 
8897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8898
  *) ac_try_echo=$ac_try;;
 
8899
esac
 
8900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8901
  (eval "$ac_try") 2>&5
 
8902
  ac_status=$?
 
8903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8904
  (exit $ac_status); }; }; then
 
8905
  ac_header_compiler=yes
 
8906
else
 
8907
  echo "$as_me: failed program was:" >&5
 
8908
sed 's/^/| /' conftest.$ac_ext >&5
 
8909
 
 
8910
        ac_header_compiler=no
 
8911
fi
 
8912
 
 
8913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8914
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8915
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
8916
 
 
8917
# Is the header present?
 
8918
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8919
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
8920
cat >conftest.$ac_ext <<_ACEOF
 
8921
/* confdefs.h.  */
 
8922
_ACEOF
 
8923
cat confdefs.h >>conftest.$ac_ext
 
8924
cat >>conftest.$ac_ext <<_ACEOF
 
8925
/* end confdefs.h.  */
 
8926
#include <$ac_header>
 
8927
_ACEOF
 
8928
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8929
case "(($ac_try" in
 
8930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8931
  *) ac_try_echo=$ac_try;;
 
8932
esac
 
8933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8934
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8935
  ac_status=$?
 
8936
  grep -v '^ *+' conftest.er1 >conftest.err
 
8937
  rm -f conftest.er1
 
8938
  cat conftest.err >&5
 
8939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8940
  (exit $ac_status); } >/dev/null; then
 
8941
  if test -s conftest.err; then
 
8942
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8943
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8944
  else
 
8945
    ac_cpp_err=
 
8946
  fi
 
8947
else
 
8948
  ac_cpp_err=yes
 
8949
fi
 
8950
if test -z "$ac_cpp_err"; then
 
8951
  ac_header_preproc=yes
 
8952
else
 
8953
  echo "$as_me: failed program was:" >&5
 
8954
sed 's/^/| /' conftest.$ac_ext >&5
 
8955
 
 
8956
  ac_header_preproc=no
 
8957
fi
 
8958
 
 
8959
rm -f conftest.err conftest.$ac_ext
 
8960
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8961
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
8962
 
 
8963
# So?  What about this header?
 
8964
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8965
  yes:no: )
 
8966
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8967
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8968
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8969
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8970
    ac_header_preproc=yes
 
8971
    ;;
 
8972
  no:yes:* )
 
8973
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8974
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8975
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8976
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8977
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8978
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8979
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8980
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8981
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8982
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8983
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8984
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8985
    ( cat <<\_ASBOX
 
8986
## ------------------------------------ ##
 
8987
## Report this to m17n-lib-bug@m17n.org ##
 
8988
## ------------------------------------ ##
 
8989
_ASBOX
 
8990
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
8991
    ;;
 
8992
esac
 
8993
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8994
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8995
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8997
else
 
8998
  eval "$as_ac_Header=\$ac_header_preproc"
 
8999
fi
 
9000
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9001
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9002
echo "${ECHO_T}$ac_res" >&6; }
 
9003
 
 
9004
fi
 
9005
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9006
  cat >>confdefs.h <<_ACEOF
 
9007
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9008
_ACEOF
 
9009
 
 
9010
fi
 
9011
 
 
9012
done
 
9013
 
 
9014
 
 
9015
 
 
9016
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
9017
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
9018
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
9019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9020
else
 
9021
  gt_save_CPPFLAGS="$CPPFLAGS"
 
9022
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
9023
     gt_save_LIBS="$LIBS"
 
9024
     LIBS="$LIBS -framework CoreFoundation"
 
9025
     cat >conftest.$ac_ext <<_ACEOF
 
9026
/* confdefs.h.  */
 
9027
_ACEOF
 
9028
cat confdefs.h >>conftest.$ac_ext
 
9029
cat >>conftest.$ac_ext <<_ACEOF
 
9030
/* end confdefs.h.  */
 
9031
#include <CFPreferences.h>
 
9032
int
 
9033
main ()
 
9034
{
 
9035
CFPreferencesCopyAppValue(NULL, NULL)
 
9036
  ;
 
9037
  return 0;
 
9038
}
 
9039
_ACEOF
 
9040
rm -f conftest.$ac_objext conftest$ac_exeext
 
9041
if { (ac_try="$ac_link"
 
9042
case "(($ac_try" in
 
9043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9044
  *) ac_try_echo=$ac_try;;
 
9045
esac
 
9046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9047
  (eval "$ac_link") 2>conftest.er1
 
9048
  ac_status=$?
 
9049
  grep -v '^ *+' conftest.er1 >conftest.err
 
9050
  rm -f conftest.er1
 
9051
  cat conftest.err >&5
 
9052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9053
  (exit $ac_status); } &&
 
9054
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9055
  { (case "(($ac_try" in
 
9056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9057
  *) ac_try_echo=$ac_try;;
 
9058
esac
 
9059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9060
  (eval "$ac_try") 2>&5
 
9061
  ac_status=$?
 
9062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9063
  (exit $ac_status); }; } &&
 
9064
         { ac_try='test -s conftest$ac_exeext'
 
9065
  { (case "(($ac_try" in
 
9066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9067
  *) ac_try_echo=$ac_try;;
 
9068
esac
 
9069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9070
  (eval "$ac_try") 2>&5
 
9071
  ac_status=$?
 
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9073
  (exit $ac_status); }; }; then
 
9074
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
9075
else
 
9076
  echo "$as_me: failed program was:" >&5
 
9077
sed 's/^/| /' conftest.$ac_ext >&5
 
9078
 
 
9079
        gt_cv_func_CFPreferencesCopyAppValue=no
 
9080
fi
 
9081
 
 
9082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9083
      conftest$ac_exeext conftest.$ac_ext
 
9084
     CPPFLAGS="$gt_save_CPPFLAGS"
 
9085
     LIBS="$gt_save_LIBS"
 
9086
fi
 
9087
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
9088
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
9089
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
9090
 
 
9091
cat >>confdefs.h <<\_ACEOF
 
9092
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
9093
_ACEOF
 
9094
 
 
9095
  fi
 
9096
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
9097
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
9098
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
9099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9100
else
 
9101
  gt_save_CPPFLAGS="$CPPFLAGS"
 
9102
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
9103
     gt_save_LIBS="$LIBS"
 
9104
     LIBS="$LIBS -framework CoreFoundation"
 
9105
     cat >conftest.$ac_ext <<_ACEOF
 
9106
/* confdefs.h.  */
 
9107
_ACEOF
 
9108
cat confdefs.h >>conftest.$ac_ext
 
9109
cat >>conftest.$ac_ext <<_ACEOF
 
9110
/* end confdefs.h.  */
 
9111
#include <CFLocale.h>
 
9112
int
 
9113
main ()
 
9114
{
 
9115
CFLocaleCopyCurrent();
 
9116
  ;
 
9117
  return 0;
 
9118
}
 
9119
_ACEOF
 
9120
rm -f conftest.$ac_objext conftest$ac_exeext
 
9121
if { (ac_try="$ac_link"
 
9122
case "(($ac_try" in
 
9123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9124
  *) ac_try_echo=$ac_try;;
 
9125
esac
 
9126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9127
  (eval "$ac_link") 2>conftest.er1
 
9128
  ac_status=$?
 
9129
  grep -v '^ *+' conftest.er1 >conftest.err
 
9130
  rm -f conftest.er1
 
9131
  cat conftest.err >&5
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); } &&
 
9134
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9135
  { (case "(($ac_try" in
 
9136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9137
  *) ac_try_echo=$ac_try;;
 
9138
esac
 
9139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9140
  (eval "$ac_try") 2>&5
 
9141
  ac_status=$?
 
9142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9143
  (exit $ac_status); }; } &&
 
9144
         { ac_try='test -s conftest$ac_exeext'
 
9145
  { (case "(($ac_try" in
 
9146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9147
  *) ac_try_echo=$ac_try;;
 
9148
esac
 
9149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9150
  (eval "$ac_try") 2>&5
 
9151
  ac_status=$?
 
9152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9153
  (exit $ac_status); }; }; then
 
9154
  gt_cv_func_CFLocaleCopyCurrent=yes
 
9155
else
 
9156
  echo "$as_me: failed program was:" >&5
 
9157
sed 's/^/| /' conftest.$ac_ext >&5
 
9158
 
 
9159
        gt_cv_func_CFLocaleCopyCurrent=no
 
9160
fi
 
9161
 
 
9162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9163
      conftest$ac_exeext conftest.$ac_ext
 
9164
     CPPFLAGS="$gt_save_CPPFLAGS"
 
9165
     LIBS="$gt_save_LIBS"
 
9166
fi
 
9167
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
9168
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
9169
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
9170
 
 
9171
cat >>confdefs.h <<\_ACEOF
 
9172
#define HAVE_CFLOCALECOPYCURRENT 1
 
9173
_ACEOF
 
9174
 
 
9175
  fi
 
9176
  INTL_MACOSX_LIBS=
 
9177
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
9178
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
9179
  fi
 
9180
 
 
9181
 
 
9182
 
 
9183
      if test "X$prefix" = "XNONE"; then
 
9184
    acl_final_prefix="$ac_default_prefix"
 
9185
  else
 
9186
    acl_final_prefix="$prefix"
 
9187
  fi
 
9188
  if test "X$exec_prefix" = "XNONE"; then
 
9189
    acl_final_exec_prefix='${prefix}'
 
9190
  else
 
9191
    acl_final_exec_prefix="$exec_prefix"
 
9192
  fi
 
9193
  acl_save_prefix="$prefix"
 
9194
  prefix="$acl_final_prefix"
 
9195
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
9196
  prefix="$acl_save_prefix"
 
9197
 
 
9198
 
 
9199
# Check whether --with-gnu-ld was given.
 
9200
if test "${with_gnu_ld+set}" = set; then
 
9201
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
9202
else
 
9203
  with_gnu_ld=no
 
9204
fi
 
9205
 
 
9206
# Prepare PATH_SEPARATOR.
 
9207
# The user is always right.
 
9208
if test "${PATH_SEPARATOR+set}" != set; then
 
9209
  echo "#! /bin/sh" >conf$$.sh
 
9210
  echo  "exit 0"   >>conf$$.sh
 
9211
  chmod +x conf$$.sh
 
9212
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
9213
    PATH_SEPARATOR=';'
 
9214
  else
 
9215
    PATH_SEPARATOR=:
 
9216
  fi
 
9217
  rm -f conf$$.sh
 
9218
fi
 
9219
ac_prog=ld
 
9220
if test "$GCC" = yes; then
 
9221
  # Check if gcc -print-prog-name=ld gives a path.
 
9222
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
9223
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
 
9224
  case $host in
 
9225
  *-*-mingw*)
 
9226
    # gcc leaves a trailing carriage return which upsets mingw
 
9227
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9228
  *)
 
9229
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9230
  esac
 
9231
  case $ac_prog in
 
9232
    # Accept absolute paths.
 
9233
    [\\/]* | [A-Za-z]:[\\/]*)
 
9234
      re_direlt='/[^/][^/]*/\.\./'
 
9235
      # Canonicalize the path of ld
 
9236
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
9237
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9238
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
9239
      done
 
9240
      test -z "$LD" && LD="$ac_prog"
 
9241
      ;;
 
9242
  "")
 
9243
    # If it fails, then pretend we aren't using GCC.
 
9244
    ac_prog=ld
 
9245
    ;;
 
9246
  *)
 
9247
    # If it is relative, then search for the first ld in PATH.
 
9248
    with_gnu_ld=unknown
 
9249
    ;;
 
9250
  esac
 
9251
elif test "$with_gnu_ld" = yes; then
 
9252
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9253
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
9254
else
 
9255
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9256
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
9257
fi
 
9258
if test "${acl_cv_path_LD+set}" = set; then
 
9259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9260
else
 
9261
  if test -z "$LD"; then
 
9262
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
9263
  for ac_dir in $PATH; do
 
9264
    test -z "$ac_dir" && ac_dir=.
 
9265
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9266
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
9267
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9268
      # but apparently some GNU ld's only accept -v.
 
9269
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9270
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
9271
      *GNU* | *'with BFD'*)
 
9272
        test "$with_gnu_ld" != no && break ;;
 
9273
      *)
 
9274
        test "$with_gnu_ld" != yes && break ;;
 
9275
      esac
 
9276
    fi
 
9277
  done
 
9278
  IFS="$ac_save_ifs"
 
9279
else
 
9280
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
9281
fi
 
9282
fi
 
9283
 
 
9284
LD="$acl_cv_path_LD"
 
9285
if test -n "$LD"; then
 
9286
  { echo "$as_me:$LINENO: result: $LD" >&5
 
9287
echo "${ECHO_T}$LD" >&6; }
 
9288
else
 
9289
  { echo "$as_me:$LINENO: result: no" >&5
 
9290
echo "${ECHO_T}no" >&6; }
 
9291
fi
 
9292
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9293
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9294
   { (exit 1); exit 1; }; }
 
9295
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9296
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
9297
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
9298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9299
else
 
9300
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9301
case `$LD -v 2>&1 </dev/null` in
 
9302
*GNU* | *'with BFD'*)
 
9303
  acl_cv_prog_gnu_ld=yes ;;
 
9304
*)
 
9305
  acl_cv_prog_gnu_ld=no ;;
 
9306
esac
 
9307
fi
 
9308
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
9309
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
 
9310
with_gnu_ld=$acl_cv_prog_gnu_ld
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
9316
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
 
9317
if test "${acl_cv_rpath+set}" = set; then
 
9318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9319
else
 
9320
 
 
9321
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
9322
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
9323
    . ./conftest.sh
 
9324
    rm -f ./conftest.sh
 
9325
    acl_cv_rpath=done
 
9326
 
 
9327
fi
 
9328
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
9329
echo "${ECHO_T}$acl_cv_rpath" >&6; }
 
9330
  wl="$acl_cv_wl"
 
9331
  libext="$acl_cv_libext"
 
9332
  shlibext="$acl_cv_shlibext"
 
9333
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
9334
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
9335
  hardcode_direct="$acl_cv_hardcode_direct"
 
9336
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
9337
    # Check whether --enable-rpath was given.
 
9338
if test "${enable_rpath+set}" = set; then
 
9339
  enableval=$enable_rpath; :
 
9340
else
 
9341
  enable_rpath=yes
 
9342
fi
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
    use_additional=yes
 
9352
 
 
9353
  acl_save_prefix="$prefix"
 
9354
  prefix="$acl_final_prefix"
 
9355
  acl_save_exec_prefix="$exec_prefix"
 
9356
  exec_prefix="$acl_final_exec_prefix"
 
9357
 
 
9358
    eval additional_includedir=\"$includedir\"
 
9359
    eval additional_libdir=\"$libdir\"
 
9360
 
 
9361
  exec_prefix="$acl_save_exec_prefix"
 
9362
  prefix="$acl_save_prefix"
 
9363
 
 
9364
 
 
9365
# Check whether --with-libiconv-prefix was given.
 
9366
if test "${with_libiconv_prefix+set}" = set; then
 
9367
  withval=$with_libiconv_prefix;
 
9368
    if test "X$withval" = "Xno"; then
 
9369
      use_additional=no
 
9370
    else
 
9371
      if test "X$withval" = "X"; then
 
9372
 
 
9373
  acl_save_prefix="$prefix"
 
9374
  prefix="$acl_final_prefix"
 
9375
  acl_save_exec_prefix="$exec_prefix"
 
9376
  exec_prefix="$acl_final_exec_prefix"
 
9377
 
 
9378
          eval additional_includedir=\"$includedir\"
 
9379
          eval additional_libdir=\"$libdir\"
 
9380
 
 
9381
  exec_prefix="$acl_save_exec_prefix"
 
9382
  prefix="$acl_save_prefix"
 
9383
 
 
9384
      else
 
9385
        additional_includedir="$withval/include"
 
9386
        additional_libdir="$withval/lib"
 
9387
      fi
 
9388
    fi
 
9389
 
 
9390
fi
 
9391
 
 
9392
      LIBICONV=
 
9393
  LTLIBICONV=
 
9394
  INCICONV=
 
9395
  rpathdirs=
 
9396
  ltrpathdirs=
 
9397
  names_already_handled=
 
9398
  names_next_round='iconv '
 
9399
  while test -n "$names_next_round"; do
 
9400
    names_this_round="$names_next_round"
 
9401
    names_next_round=
 
9402
    for name in $names_this_round; do
 
9403
      already_handled=
 
9404
      for n in $names_already_handled; do
 
9405
        if test "$n" = "$name"; then
 
9406
          already_handled=yes
 
9407
          break
 
9408
        fi
 
9409
      done
 
9410
      if test -z "$already_handled"; then
 
9411
        names_already_handled="$names_already_handled $name"
 
9412
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
9413
        eval value=\"\$HAVE_LIB$uppername\"
 
9414
        if test -n "$value"; then
 
9415
          if test "$value" = yes; then
 
9416
            eval value=\"\$LIB$uppername\"
 
9417
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
9418
            eval value=\"\$LTLIB$uppername\"
 
9419
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
9420
          else
 
9421
                                    :
 
9422
          fi
 
9423
        else
 
9424
                              found_dir=
 
9425
          found_la=
 
9426
          found_so=
 
9427
          found_a=
 
9428
          if test $use_additional = yes; then
 
9429
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
9430
              found_dir="$additional_libdir"
 
9431
              found_so="$additional_libdir/lib$name.$shlibext"
 
9432
              if test -f "$additional_libdir/lib$name.la"; then
 
9433
                found_la="$additional_libdir/lib$name.la"
 
9434
              fi
 
9435
            else
 
9436
              if test -f "$additional_libdir/lib$name.$libext"; then
 
9437
                found_dir="$additional_libdir"
 
9438
                found_a="$additional_libdir/lib$name.$libext"
 
9439
                if test -f "$additional_libdir/lib$name.la"; then
 
9440
                  found_la="$additional_libdir/lib$name.la"
 
9441
                fi
 
9442
              fi
 
9443
            fi
 
9444
          fi
 
9445
          if test "X$found_dir" = "X"; then
 
9446
            for x in $LDFLAGS $LTLIBICONV; do
 
9447
 
 
9448
  acl_save_prefix="$prefix"
 
9449
  prefix="$acl_final_prefix"
 
9450
  acl_save_exec_prefix="$exec_prefix"
 
9451
  exec_prefix="$acl_final_exec_prefix"
 
9452
  eval x=\"$x\"
 
9453
  exec_prefix="$acl_save_exec_prefix"
 
9454
  prefix="$acl_save_prefix"
 
9455
 
 
9456
              case "$x" in
 
9457
                -L*)
 
9458
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
9459
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
9460
                    found_dir="$dir"
 
9461
                    found_so="$dir/lib$name.$shlibext"
 
9462
                    if test -f "$dir/lib$name.la"; then
 
9463
                      found_la="$dir/lib$name.la"
 
9464
                    fi
 
9465
                  else
 
9466
                    if test -f "$dir/lib$name.$libext"; then
 
9467
                      found_dir="$dir"
 
9468
                      found_a="$dir/lib$name.$libext"
 
9469
                      if test -f "$dir/lib$name.la"; then
 
9470
                        found_la="$dir/lib$name.la"
 
9471
                      fi
 
9472
                    fi
 
9473
                  fi
 
9474
                  ;;
 
9475
              esac
 
9476
              if test "X$found_dir" != "X"; then
 
9477
                break
 
9478
              fi
 
9479
            done
 
9480
          fi
 
9481
          if test "X$found_dir" != "X"; then
 
9482
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
9483
            if test "X$found_so" != "X"; then
 
9484
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
9485
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
9486
              else
 
9487
                                                                                haveit=
 
9488
                for x in $ltrpathdirs; do
 
9489
                  if test "X$x" = "X$found_dir"; then
 
9490
                    haveit=yes
 
9491
                    break
 
9492
                  fi
 
9493
                done
 
9494
                if test -z "$haveit"; then
 
9495
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
9496
                fi
 
9497
                                if test "$hardcode_direct" = yes; then
 
9498
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
9499
                else
 
9500
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
9501
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
9502
                                                            haveit=
 
9503
                    for x in $rpathdirs; do
 
9504
                      if test "X$x" = "X$found_dir"; then
 
9505
                        haveit=yes
 
9506
                        break
 
9507
                      fi
 
9508
                    done
 
9509
                    if test -z "$haveit"; then
 
9510
                      rpathdirs="$rpathdirs $found_dir"
 
9511
                    fi
 
9512
                  else
 
9513
                                                                                haveit=
 
9514
                    for x in $LDFLAGS $LIBICONV; do
 
9515
 
 
9516
  acl_save_prefix="$prefix"
 
9517
  prefix="$acl_final_prefix"
 
9518
  acl_save_exec_prefix="$exec_prefix"
 
9519
  exec_prefix="$acl_final_exec_prefix"
 
9520
  eval x=\"$x\"
 
9521
  exec_prefix="$acl_save_exec_prefix"
 
9522
  prefix="$acl_save_prefix"
 
9523
 
 
9524
                      if test "X$x" = "X-L$found_dir"; then
 
9525
                        haveit=yes
 
9526
                        break
 
9527
                      fi
 
9528
                    done
 
9529
                    if test -z "$haveit"; then
 
9530
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
9531
                    fi
 
9532
                    if test "$hardcode_minus_L" != no; then
 
9533
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
9534
                    else
 
9535
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
9536
                    fi
 
9537
                  fi
 
9538
                fi
 
9539
              fi
 
9540
            else
 
9541
              if test "X$found_a" != "X"; then
 
9542
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
9543
              else
 
9544
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
9545
              fi
 
9546
            fi
 
9547
                        additional_includedir=
 
9548
            case "$found_dir" in
 
9549
              */lib | */lib/)
 
9550
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
9551
                additional_includedir="$basedir/include"
 
9552
                ;;
 
9553
            esac
 
9554
            if test "X$additional_includedir" != "X"; then
 
9555
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
9556
                haveit=
 
9557
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
9558
                  if test -n "$GCC"; then
 
9559
                    case $host_os in
 
9560
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
9561
                    esac
 
9562
                  fi
 
9563
                fi
 
9564
                if test -z "$haveit"; then
 
9565
                  for x in $CPPFLAGS $INCICONV; do
 
9566
 
 
9567
  acl_save_prefix="$prefix"
 
9568
  prefix="$acl_final_prefix"
 
9569
  acl_save_exec_prefix="$exec_prefix"
 
9570
  exec_prefix="$acl_final_exec_prefix"
 
9571
  eval x=\"$x\"
 
9572
  exec_prefix="$acl_save_exec_prefix"
 
9573
  prefix="$acl_save_prefix"
 
9574
 
 
9575
                    if test "X$x" = "X-I$additional_includedir"; then
 
9576
                      haveit=yes
 
9577
                      break
 
9578
                    fi
 
9579
                  done
 
9580
                  if test -z "$haveit"; then
 
9581
                    if test -d "$additional_includedir"; then
 
9582
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
9583
                    fi
 
9584
                  fi
 
9585
                fi
 
9586
              fi
 
9587
            fi
 
9588
                        if test -n "$found_la"; then
 
9589
                                                        save_libdir="$libdir"
 
9590
              case "$found_la" in
 
9591
                */* | *\\*) . "$found_la" ;;
 
9592
                *) . "./$found_la" ;;
 
9593
              esac
 
9594
              libdir="$save_libdir"
 
9595
                            for dep in $dependency_libs; do
 
9596
                case "$dep" in
 
9597
                  -L*)
 
9598
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
9599
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
9600
                      haveit=
 
9601
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
9602
                        if test -n "$GCC"; then
 
9603
                          case $host_os in
 
9604
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
9605
                          esac
 
9606
                        fi
 
9607
                      fi
 
9608
                      if test -z "$haveit"; then
 
9609
                        haveit=
 
9610
                        for x in $LDFLAGS $LIBICONV; do
 
9611
 
 
9612
  acl_save_prefix="$prefix"
 
9613
  prefix="$acl_final_prefix"
 
9614
  acl_save_exec_prefix="$exec_prefix"
 
9615
  exec_prefix="$acl_final_exec_prefix"
 
9616
  eval x=\"$x\"
 
9617
  exec_prefix="$acl_save_exec_prefix"
 
9618
  prefix="$acl_save_prefix"
 
9619
 
 
9620
                          if test "X$x" = "X-L$additional_libdir"; then
 
9621
                            haveit=yes
 
9622
                            break
 
9623
                          fi
 
9624
                        done
 
9625
                        if test -z "$haveit"; then
 
9626
                          if test -d "$additional_libdir"; then
 
9627
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
9628
                          fi
 
9629
                        fi
 
9630
                        haveit=
 
9631
                        for x in $LDFLAGS $LTLIBICONV; do
 
9632
 
 
9633
  acl_save_prefix="$prefix"
 
9634
  prefix="$acl_final_prefix"
 
9635
  acl_save_exec_prefix="$exec_prefix"
 
9636
  exec_prefix="$acl_final_exec_prefix"
 
9637
  eval x=\"$x\"
 
9638
  exec_prefix="$acl_save_exec_prefix"
 
9639
  prefix="$acl_save_prefix"
 
9640
 
 
9641
                          if test "X$x" = "X-L$additional_libdir"; then
 
9642
                            haveit=yes
 
9643
                            break
 
9644
                          fi
 
9645
                        done
 
9646
                        if test -z "$haveit"; then
 
9647
                          if test -d "$additional_libdir"; then
 
9648
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
9649
                          fi
 
9650
                        fi
 
9651
                      fi
 
9652
                    fi
 
9653
                    ;;
 
9654
                  -R*)
 
9655
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
9656
                    if test "$enable_rpath" != no; then
 
9657
                                                                  haveit=
 
9658
                      for x in $rpathdirs; do
 
9659
                        if test "X$x" = "X$dir"; then
 
9660
                          haveit=yes
 
9661
                          break
 
9662
                        fi
 
9663
                      done
 
9664
                      if test -z "$haveit"; then
 
9665
                        rpathdirs="$rpathdirs $dir"
 
9666
                      fi
 
9667
                                                                  haveit=
 
9668
                      for x in $ltrpathdirs; do
 
9669
                        if test "X$x" = "X$dir"; then
 
9670
                          haveit=yes
 
9671
                          break
 
9672
                        fi
 
9673
                      done
 
9674
                      if test -z "$haveit"; then
 
9675
                        ltrpathdirs="$ltrpathdirs $dir"
 
9676
                      fi
 
9677
                    fi
 
9678
                    ;;
 
9679
                  -l*)
 
9680
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
9681
                    ;;
 
9682
                  *.la)
 
9683
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
9684
                    ;;
 
9685
                  *)
 
9686
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
9687
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
9688
                    ;;
 
9689
                esac
 
9690
              done
 
9691
            fi
 
9692
          else
 
9693
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
9694
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
9695
          fi
 
9696
        fi
 
9697
      fi
 
9698
    done
 
9699
  done
 
9700
  if test "X$rpathdirs" != "X"; then
 
9701
    if test -n "$hardcode_libdir_separator"; then
 
9702
                        alldirs=
 
9703
      for found_dir in $rpathdirs; do
 
9704
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
9705
      done
 
9706
            acl_save_libdir="$libdir"
 
9707
      libdir="$alldirs"
 
9708
      eval flag=\"$hardcode_libdir_flag_spec\"
 
9709
      libdir="$acl_save_libdir"
 
9710
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
9711
    else
 
9712
            for found_dir in $rpathdirs; do
 
9713
        acl_save_libdir="$libdir"
 
9714
        libdir="$found_dir"
 
9715
        eval flag=\"$hardcode_libdir_flag_spec\"
 
9716
        libdir="$acl_save_libdir"
 
9717
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
9718
      done
 
9719
    fi
 
9720
  fi
 
9721
  if test "X$ltrpathdirs" != "X"; then
 
9722
            for found_dir in $ltrpathdirs; do
 
9723
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
9724
    done
 
9725
  fi
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
9735
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
 
9736
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
9737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9738
else
 
9739
  cat >conftest.$ac_ext <<_ACEOF
 
9740
/* confdefs.h.  */
 
9741
_ACEOF
 
9742
cat confdefs.h >>conftest.$ac_ext
 
9743
cat >>conftest.$ac_ext <<_ACEOF
 
9744
/* end confdefs.h.  */
 
9745
$ac_includes_default
 
9746
typedef ptrdiff_t ac__type_new_;
 
9747
int
 
9748
main ()
 
9749
{
 
9750
if ((ac__type_new_ *) 0)
 
9751
  return 0;
 
9752
if (sizeof (ac__type_new_))
 
9753
  return 0;
 
9754
  ;
 
9755
  return 0;
 
9756
}
 
9757
_ACEOF
 
9758
rm -f conftest.$ac_objext
 
9759
if { (ac_try="$ac_compile"
 
9760
case "(($ac_try" in
 
9761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9762
  *) ac_try_echo=$ac_try;;
 
9763
esac
 
9764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9765
  (eval "$ac_compile") 2>conftest.er1
 
9766
  ac_status=$?
 
9767
  grep -v '^ *+' conftest.er1 >conftest.err
 
9768
  rm -f conftest.er1
 
9769
  cat conftest.err >&5
 
9770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9771
  (exit $ac_status); } &&
 
9772
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9773
  { (case "(($ac_try" in
 
9774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9775
  *) ac_try_echo=$ac_try;;
 
9776
esac
 
9777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9778
  (eval "$ac_try") 2>&5
 
9779
  ac_status=$?
 
9780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9781
  (exit $ac_status); }; } &&
 
9782
         { ac_try='test -s conftest.$ac_objext'
 
9783
  { (case "(($ac_try" in
 
9784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9785
  *) ac_try_echo=$ac_try;;
 
9786
esac
 
9787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9788
  (eval "$ac_try") 2>&5
 
9789
  ac_status=$?
 
9790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9791
  (exit $ac_status); }; }; then
 
9792
  ac_cv_type_ptrdiff_t=yes
 
9793
else
 
9794
  echo "$as_me: failed program was:" >&5
 
9795
sed 's/^/| /' conftest.$ac_ext >&5
 
9796
 
 
9797
        ac_cv_type_ptrdiff_t=no
 
9798
fi
 
9799
 
 
9800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9801
fi
 
9802
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
9803
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
 
9804
if test $ac_cv_type_ptrdiff_t = yes; then
 
9805
  :
 
9806
else
 
9807
 
 
9808
cat >>confdefs.h <<\_ACEOF
 
9809
#define ptrdiff_t long
 
9810
_ACEOF
 
9811
 
 
9812
 
 
9813
fi
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
9826
stdlib.h string.h unistd.h sys/param.h
 
9827
do
 
9828
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9829
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9830
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9831
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9832
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9834
fi
 
9835
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9836
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9837
echo "${ECHO_T}$ac_res" >&6; }
 
9838
else
 
9839
  # Is the header compilable?
 
9840
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9841
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9842
cat >conftest.$ac_ext <<_ACEOF
 
9843
/* confdefs.h.  */
 
9844
_ACEOF
 
9845
cat confdefs.h >>conftest.$ac_ext
 
9846
cat >>conftest.$ac_ext <<_ACEOF
 
9847
/* end confdefs.h.  */
 
9848
$ac_includes_default
 
9849
#include <$ac_header>
 
9850
_ACEOF
 
9851
rm -f conftest.$ac_objext
 
9852
if { (ac_try="$ac_compile"
 
9853
case "(($ac_try" in
 
9854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9855
  *) ac_try_echo=$ac_try;;
 
9856
esac
 
9857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9858
  (eval "$ac_compile") 2>conftest.er1
 
9859
  ac_status=$?
 
9860
  grep -v '^ *+' conftest.er1 >conftest.err
 
9861
  rm -f conftest.er1
 
9862
  cat conftest.err >&5
 
9863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9864
  (exit $ac_status); } &&
 
9865
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9866
  { (case "(($ac_try" in
 
9867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9868
  *) ac_try_echo=$ac_try;;
 
9869
esac
 
9870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9871
  (eval "$ac_try") 2>&5
 
9872
  ac_status=$?
 
9873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9874
  (exit $ac_status); }; } &&
 
9875
         { ac_try='test -s conftest.$ac_objext'
 
9876
  { (case "(($ac_try" in
 
9877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9878
  *) ac_try_echo=$ac_try;;
 
9879
esac
 
9880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9881
  (eval "$ac_try") 2>&5
 
9882
  ac_status=$?
 
9883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9884
  (exit $ac_status); }; }; then
 
9885
  ac_header_compiler=yes
 
9886
else
 
9887
  echo "$as_me: failed program was:" >&5
 
9888
sed 's/^/| /' conftest.$ac_ext >&5
 
9889
 
 
9890
        ac_header_compiler=no
 
9891
fi
 
9892
 
 
9893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9894
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9895
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9896
 
 
9897
# Is the header present?
 
9898
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9899
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9900
cat >conftest.$ac_ext <<_ACEOF
 
9901
/* confdefs.h.  */
 
9902
_ACEOF
 
9903
cat confdefs.h >>conftest.$ac_ext
 
9904
cat >>conftest.$ac_ext <<_ACEOF
 
9905
/* end confdefs.h.  */
 
9906
#include <$ac_header>
 
9907
_ACEOF
 
9908
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9909
case "(($ac_try" in
 
9910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9911
  *) ac_try_echo=$ac_try;;
 
9912
esac
 
9913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9914
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9915
  ac_status=$?
 
9916
  grep -v '^ *+' conftest.er1 >conftest.err
 
9917
  rm -f conftest.er1
 
9918
  cat conftest.err >&5
 
9919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9920
  (exit $ac_status); } >/dev/null; then
 
9921
  if test -s conftest.err; then
 
9922
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9923
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9924
  else
 
9925
    ac_cpp_err=
 
9926
  fi
 
9927
else
 
9928
  ac_cpp_err=yes
 
9929
fi
 
9930
if test -z "$ac_cpp_err"; then
 
9931
  ac_header_preproc=yes
 
9932
else
 
9933
  echo "$as_me: failed program was:" >&5
 
9934
sed 's/^/| /' conftest.$ac_ext >&5
 
9935
 
 
9936
  ac_header_preproc=no
 
9937
fi
 
9938
 
 
9939
rm -f conftest.err conftest.$ac_ext
 
9940
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9941
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9942
 
 
9943
# So?  What about this header?
 
9944
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9945
  yes:no: )
 
9946
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9947
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9948
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9949
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9950
    ac_header_preproc=yes
 
9951
    ;;
 
9952
  no:yes:* )
 
9953
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9954
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9955
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9956
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9957
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9958
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9959
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9960
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9961
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9962
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9963
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9964
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9965
    ( cat <<\_ASBOX
 
9966
## ------------------------------------ ##
 
9967
## Report this to m17n-lib-bug@m17n.org ##
 
9968
## ------------------------------------ ##
 
9969
_ASBOX
 
9970
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
9971
    ;;
 
9972
esac
 
9973
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9974
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9975
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9977
else
 
9978
  eval "$as_ac_Header=\$ac_header_preproc"
 
9979
fi
 
9980
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9981
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9982
echo "${ECHO_T}$ac_res" >&6; }
 
9983
 
 
9984
fi
 
9985
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9986
  cat >>confdefs.h <<_ACEOF
 
9987
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9988
_ACEOF
 
9989
 
 
9990
fi
 
9991
 
 
9992
done
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
10018
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
10019
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
 
10020
__fsetlocking
 
10021
do
 
10022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10023
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10025
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10027
else
 
10028
  cat >conftest.$ac_ext <<_ACEOF
 
10029
/* confdefs.h.  */
 
10030
_ACEOF
 
10031
cat confdefs.h >>conftest.$ac_ext
 
10032
cat >>conftest.$ac_ext <<_ACEOF
 
10033
/* end confdefs.h.  */
 
10034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10035
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10036
#define $ac_func innocuous_$ac_func
 
10037
 
 
10038
/* System header to define __stub macros and hopefully few prototypes,
 
10039
    which can conflict with char $ac_func (); below.
 
10040
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10041
    <limits.h> exists even on freestanding compilers.  */
 
10042
 
 
10043
#ifdef __STDC__
 
10044
# include <limits.h>
 
10045
#else
 
10046
# include <assert.h>
 
10047
#endif
 
10048
 
 
10049
#undef $ac_func
 
10050
 
 
10051
/* Override any GCC internal prototype to avoid an error.
 
10052
   Use char because int might match the return type of a GCC
 
10053
   builtin and then its argument prototype would still apply.  */
 
10054
#ifdef __cplusplus
 
10055
extern "C"
 
10056
#endif
 
10057
char $ac_func ();
 
10058
/* The GNU C library defines this for functions which it implements
 
10059
    to always fail with ENOSYS.  Some functions are actually named
 
10060
    something starting with __ and the normal name is an alias.  */
 
10061
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10062
choke me
 
10063
#endif
 
10064
 
 
10065
int
 
10066
main ()
 
10067
{
 
10068
return $ac_func ();
 
10069
  ;
 
10070
  return 0;
 
10071
}
 
10072
_ACEOF
 
10073
rm -f conftest.$ac_objext conftest$ac_exeext
 
10074
if { (ac_try="$ac_link"
 
10075
case "(($ac_try" in
 
10076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10077
  *) ac_try_echo=$ac_try;;
 
10078
esac
 
10079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10080
  (eval "$ac_link") 2>conftest.er1
 
10081
  ac_status=$?
 
10082
  grep -v '^ *+' conftest.er1 >conftest.err
 
10083
  rm -f conftest.er1
 
10084
  cat conftest.err >&5
 
10085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10086
  (exit $ac_status); } &&
 
10087
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10088
  { (case "(($ac_try" in
 
10089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10090
  *) ac_try_echo=$ac_try;;
 
10091
esac
 
10092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10093
  (eval "$ac_try") 2>&5
 
10094
  ac_status=$?
 
10095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10096
  (exit $ac_status); }; } &&
 
10097
         { ac_try='test -s conftest$ac_exeext'
 
10098
  { (case "(($ac_try" in
 
10099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10100
  *) ac_try_echo=$ac_try;;
 
10101
esac
 
10102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10103
  (eval "$ac_try") 2>&5
 
10104
  ac_status=$?
 
10105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10106
  (exit $ac_status); }; }; then
 
10107
  eval "$as_ac_var=yes"
 
10108
else
 
10109
  echo "$as_me: failed program was:" >&5
 
10110
sed 's/^/| /' conftest.$ac_ext >&5
 
10111
 
 
10112
        eval "$as_ac_var=no"
 
10113
fi
 
10114
 
 
10115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10116
      conftest$ac_exeext conftest.$ac_ext
 
10117
fi
 
10118
ac_res=`eval echo '${'$as_ac_var'}'`
 
10119
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10120
echo "${ECHO_T}$ac_res" >&6; }
 
10121
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10122
  cat >>confdefs.h <<_ACEOF
 
10123
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10124
_ACEOF
 
10125
 
 
10126
fi
 
10127
done
 
10128
 
 
10129
 
 
10130
 
 
10131
  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
10132
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
 
10133
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
10134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10135
else
 
10136
  cat >conftest.$ac_ext <<_ACEOF
 
10137
/* confdefs.h.  */
 
10138
_ACEOF
 
10139
cat confdefs.h >>conftest.$ac_ext
 
10140
cat >>conftest.$ac_ext <<_ACEOF
 
10141
/* end confdefs.h.  */
 
10142
#include <stdio.h>
 
10143
int
 
10144
main ()
 
10145
{
 
10146
 
 
10147
#ifndef _snprintf
 
10148
  char *p = (char *) _snprintf;
 
10149
#endif
 
10150
 
 
10151
  ;
 
10152
  return 0;
 
10153
}
 
10154
_ACEOF
 
10155
rm -f conftest.$ac_objext
 
10156
if { (ac_try="$ac_compile"
 
10157
case "(($ac_try" in
 
10158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10159
  *) ac_try_echo=$ac_try;;
 
10160
esac
 
10161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10162
  (eval "$ac_compile") 2>conftest.er1
 
10163
  ac_status=$?
 
10164
  grep -v '^ *+' conftest.er1 >conftest.err
 
10165
  rm -f conftest.er1
 
10166
  cat conftest.err >&5
 
10167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10168
  (exit $ac_status); } &&
 
10169
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10170
  { (case "(($ac_try" in
 
10171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10172
  *) ac_try_echo=$ac_try;;
 
10173
esac
 
10174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10175
  (eval "$ac_try") 2>&5
 
10176
  ac_status=$?
 
10177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10178
  (exit $ac_status); }; } &&
 
10179
         { ac_try='test -s conftest.$ac_objext'
 
10180
  { (case "(($ac_try" in
 
10181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10182
  *) ac_try_echo=$ac_try;;
 
10183
esac
 
10184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10185
  (eval "$ac_try") 2>&5
 
10186
  ac_status=$?
 
10187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10188
  (exit $ac_status); }; }; then
 
10189
  ac_cv_have_decl__snprintf=yes
 
10190
else
 
10191
  echo "$as_me: failed program was:" >&5
 
10192
sed 's/^/| /' conftest.$ac_ext >&5
 
10193
 
 
10194
        ac_cv_have_decl__snprintf=no
 
10195
fi
 
10196
 
 
10197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10198
fi
 
10199
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
10200
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
 
10201
  if test $ac_cv_have_decl__snprintf = yes; then
 
10202
    gt_value=1
 
10203
  else
 
10204
    gt_value=0
 
10205
  fi
 
10206
 
 
10207
cat >>confdefs.h <<_ACEOF
 
10208
#define HAVE_DECL__SNPRINTF $gt_value
 
10209
_ACEOF
 
10210
 
 
10211
 
 
10212
 
 
10213
  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
10214
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
 
10215
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
10216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10217
else
 
10218
  cat >conftest.$ac_ext <<_ACEOF
 
10219
/* confdefs.h.  */
 
10220
_ACEOF
 
10221
cat confdefs.h >>conftest.$ac_ext
 
10222
cat >>conftest.$ac_ext <<_ACEOF
 
10223
/* end confdefs.h.  */
 
10224
#include <stdio.h>
 
10225
int
 
10226
main ()
 
10227
{
 
10228
 
 
10229
#ifndef _snwprintf
 
10230
  char *p = (char *) _snwprintf;
 
10231
#endif
 
10232
 
 
10233
  ;
 
10234
  return 0;
 
10235
}
 
10236
_ACEOF
 
10237
rm -f conftest.$ac_objext
 
10238
if { (ac_try="$ac_compile"
 
10239
case "(($ac_try" in
 
10240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10241
  *) ac_try_echo=$ac_try;;
 
10242
esac
 
10243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10244
  (eval "$ac_compile") 2>conftest.er1
 
10245
  ac_status=$?
 
10246
  grep -v '^ *+' conftest.er1 >conftest.err
 
10247
  rm -f conftest.er1
 
10248
  cat conftest.err >&5
 
10249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10250
  (exit $ac_status); } &&
 
10251
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10252
  { (case "(($ac_try" in
 
10253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10254
  *) ac_try_echo=$ac_try;;
 
10255
esac
 
10256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10257
  (eval "$ac_try") 2>&5
 
10258
  ac_status=$?
 
10259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10260
  (exit $ac_status); }; } &&
 
10261
         { ac_try='test -s conftest.$ac_objext'
 
10262
  { (case "(($ac_try" in
 
10263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10264
  *) ac_try_echo=$ac_try;;
 
10265
esac
 
10266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10267
  (eval "$ac_try") 2>&5
 
10268
  ac_status=$?
 
10269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10270
  (exit $ac_status); }; }; then
 
10271
  ac_cv_have_decl__snwprintf=yes
 
10272
else
 
10273
  echo "$as_me: failed program was:" >&5
 
10274
sed 's/^/| /' conftest.$ac_ext >&5
 
10275
 
 
10276
        ac_cv_have_decl__snwprintf=no
 
10277
fi
 
10278
 
 
10279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10280
fi
 
10281
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
10282
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
 
10283
  if test $ac_cv_have_decl__snwprintf = yes; then
 
10284
    gt_value=1
 
10285
  else
 
10286
    gt_value=0
 
10287
  fi
 
10288
 
 
10289
cat >>confdefs.h <<_ACEOF
 
10290
#define HAVE_DECL__SNWPRINTF $gt_value
 
10291
_ACEOF
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
10297
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
 
10298
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
10299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10300
else
 
10301
  cat >conftest.$ac_ext <<_ACEOF
 
10302
/* confdefs.h.  */
 
10303
_ACEOF
 
10304
cat confdefs.h >>conftest.$ac_ext
 
10305
cat >>conftest.$ac_ext <<_ACEOF
 
10306
/* end confdefs.h.  */
 
10307
#include <stdio.h>
 
10308
int
 
10309
main ()
 
10310
{
 
10311
 
 
10312
#ifndef feof_unlocked
 
10313
  char *p = (char *) feof_unlocked;
 
10314
#endif
 
10315
 
 
10316
  ;
 
10317
  return 0;
 
10318
}
 
10319
_ACEOF
 
10320
rm -f conftest.$ac_objext
 
10321
if { (ac_try="$ac_compile"
 
10322
case "(($ac_try" in
 
10323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10324
  *) ac_try_echo=$ac_try;;
 
10325
esac
 
10326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10327
  (eval "$ac_compile") 2>conftest.er1
 
10328
  ac_status=$?
 
10329
  grep -v '^ *+' conftest.er1 >conftest.err
 
10330
  rm -f conftest.er1
 
10331
  cat conftest.err >&5
 
10332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10333
  (exit $ac_status); } &&
 
10334
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10335
  { (case "(($ac_try" in
 
10336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10337
  *) ac_try_echo=$ac_try;;
 
10338
esac
 
10339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10340
  (eval "$ac_try") 2>&5
 
10341
  ac_status=$?
 
10342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10343
  (exit $ac_status); }; } &&
 
10344
         { ac_try='test -s conftest.$ac_objext'
 
10345
  { (case "(($ac_try" in
 
10346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10347
  *) ac_try_echo=$ac_try;;
 
10348
esac
 
10349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10350
  (eval "$ac_try") 2>&5
 
10351
  ac_status=$?
 
10352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10353
  (exit $ac_status); }; }; then
 
10354
  ac_cv_have_decl_feof_unlocked=yes
 
10355
else
 
10356
  echo "$as_me: failed program was:" >&5
 
10357
sed 's/^/| /' conftest.$ac_ext >&5
 
10358
 
 
10359
        ac_cv_have_decl_feof_unlocked=no
 
10360
fi
 
10361
 
 
10362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10363
fi
 
10364
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
10365
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
 
10366
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
10367
    gt_value=1
 
10368
  else
 
10369
    gt_value=0
 
10370
  fi
 
10371
 
 
10372
cat >>confdefs.h <<_ACEOF
 
10373
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
10374
_ACEOF
 
10375
 
 
10376
 
 
10377
 
 
10378
  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
10379
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
 
10380
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
10381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10382
else
 
10383
  cat >conftest.$ac_ext <<_ACEOF
 
10384
/* confdefs.h.  */
 
10385
_ACEOF
 
10386
cat confdefs.h >>conftest.$ac_ext
 
10387
cat >>conftest.$ac_ext <<_ACEOF
 
10388
/* end confdefs.h.  */
 
10389
#include <stdio.h>
 
10390
int
 
10391
main ()
 
10392
{
 
10393
 
 
10394
#ifndef fgets_unlocked
 
10395
  char *p = (char *) fgets_unlocked;
 
10396
#endif
 
10397
 
 
10398
  ;
 
10399
  return 0;
 
10400
}
 
10401
_ACEOF
 
10402
rm -f conftest.$ac_objext
 
10403
if { (ac_try="$ac_compile"
 
10404
case "(($ac_try" in
 
10405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10406
  *) ac_try_echo=$ac_try;;
 
10407
esac
 
10408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10409
  (eval "$ac_compile") 2>conftest.er1
 
10410
  ac_status=$?
 
10411
  grep -v '^ *+' conftest.er1 >conftest.err
 
10412
  rm -f conftest.er1
 
10413
  cat conftest.err >&5
 
10414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10415
  (exit $ac_status); } &&
 
10416
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10417
  { (case "(($ac_try" in
 
10418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10419
  *) ac_try_echo=$ac_try;;
 
10420
esac
 
10421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10422
  (eval "$ac_try") 2>&5
 
10423
  ac_status=$?
 
10424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10425
  (exit $ac_status); }; } &&
 
10426
         { ac_try='test -s conftest.$ac_objext'
 
10427
  { (case "(($ac_try" in
 
10428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10429
  *) ac_try_echo=$ac_try;;
 
10430
esac
 
10431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10432
  (eval "$ac_try") 2>&5
 
10433
  ac_status=$?
 
10434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10435
  (exit $ac_status); }; }; then
 
10436
  ac_cv_have_decl_fgets_unlocked=yes
 
10437
else
 
10438
  echo "$as_me: failed program was:" >&5
 
10439
sed 's/^/| /' conftest.$ac_ext >&5
 
10440
 
 
10441
        ac_cv_have_decl_fgets_unlocked=no
 
10442
fi
 
10443
 
 
10444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10445
fi
 
10446
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
10447
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
 
10448
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
10449
    gt_value=1
 
10450
  else
 
10451
    gt_value=0
 
10452
  fi
 
10453
 
 
10454
cat >>confdefs.h <<_ACEOF
 
10455
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
10456
_ACEOF
 
10457
 
 
10458
 
 
10459
 
 
10460
  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
10461
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
 
10462
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
10463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10464
else
 
10465
  cat >conftest.$ac_ext <<_ACEOF
 
10466
/* confdefs.h.  */
 
10467
_ACEOF
 
10468
cat confdefs.h >>conftest.$ac_ext
 
10469
cat >>conftest.$ac_ext <<_ACEOF
 
10470
/* end confdefs.h.  */
 
10471
#include <stdio.h>
 
10472
int
 
10473
main ()
 
10474
{
 
10475
 
 
10476
#ifndef getc_unlocked
 
10477
  char *p = (char *) getc_unlocked;
 
10478
#endif
 
10479
 
 
10480
  ;
 
10481
  return 0;
 
10482
}
 
10483
_ACEOF
 
10484
rm -f conftest.$ac_objext
 
10485
if { (ac_try="$ac_compile"
 
10486
case "(($ac_try" in
 
10487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10488
  *) ac_try_echo=$ac_try;;
 
10489
esac
 
10490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10491
  (eval "$ac_compile") 2>conftest.er1
 
10492
  ac_status=$?
 
10493
  grep -v '^ *+' conftest.er1 >conftest.err
 
10494
  rm -f conftest.er1
 
10495
  cat conftest.err >&5
 
10496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10497
  (exit $ac_status); } &&
 
10498
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10499
  { (case "(($ac_try" in
 
10500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10501
  *) ac_try_echo=$ac_try;;
 
10502
esac
 
10503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10504
  (eval "$ac_try") 2>&5
 
10505
  ac_status=$?
 
10506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10507
  (exit $ac_status); }; } &&
 
10508
         { ac_try='test -s conftest.$ac_objext'
 
10509
  { (case "(($ac_try" in
 
10510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10511
  *) ac_try_echo=$ac_try;;
 
10512
esac
 
10513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10514
  (eval "$ac_try") 2>&5
 
10515
  ac_status=$?
 
10516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10517
  (exit $ac_status); }; }; then
 
10518
  ac_cv_have_decl_getc_unlocked=yes
 
10519
else
 
10520
  echo "$as_me: failed program was:" >&5
 
10521
sed 's/^/| /' conftest.$ac_ext >&5
 
10522
 
 
10523
        ac_cv_have_decl_getc_unlocked=no
 
10524
fi
 
10525
 
 
10526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10527
fi
 
10528
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
10529
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
 
10530
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
10531
    gt_value=1
 
10532
  else
 
10533
    gt_value=0
 
10534
  fi
 
10535
 
 
10536
cat >>confdefs.h <<_ACEOF
 
10537
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
10538
_ACEOF
 
10539
 
 
10540
 
 
10541
 
 
10542
  case $gt_cv_func_printf_posix in
 
10543
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
10544
    *) HAVE_POSIX_PRINTF=0 ;;
 
10545
  esac
 
10546
 
 
10547
  if test "$ac_cv_func_asprintf" = yes; then
 
10548
    HAVE_ASPRINTF=1
 
10549
  else
 
10550
    HAVE_ASPRINTF=0
 
10551
  fi
 
10552
 
 
10553
  if test "$ac_cv_func_snprintf" = yes; then
 
10554
    HAVE_SNPRINTF=1
 
10555
  else
 
10556
    HAVE_SNPRINTF=0
 
10557
  fi
 
10558
 
 
10559
  if test "$ac_cv_func_wprintf" = yes; then
 
10560
    HAVE_WPRINTF=1
 
10561
  else
 
10562
    HAVE_WPRINTF=0
 
10563
  fi
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
 
10571
          am_save_CPPFLAGS="$CPPFLAGS"
 
10572
 
 
10573
  for element in $INCICONV; do
 
10574
    haveit=
 
10575
    for x in $CPPFLAGS; do
 
10576
 
 
10577
  acl_save_prefix="$prefix"
 
10578
  prefix="$acl_final_prefix"
 
10579
  acl_save_exec_prefix="$exec_prefix"
 
10580
  exec_prefix="$acl_final_exec_prefix"
 
10581
  eval x=\"$x\"
 
10582
  exec_prefix="$acl_save_exec_prefix"
 
10583
  prefix="$acl_save_prefix"
 
10584
 
 
10585
      if test "X$x" = "X$element"; then
 
10586
        haveit=yes
 
10587
        break
 
10588
      fi
 
10589
    done
 
10590
    if test -z "$haveit"; then
 
10591
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
10592
    fi
 
10593
  done
 
10594
 
 
10595
 
 
10596
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
10597
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
 
10598
if test "${am_cv_func_iconv+set}" = set; then
 
10599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10600
else
 
10601
 
 
10602
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
10603
    am_cv_lib_iconv=no
 
10604
    cat >conftest.$ac_ext <<_ACEOF
 
10605
/* confdefs.h.  */
 
10606
_ACEOF
 
10607
cat confdefs.h >>conftest.$ac_ext
 
10608
cat >>conftest.$ac_ext <<_ACEOF
 
10609
/* end confdefs.h.  */
 
10610
#include <stdlib.h>
 
10611
#include <iconv.h>
 
10612
int
 
10613
main ()
 
10614
{
 
10615
iconv_t cd = iconv_open("","");
 
10616
       iconv(cd,NULL,NULL,NULL,NULL);
 
10617
       iconv_close(cd);
 
10618
  ;
 
10619
  return 0;
 
10620
}
 
10621
_ACEOF
 
10622
rm -f conftest.$ac_objext conftest$ac_exeext
 
10623
if { (ac_try="$ac_link"
 
10624
case "(($ac_try" in
 
10625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10626
  *) ac_try_echo=$ac_try;;
 
10627
esac
 
10628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10629
  (eval "$ac_link") 2>conftest.er1
 
10630
  ac_status=$?
 
10631
  grep -v '^ *+' conftest.er1 >conftest.err
 
10632
  rm -f conftest.er1
 
10633
  cat conftest.err >&5
 
10634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10635
  (exit $ac_status); } &&
 
10636
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10637
  { (case "(($ac_try" in
 
10638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10639
  *) ac_try_echo=$ac_try;;
 
10640
esac
 
10641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10642
  (eval "$ac_try") 2>&5
 
10643
  ac_status=$?
 
10644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10645
  (exit $ac_status); }; } &&
 
10646
         { ac_try='test -s conftest$ac_exeext'
 
10647
  { (case "(($ac_try" in
 
10648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10649
  *) ac_try_echo=$ac_try;;
 
10650
esac
 
10651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10652
  (eval "$ac_try") 2>&5
 
10653
  ac_status=$?
 
10654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10655
  (exit $ac_status); }; }; then
 
10656
  am_cv_func_iconv=yes
 
10657
else
 
10658
  echo "$as_me: failed program was:" >&5
 
10659
sed 's/^/| /' conftest.$ac_ext >&5
 
10660
 
 
10661
 
 
10662
fi
 
10663
 
 
10664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10665
      conftest$ac_exeext conftest.$ac_ext
 
10666
    if test "$am_cv_func_iconv" != yes; then
 
10667
      am_save_LIBS="$LIBS"
 
10668
      LIBS="$LIBS $LIBICONV"
 
10669
      cat >conftest.$ac_ext <<_ACEOF
 
10670
/* confdefs.h.  */
 
10671
_ACEOF
 
10672
cat confdefs.h >>conftest.$ac_ext
 
10673
cat >>conftest.$ac_ext <<_ACEOF
 
10674
/* end confdefs.h.  */
 
10675
#include <stdlib.h>
 
10676
#include <iconv.h>
 
10677
int
 
10678
main ()
 
10679
{
 
10680
iconv_t cd = iconv_open("","");
 
10681
         iconv(cd,NULL,NULL,NULL,NULL);
 
10682
         iconv_close(cd);
 
10683
  ;
 
10684
  return 0;
 
10685
}
 
10686
_ACEOF
 
10687
rm -f conftest.$ac_objext conftest$ac_exeext
 
10688
if { (ac_try="$ac_link"
 
10689
case "(($ac_try" in
 
10690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10691
  *) ac_try_echo=$ac_try;;
 
10692
esac
 
10693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10694
  (eval "$ac_link") 2>conftest.er1
 
10695
  ac_status=$?
 
10696
  grep -v '^ *+' conftest.er1 >conftest.err
 
10697
  rm -f conftest.er1
 
10698
  cat conftest.err >&5
 
10699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10700
  (exit $ac_status); } &&
 
10701
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10702
  { (case "(($ac_try" in
 
10703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10704
  *) ac_try_echo=$ac_try;;
 
10705
esac
 
10706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10707
  (eval "$ac_try") 2>&5
 
10708
  ac_status=$?
 
10709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10710
  (exit $ac_status); }; } &&
 
10711
         { ac_try='test -s conftest$ac_exeext'
 
10712
  { (case "(($ac_try" in
 
10713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10714
  *) ac_try_echo=$ac_try;;
 
10715
esac
 
10716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10717
  (eval "$ac_try") 2>&5
 
10718
  ac_status=$?
 
10719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10720
  (exit $ac_status); }; }; then
 
10721
  am_cv_lib_iconv=yes
 
10722
        am_cv_func_iconv=yes
 
10723
else
 
10724
  echo "$as_me: failed program was:" >&5
 
10725
sed 's/^/| /' conftest.$ac_ext >&5
 
10726
 
 
10727
 
 
10728
fi
 
10729
 
 
10730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10731
      conftest$ac_exeext conftest.$ac_ext
 
10732
      LIBS="$am_save_LIBS"
 
10733
    fi
 
10734
 
 
10735
fi
 
10736
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
10737
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
10738
  if test "$am_cv_func_iconv" = yes; then
 
10739
 
 
10740
cat >>confdefs.h <<\_ACEOF
 
10741
#define HAVE_ICONV 1
 
10742
_ACEOF
 
10743
 
 
10744
  fi
 
10745
  if test "$am_cv_lib_iconv" = yes; then
 
10746
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
10747
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
10748
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
10749
echo "${ECHO_T}$LIBICONV" >&6; }
 
10750
  else
 
10751
            CPPFLAGS="$am_save_CPPFLAGS"
 
10752
    LIBICONV=
 
10753
    LTLIBICONV=
 
10754
  fi
 
10755
 
 
10756
 
 
10757
 
 
10758
  if test "$am_cv_func_iconv" = yes; then
 
10759
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
10760
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
 
10761
    if test "${am_cv_proto_iconv+set}" = set; then
 
10762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10763
else
 
10764
 
 
10765
      cat >conftest.$ac_ext <<_ACEOF
 
10766
/* confdefs.h.  */
 
10767
_ACEOF
 
10768
cat confdefs.h >>conftest.$ac_ext
 
10769
cat >>conftest.$ac_ext <<_ACEOF
 
10770
/* end confdefs.h.  */
 
10771
 
 
10772
#include <stdlib.h>
 
10773
#include <iconv.h>
 
10774
extern
 
10775
#ifdef __cplusplus
 
10776
"C"
 
10777
#endif
 
10778
#if defined(__STDC__) || defined(__cplusplus)
 
10779
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
10780
#else
 
10781
size_t iconv();
 
10782
#endif
 
10783
 
 
10784
int
 
10785
main ()
 
10786
{
 
10787
 
 
10788
  ;
 
10789
  return 0;
 
10790
}
 
10791
_ACEOF
 
10792
rm -f conftest.$ac_objext
 
10793
if { (ac_try="$ac_compile"
 
10794
case "(($ac_try" in
 
10795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10796
  *) ac_try_echo=$ac_try;;
 
10797
esac
 
10798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10799
  (eval "$ac_compile") 2>conftest.er1
 
10800
  ac_status=$?
 
10801
  grep -v '^ *+' conftest.er1 >conftest.err
 
10802
  rm -f conftest.er1
 
10803
  cat conftest.err >&5
 
10804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10805
  (exit $ac_status); } &&
 
10806
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10807
  { (case "(($ac_try" in
 
10808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10809
  *) ac_try_echo=$ac_try;;
 
10810
esac
 
10811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10812
  (eval "$ac_try") 2>&5
 
10813
  ac_status=$?
 
10814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10815
  (exit $ac_status); }; } &&
 
10816
         { ac_try='test -s conftest.$ac_objext'
 
10817
  { (case "(($ac_try" in
 
10818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10819
  *) ac_try_echo=$ac_try;;
 
10820
esac
 
10821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10822
  (eval "$ac_try") 2>&5
 
10823
  ac_status=$?
 
10824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10825
  (exit $ac_status); }; }; then
 
10826
  am_cv_proto_iconv_arg1=""
 
10827
else
 
10828
  echo "$as_me: failed program was:" >&5
 
10829
sed 's/^/| /' conftest.$ac_ext >&5
 
10830
 
 
10831
        am_cv_proto_iconv_arg1="const"
 
10832
fi
 
10833
 
 
10834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10835
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
10836
fi
 
10837
 
 
10838
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
10839
    { echo "$as_me:$LINENO: result: ${ac_t:-
 
10840
         }$am_cv_proto_iconv" >&5
 
10841
echo "${ECHO_T}${ac_t:-
 
10842
         }$am_cv_proto_iconv" >&6; }
 
10843
 
 
10844
cat >>confdefs.h <<_ACEOF
 
10845
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
10846
_ACEOF
 
10847
 
 
10848
  fi
 
10849
 
 
10850
 
 
10851
  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
10852
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
 
10853
if test "${am_cv_langinfo_codeset+set}" = set; then
 
10854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10855
else
 
10856
  cat >conftest.$ac_ext <<_ACEOF
 
10857
/* confdefs.h.  */
 
10858
_ACEOF
 
10859
cat confdefs.h >>conftest.$ac_ext
 
10860
cat >>conftest.$ac_ext <<_ACEOF
 
10861
/* end confdefs.h.  */
 
10862
#include <langinfo.h>
 
10863
int
 
10864
main ()
 
10865
{
 
10866
char* cs = nl_langinfo(CODESET);
 
10867
  ;
 
10868
  return 0;
 
10869
}
 
10870
_ACEOF
 
10871
rm -f conftest.$ac_objext conftest$ac_exeext
 
10872
if { (ac_try="$ac_link"
 
10873
case "(($ac_try" in
 
10874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10875
  *) ac_try_echo=$ac_try;;
 
10876
esac
 
10877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10878
  (eval "$ac_link") 2>conftest.er1
 
10879
  ac_status=$?
 
10880
  grep -v '^ *+' conftest.er1 >conftest.err
 
10881
  rm -f conftest.er1
 
10882
  cat conftest.err >&5
 
10883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10884
  (exit $ac_status); } &&
 
10885
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10886
  { (case "(($ac_try" in
 
10887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10888
  *) ac_try_echo=$ac_try;;
 
10889
esac
 
10890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10891
  (eval "$ac_try") 2>&5
 
10892
  ac_status=$?
 
10893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10894
  (exit $ac_status); }; } &&
 
10895
         { ac_try='test -s conftest$ac_exeext'
 
10896
  { (case "(($ac_try" in
 
10897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10898
  *) ac_try_echo=$ac_try;;
 
10899
esac
 
10900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10901
  (eval "$ac_try") 2>&5
 
10902
  ac_status=$?
 
10903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10904
  (exit $ac_status); }; }; then
 
10905
  am_cv_langinfo_codeset=yes
 
10906
else
 
10907
  echo "$as_me: failed program was:" >&5
 
10908
sed 's/^/| /' conftest.$ac_ext >&5
 
10909
 
 
10910
        am_cv_langinfo_codeset=no
 
10911
fi
 
10912
 
 
10913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10914
      conftest$ac_exeext conftest.$ac_ext
 
10915
 
 
10916
fi
 
10917
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
10918
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
 
10919
  if test $am_cv_langinfo_codeset = yes; then
 
10920
 
 
10921
cat >>confdefs.h <<\_ACEOF
 
10922
#define HAVE_LANGINFO_CODESET 1
 
10923
_ACEOF
 
10924
 
 
10925
  fi
 
10926
 
 
10927
  if test $ac_cv_header_locale_h = yes; then
 
10928
 
 
10929
  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
10930
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
10931
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
 
10932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10933
else
 
10934
  cat >conftest.$ac_ext <<_ACEOF
 
10935
/* confdefs.h.  */
 
10936
_ACEOF
 
10937
cat confdefs.h >>conftest.$ac_ext
 
10938
cat >>conftest.$ac_ext <<_ACEOF
 
10939
/* end confdefs.h.  */
 
10940
#include <locale.h>
 
10941
int
 
10942
main ()
 
10943
{
 
10944
return LC_MESSAGES
 
10945
  ;
 
10946
  return 0;
 
10947
}
 
10948
_ACEOF
 
10949
rm -f conftest.$ac_objext conftest$ac_exeext
 
10950
if { (ac_try="$ac_link"
 
10951
case "(($ac_try" in
 
10952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10953
  *) ac_try_echo=$ac_try;;
 
10954
esac
 
10955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10956
  (eval "$ac_link") 2>conftest.er1
 
10957
  ac_status=$?
 
10958
  grep -v '^ *+' conftest.er1 >conftest.err
 
10959
  rm -f conftest.er1
 
10960
  cat conftest.err >&5
 
10961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10962
  (exit $ac_status); } &&
 
10963
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10964
  { (case "(($ac_try" in
 
10965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10966
  *) ac_try_echo=$ac_try;;
 
10967
esac
 
10968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10969
  (eval "$ac_try") 2>&5
 
10970
  ac_status=$?
 
10971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10972
  (exit $ac_status); }; } &&
 
10973
         { ac_try='test -s conftest$ac_exeext'
 
10974
  { (case "(($ac_try" in
 
10975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10976
  *) ac_try_echo=$ac_try;;
 
10977
esac
 
10978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10979
  (eval "$ac_try") 2>&5
 
10980
  ac_status=$?
 
10981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10982
  (exit $ac_status); }; }; then
 
10983
  gt_cv_val_LC_MESSAGES=yes
 
10984
else
 
10985
  echo "$as_me: failed program was:" >&5
 
10986
sed 's/^/| /' conftest.$ac_ext >&5
 
10987
 
 
10988
        gt_cv_val_LC_MESSAGES=no
 
10989
fi
 
10990
 
 
10991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10992
      conftest$ac_exeext conftest.$ac_ext
 
10993
fi
 
10994
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
 
10995
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
 
10996
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
10997
 
 
10998
cat >>confdefs.h <<\_ACEOF
 
10999
#define HAVE_LC_MESSAGES 1
 
11000
_ACEOF
 
11001
 
 
11002
  fi
 
11003
 
 
11004
  fi
 
11005
 
 
11006
  if test -n "$INTL_MACOSX_LIBS"; then
 
11007
    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
11008
  fi
 
11009
 
 
11010
                      for ac_prog in bison
 
11011
do
 
11012
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11013
set dummy $ac_prog; ac_word=$2
 
11014
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
11016
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
11017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11018
else
 
11019
  if test -n "$INTLBISON"; then
 
11020
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
11021
else
 
11022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11023
for as_dir in $PATH
 
11024
do
 
11025
  IFS=$as_save_IFS
 
11026
  test -z "$as_dir" && as_dir=.
 
11027
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11028
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11029
    ac_cv_prog_INTLBISON="$ac_prog"
 
11030
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11031
    break 2
 
11032
  fi
 
11033
done
 
11034
done
 
11035
IFS=$as_save_IFS
 
11036
 
 
11037
fi
 
11038
fi
 
11039
INTLBISON=$ac_cv_prog_INTLBISON
 
11040
if test -n "$INTLBISON"; then
 
11041
  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
11042
echo "${ECHO_T}$INTLBISON" >&6; }
 
11043
else
 
11044
  { echo "$as_me:$LINENO: result: no" >&5
 
11045
echo "${ECHO_T}no" >&6; }
 
11046
fi
 
11047
 
 
11048
 
 
11049
  test -n "$INTLBISON" && break
 
11050
done
 
11051
 
 
11052
  if test -z "$INTLBISON"; then
 
11053
    ac_verc_fail=yes
 
11054
  else
 
11055
        { echo "$as_me:$LINENO: checking version of bison" >&5
 
11056
echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
 
11057
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
11058
    case $ac_prog_version in
 
11059
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
11060
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
11061
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
11062
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
11063
    esac
 
11064
    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
11065
echo "${ECHO_T}$ac_prog_version" >&6; }
 
11066
  fi
 
11067
  if test $ac_verc_fail = yes; then
 
11068
    INTLBISON=:
 
11069
  fi
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
11087
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
11088
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
11089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11090
else
 
11091
  gt_save_CPPFLAGS="$CPPFLAGS"
 
11092
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
11093
     gt_save_LIBS="$LIBS"
 
11094
     LIBS="$LIBS -framework CoreFoundation"
 
11095
     cat >conftest.$ac_ext <<_ACEOF
 
11096
/* confdefs.h.  */
 
11097
_ACEOF
 
11098
cat confdefs.h >>conftest.$ac_ext
 
11099
cat >>conftest.$ac_ext <<_ACEOF
 
11100
/* end confdefs.h.  */
 
11101
#include <CFPreferences.h>
 
11102
int
 
11103
main ()
 
11104
{
 
11105
CFPreferencesCopyAppValue(NULL, NULL)
 
11106
  ;
 
11107
  return 0;
 
11108
}
 
11109
_ACEOF
 
11110
rm -f conftest.$ac_objext conftest$ac_exeext
 
11111
if { (ac_try="$ac_link"
 
11112
case "(($ac_try" in
 
11113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11114
  *) ac_try_echo=$ac_try;;
 
11115
esac
 
11116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11117
  (eval "$ac_link") 2>conftest.er1
 
11118
  ac_status=$?
 
11119
  grep -v '^ *+' conftest.er1 >conftest.err
 
11120
  rm -f conftest.er1
 
11121
  cat conftest.err >&5
 
11122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11123
  (exit $ac_status); } &&
 
11124
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
11125
  { (case "(($ac_try" in
 
11126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11127
  *) ac_try_echo=$ac_try;;
 
11128
esac
 
11129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11130
  (eval "$ac_try") 2>&5
 
11131
  ac_status=$?
 
11132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11133
  (exit $ac_status); }; } &&
 
11134
         { ac_try='test -s conftest$ac_exeext'
 
11135
  { (case "(($ac_try" in
 
11136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11137
  *) ac_try_echo=$ac_try;;
 
11138
esac
 
11139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11140
  (eval "$ac_try") 2>&5
 
11141
  ac_status=$?
 
11142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11143
  (exit $ac_status); }; }; then
 
11144
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
11145
else
 
11146
  echo "$as_me: failed program was:" >&5
 
11147
sed 's/^/| /' conftest.$ac_ext >&5
 
11148
 
 
11149
        gt_cv_func_CFPreferencesCopyAppValue=no
 
11150
fi
 
11151
 
 
11152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11153
      conftest$ac_exeext conftest.$ac_ext
 
11154
     CPPFLAGS="$gt_save_CPPFLAGS"
 
11155
     LIBS="$gt_save_LIBS"
 
11156
fi
 
11157
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
11158
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
11159
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
11160
 
 
11161
cat >>confdefs.h <<\_ACEOF
 
11162
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
11163
_ACEOF
 
11164
 
 
11165
  fi
 
11166
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
11167
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
11168
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
11169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11170
else
 
11171
  gt_save_CPPFLAGS="$CPPFLAGS"
 
11172
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
11173
     gt_save_LIBS="$LIBS"
 
11174
     LIBS="$LIBS -framework CoreFoundation"
 
11175
     cat >conftest.$ac_ext <<_ACEOF
 
11176
/* confdefs.h.  */
 
11177
_ACEOF
 
11178
cat confdefs.h >>conftest.$ac_ext
 
11179
cat >>conftest.$ac_ext <<_ACEOF
 
11180
/* end confdefs.h.  */
 
11181
#include <CFLocale.h>
 
11182
int
 
11183
main ()
 
11184
{
 
11185
CFLocaleCopyCurrent();
 
11186
  ;
 
11187
  return 0;
 
11188
}
 
11189
_ACEOF
 
11190
rm -f conftest.$ac_objext conftest$ac_exeext
 
11191
if { (ac_try="$ac_link"
 
11192
case "(($ac_try" in
 
11193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11194
  *) ac_try_echo=$ac_try;;
 
11195
esac
 
11196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11197
  (eval "$ac_link") 2>conftest.er1
 
11198
  ac_status=$?
 
11199
  grep -v '^ *+' conftest.er1 >conftest.err
 
11200
  rm -f conftest.er1
 
11201
  cat conftest.err >&5
 
11202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11203
  (exit $ac_status); } &&
 
11204
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
11205
  { (case "(($ac_try" in
 
11206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11207
  *) ac_try_echo=$ac_try;;
 
11208
esac
 
11209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11210
  (eval "$ac_try") 2>&5
 
11211
  ac_status=$?
 
11212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11213
  (exit $ac_status); }; } &&
 
11214
         { ac_try='test -s conftest$ac_exeext'
 
11215
  { (case "(($ac_try" in
 
11216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11217
  *) ac_try_echo=$ac_try;;
 
11218
esac
 
11219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11220
  (eval "$ac_try") 2>&5
 
11221
  ac_status=$?
 
11222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11223
  (exit $ac_status); }; }; then
 
11224
  gt_cv_func_CFLocaleCopyCurrent=yes
 
11225
else
 
11226
  echo "$as_me: failed program was:" >&5
 
11227
sed 's/^/| /' conftest.$ac_ext >&5
 
11228
 
 
11229
        gt_cv_func_CFLocaleCopyCurrent=no
 
11230
fi
 
11231
 
 
11232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11233
      conftest$ac_exeext conftest.$ac_ext
 
11234
     CPPFLAGS="$gt_save_CPPFLAGS"
 
11235
     LIBS="$gt_save_LIBS"
 
11236
fi
 
11237
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
11238
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
11239
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
11240
 
 
11241
cat >>confdefs.h <<\_ACEOF
 
11242
#define HAVE_CFLOCALECOPYCURRENT 1
 
11243
_ACEOF
 
11244
 
 
11245
  fi
 
11246
  INTL_MACOSX_LIBS=
 
11247
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
11248
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
11249
  fi
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
11255
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
11256
    # Check whether --enable-nls was given.
 
11257
if test "${enable_nls+set}" = set; then
 
11258
  enableval=$enable_nls; USE_NLS=$enableval
 
11259
else
 
11260
  USE_NLS=yes
 
11261
fi
 
11262
 
 
11263
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
11264
echo "${ECHO_T}$USE_NLS" >&6; }
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
    BUILD_INCLUDED_LIBINTL=no
 
11270
    USE_INCLUDED_LIBINTL=no
 
11271
 
 
11272
  LIBINTL=
 
11273
  LTLIBINTL=
 
11274
  POSUB=
 
11275
 
 
11276
    if test "$USE_NLS" = "yes"; then
 
11277
    gt_use_preinstalled_gnugettext=no
 
11278
 
 
11279
      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
11280
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
 
11281
 
 
11282
# Check whether --with-included-gettext was given.
 
11283
if test "${with_included_gettext+set}" = set; then
 
11284
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
 
11285
else
 
11286
  nls_cv_force_use_gnu_gettext=no
 
11287
fi
 
11288
 
 
11289
      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
11290
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
 
11291
 
 
11292
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
11293
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
11294
 
 
11295
 
 
11296
 
 
11297
 
 
11298
 
 
11299
 
 
11300
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
11301
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
 
11302
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
11303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11304
else
 
11305
  cat >conftest.$ac_ext <<_ACEOF
 
11306
/* confdefs.h.  */
 
11307
_ACEOF
 
11308
cat confdefs.h >>conftest.$ac_ext
 
11309
cat >>conftest.$ac_ext <<_ACEOF
 
11310
/* end confdefs.h.  */
 
11311
#include <libintl.h>
 
11312
extern int _nl_msg_cat_cntr;
 
11313
extern int *_nl_domain_bindings;
 
11314
int
 
11315
main ()
 
11316
{
 
11317
bindtextdomain ("", "");
 
11318
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
11319
  ;
 
11320
  return 0;
 
11321
}
 
11322
_ACEOF
 
11323
rm -f conftest.$ac_objext conftest$ac_exeext
 
11324
if { (ac_try="$ac_link"
 
11325
case "(($ac_try" in
 
11326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11327
  *) ac_try_echo=$ac_try;;
 
11328
esac
 
11329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11330
  (eval "$ac_link") 2>conftest.er1
 
11331
  ac_status=$?
 
11332
  grep -v '^ *+' conftest.er1 >conftest.err
 
11333
  rm -f conftest.er1
 
11334
  cat conftest.err >&5
 
11335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11336
  (exit $ac_status); } &&
 
11337
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
11338
  { (case "(($ac_try" in
 
11339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11340
  *) ac_try_echo=$ac_try;;
 
11341
esac
 
11342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11343
  (eval "$ac_try") 2>&5
 
11344
  ac_status=$?
 
11345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11346
  (exit $ac_status); }; } &&
 
11347
         { ac_try='test -s conftest$ac_exeext'
 
11348
  { (case "(($ac_try" in
 
11349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11350
  *) ac_try_echo=$ac_try;;
 
11351
esac
 
11352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11353
  (eval "$ac_try") 2>&5
 
11354
  ac_status=$?
 
11355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11356
  (exit $ac_status); }; }; then
 
11357
  gt_cv_func_gnugettext1_libc=yes
 
11358
else
 
11359
  echo "$as_me: failed program was:" >&5
 
11360
sed 's/^/| /' conftest.$ac_ext >&5
 
11361
 
 
11362
        gt_cv_func_gnugettext1_libc=no
 
11363
fi
 
11364
 
 
11365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11366
      conftest$ac_exeext conftest.$ac_ext
 
11367
fi
 
11368
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
11369
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
 
11370
 
 
11371
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
11372
 
 
11373
 
 
11374
 
 
11375
    use_additional=yes
 
11376
 
 
11377
  acl_save_prefix="$prefix"
 
11378
  prefix="$acl_final_prefix"
 
11379
  acl_save_exec_prefix="$exec_prefix"
 
11380
  exec_prefix="$acl_final_exec_prefix"
 
11381
 
 
11382
    eval additional_includedir=\"$includedir\"
 
11383
    eval additional_libdir=\"$libdir\"
 
11384
 
 
11385
  exec_prefix="$acl_save_exec_prefix"
 
11386
  prefix="$acl_save_prefix"
 
11387
 
 
11388
 
 
11389
# Check whether --with-libintl-prefix was given.
 
11390
if test "${with_libintl_prefix+set}" = set; then
 
11391
  withval=$with_libintl_prefix;
 
11392
    if test "X$withval" = "Xno"; then
 
11393
      use_additional=no
 
11394
    else
 
11395
      if test "X$withval" = "X"; then
 
11396
 
 
11397
  acl_save_prefix="$prefix"
 
11398
  prefix="$acl_final_prefix"
 
11399
  acl_save_exec_prefix="$exec_prefix"
 
11400
  exec_prefix="$acl_final_exec_prefix"
 
11401
 
 
11402
          eval additional_includedir=\"$includedir\"
 
11403
          eval additional_libdir=\"$libdir\"
 
11404
 
 
11405
  exec_prefix="$acl_save_exec_prefix"
 
11406
  prefix="$acl_save_prefix"
 
11407
 
 
11408
      else
 
11409
        additional_includedir="$withval/include"
 
11410
        additional_libdir="$withval/lib"
 
11411
      fi
 
11412
    fi
 
11413
 
 
11414
fi
 
11415
 
 
11416
      LIBINTL=
 
11417
  LTLIBINTL=
 
11418
  INCINTL=
 
11419
  rpathdirs=
 
11420
  ltrpathdirs=
 
11421
  names_already_handled=
 
11422
  names_next_round='intl '
 
11423
  while test -n "$names_next_round"; do
 
11424
    names_this_round="$names_next_round"
 
11425
    names_next_round=
 
11426
    for name in $names_this_round; do
 
11427
      already_handled=
 
11428
      for n in $names_already_handled; do
 
11429
        if test "$n" = "$name"; then
 
11430
          already_handled=yes
 
11431
          break
 
11432
        fi
 
11433
      done
 
11434
      if test -z "$already_handled"; then
 
11435
        names_already_handled="$names_already_handled $name"
 
11436
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
11437
        eval value=\"\$HAVE_LIB$uppername\"
 
11438
        if test -n "$value"; then
 
11439
          if test "$value" = yes; then
 
11440
            eval value=\"\$LIB$uppername\"
 
11441
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
11442
            eval value=\"\$LTLIB$uppername\"
 
11443
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
11444
          else
 
11445
                                    :
 
11446
          fi
 
11447
        else
 
11448
                              found_dir=
 
11449
          found_la=
 
11450
          found_so=
 
11451
          found_a=
 
11452
          if test $use_additional = yes; then
 
11453
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
11454
              found_dir="$additional_libdir"
 
11455
              found_so="$additional_libdir/lib$name.$shlibext"
 
11456
              if test -f "$additional_libdir/lib$name.la"; then
 
11457
                found_la="$additional_libdir/lib$name.la"
 
11458
              fi
 
11459
            else
 
11460
              if test -f "$additional_libdir/lib$name.$libext"; then
 
11461
                found_dir="$additional_libdir"
 
11462
                found_a="$additional_libdir/lib$name.$libext"
 
11463
                if test -f "$additional_libdir/lib$name.la"; then
 
11464
                  found_la="$additional_libdir/lib$name.la"
 
11465
                fi
 
11466
              fi
 
11467
            fi
 
11468
          fi
 
11469
          if test "X$found_dir" = "X"; then
 
11470
            for x in $LDFLAGS $LTLIBINTL; do
 
11471
 
 
11472
  acl_save_prefix="$prefix"
 
11473
  prefix="$acl_final_prefix"
 
11474
  acl_save_exec_prefix="$exec_prefix"
 
11475
  exec_prefix="$acl_final_exec_prefix"
 
11476
  eval x=\"$x\"
 
11477
  exec_prefix="$acl_save_exec_prefix"
 
11478
  prefix="$acl_save_prefix"
 
11479
 
 
11480
              case "$x" in
 
11481
                -L*)
 
11482
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
11483
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
11484
                    found_dir="$dir"
 
11485
                    found_so="$dir/lib$name.$shlibext"
 
11486
                    if test -f "$dir/lib$name.la"; then
 
11487
                      found_la="$dir/lib$name.la"
 
11488
                    fi
 
11489
                  else
 
11490
                    if test -f "$dir/lib$name.$libext"; then
 
11491
                      found_dir="$dir"
 
11492
                      found_a="$dir/lib$name.$libext"
 
11493
                      if test -f "$dir/lib$name.la"; then
 
11494
                        found_la="$dir/lib$name.la"
 
11495
                      fi
 
11496
                    fi
 
11497
                  fi
 
11498
                  ;;
 
11499
              esac
 
11500
              if test "X$found_dir" != "X"; then
 
11501
                break
 
11502
              fi
 
11503
            done
 
11504
          fi
 
11505
          if test "X$found_dir" != "X"; then
 
11506
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
11507
            if test "X$found_so" != "X"; then
 
11508
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
11509
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
11510
              else
 
11511
                                                                                haveit=
 
11512
                for x in $ltrpathdirs; do
 
11513
                  if test "X$x" = "X$found_dir"; then
 
11514
                    haveit=yes
 
11515
                    break
 
11516
                  fi
 
11517
                done
 
11518
                if test -z "$haveit"; then
 
11519
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
11520
                fi
 
11521
                                if test "$hardcode_direct" = yes; then
 
11522
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
11523
                else
 
11524
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
11525
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
11526
                                                            haveit=
 
11527
                    for x in $rpathdirs; do
 
11528
                      if test "X$x" = "X$found_dir"; then
 
11529
                        haveit=yes
 
11530
                        break
 
11531
                      fi
 
11532
                    done
 
11533
                    if test -z "$haveit"; then
 
11534
                      rpathdirs="$rpathdirs $found_dir"
 
11535
                    fi
 
11536
                  else
 
11537
                                                                                haveit=
 
11538
                    for x in $LDFLAGS $LIBINTL; do
 
11539
 
 
11540
  acl_save_prefix="$prefix"
 
11541
  prefix="$acl_final_prefix"
 
11542
  acl_save_exec_prefix="$exec_prefix"
 
11543
  exec_prefix="$acl_final_exec_prefix"
 
11544
  eval x=\"$x\"
 
11545
  exec_prefix="$acl_save_exec_prefix"
 
11546
  prefix="$acl_save_prefix"
 
11547
 
 
11548
                      if test "X$x" = "X-L$found_dir"; then
 
11549
                        haveit=yes
 
11550
                        break
 
11551
                      fi
 
11552
                    done
 
11553
                    if test -z "$haveit"; then
 
11554
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
11555
                    fi
 
11556
                    if test "$hardcode_minus_L" != no; then
 
11557
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
11558
                    else
 
11559
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
11560
                    fi
 
11561
                  fi
 
11562
                fi
 
11563
              fi
 
11564
            else
 
11565
              if test "X$found_a" != "X"; then
 
11566
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
11567
              else
 
11568
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
11569
              fi
 
11570
            fi
 
11571
                        additional_includedir=
 
11572
            case "$found_dir" in
 
11573
              */lib | */lib/)
 
11574
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
11575
                additional_includedir="$basedir/include"
 
11576
                ;;
 
11577
            esac
 
11578
            if test "X$additional_includedir" != "X"; then
 
11579
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
11580
                haveit=
 
11581
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
11582
                  if test -n "$GCC"; then
 
11583
                    case $host_os in
 
11584
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11585
                    esac
 
11586
                  fi
 
11587
                fi
 
11588
                if test -z "$haveit"; then
 
11589
                  for x in $CPPFLAGS $INCINTL; do
 
11590
 
 
11591
  acl_save_prefix="$prefix"
 
11592
  prefix="$acl_final_prefix"
 
11593
  acl_save_exec_prefix="$exec_prefix"
 
11594
  exec_prefix="$acl_final_exec_prefix"
 
11595
  eval x=\"$x\"
 
11596
  exec_prefix="$acl_save_exec_prefix"
 
11597
  prefix="$acl_save_prefix"
 
11598
 
 
11599
                    if test "X$x" = "X-I$additional_includedir"; then
 
11600
                      haveit=yes
 
11601
                      break
 
11602
                    fi
 
11603
                  done
 
11604
                  if test -z "$haveit"; then
 
11605
                    if test -d "$additional_includedir"; then
 
11606
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
11607
                    fi
 
11608
                  fi
 
11609
                fi
 
11610
              fi
 
11611
            fi
 
11612
                        if test -n "$found_la"; then
 
11613
                                                        save_libdir="$libdir"
 
11614
              case "$found_la" in
 
11615
                */* | *\\*) . "$found_la" ;;
 
11616
                *) . "./$found_la" ;;
 
11617
              esac
 
11618
              libdir="$save_libdir"
 
11619
                            for dep in $dependency_libs; do
 
11620
                case "$dep" in
 
11621
                  -L*)
 
11622
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
11623
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
11624
                      haveit=
 
11625
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
11626
                        if test -n "$GCC"; then
 
11627
                          case $host_os in
 
11628
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11629
                          esac
 
11630
                        fi
 
11631
                      fi
 
11632
                      if test -z "$haveit"; then
 
11633
                        haveit=
 
11634
                        for x in $LDFLAGS $LIBINTL; do
 
11635
 
 
11636
  acl_save_prefix="$prefix"
 
11637
  prefix="$acl_final_prefix"
 
11638
  acl_save_exec_prefix="$exec_prefix"
 
11639
  exec_prefix="$acl_final_exec_prefix"
 
11640
  eval x=\"$x\"
 
11641
  exec_prefix="$acl_save_exec_prefix"
 
11642
  prefix="$acl_save_prefix"
 
11643
 
 
11644
                          if test "X$x" = "X-L$additional_libdir"; then
 
11645
                            haveit=yes
 
11646
                            break
 
11647
                          fi
 
11648
                        done
 
11649
                        if test -z "$haveit"; then
 
11650
                          if test -d "$additional_libdir"; then
 
11651
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
11652
                          fi
 
11653
                        fi
 
11654
                        haveit=
 
11655
                        for x in $LDFLAGS $LTLIBINTL; do
 
11656
 
 
11657
  acl_save_prefix="$prefix"
 
11658
  prefix="$acl_final_prefix"
 
11659
  acl_save_exec_prefix="$exec_prefix"
 
11660
  exec_prefix="$acl_final_exec_prefix"
 
11661
  eval x=\"$x\"
 
11662
  exec_prefix="$acl_save_exec_prefix"
 
11663
  prefix="$acl_save_prefix"
 
11664
 
 
11665
                          if test "X$x" = "X-L$additional_libdir"; then
 
11666
                            haveit=yes
 
11667
                            break
 
11668
                          fi
 
11669
                        done
 
11670
                        if test -z "$haveit"; then
 
11671
                          if test -d "$additional_libdir"; then
 
11672
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
11673
                          fi
 
11674
                        fi
 
11675
                      fi
 
11676
                    fi
 
11677
                    ;;
 
11678
                  -R*)
 
11679
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
11680
                    if test "$enable_rpath" != no; then
 
11681
                                                                  haveit=
 
11682
                      for x in $rpathdirs; do
 
11683
                        if test "X$x" = "X$dir"; then
 
11684
                          haveit=yes
 
11685
                          break
 
11686
                        fi
 
11687
                      done
 
11688
                      if test -z "$haveit"; then
 
11689
                        rpathdirs="$rpathdirs $dir"
 
11690
                      fi
 
11691
                                                                  haveit=
 
11692
                      for x in $ltrpathdirs; do
 
11693
                        if test "X$x" = "X$dir"; then
 
11694
                          haveit=yes
 
11695
                          break
 
11696
                        fi
 
11697
                      done
 
11698
                      if test -z "$haveit"; then
 
11699
                        ltrpathdirs="$ltrpathdirs $dir"
 
11700
                      fi
 
11701
                    fi
 
11702
                    ;;
 
11703
                  -l*)
 
11704
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
11705
                    ;;
 
11706
                  *.la)
 
11707
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
11708
                    ;;
 
11709
                  *)
 
11710
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
11711
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
11712
                    ;;
 
11713
                esac
 
11714
              done
 
11715
            fi
 
11716
          else
 
11717
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
11718
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
11719
          fi
 
11720
        fi
 
11721
      fi
 
11722
    done
 
11723
  done
 
11724
  if test "X$rpathdirs" != "X"; then
 
11725
    if test -n "$hardcode_libdir_separator"; then
 
11726
                        alldirs=
 
11727
      for found_dir in $rpathdirs; do
 
11728
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
11729
      done
 
11730
            acl_save_libdir="$libdir"
 
11731
      libdir="$alldirs"
 
11732
      eval flag=\"$hardcode_libdir_flag_spec\"
 
11733
      libdir="$acl_save_libdir"
 
11734
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
11735
    else
 
11736
            for found_dir in $rpathdirs; do
 
11737
        acl_save_libdir="$libdir"
 
11738
        libdir="$found_dir"
 
11739
        eval flag=\"$hardcode_libdir_flag_spec\"
 
11740
        libdir="$acl_save_libdir"
 
11741
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
11742
      done
 
11743
    fi
 
11744
  fi
 
11745
  if test "X$ltrpathdirs" != "X"; then
 
11746
            for found_dir in $ltrpathdirs; do
 
11747
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
11748
    done
 
11749
  fi
 
11750
 
 
11751
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
11752
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
 
11753
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
11754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11755
else
 
11756
  gt_save_CPPFLAGS="$CPPFLAGS"
 
11757
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
11758
            gt_save_LIBS="$LIBS"
 
11759
            LIBS="$LIBS $LIBINTL"
 
11760
                        cat >conftest.$ac_ext <<_ACEOF
 
11761
/* confdefs.h.  */
 
11762
_ACEOF
 
11763
cat confdefs.h >>conftest.$ac_ext
 
11764
cat >>conftest.$ac_ext <<_ACEOF
 
11765
/* end confdefs.h.  */
 
11766
#include <libintl.h>
 
11767
extern int _nl_msg_cat_cntr;
 
11768
extern
 
11769
#ifdef __cplusplus
 
11770
"C"
 
11771
#endif
 
11772
const char *_nl_expand_alias (const char *);
 
11773
int
 
11774
main ()
 
11775
{
 
11776
bindtextdomain ("", "");
 
11777
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
11778
  ;
 
11779
  return 0;
 
11780
}
 
11781
_ACEOF
 
11782
rm -f conftest.$ac_objext conftest$ac_exeext
 
11783
if { (ac_try="$ac_link"
 
11784
case "(($ac_try" in
 
11785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11786
  *) ac_try_echo=$ac_try;;
 
11787
esac
 
11788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11789
  (eval "$ac_link") 2>conftest.er1
 
11790
  ac_status=$?
 
11791
  grep -v '^ *+' conftest.er1 >conftest.err
 
11792
  rm -f conftest.er1
 
11793
  cat conftest.err >&5
 
11794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11795
  (exit $ac_status); } &&
 
11796
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
11797
  { (case "(($ac_try" in
 
11798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11799
  *) ac_try_echo=$ac_try;;
 
11800
esac
 
11801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11802
  (eval "$ac_try") 2>&5
 
11803
  ac_status=$?
 
11804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11805
  (exit $ac_status); }; } &&
 
11806
         { ac_try='test -s conftest$ac_exeext'
 
11807
  { (case "(($ac_try" in
 
11808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11809
  *) ac_try_echo=$ac_try;;
 
11810
esac
 
11811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11812
  (eval "$ac_try") 2>&5
 
11813
  ac_status=$?
 
11814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11815
  (exit $ac_status); }; }; then
 
11816
  gt_cv_func_gnugettext1_libintl=yes
 
11817
else
 
11818
  echo "$as_me: failed program was:" >&5
 
11819
sed 's/^/| /' conftest.$ac_ext >&5
 
11820
 
 
11821
        gt_cv_func_gnugettext1_libintl=no
 
11822
fi
 
11823
 
 
11824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11825
      conftest$ac_exeext conftest.$ac_ext
 
11826
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
11827
              LIBS="$LIBS $LIBICONV"
 
11828
              cat >conftest.$ac_ext <<_ACEOF
 
11829
/* confdefs.h.  */
 
11830
_ACEOF
 
11831
cat confdefs.h >>conftest.$ac_ext
 
11832
cat >>conftest.$ac_ext <<_ACEOF
 
11833
/* end confdefs.h.  */
 
11834
#include <libintl.h>
 
11835
extern int _nl_msg_cat_cntr;
 
11836
extern
 
11837
#ifdef __cplusplus
 
11838
"C"
 
11839
#endif
 
11840
const char *_nl_expand_alias (const char *);
 
11841
int
 
11842
main ()
 
11843
{
 
11844
bindtextdomain ("", "");
 
11845
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
11846
  ;
 
11847
  return 0;
 
11848
}
 
11849
_ACEOF
 
11850
rm -f conftest.$ac_objext conftest$ac_exeext
 
11851
if { (ac_try="$ac_link"
 
11852
case "(($ac_try" in
 
11853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11854
  *) ac_try_echo=$ac_try;;
 
11855
esac
 
11856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11857
  (eval "$ac_link") 2>conftest.er1
 
11858
  ac_status=$?
 
11859
  grep -v '^ *+' conftest.er1 >conftest.err
 
11860
  rm -f conftest.er1
 
11861
  cat conftest.err >&5
 
11862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11863
  (exit $ac_status); } &&
 
11864
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
11865
  { (case "(($ac_try" in
 
11866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11867
  *) ac_try_echo=$ac_try;;
 
11868
esac
 
11869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11870
  (eval "$ac_try") 2>&5
 
11871
  ac_status=$?
 
11872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11873
  (exit $ac_status); }; } &&
 
11874
         { ac_try='test -s conftest$ac_exeext'
 
11875
  { (case "(($ac_try" in
 
11876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11877
  *) ac_try_echo=$ac_try;;
 
11878
esac
 
11879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11880
  (eval "$ac_try") 2>&5
 
11881
  ac_status=$?
 
11882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11883
  (exit $ac_status); }; }; then
 
11884
  LIBINTL="$LIBINTL $LIBICONV"
 
11885
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
11886
                gt_cv_func_gnugettext1_libintl=yes
 
11887
 
 
11888
else
 
11889
  echo "$as_me: failed program was:" >&5
 
11890
sed 's/^/| /' conftest.$ac_ext >&5
 
11891
 
 
11892
 
 
11893
fi
 
11894
 
 
11895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11896
      conftest$ac_exeext conftest.$ac_ext
 
11897
            fi
 
11898
            CPPFLAGS="$gt_save_CPPFLAGS"
 
11899
            LIBS="$gt_save_LIBS"
 
11900
fi
 
11901
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
11902
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
 
11903
        fi
 
11904
 
 
11905
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
11906
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
11907
                && test "$PACKAGE" != gettext-runtime \
 
11908
                && test "$PACKAGE" != gettext-tools; }; then
 
11909
          gt_use_preinstalled_gnugettext=yes
 
11910
        else
 
11911
                    LIBINTL=
 
11912
          LTLIBINTL=
 
11913
          INCINTL=
 
11914
        fi
 
11915
 
 
11916
 
 
11917
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
11918
                              nls_cv_use_gnu_gettext=yes
 
11919
        fi
 
11920
      fi
 
11921
 
 
11922
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
11923
                BUILD_INCLUDED_LIBINTL=yes
 
11924
        USE_INCLUDED_LIBINTL=yes
 
11925
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
 
11926
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
 
11927
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
11928
      fi
 
11929
 
 
11930
      CATOBJEXT=
 
11931
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
11932
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
11933
                CATOBJEXT=.gmo
 
11934
      fi
 
11935
 
 
11936
 
 
11937
    if test -n "$INTL_MACOSX_LIBS"; then
 
11938
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
11939
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
11940
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
11941
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
11942
      fi
 
11943
    fi
 
11944
 
 
11945
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
11946
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
11947
 
 
11948
cat >>confdefs.h <<\_ACEOF
 
11949
#define ENABLE_NLS 1
 
11950
_ACEOF
 
11951
 
 
11952
    else
 
11953
      USE_NLS=no
 
11954
    fi
 
11955
  fi
 
11956
 
 
11957
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
11958
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
 
11959
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
11960
echo "${ECHO_T}$USE_NLS" >&6; }
 
11961
  if test "$USE_NLS" = "yes"; then
 
11962
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
11963
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
 
11964
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
11965
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
11966
        gt_source="external libintl"
 
11967
      else
 
11968
        gt_source="libc"
 
11969
      fi
 
11970
    else
 
11971
      gt_source="included intl directory"
 
11972
    fi
 
11973
    { echo "$as_me:$LINENO: result: $gt_source" >&5
 
11974
echo "${ECHO_T}$gt_source" >&6; }
 
11975
  fi
 
11976
 
 
11977
  if test "$USE_NLS" = "yes"; then
 
11978
 
 
11979
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
11980
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
11981
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
11982
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
 
11983
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
11984
echo "${ECHO_T}$LIBINTL" >&6; }
 
11985
 
 
11986
  for element in $INCINTL; do
 
11987
    haveit=
 
11988
    for x in $CPPFLAGS; do
 
11989
 
 
11990
  acl_save_prefix="$prefix"
 
11991
  prefix="$acl_final_prefix"
 
11992
  acl_save_exec_prefix="$exec_prefix"
 
11993
  exec_prefix="$acl_final_exec_prefix"
 
11994
  eval x=\"$x\"
 
11995
  exec_prefix="$acl_save_exec_prefix"
 
11996
  prefix="$acl_save_prefix"
 
11997
 
 
11998
      if test "X$x" = "X$element"; then
 
11999
        haveit=yes
 
12000
        break
 
12001
      fi
 
12002
    done
 
12003
    if test -z "$haveit"; then
 
12004
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12005
    fi
 
12006
  done
 
12007
 
 
12008
      fi
 
12009
 
 
12010
 
 
12011
cat >>confdefs.h <<\_ACEOF
 
12012
#define HAVE_GETTEXT 1
 
12013
_ACEOF
 
12014
 
 
12015
 
 
12016
cat >>confdefs.h <<\_ACEOF
 
12017
#define HAVE_DCGETTEXT 1
 
12018
_ACEOF
 
12019
 
 
12020
    fi
 
12021
 
 
12022
        POSUB=po
 
12023
  fi
 
12024
 
 
12025
 
 
12026
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
12027
      BUILD_INCLUDED_LIBINTL=yes
 
12028
    fi
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
        nls_cv_header_intl=
 
12035
    nls_cv_header_libgt=
 
12036
 
 
12037
        DATADIRNAME=share
 
12038
 
 
12039
 
 
12040
        INSTOBJEXT=.mo
 
12041
 
 
12042
 
 
12043
        GENCAT=gencat
 
12044
 
 
12045
 
 
12046
        INTLOBJS=
 
12047
    if test "$USE_INCLUDED_LIBINTL" = yes; then
 
12048
      INTLOBJS="\$(GETTOBJS)"
 
12049
    fi
 
12050
 
 
12051
 
 
12052
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
12053
 
 
12054
 
 
12055
 
 
12056
    INTLLIBS="$LIBINTL"
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
 
 
12063
GETTEXTDIR="$datadir/locale"
 
12064
 
 
12065
 
 
12066
ac_ext=c
 
12067
ac_cpp='$CPP $CPPFLAGS'
 
12068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12071
if test -n "$ac_tool_prefix"; then
 
12072
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
12073
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
12074
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12076
if test "${ac_cv_prog_CC+set}" = set; then
 
12077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12078
else
 
12079
  if test -n "$CC"; then
 
12080
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
12081
else
 
12082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12083
for as_dir in $PATH
 
12084
do
 
12085
  IFS=$as_save_IFS
 
12086
  test -z "$as_dir" && as_dir=.
 
12087
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12088
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12089
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
12090
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12091
    break 2
 
12092
  fi
 
12093
done
 
12094
done
 
12095
IFS=$as_save_IFS
 
12096
 
 
12097
fi
 
12098
fi
 
12099
CC=$ac_cv_prog_CC
 
12100
if test -n "$CC"; then
 
12101
  { echo "$as_me:$LINENO: result: $CC" >&5
 
12102
echo "${ECHO_T}$CC" >&6; }
 
12103
else
 
12104
  { echo "$as_me:$LINENO: result: no" >&5
 
12105
echo "${ECHO_T}no" >&6; }
 
12106
fi
 
12107
 
 
12108
 
 
12109
fi
 
12110
if test -z "$ac_cv_prog_CC"; then
 
12111
  ac_ct_CC=$CC
 
12112
  # Extract the first word of "gcc", so it can be a program name with args.
 
12113
set dummy gcc; ac_word=$2
 
12114
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12116
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
12117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12118
else
 
12119
  if test -n "$ac_ct_CC"; then
 
12120
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
12121
else
 
12122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12123
for as_dir in $PATH
 
12124
do
 
12125
  IFS=$as_save_IFS
 
12126
  test -z "$as_dir" && as_dir=.
 
12127
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12128
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12129
    ac_cv_prog_ac_ct_CC="gcc"
 
12130
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12131
    break 2
 
12132
  fi
 
12133
done
 
12134
done
 
12135
IFS=$as_save_IFS
 
12136
 
 
12137
fi
 
12138
fi
 
12139
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
12140
if test -n "$ac_ct_CC"; then
 
12141
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
12142
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
12143
else
 
12144
  { echo "$as_me:$LINENO: result: no" >&5
 
12145
echo "${ECHO_T}no" >&6; }
 
12146
fi
 
12147
 
 
12148
  if test "x$ac_ct_CC" = x; then
 
12149
    CC=""
 
12150
  else
 
12151
    case $cross_compiling:$ac_tool_warned in
 
12152
yes:)
 
12153
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
12154
whose name does not start with the host triplet.  If you think this
 
12155
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
12156
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
12157
whose name does not start with the host triplet.  If you think this
 
12158
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
12159
ac_tool_warned=yes ;;
 
12160
esac
 
12161
    CC=$ac_ct_CC
 
12162
  fi
 
12163
else
 
12164
  CC="$ac_cv_prog_CC"
 
12165
fi
 
12166
 
 
12167
if test -z "$CC"; then
 
12168
          if test -n "$ac_tool_prefix"; then
 
12169
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
12170
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
12171
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12173
if test "${ac_cv_prog_CC+set}" = set; then
 
12174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12175
else
 
12176
  if test -n "$CC"; then
 
12177
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
12178
else
 
12179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12180
for as_dir in $PATH
 
12181
do
 
12182
  IFS=$as_save_IFS
 
12183
  test -z "$as_dir" && as_dir=.
 
12184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12186
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
12187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12188
    break 2
 
12189
  fi
 
12190
done
 
12191
done
 
12192
IFS=$as_save_IFS
 
12193
 
 
12194
fi
 
12195
fi
 
12196
CC=$ac_cv_prog_CC
 
12197
if test -n "$CC"; then
 
12198
  { echo "$as_me:$LINENO: result: $CC" >&5
 
12199
echo "${ECHO_T}$CC" >&6; }
 
12200
else
 
12201
  { echo "$as_me:$LINENO: result: no" >&5
 
12202
echo "${ECHO_T}no" >&6; }
 
12203
fi
 
12204
 
 
12205
 
 
12206
  fi
 
12207
fi
 
12208
if test -z "$CC"; then
 
12209
  # Extract the first word of "cc", so it can be a program name with args.
 
12210
set dummy cc; ac_word=$2
 
12211
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12212
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12213
if test "${ac_cv_prog_CC+set}" = set; then
 
12214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12215
else
 
12216
  if test -n "$CC"; then
 
12217
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
12218
else
 
12219
  ac_prog_rejected=no
 
12220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12221
for as_dir in $PATH
 
12222
do
 
12223
  IFS=$as_save_IFS
 
12224
  test -z "$as_dir" && as_dir=.
 
12225
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12226
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12227
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
12228
       ac_prog_rejected=yes
 
12229
       continue
 
12230
     fi
 
12231
    ac_cv_prog_CC="cc"
 
12232
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12233
    break 2
 
12234
  fi
 
12235
done
 
12236
done
 
12237
IFS=$as_save_IFS
 
12238
 
 
12239
if test $ac_prog_rejected = yes; then
 
12240
  # We found a bogon in the path, so make sure we never use it.
 
12241
  set dummy $ac_cv_prog_CC
 
12242
  shift
 
12243
  if test $# != 0; then
 
12244
    # We chose a different compiler from the bogus one.
 
12245
    # However, it has the same basename, so the bogon will be chosen
 
12246
    # first if we set CC to just the basename; use the full file name.
 
12247
    shift
 
12248
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
12249
  fi
 
12250
fi
 
12251
fi
 
12252
fi
 
12253
CC=$ac_cv_prog_CC
 
12254
if test -n "$CC"; then
 
12255
  { echo "$as_me:$LINENO: result: $CC" >&5
 
12256
echo "${ECHO_T}$CC" >&6; }
 
12257
else
 
12258
  { echo "$as_me:$LINENO: result: no" >&5
 
12259
echo "${ECHO_T}no" >&6; }
 
12260
fi
 
12261
 
 
12262
 
 
12263
fi
 
12264
if test -z "$CC"; then
 
12265
  if test -n "$ac_tool_prefix"; then
 
12266
  for ac_prog in cl.exe
 
12267
  do
 
12268
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
12269
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
12270
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12271
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12272
if test "${ac_cv_prog_CC+set}" = set; then
 
12273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12274
else
 
12275
  if test -n "$CC"; then
 
12276
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
12277
else
 
12278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12279
for as_dir in $PATH
 
12280
do
 
12281
  IFS=$as_save_IFS
 
12282
  test -z "$as_dir" && as_dir=.
 
12283
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12284
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12285
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
12286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12287
    break 2
 
12288
  fi
 
12289
done
 
12290
done
 
12291
IFS=$as_save_IFS
 
12292
 
 
12293
fi
 
12294
fi
 
12295
CC=$ac_cv_prog_CC
 
12296
if test -n "$CC"; then
 
12297
  { echo "$as_me:$LINENO: result: $CC" >&5
 
12298
echo "${ECHO_T}$CC" >&6; }
 
12299
else
 
12300
  { echo "$as_me:$LINENO: result: no" >&5
 
12301
echo "${ECHO_T}no" >&6; }
 
12302
fi
 
12303
 
 
12304
 
 
12305
    test -n "$CC" && break
 
12306
  done
 
12307
fi
 
12308
if test -z "$CC"; then
 
12309
  ac_ct_CC=$CC
 
12310
  for ac_prog in cl.exe
 
12311
do
 
12312
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12313
set dummy $ac_prog; ac_word=$2
 
12314
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12316
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
12317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12318
else
 
12319
  if test -n "$ac_ct_CC"; then
 
12320
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
12321
else
 
12322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12323
for as_dir in $PATH
 
12324
do
 
12325
  IFS=$as_save_IFS
 
12326
  test -z "$as_dir" && as_dir=.
 
12327
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12328
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12329
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
12330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12331
    break 2
 
12332
  fi
 
12333
done
 
12334
done
 
12335
IFS=$as_save_IFS
 
12336
 
 
12337
fi
 
12338
fi
 
12339
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
12340
if test -n "$ac_ct_CC"; then
 
12341
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
12342
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
12343
else
 
12344
  { echo "$as_me:$LINENO: result: no" >&5
 
12345
echo "${ECHO_T}no" >&6; }
 
12346
fi
 
12347
 
 
12348
 
 
12349
  test -n "$ac_ct_CC" && break
 
12350
done
 
12351
 
 
12352
  if test "x$ac_ct_CC" = x; then
 
12353
    CC=""
 
12354
  else
 
12355
    case $cross_compiling:$ac_tool_warned in
 
12356
yes:)
 
12357
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
12358
whose name does not start with the host triplet.  If you think this
 
12359
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
12360
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
12361
whose name does not start with the host triplet.  If you think this
 
12362
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
12363
ac_tool_warned=yes ;;
 
12364
esac
 
12365
    CC=$ac_ct_CC
 
12366
  fi
 
12367
fi
 
12368
 
 
12369
fi
 
12370
 
 
12371
 
 
12372
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
12373
See \`config.log' for more details." >&5
 
12374
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
12375
See \`config.log' for more details." >&2;}
 
12376
   { (exit 1); exit 1; }; }
 
12377
 
 
12378
# Provide some information about the compiler.
 
12379
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
12380
ac_compiler=`set X $ac_compile; echo $2`
 
12381
{ (ac_try="$ac_compiler --version >&5"
 
12382
case "(($ac_try" in
 
12383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12384
  *) ac_try_echo=$ac_try;;
 
12385
esac
 
12386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12387
  (eval "$ac_compiler --version >&5") 2>&5
 
12388
  ac_status=$?
 
12389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12390
  (exit $ac_status); }
 
12391
{ (ac_try="$ac_compiler -v >&5"
 
12392
case "(($ac_try" in
 
12393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12394
  *) ac_try_echo=$ac_try;;
 
12395
esac
 
12396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12397
  (eval "$ac_compiler -v >&5") 2>&5
 
12398
  ac_status=$?
 
12399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12400
  (exit $ac_status); }
 
12401
{ (ac_try="$ac_compiler -V >&5"
 
12402
case "(($ac_try" in
 
12403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12404
  *) ac_try_echo=$ac_try;;
 
12405
esac
 
12406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12407
  (eval "$ac_compiler -V >&5") 2>&5
 
12408
  ac_status=$?
 
12409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12410
  (exit $ac_status); }
 
12411
 
 
12412
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
12413
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
12414
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
12415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12416
else
 
12417
  cat >conftest.$ac_ext <<_ACEOF
 
12418
/* confdefs.h.  */
 
12419
_ACEOF
 
12420
cat confdefs.h >>conftest.$ac_ext
 
12421
cat >>conftest.$ac_ext <<_ACEOF
 
12422
/* end confdefs.h.  */
 
12423
 
 
12424
int
 
12425
main ()
 
12426
{
 
12427
#ifndef __GNUC__
 
12428
       choke me
 
12429
#endif
 
12430
 
 
12431
  ;
 
12432
  return 0;
 
12433
}
 
12434
_ACEOF
 
12435
rm -f conftest.$ac_objext
 
12436
if { (ac_try="$ac_compile"
 
12437
case "(($ac_try" in
 
12438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12439
  *) ac_try_echo=$ac_try;;
 
12440
esac
 
12441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12442
  (eval "$ac_compile") 2>conftest.er1
 
12443
  ac_status=$?
 
12444
  grep -v '^ *+' conftest.er1 >conftest.err
 
12445
  rm -f conftest.er1
 
12446
  cat conftest.err >&5
 
12447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12448
  (exit $ac_status); } &&
 
12449
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
12450
  { (case "(($ac_try" in
 
12451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12452
  *) ac_try_echo=$ac_try;;
 
12453
esac
 
12454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12455
  (eval "$ac_try") 2>&5
 
12456
  ac_status=$?
 
12457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12458
  (exit $ac_status); }; } &&
 
12459
         { ac_try='test -s conftest.$ac_objext'
 
12460
  { (case "(($ac_try" in
 
12461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12462
  *) ac_try_echo=$ac_try;;
 
12463
esac
 
12464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12465
  (eval "$ac_try") 2>&5
 
12466
  ac_status=$?
 
12467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12468
  (exit $ac_status); }; }; then
 
12469
  ac_compiler_gnu=yes
 
12470
else
 
12471
  echo "$as_me: failed program was:" >&5
 
12472
sed 's/^/| /' conftest.$ac_ext >&5
 
12473
 
 
12474
        ac_compiler_gnu=no
 
12475
fi
 
12476
 
 
12477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12478
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
12479
 
 
12480
fi
 
12481
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
12482
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
12483
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
12484
ac_test_CFLAGS=${CFLAGS+set}
 
12485
ac_save_CFLAGS=$CFLAGS
 
12486
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
12487
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
12488
if test "${ac_cv_prog_cc_g+set}" = set; then
 
12489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12490
else
 
12491
  ac_save_c_werror_flag=$ac_c_werror_flag
 
12492
   ac_c_werror_flag=yes
 
12493
   ac_cv_prog_cc_g=no
 
12494
   CFLAGS="-g"
 
12495
   cat >conftest.$ac_ext <<_ACEOF
 
12496
/* confdefs.h.  */
 
12497
_ACEOF
 
12498
cat confdefs.h >>conftest.$ac_ext
 
12499
cat >>conftest.$ac_ext <<_ACEOF
 
12500
/* end confdefs.h.  */
 
12501
 
 
12502
int
 
12503
main ()
 
12504
{
 
12505
 
 
12506
  ;
 
12507
  return 0;
 
12508
}
 
12509
_ACEOF
 
12510
rm -f conftest.$ac_objext
 
12511
if { (ac_try="$ac_compile"
 
12512
case "(($ac_try" in
 
12513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12514
  *) ac_try_echo=$ac_try;;
 
12515
esac
 
12516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12517
  (eval "$ac_compile") 2>conftest.er1
 
12518
  ac_status=$?
 
12519
  grep -v '^ *+' conftest.er1 >conftest.err
 
12520
  rm -f conftest.er1
 
12521
  cat conftest.err >&5
 
12522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12523
  (exit $ac_status); } &&
 
12524
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
12525
  { (case "(($ac_try" in
 
12526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12527
  *) ac_try_echo=$ac_try;;
 
12528
esac
 
12529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12530
  (eval "$ac_try") 2>&5
 
12531
  ac_status=$?
 
12532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12533
  (exit $ac_status); }; } &&
 
12534
         { ac_try='test -s conftest.$ac_objext'
 
12535
  { (case "(($ac_try" in
 
12536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12537
  *) ac_try_echo=$ac_try;;
 
12538
esac
 
12539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12540
  (eval "$ac_try") 2>&5
 
12541
  ac_status=$?
 
12542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12543
  (exit $ac_status); }; }; then
 
12544
  ac_cv_prog_cc_g=yes
 
12545
else
 
12546
  echo "$as_me: failed program was:" >&5
 
12547
sed 's/^/| /' conftest.$ac_ext >&5
 
12548
 
 
12549
        CFLAGS=""
 
12550
      cat >conftest.$ac_ext <<_ACEOF
 
12551
/* confdefs.h.  */
 
12552
_ACEOF
 
12553
cat confdefs.h >>conftest.$ac_ext
 
12554
cat >>conftest.$ac_ext <<_ACEOF
 
12555
/* end confdefs.h.  */
 
12556
 
 
12557
int
 
12558
main ()
 
12559
{
 
12560
 
 
12561
  ;
 
12562
  return 0;
 
12563
}
 
12564
_ACEOF
 
12565
rm -f conftest.$ac_objext
 
12566
if { (ac_try="$ac_compile"
 
12567
case "(($ac_try" in
 
12568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12569
  *) ac_try_echo=$ac_try;;
 
12570
esac
 
12571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12572
  (eval "$ac_compile") 2>conftest.er1
 
12573
  ac_status=$?
 
12574
  grep -v '^ *+' conftest.er1 >conftest.err
 
12575
  rm -f conftest.er1
 
12576
  cat conftest.err >&5
 
12577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12578
  (exit $ac_status); } &&
 
12579
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
12580
  { (case "(($ac_try" in
 
12581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12582
  *) ac_try_echo=$ac_try;;
 
12583
esac
 
12584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12585
  (eval "$ac_try") 2>&5
 
12586
  ac_status=$?
 
12587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12588
  (exit $ac_status); }; } &&
 
12589
         { ac_try='test -s conftest.$ac_objext'
 
12590
  { (case "(($ac_try" in
 
12591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12592
  *) ac_try_echo=$ac_try;;
 
12593
esac
 
12594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12595
  (eval "$ac_try") 2>&5
 
12596
  ac_status=$?
 
12597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12598
  (exit $ac_status); }; }; then
 
12599
  :
 
12600
else
 
12601
  echo "$as_me: failed program was:" >&5
 
12602
sed 's/^/| /' conftest.$ac_ext >&5
 
12603
 
 
12604
        ac_c_werror_flag=$ac_save_c_werror_flag
 
12605
         CFLAGS="-g"
 
12606
         cat >conftest.$ac_ext <<_ACEOF
 
12607
/* confdefs.h.  */
 
12608
_ACEOF
 
12609
cat confdefs.h >>conftest.$ac_ext
 
12610
cat >>conftest.$ac_ext <<_ACEOF
 
12611
/* end confdefs.h.  */
 
12612
 
 
12613
int
 
12614
main ()
 
12615
{
 
12616
 
 
12617
  ;
 
12618
  return 0;
 
12619
}
 
12620
_ACEOF
 
12621
rm -f conftest.$ac_objext
 
12622
if { (ac_try="$ac_compile"
 
12623
case "(($ac_try" in
 
12624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12625
  *) ac_try_echo=$ac_try;;
 
12626
esac
 
12627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12628
  (eval "$ac_compile") 2>conftest.er1
 
12629
  ac_status=$?
 
12630
  grep -v '^ *+' conftest.er1 >conftest.err
 
12631
  rm -f conftest.er1
 
12632
  cat conftest.err >&5
 
12633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12634
  (exit $ac_status); } &&
 
12635
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
12636
  { (case "(($ac_try" in
 
12637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12638
  *) ac_try_echo=$ac_try;;
 
12639
esac
 
12640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12641
  (eval "$ac_try") 2>&5
 
12642
  ac_status=$?
 
12643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12644
  (exit $ac_status); }; } &&
 
12645
         { ac_try='test -s conftest.$ac_objext'
 
12646
  { (case "(($ac_try" in
 
12647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12648
  *) ac_try_echo=$ac_try;;
 
12649
esac
 
12650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12651
  (eval "$ac_try") 2>&5
 
12652
  ac_status=$?
 
12653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12654
  (exit $ac_status); }; }; then
 
12655
  ac_cv_prog_cc_g=yes
 
12656
else
 
12657
  echo "$as_me: failed program was:" >&5
 
12658
sed 's/^/| /' conftest.$ac_ext >&5
 
12659
 
 
12660
 
 
12661
fi
 
12662
 
 
12663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12664
fi
 
12665
 
 
12666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12667
fi
 
12668
 
 
12669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12670
   ac_c_werror_flag=$ac_save_c_werror_flag
 
12671
fi
 
12672
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
12673
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
12674
if test "$ac_test_CFLAGS" = set; then
 
12675
  CFLAGS=$ac_save_CFLAGS
 
12676
elif test $ac_cv_prog_cc_g = yes; then
 
12677
  if test "$GCC" = yes; then
 
12678
    CFLAGS="-g -O2"
 
12679
  else
 
12680
    CFLAGS="-g"
 
12681
  fi
 
12682
else
 
12683
  if test "$GCC" = yes; then
 
12684
    CFLAGS="-O2"
 
12685
  else
 
12686
    CFLAGS=
 
12687
  fi
 
12688
fi
 
12689
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
12690
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
12691
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
12692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12693
else
 
12694
  ac_cv_prog_cc_c89=no
 
12695
ac_save_CC=$CC
 
12696
cat >conftest.$ac_ext <<_ACEOF
 
12697
/* confdefs.h.  */
 
12698
_ACEOF
 
12699
cat confdefs.h >>conftest.$ac_ext
 
12700
cat >>conftest.$ac_ext <<_ACEOF
 
12701
/* end confdefs.h.  */
 
12702
#include <stdarg.h>
 
12703
#include <stdio.h>
 
12704
#include <sys/types.h>
 
12705
#include <sys/stat.h>
 
12706
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
12707
struct buf { int x; };
 
12708
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
12709
static char *e (p, i)
 
12710
     char **p;
 
12711
     int i;
 
12712
{
 
12713
  return p[i];
 
12714
}
 
12715
static char *f (char * (*g) (char **, int), char **p, ...)
 
12716
{
 
12717
  char *s;
 
12718
  va_list v;
 
12719
  va_start (v,p);
 
12720
  s = g (p, va_arg (v,int));
 
12721
  va_end (v);
 
12722
  return s;
 
12723
}
 
12724
 
 
12725
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
12726
   function prototypes and stuff, but not '\xHH' hex character constants.
 
12727
   These don't provoke an error unfortunately, instead are silently treated
 
12728
   as 'x'.  The following induces an error, until -std is added to get
 
12729
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
12730
   array size at least.  It's necessary to write '\x00'==0 to get something
 
12731
   that's true only with -std.  */
 
12732
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
12733
 
 
12734
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
12735
   inside strings and character constants.  */
 
12736
#define FOO(x) 'x'
 
12737
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
12738
 
 
12739
int test (int i, double x);
 
12740
struct s1 {int (*f) (int a);};
 
12741
struct s2 {int (*f) (double a);};
 
12742
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
12743
int argc;
 
12744
char **argv;
 
12745
int
 
12746
main ()
 
12747
{
 
12748
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
12749
  ;
 
12750
  return 0;
 
12751
}
 
12752
_ACEOF
 
12753
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
12754
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
12755
do
 
12756
  CC="$ac_save_CC $ac_arg"
 
12757
  rm -f conftest.$ac_objext
 
12758
if { (ac_try="$ac_compile"
 
12759
case "(($ac_try" in
 
12760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12761
  *) ac_try_echo=$ac_try;;
 
12762
esac
 
12763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12764
  (eval "$ac_compile") 2>conftest.er1
 
12765
  ac_status=$?
 
12766
  grep -v '^ *+' conftest.er1 >conftest.err
 
12767
  rm -f conftest.er1
 
12768
  cat conftest.err >&5
 
12769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12770
  (exit $ac_status); } &&
 
12771
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
12772
  { (case "(($ac_try" in
 
12773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12774
  *) ac_try_echo=$ac_try;;
 
12775
esac
 
12776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12777
  (eval "$ac_try") 2>&5
 
12778
  ac_status=$?
 
12779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12780
  (exit $ac_status); }; } &&
 
12781
         { ac_try='test -s conftest.$ac_objext'
 
12782
  { (case "(($ac_try" in
 
12783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12784
  *) ac_try_echo=$ac_try;;
 
12785
esac
 
12786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12787
  (eval "$ac_try") 2>&5
 
12788
  ac_status=$?
 
12789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12790
  (exit $ac_status); }; }; then
 
12791
  ac_cv_prog_cc_c89=$ac_arg
 
12792
else
 
12793
  echo "$as_me: failed program was:" >&5
 
12794
sed 's/^/| /' conftest.$ac_ext >&5
 
12795
 
 
12796
 
 
12797
fi
 
12798
 
 
12799
rm -f core conftest.err conftest.$ac_objext
 
12800
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
12801
done
 
12802
rm -f conftest.$ac_ext
 
12803
CC=$ac_save_CC
 
12804
 
 
12805
fi
 
12806
# AC_CACHE_VAL
 
12807
case "x$ac_cv_prog_cc_c89" in
 
12808
  x)
 
12809
    { echo "$as_me:$LINENO: result: none needed" >&5
 
12810
echo "${ECHO_T}none needed" >&6; } ;;
 
12811
  xno)
 
12812
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
12813
echo "${ECHO_T}unsupported" >&6; } ;;
 
12814
  *)
 
12815
    CC="$CC $ac_cv_prog_cc_c89"
 
12816
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
12817
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
12818
esac
 
12819
 
 
12820
 
 
12821
ac_ext=c
 
12822
ac_cpp='$CPP $CPPFLAGS'
 
12823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
12826
 
3024
12827
depcc="$CC"   am_compiler_list=
3025
12828
 
3026
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3027
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
12829
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
12830
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3028
12831
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3029
12832
  echo $ECHO_N "(cached) $ECHO_C" >&6
3030
12833
else
3113
12916
fi
3114
12917
 
3115
12918
fi
3116
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3117
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
12919
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
12920
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3118
12921
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3119
12922
 
3120
12923
 
3144
12947
  # For backwards non-gettext consistent compatibility...
3145
12948
  INCLTDL="$LTDLINCL"
3146
12949
 
3147
 
# Check whether --enable-shared or --disable-shared was given.
 
12950
# Check whether --enable-shared was given.
3148
12951
if test "${enable_shared+set}" = set; then
3149
 
  enableval="$enable_shared"
3150
 
  p=${PACKAGE-default}
 
12952
  enableval=$enable_shared; p=${PACKAGE-default}
3151
12953
    case $enableval in
3152
12954
    yes) enable_shared=yes ;;
3153
12955
    no) enable_shared=no ;;
3166
12968
    esac
3167
12969
else
3168
12970
  enable_shared=yes
3169
 
fi;
3170
 
 
3171
 
# Check whether --enable-static or --disable-static was given.
 
12971
fi
 
12972
 
 
12973
 
 
12974
# Check whether --enable-static was given.
3172
12975
if test "${enable_static+set}" = set; then
3173
 
  enableval="$enable_static"
3174
 
  p=${PACKAGE-default}
 
12976
  enableval=$enable_static; p=${PACKAGE-default}
3175
12977
    case $enableval in
3176
12978
    yes) enable_static=yes ;;
3177
12979
    no) enable_static=no ;;
3190
12992
    esac
3191
12993
else
3192
12994
  enable_static=yes
3193
 
fi;
3194
 
 
3195
 
# Check whether --enable-fast-install or --disable-fast-install was given.
 
12995
fi
 
12996
 
 
12997
 
 
12998
# Check whether --enable-fast-install was given.
3196
12999
if test "${enable_fast_install+set}" = set; then
3197
 
  enableval="$enable_fast_install"
3198
 
  p=${PACKAGE-default}
 
13000
  enableval=$enable_fast_install; p=${PACKAGE-default}
3199
13001
    case $enableval in
3200
13002
    yes) enable_fast_install=yes ;;
3201
13003
    no) enable_fast_install=no ;;
3214
13016
    esac
3215
13017
else
3216
13018
  enable_fast_install=yes
3217
 
fi;
3218
 
 
3219
 
# Make sure we can run config.sub.
3220
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
3221
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3222
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3223
 
   { (exit 1); exit 1; }; }
3224
 
 
3225
 
echo "$as_me:$LINENO: checking build system type" >&5
3226
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3227
 
if test "${ac_cv_build+set}" = set; then
3228
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3229
 
else
3230
 
  ac_cv_build_alias=$build_alias
3231
 
test -z "$ac_cv_build_alias" &&
3232
 
  ac_cv_build_alias=`$ac_config_guess`
3233
 
test -z "$ac_cv_build_alias" &&
3234
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3235
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3236
 
   { (exit 1); exit 1; }; }
3237
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3238
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3239
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3240
 
   { (exit 1); exit 1; }; }
3241
 
 
3242
 
fi
3243
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3244
 
echo "${ECHO_T}$ac_cv_build" >&6
3245
 
build=$ac_cv_build
3246
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3247
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3248
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3249
 
 
3250
 
 
3251
 
echo "$as_me:$LINENO: checking host system type" >&5
3252
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3253
 
if test "${ac_cv_host+set}" = set; then
3254
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3255
 
else
3256
 
  ac_cv_host_alias=$host_alias
3257
 
test -z "$ac_cv_host_alias" &&
3258
 
  ac_cv_host_alias=$ac_cv_build_alias
3259
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3260
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3261
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3262
 
   { (exit 1); exit 1; }; }
3263
 
 
3264
 
fi
3265
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3266
 
echo "${ECHO_T}$ac_cv_host" >&6
3267
 
host=$ac_cv_host
3268
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3269
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3270
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3271
 
 
3272
 
 
3273
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3274
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
13019
fi
 
13020
 
 
13021
 
 
13022
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
13023
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3275
13024
if test "${lt_cv_path_SED+set}" = set; then
3276
13025
  echo $ECHO_N "(cached) $ECHO_C" >&6
3277
13026
else
3295
13044
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3296
13045
# along with /bin/sed that truncates output.
3297
13046
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3298
 
  test ! -f $lt_ac_sed && break
 
13047
  test ! -f $lt_ac_sed && continue
3299
13048
  cat /dev/null > conftest.in
3300
13049
  lt_ac_count=0
3301
13050
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3320
13069
    fi
3321
13070
  done
3322
13071
done
 
13072
 
 
13073
fi
 
13074
 
3323
13075
SED=$lt_cv_path_SED
3324
 
 
3325
 
fi
3326
 
 
3327
 
echo "$as_me:$LINENO: result: $SED" >&5
3328
 
echo "${ECHO_T}$SED" >&6
3329
 
 
3330
 
echo "$as_me:$LINENO: checking for egrep" >&5
3331
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3332
 
if test "${ac_cv_prog_egrep+set}" = set; then
3333
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3334
 
else
3335
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3336
 
    then ac_cv_prog_egrep='grep -E'
3337
 
    else ac_cv_prog_egrep='egrep'
3338
 
    fi
3339
 
fi
3340
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3341
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3342
 
 EGREP=$ac_cv_prog_egrep
3343
 
 
3344
 
 
3345
 
 
3346
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
13076
{ echo "$as_me:$LINENO: result: $SED" >&5
 
13077
echo "${ECHO_T}$SED" >&6; }
 
13078
 
 
13079
 
 
13080
# Check whether --with-gnu-ld was given.
3347
13081
if test "${with_gnu_ld+set}" = set; then
3348
 
  withval="$with_gnu_ld"
3349
 
  test "$withval" = no || with_gnu_ld=yes
 
13082
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3350
13083
else
3351
13084
  with_gnu_ld=no
3352
 
fi;
 
13085
fi
 
13086
 
3353
13087
ac_prog=ld
3354
13088
if test "$GCC" = yes; then
3355
13089
  # Check if gcc -print-prog-name=ld gives a path.
3356
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3357
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
13090
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
13091
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3358
13092
  case $host in
3359
13093
  *-*-mingw*)
3360
13094
    # gcc leaves a trailing carriage return which upsets mingw
3383
13117
    ;;
3384
13118
  esac
3385
13119
elif test "$with_gnu_ld" = yes; then
3386
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3387
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
13120
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
13121
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3388
13122
else
3389
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3390
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
13123
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
13124
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3391
13125
fi
3392
13126
if test "${lt_cv_path_LD+set}" = set; then
3393
13127
  echo $ECHO_N "(cached) $ECHO_C" >&6
3400
13134
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3401
13135
      lt_cv_path_LD="$ac_dir/$ac_prog"
3402
13136
      # Check to see if the program is GNU ld.  I'd rather use --version,
3403
 
      # but apparently some GNU ld's only accept -v.
 
13137
      # but apparently some variants of GNU ld only accept -v.
3404
13138
      # Break only if it was the GNU/non-GNU ld that we prefer.
3405
13139
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3406
13140
      *GNU* | *'with BFD'*)
3420
13154
 
3421
13155
LD="$lt_cv_path_LD"
3422
13156
if test -n "$LD"; then
3423
 
  echo "$as_me:$LINENO: result: $LD" >&5
3424
 
echo "${ECHO_T}$LD" >&6
 
13157
  { echo "$as_me:$LINENO: result: $LD" >&5
 
13158
echo "${ECHO_T}$LD" >&6; }
3425
13159
else
3426
 
  echo "$as_me:$LINENO: result: no" >&5
3427
 
echo "${ECHO_T}no" >&6
 
13160
  { echo "$as_me:$LINENO: result: no" >&5
 
13161
echo "${ECHO_T}no" >&6; }
3428
13162
fi
3429
13163
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3430
13164
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3431
13165
   { (exit 1); exit 1; }; }
3432
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3433
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
13166
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
13167
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3434
13168
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3435
13169
  echo $ECHO_N "(cached) $ECHO_C" >&6
3436
13170
else
3437
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
13171
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3438
13172
case `$LD -v 2>&1 </dev/null` in
3439
13173
*GNU* | *'with BFD'*)
3440
13174
  lt_cv_prog_gnu_ld=yes
3444
13178
  ;;
3445
13179
esac
3446
13180
fi
3447
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3448
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
13181
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
13182
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3449
13183
with_gnu_ld=$lt_cv_prog_gnu_ld
3450
13184
 
3451
13185
 
3452
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3453
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
13186
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
13187
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3454
13188
if test "${lt_cv_ld_reload_flag+set}" = set; then
3455
13189
  echo $ECHO_N "(cached) $ECHO_C" >&6
3456
13190
else
3457
13191
  lt_cv_ld_reload_flag='-r'
3458
13192
fi
3459
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3460
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
13193
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
13194
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3461
13195
reload_flag=$lt_cv_ld_reload_flag
3462
13196
case $reload_flag in
3463
13197
"" | " "*) ;;
3464
13198
*) reload_flag=" $reload_flag" ;;
3465
13199
esac
3466
13200
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
13201
case $host_os in
 
13202
  darwin*)
 
13203
    if test "$GCC" = yes; then
 
13204
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
13205
    else
 
13206
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
13207
    fi
 
13208
    ;;
 
13209
esac
3467
13210
 
3468
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3469
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
13211
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
13212
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3470
13213
if test "${lt_cv_path_NM+set}" = set; then
3471
13214
  echo $ECHO_N "(cached) $ECHO_C" >&6
3472
13215
else
3474
13217
  # Let the user override the test.
3475
13218
  lt_cv_path_NM="$NM"
3476
13219
else
3477
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3478
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3479
 
    IFS="$lt_save_ifs"
3480
 
    test -z "$ac_dir" && ac_dir=.
3481
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3482
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3483
 
      # Check to see if the nm accepts a BSD-compat flag.
3484
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3485
 
      #   nm: unknown option "B" ignored
3486
 
      # Tru64's nm complains that /dev/null is an invalid object file
3487
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3488
 
      */dev/null* | *'Invalid file or object type'*)
3489
 
        lt_cv_path_NM="$tmp_nm -B"
3490
 
        break
3491
 
        ;;
3492
 
      *)
3493
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3494
 
        */dev/null*)
3495
 
          lt_cv_path_NM="$tmp_nm -p"
 
13220
  lt_nm_to_check="${ac_tool_prefix}nm"
 
13221
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
13222
    lt_nm_to_check="$lt_nm_to_check nm"
 
13223
  fi
 
13224
  for lt_tmp_nm in $lt_nm_to_check; do
 
13225
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13226
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
13227
      IFS="$lt_save_ifs"
 
13228
      test -z "$ac_dir" && ac_dir=.
 
13229
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
13230
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
13231
        # Check to see if the nm accepts a BSD-compat flag.
 
13232
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
13233
        #   nm: unknown option "B" ignored
 
13234
        # Tru64's nm complains that /dev/null is an invalid object file
 
13235
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
13236
        */dev/null* | *'Invalid file or object type'*)
 
13237
          lt_cv_path_NM="$tmp_nm -B"
3496
13238
          break
3497
13239
          ;;
3498
13240
        *)
3499
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3500
 
          continue # so that we can try to find one that supports BSD flags
 
13241
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
13242
          */dev/null*)
 
13243
            lt_cv_path_NM="$tmp_nm -p"
 
13244
            break
 
13245
            ;;
 
13246
          *)
 
13247
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
13248
            continue # so that we can try to find one that supports BSD flags
 
13249
            ;;
 
13250
          esac
3501
13251
          ;;
3502
13252
        esac
3503
 
      esac
3504
 
    fi
 
13253
      fi
 
13254
    done
 
13255
    IFS="$lt_save_ifs"
3505
13256
  done
3506
 
  IFS="$lt_save_ifs"
3507
13257
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3508
13258
fi
3509
13259
fi
3510
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3511
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
13260
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
13261
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3512
13262
NM="$lt_cv_path_NM"
3513
13263
 
3514
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3515
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
13264
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
13265
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3516
13266
LN_S=$as_ln_s
3517
13267
if test "$LN_S" = "ln -s"; then
3518
 
  echo "$as_me:$LINENO: result: yes" >&5
3519
 
echo "${ECHO_T}yes" >&6
 
13268
  { echo "$as_me:$LINENO: result: yes" >&5
 
13269
echo "${ECHO_T}yes" >&6; }
3520
13270
else
3521
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3522
 
echo "${ECHO_T}no, using $LN_S" >&6
 
13271
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
13272
echo "${ECHO_T}no, using $LN_S" >&6; }
3523
13273
fi
3524
13274
 
3525
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3526
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
13275
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
13276
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3527
13277
if test "${lt_cv_deplibs_check_method+set}" = set; then
3528
13278
  echo $ECHO_N "(cached) $ECHO_C" >&6
3529
13279
else
3550
13300
  lt_cv_deplibs_check_method=pass_all
3551
13301
  ;;
3552
13302
 
3553
 
bsdi4*)
 
13303
bsdi[45]*)
3554
13304
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3555
13305
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3556
13306
  lt_cv_file_magic_test_file=/shlib/libc.so
3573
13323
  lt_cv_deplibs_check_method=pass_all
3574
13324
  ;;
3575
13325
 
3576
 
freebsd* | kfreebsd*-gnu)
 
13326
freebsd* | dragonfly*)
3577
13327
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3578
13328
    case $host_cpu in
3579
13329
    i*86 )
3580
13330
      # Not sure whether the presence of OpenBSD here was a mistake.
3581
13331
      # Let's accept both of them until this is cleared up.
3582
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
13332
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3583
13333
      lt_cv_file_magic_cmd=/usr/bin/file
3584
13334
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3585
13335
      ;;
3595
13345
 
3596
13346
hpux10.20* | hpux11*)
3597
13347
  lt_cv_file_magic_cmd=/usr/bin/file
3598
 
  case "$host_cpu" in
 
13348
  case $host_cpu in
3599
13349
  ia64*)
3600
13350
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3601
13351
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3611
13361
  esac
3612
13362
  ;;
3613
13363
 
 
13364
interix3*)
 
13365
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
13366
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
13367
  ;;
 
13368
 
3614
13369
irix5* | irix6* | nonstopux*)
3615
13370
  case $LD in
3616
13371
  *-32|*"-32 ") libmagic=32-bit;;
3622
13377
  ;;
3623
13378
 
3624
13379
# This must be Linux ELF.
3625
 
linux*)
 
13380
linux* | k*bsd*-gnu)
3626
13381
  lt_cv_deplibs_check_method=pass_all
3627
13382
  ;;
3628
13383
 
3629
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13384
netbsd* | netbsdelf*-gnu)
3630
13385
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3631
13386
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3632
13387
  else
3645
13400
  ;;
3646
13401
 
3647
13402
openbsd*)
3648
 
  lt_cv_file_magic_cmd=/usr/bin/file
3649
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3650
13403
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3651
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
13404
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3652
13405
  else
3653
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
13406
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3654
13407
  fi
3655
13408
  ;;
3656
13409
 
3658
13411
  lt_cv_deplibs_check_method=pass_all
3659
13412
  ;;
3660
13413
 
3661
 
sco3.2v5*)
3662
 
  lt_cv_deplibs_check_method=pass_all
3663
 
  ;;
3664
 
 
3665
13414
solaris*)
3666
13415
  lt_cv_deplibs_check_method=pass_all
3667
13416
  ;;
3668
13417
 
3669
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13418
sysv4 | sysv4.3*)
3670
13419
  case $host_vendor in
3671
13420
  motorola)
3672
13421
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3687
13436
  siemens)
3688
13437
    lt_cv_deplibs_check_method=pass_all
3689
13438
    ;;
 
13439
  pc)
 
13440
    lt_cv_deplibs_check_method=pass_all
 
13441
    ;;
3690
13442
  esac
3691
13443
  ;;
3692
13444
 
3693
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
13445
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3694
13446
  lt_cv_deplibs_check_method=pass_all
3695
13447
  ;;
3696
13448
esac
3697
13449
 
3698
13450
fi
3699
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3700
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
13451
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
13452
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3701
13453
file_magic_cmd=$lt_cv_file_magic_cmd
3702
13454
deplibs_check_method=$lt_cv_deplibs_check_method
3703
13455
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3708
13460
# If no C compiler was specified, use CC.
3709
13461
LTCC=${LTCC-"$CC"}
3710
13462
 
 
13463
# If no C compiler flags were specified, use CFLAGS.
 
13464
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13465
 
3711
13466
# Allow CC to be a program name with arguments.
3712
13467
compiler=$CC
3713
13468
 
3714
 
 
3715
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
13469
# Check whether --enable-libtool-lock was given.
3716
13470
if test "${enable_libtool_lock+set}" = set; then
3717
 
  enableval="$enable_libtool_lock"
 
13471
  enableval=$enable_libtool_lock;
 
13472
fi
3718
13473
 
3719
 
fi;
3720
13474
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3721
13475
 
3722
13476
# Some flags need to be propagated to the compiler or linker for good
3743
13497
  ;;
3744
13498
*-*-irix6*)
3745
13499
  # Find out which ABI we are using.
3746
 
  echo '#line 3746 "configure"' > conftest.$ac_ext
 
13500
  echo '#line 13500 "configure"' > conftest.$ac_ext
3747
13501
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748
13502
  (eval $ac_compile) 2>&5
3749
13503
  ac_status=$?
3786
13540
  ac_status=$?
3787
13541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
13542
  (exit $ac_status); }; then
3789
 
    case "`/usr/bin/file conftest.o`" in
 
13543
    case `/usr/bin/file conftest.o` in
3790
13544
    *32-bit*)
3791
13545
      case $host in
3792
13546
        x86_64-*linux*)
3828
13582
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3829
13583
  SAVE_CFLAGS="$CFLAGS"
3830
13584
  CFLAGS="$CFLAGS -belf"
3831
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3832
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
13585
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
13586
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3833
13587
if test "${lt_cv_cc_needs_belf+set}" = set; then
3834
13588
  echo $ECHO_N "(cached) $ECHO_C" >&6
3835
13589
else
3855
13609
}
3856
13610
_ACEOF
3857
13611
rm -f conftest.$ac_objext conftest$ac_exeext
3858
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859
 
  (eval $ac_link) 2>conftest.er1
 
13612
if { (ac_try="$ac_link"
 
13613
case "(($ac_try" in
 
13614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13615
  *) ac_try_echo=$ac_try;;
 
13616
esac
 
13617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13618
  (eval "$ac_link") 2>conftest.er1
3860
13619
  ac_status=$?
3861
13620
  grep -v '^ *+' conftest.er1 >conftest.err
3862
13621
  rm -f conftest.er1
3863
13622
  cat conftest.err >&5
3864
13623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865
13624
  (exit $ac_status); } &&
3866
 
         { ac_try='test -z "$ac_c_werror_flag"
3867
 
                         || test ! -s conftest.err'
3868
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
 
  (eval $ac_try) 2>&5
 
13625
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
13626
  { (case "(($ac_try" in
 
13627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13628
  *) ac_try_echo=$ac_try;;
 
13629
esac
 
13630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13631
  (eval "$ac_try") 2>&5
3870
13632
  ac_status=$?
3871
13633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
13634
  (exit $ac_status); }; } &&
3873
13635
         { ac_try='test -s conftest$ac_exeext'
3874
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875
 
  (eval $ac_try) 2>&5
 
13636
  { (case "(($ac_try" in
 
13637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13638
  *) ac_try_echo=$ac_try;;
 
13639
esac
 
13640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13641
  (eval "$ac_try") 2>&5
3876
13642
  ac_status=$?
3877
13643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878
13644
  (exit $ac_status); }; }; then
3881
13647
  echo "$as_me: failed program was:" >&5
3882
13648
sed 's/^/| /' conftest.$ac_ext >&5
3883
13649
 
3884
 
lt_cv_cc_needs_belf=no
 
13650
        lt_cv_cc_needs_belf=no
3885
13651
fi
3886
 
rm -f conftest.err conftest.$ac_objext \
 
13652
 
 
13653
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3887
13654
      conftest$ac_exeext conftest.$ac_ext
3888
13655
     ac_ext=c
3889
13656
ac_cpp='$CPP $CPPFLAGS'
3892
13659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
13660
 
3894
13661
fi
3895
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3896
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
13662
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
13663
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3897
13664
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3898
13665
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3899
13666
    CFLAGS="$SAVE_CFLAGS"
3900
13667
  fi
3901
13668
  ;;
 
13669
sparc*-*solaris*)
 
13670
  # Find out which ABI we are using.
 
13671
  echo 'int i;' > conftest.$ac_ext
 
13672
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13673
  (eval $ac_compile) 2>&5
 
13674
  ac_status=$?
 
13675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13676
  (exit $ac_status); }; then
 
13677
    case `/usr/bin/file conftest.o` in
 
13678
    *64-bit*)
 
13679
      case $lt_cv_prog_gnu_ld in
 
13680
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
13681
      *)    LD="${LD-ld} -64" ;;
 
13682
      esac
 
13683
      ;;
 
13684
    esac
 
13685
  fi
 
13686
  rm -rf conftest*
 
13687
  ;;
 
13688
 
3902
13689
 
3903
13690
esac
3904
13691
 
3905
13692
need_locks="$enable_libtool_lock"
3906
13693
 
3907
13694
 
3908
 
ac_ext=c
3909
 
ac_cpp='$CPP $CPPFLAGS'
3910
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3914
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3915
 
# On Suns, sometimes $CPP names a directory.
3916
 
if test -n "$CPP" && test -d "$CPP"; then
3917
 
  CPP=
3918
 
fi
3919
 
if test -z "$CPP"; then
3920
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3921
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3922
 
else
3923
 
      # Double quotes because CPP needs to be expanded
3924
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3925
 
    do
3926
 
      ac_preproc_ok=false
3927
 
for ac_c_preproc_warn_flag in '' yes
3928
 
do
3929
 
  # Use a header file that comes with gcc, so configuring glibc
3930
 
  # with a fresh cross-compiler works.
3931
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932
 
  # <limits.h> exists even on freestanding compilers.
3933
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3934
 
  # not just through cpp. "Syntax error" is here to catch this case.
3935
 
  cat >conftest.$ac_ext <<_ACEOF
3936
 
/* confdefs.h.  */
3937
 
_ACEOF
3938
 
cat confdefs.h >>conftest.$ac_ext
3939
 
cat >>conftest.$ac_ext <<_ACEOF
3940
 
/* end confdefs.h.  */
3941
 
#ifdef __STDC__
3942
 
# include <limits.h>
3943
 
#else
3944
 
# include <assert.h>
3945
 
#endif
3946
 
                     Syntax error
3947
 
_ACEOF
3948
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3949
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3950
 
  ac_status=$?
3951
 
  grep -v '^ *+' conftest.er1 >conftest.err
3952
 
  rm -f conftest.er1
3953
 
  cat conftest.err >&5
3954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
 
  (exit $ac_status); } >/dev/null; then
3956
 
  if test -s conftest.err; then
3957
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3958
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959
 
  else
3960
 
    ac_cpp_err=
3961
 
  fi
3962
 
else
3963
 
  ac_cpp_err=yes
3964
 
fi
3965
 
if test -z "$ac_cpp_err"; then
3966
 
  :
3967
 
else
3968
 
  echo "$as_me: failed program was:" >&5
3969
 
sed 's/^/| /' conftest.$ac_ext >&5
3970
 
 
3971
 
  # Broken: fails on valid input.
3972
 
continue
3973
 
fi
3974
 
rm -f conftest.err conftest.$ac_ext
3975
 
 
3976
 
  # OK, works on sane cases.  Now check whether non-existent headers
3977
 
  # can be detected and how.
3978
 
  cat >conftest.$ac_ext <<_ACEOF
3979
 
/* confdefs.h.  */
3980
 
_ACEOF
3981
 
cat confdefs.h >>conftest.$ac_ext
3982
 
cat >>conftest.$ac_ext <<_ACEOF
3983
 
/* end confdefs.h.  */
3984
 
#include <ac_nonexistent.h>
3985
 
_ACEOF
3986
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988
 
  ac_status=$?
3989
 
  grep -v '^ *+' conftest.er1 >conftest.err
3990
 
  rm -f conftest.er1
3991
 
  cat conftest.err >&5
3992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
 
  (exit $ac_status); } >/dev/null; then
3994
 
  if test -s conftest.err; then
3995
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3996
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997
 
  else
3998
 
    ac_cpp_err=
3999
 
  fi
4000
 
else
4001
 
  ac_cpp_err=yes
4002
 
fi
4003
 
if test -z "$ac_cpp_err"; then
4004
 
  # Broken: success on invalid input.
4005
 
continue
4006
 
else
4007
 
  echo "$as_me: failed program was:" >&5
4008
 
sed 's/^/| /' conftest.$ac_ext >&5
4009
 
 
4010
 
  # Passes both tests.
4011
 
ac_preproc_ok=:
4012
 
break
4013
 
fi
4014
 
rm -f conftest.err conftest.$ac_ext
4015
 
 
4016
 
done
4017
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018
 
rm -f conftest.err conftest.$ac_ext
4019
 
if $ac_preproc_ok; then
4020
 
  break
4021
 
fi
4022
 
 
4023
 
    done
4024
 
    ac_cv_prog_CPP=$CPP
4025
 
 
4026
 
fi
4027
 
  CPP=$ac_cv_prog_CPP
4028
 
else
4029
 
  ac_cv_prog_CPP=$CPP
4030
 
fi
4031
 
echo "$as_me:$LINENO: result: $CPP" >&5
4032
 
echo "${ECHO_T}$CPP" >&6
4033
 
ac_preproc_ok=false
4034
 
for ac_c_preproc_warn_flag in '' yes
4035
 
do
4036
 
  # Use a header file that comes with gcc, so configuring glibc
4037
 
  # with a fresh cross-compiler works.
4038
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4039
 
  # <limits.h> exists even on freestanding compilers.
4040
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4041
 
  # not just through cpp. "Syntax error" is here to catch this case.
4042
 
  cat >conftest.$ac_ext <<_ACEOF
4043
 
/* confdefs.h.  */
4044
 
_ACEOF
4045
 
cat confdefs.h >>conftest.$ac_ext
4046
 
cat >>conftest.$ac_ext <<_ACEOF
4047
 
/* end confdefs.h.  */
4048
 
#ifdef __STDC__
4049
 
# include <limits.h>
4050
 
#else
4051
 
# include <assert.h>
4052
 
#endif
4053
 
                     Syntax error
4054
 
_ACEOF
4055
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4056
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057
 
  ac_status=$?
4058
 
  grep -v '^ *+' conftest.er1 >conftest.err
4059
 
  rm -f conftest.er1
4060
 
  cat conftest.err >&5
4061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
 
  (exit $ac_status); } >/dev/null; then
4063
 
  if test -s conftest.err; then
4064
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4065
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4066
 
  else
4067
 
    ac_cpp_err=
4068
 
  fi
4069
 
else
4070
 
  ac_cpp_err=yes
4071
 
fi
4072
 
if test -z "$ac_cpp_err"; then
4073
 
  :
4074
 
else
4075
 
  echo "$as_me: failed program was:" >&5
4076
 
sed 's/^/| /' conftest.$ac_ext >&5
4077
 
 
4078
 
  # Broken: fails on valid input.
4079
 
continue
4080
 
fi
4081
 
rm -f conftest.err conftest.$ac_ext
4082
 
 
4083
 
  # OK, works on sane cases.  Now check whether non-existent headers
4084
 
  # can be detected and how.
4085
 
  cat >conftest.$ac_ext <<_ACEOF
4086
 
/* confdefs.h.  */
4087
 
_ACEOF
4088
 
cat confdefs.h >>conftest.$ac_ext
4089
 
cat >>conftest.$ac_ext <<_ACEOF
4090
 
/* end confdefs.h.  */
4091
 
#include <ac_nonexistent.h>
4092
 
_ACEOF
4093
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4094
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4095
 
  ac_status=$?
4096
 
  grep -v '^ *+' conftest.er1 >conftest.err
4097
 
  rm -f conftest.er1
4098
 
  cat conftest.err >&5
4099
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100
 
  (exit $ac_status); } >/dev/null; then
4101
 
  if test -s conftest.err; then
4102
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4103
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4104
 
  else
4105
 
    ac_cpp_err=
4106
 
  fi
4107
 
else
4108
 
  ac_cpp_err=yes
4109
 
fi
4110
 
if test -z "$ac_cpp_err"; then
4111
 
  # Broken: success on invalid input.
4112
 
continue
4113
 
else
4114
 
  echo "$as_me: failed program was:" >&5
4115
 
sed 's/^/| /' conftest.$ac_ext >&5
4116
 
 
4117
 
  # Passes both tests.
4118
 
ac_preproc_ok=:
4119
 
break
4120
 
fi
4121
 
rm -f conftest.err conftest.$ac_ext
4122
 
 
4123
 
done
4124
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125
 
rm -f conftest.err conftest.$ac_ext
4126
 
if $ac_preproc_ok; then
4127
 
  :
4128
 
else
4129
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4130
 
See \`config.log' for more details." >&5
4131
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4132
 
See \`config.log' for more details." >&2;}
4133
 
   { (exit 1); exit 1; }; }
4134
 
fi
4135
 
 
4136
 
ac_ext=c
4137
 
ac_cpp='$CPP $CPPFLAGS'
4138
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
 
 
4142
 
 
4143
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4144
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4145
 
if test "${ac_cv_header_stdc+set}" = set; then
4146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4147
 
else
4148
 
  cat >conftest.$ac_ext <<_ACEOF
4149
 
/* confdefs.h.  */
4150
 
_ACEOF
4151
 
cat confdefs.h >>conftest.$ac_ext
4152
 
cat >>conftest.$ac_ext <<_ACEOF
4153
 
/* end confdefs.h.  */
4154
 
#include <stdlib.h>
4155
 
#include <stdarg.h>
4156
 
#include <string.h>
4157
 
#include <float.h>
4158
 
 
4159
 
int
4160
 
main ()
4161
 
{
4162
 
 
4163
 
  ;
4164
 
  return 0;
4165
 
}
4166
 
_ACEOF
4167
 
rm -f conftest.$ac_objext
4168
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169
 
  (eval $ac_compile) 2>conftest.er1
4170
 
  ac_status=$?
4171
 
  grep -v '^ *+' conftest.er1 >conftest.err
4172
 
  rm -f conftest.er1
4173
 
  cat conftest.err >&5
4174
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
 
  (exit $ac_status); } &&
4176
 
         { ac_try='test -z "$ac_c_werror_flag"
4177
 
                         || test ! -s conftest.err'
4178
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179
 
  (eval $ac_try) 2>&5
4180
 
  ac_status=$?
4181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
 
  (exit $ac_status); }; } &&
4183
 
         { ac_try='test -s conftest.$ac_objext'
4184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
 
  (eval $ac_try) 2>&5
4186
 
  ac_status=$?
4187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
 
  (exit $ac_status); }; }; then
4189
 
  ac_cv_header_stdc=yes
4190
 
else
4191
 
  echo "$as_me: failed program was:" >&5
4192
 
sed 's/^/| /' conftest.$ac_ext >&5
4193
 
 
4194
 
ac_cv_header_stdc=no
4195
 
fi
4196
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197
 
 
4198
 
if test $ac_cv_header_stdc = yes; then
4199
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4200
 
  cat >conftest.$ac_ext <<_ACEOF
4201
 
/* confdefs.h.  */
4202
 
_ACEOF
4203
 
cat confdefs.h >>conftest.$ac_ext
4204
 
cat >>conftest.$ac_ext <<_ACEOF
4205
 
/* end confdefs.h.  */
4206
 
#include <string.h>
4207
 
 
4208
 
_ACEOF
4209
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210
 
  $EGREP "memchr" >/dev/null 2>&1; then
4211
 
  :
4212
 
else
4213
 
  ac_cv_header_stdc=no
4214
 
fi
4215
 
rm -f conftest*
4216
 
 
4217
 
fi
4218
 
 
4219
 
if test $ac_cv_header_stdc = yes; then
4220
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4221
 
  cat >conftest.$ac_ext <<_ACEOF
4222
 
/* confdefs.h.  */
4223
 
_ACEOF
4224
 
cat confdefs.h >>conftest.$ac_ext
4225
 
cat >>conftest.$ac_ext <<_ACEOF
4226
 
/* end confdefs.h.  */
4227
 
#include <stdlib.h>
4228
 
 
4229
 
_ACEOF
4230
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231
 
  $EGREP "free" >/dev/null 2>&1; then
4232
 
  :
4233
 
else
4234
 
  ac_cv_header_stdc=no
4235
 
fi
4236
 
rm -f conftest*
4237
 
 
4238
 
fi
4239
 
 
4240
 
if test $ac_cv_header_stdc = yes; then
4241
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4242
 
  if test "$cross_compiling" = yes; then
4243
 
  :
4244
 
else
4245
 
  cat >conftest.$ac_ext <<_ACEOF
4246
 
/* confdefs.h.  */
4247
 
_ACEOF
4248
 
cat confdefs.h >>conftest.$ac_ext
4249
 
cat >>conftest.$ac_ext <<_ACEOF
4250
 
/* end confdefs.h.  */
4251
 
#include <ctype.h>
4252
 
#if ((' ' & 0x0FF) == 0x020)
4253
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4255
 
#else
4256
 
# define ISLOWER(c) \
4257
 
                   (('a' <= (c) && (c) <= 'i') \
4258
 
                     || ('j' <= (c) && (c) <= 'r') \
4259
 
                     || ('s' <= (c) && (c) <= 'z'))
4260
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4261
 
#endif
4262
 
 
4263
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264
 
int
4265
 
main ()
4266
 
{
4267
 
  int i;
4268
 
  for (i = 0; i < 256; i++)
4269
 
    if (XOR (islower (i), ISLOWER (i))
4270
 
        || toupper (i) != TOUPPER (i))
4271
 
      exit(2);
4272
 
  exit (0);
4273
 
}
4274
 
_ACEOF
4275
 
rm -f conftest$ac_exeext
4276
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277
 
  (eval $ac_link) 2>&5
4278
 
  ac_status=$?
4279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282
 
  (eval $ac_try) 2>&5
4283
 
  ac_status=$?
4284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285
 
  (exit $ac_status); }; }; then
4286
 
  :
4287
 
else
4288
 
  echo "$as_me: program exited with status $ac_status" >&5
4289
 
echo "$as_me: failed program was:" >&5
4290
 
sed 's/^/| /' conftest.$ac_ext >&5
4291
 
 
4292
 
( exit $ac_status )
4293
 
ac_cv_header_stdc=no
4294
 
fi
4295
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296
 
fi
4297
 
fi
4298
 
fi
4299
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4300
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4301
 
if test $ac_cv_header_stdc = yes; then
4302
 
 
4303
 
cat >>confdefs.h <<\_ACEOF
4304
 
#define STDC_HEADERS 1
4305
 
_ACEOF
4306
 
 
4307
 
fi
4308
 
 
4309
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
 
 
4318
 
 
4319
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4320
 
                  inttypes.h stdint.h unistd.h
4321
 
do
4322
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4324
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4327
 
else
4328
 
  cat >conftest.$ac_ext <<_ACEOF
4329
 
/* confdefs.h.  */
4330
 
_ACEOF
4331
 
cat confdefs.h >>conftest.$ac_ext
4332
 
cat >>conftest.$ac_ext <<_ACEOF
4333
 
/* end confdefs.h.  */
4334
 
$ac_includes_default
4335
 
 
4336
 
#include <$ac_header>
4337
 
_ACEOF
4338
 
rm -f conftest.$ac_objext
4339
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340
 
  (eval $ac_compile) 2>conftest.er1
4341
 
  ac_status=$?
4342
 
  grep -v '^ *+' conftest.er1 >conftest.err
4343
 
  rm -f conftest.er1
4344
 
  cat conftest.err >&5
4345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
 
  (exit $ac_status); } &&
4347
 
         { ac_try='test -z "$ac_c_werror_flag"
4348
 
                         || test ! -s conftest.err'
4349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350
 
  (eval $ac_try) 2>&5
4351
 
  ac_status=$?
4352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
 
  (exit $ac_status); }; } &&
4354
 
         { ac_try='test -s conftest.$ac_objext'
4355
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356
 
  (eval $ac_try) 2>&5
4357
 
  ac_status=$?
4358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
 
  (exit $ac_status); }; }; then
4360
 
  eval "$as_ac_Header=yes"
4361
 
else
4362
 
  echo "$as_me: failed program was:" >&5
4363
 
sed 's/^/| /' conftest.$ac_ext >&5
4364
 
 
4365
 
eval "$as_ac_Header=no"
4366
 
fi
4367
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368
 
fi
4369
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4372
 
  cat >>confdefs.h <<_ACEOF
4373
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374
 
_ACEOF
4375
 
 
4376
 
fi
4377
 
 
4378
 
done
4379
 
 
4380
 
 
4381
13695
 
4382
13696
for ac_header in dlfcn.h
4383
13697
do
4384
13698
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4387
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13699
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13700
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13701
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13702
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389
13703
  echo $ECHO_N "(cached) $ECHO_C" >&6
4390
13704
fi
4391
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13705
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13706
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13707
echo "${ECHO_T}$ac_res" >&6; }
4393
13708
else
4394
13709
  # Is the header compilable?
4395
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4396
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13710
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13711
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4397
13712
cat >conftest.$ac_ext <<_ACEOF
4398
13713
/* confdefs.h.  */
4399
13714
_ACEOF
4404
13719
#include <$ac_header>
4405
13720
_ACEOF
4406
13721
rm -f conftest.$ac_objext
4407
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408
 
  (eval $ac_compile) 2>conftest.er1
 
13722
if { (ac_try="$ac_compile"
 
13723
case "(($ac_try" in
 
13724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13725
  *) ac_try_echo=$ac_try;;
 
13726
esac
 
13727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13728
  (eval "$ac_compile") 2>conftest.er1
4409
13729
  ac_status=$?
4410
13730
  grep -v '^ *+' conftest.er1 >conftest.err
4411
13731
  rm -f conftest.er1
4412
13732
  cat conftest.err >&5
4413
13733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414
13734
  (exit $ac_status); } &&
4415
 
         { ac_try='test -z "$ac_c_werror_flag"
4416
 
                         || test ! -s conftest.err'
4417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418
 
  (eval $ac_try) 2>&5
 
13735
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
13736
  { (case "(($ac_try" in
 
13737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13738
  *) ac_try_echo=$ac_try;;
 
13739
esac
 
13740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13741
  (eval "$ac_try") 2>&5
4419
13742
  ac_status=$?
4420
13743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421
13744
  (exit $ac_status); }; } &&
4422
13745
         { ac_try='test -s conftest.$ac_objext'
4423
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424
 
  (eval $ac_try) 2>&5
 
13746
  { (case "(($ac_try" in
 
13747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13748
  *) ac_try_echo=$ac_try;;
 
13749
esac
 
13750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13751
  (eval "$ac_try") 2>&5
4425
13752
  ac_status=$?
4426
13753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427
13754
  (exit $ac_status); }; }; then
4430
13757
  echo "$as_me: failed program was:" >&5
4431
13758
sed 's/^/| /' conftest.$ac_ext >&5
4432
13759
 
4433
 
ac_header_compiler=no
 
13760
        ac_header_compiler=no
4434
13761
fi
4435
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
13762
 
 
13763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13764
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13765
echo "${ECHO_T}$ac_header_compiler" >&6; }
4438
13766
 
4439
13767
# Is the header present?
4440
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4441
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13768
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13769
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4442
13770
cat >conftest.$ac_ext <<_ACEOF
4443
13771
/* confdefs.h.  */
4444
13772
_ACEOF
4447
13775
/* end confdefs.h.  */
4448
13776
#include <$ac_header>
4449
13777
_ACEOF
4450
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13778
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13779
case "(($ac_try" in
 
13780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13781
  *) ac_try_echo=$ac_try;;
 
13782
esac
 
13783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13784
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4452
13785
  ac_status=$?
4453
13786
  grep -v '^ *+' conftest.er1 >conftest.err
4454
13787
  rm -f conftest.er1
4472
13805
 
4473
13806
  ac_header_preproc=no
4474
13807
fi
 
13808
 
4475
13809
rm -f conftest.err conftest.$ac_ext
4476
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
13810
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13811
echo "${ECHO_T}$ac_header_preproc" >&6; }
4478
13812
 
4479
13813
# So?  What about this header?
4480
13814
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4498
13832
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4499
13833
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4500
13834
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4501
 
    (
4502
 
      cat <<\_ASBOX
 
13835
    ( cat <<\_ASBOX
4503
13836
## ------------------------------------ ##
4504
13837
## Report this to m17n-lib-bug@m17n.org ##
4505
13838
## ------------------------------------ ##
4506
13839
_ASBOX
4507
 
    ) |
4508
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
13840
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4509
13841
    ;;
4510
13842
esac
4511
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4512
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13843
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13844
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13845
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4514
13846
  echo $ECHO_N "(cached) $ECHO_C" >&6
4515
13847
else
4516
13848
  eval "$as_ac_Header=\$ac_header_preproc"
4517
13849
fi
4518
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13850
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13851
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13852
echo "${ECHO_T}$ac_res" >&6; }
4520
13853
 
4521
13854
fi
4522
13855
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4528
13861
 
4529
13862
done
4530
13863
 
4531
 
ac_ext=cc
 
13864
ac_ext=cpp
4532
13865
ac_cpp='$CXXCPP $CPPFLAGS'
4533
13866
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534
13867
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535
13868
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536
 
if test -n "$ac_tool_prefix"; then
4537
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
13869
if test -z "$CXX"; then
 
13870
  if test -n "$CCC"; then
 
13871
    CXX=$CCC
 
13872
  else
 
13873
    if test -n "$ac_tool_prefix"; then
 
13874
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538
13875
  do
4539
13876
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540
13877
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4542
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13878
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543
13880
if test "${ac_cv_prog_CXX+set}" = set; then
4544
13881
  echo $ECHO_N "(cached) $ECHO_C" >&6
4545
13882
else
4552
13889
  IFS=$as_save_IFS
4553
13890
  test -z "$as_dir" && as_dir=.
4554
13891
  for ac_exec_ext in '' $ac_executable_extensions; do
4555
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4556
13893
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557
13894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558
13895
    break 2
4559
13896
  fi
4560
13897
done
4561
13898
done
 
13899
IFS=$as_save_IFS
4562
13900
 
4563
13901
fi
4564
13902
fi
4565
13903
CXX=$ac_cv_prog_CXX
4566
13904
if test -n "$CXX"; then
4567
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4568
 
echo "${ECHO_T}$CXX" >&6
 
13905
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
13906
echo "${ECHO_T}$CXX" >&6; }
4569
13907
else
4570
 
  echo "$as_me:$LINENO: result: no" >&5
4571
 
echo "${ECHO_T}no" >&6
 
13908
  { echo "$as_me:$LINENO: result: no" >&5
 
13909
echo "${ECHO_T}no" >&6; }
4572
13910
fi
4573
13911
 
 
13912
 
4574
13913
    test -n "$CXX" && break
4575
13914
  done
4576
13915
fi
4577
13916
if test -z "$CXX"; then
4578
13917
  ac_ct_CXX=$CXX
4579
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
13918
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4580
13919
do
4581
13920
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4582
13921
set dummy $ac_prog; ac_word=$2
4583
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4584
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13922
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585
13924
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4586
13925
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
13926
else
4594
13933
  IFS=$as_save_IFS
4595
13934
  test -z "$as_dir" && as_dir=.
4596
13935
  for ac_exec_ext in '' $ac_executable_extensions; do
4597
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4598
13937
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4599
13938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600
13939
    break 2
4601
13940
  fi
4602
13941
done
4603
13942
done
 
13943
IFS=$as_save_IFS
4604
13944
 
4605
13945
fi
4606
13946
fi
4607
13947
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4608
13948
if test -n "$ac_ct_CXX"; then
4609
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4610
 
echo "${ECHO_T}$ac_ct_CXX" >&6
 
13949
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
13950
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4611
13951
else
4612
 
  echo "$as_me:$LINENO: result: no" >&5
4613
 
echo "${ECHO_T}no" >&6
 
13952
  { echo "$as_me:$LINENO: result: no" >&5
 
13953
echo "${ECHO_T}no" >&6; }
4614
13954
fi
4615
13955
 
 
13956
 
4616
13957
  test -n "$ac_ct_CXX" && break
4617
13958
done
4618
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4619
 
 
4620
 
  CXX=$ac_ct_CXX
4621
 
fi
4622
 
 
4623
 
 
 
13959
 
 
13960
  if test "x$ac_ct_CXX" = x; then
 
13961
    CXX="g++"
 
13962
  else
 
13963
    case $cross_compiling:$ac_tool_warned in
 
13964
yes:)
 
13965
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
13966
whose name does not start with the host triplet.  If you think this
 
13967
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
13968
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
13969
whose name does not start with the host triplet.  If you think this
 
13970
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
13971
ac_tool_warned=yes ;;
 
13972
esac
 
13973
    CXX=$ac_ct_CXX
 
13974
  fi
 
13975
fi
 
13976
 
 
13977
  fi
 
13978
fi
4624
13979
# Provide some information about the compiler.
4625
 
echo "$as_me:$LINENO:" \
4626
 
     "checking for C++ compiler version" >&5
 
13980
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4627
13981
ac_compiler=`set X $ac_compile; echo $2`
4628
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4629
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4630
 
  ac_status=$?
4631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
 
  (exit $ac_status); }
4633
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4634
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4635
 
  ac_status=$?
4636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637
 
  (exit $ac_status); }
4638
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4639
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
13982
{ (ac_try="$ac_compiler --version >&5"
 
13983
case "(($ac_try" in
 
13984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13985
  *) ac_try_echo=$ac_try;;
 
13986
esac
 
13987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13988
  (eval "$ac_compiler --version >&5") 2>&5
 
13989
  ac_status=$?
 
13990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13991
  (exit $ac_status); }
 
13992
{ (ac_try="$ac_compiler -v >&5"
 
13993
case "(($ac_try" in
 
13994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13995
  *) ac_try_echo=$ac_try;;
 
13996
esac
 
13997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13998
  (eval "$ac_compiler -v >&5") 2>&5
 
13999
  ac_status=$?
 
14000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14001
  (exit $ac_status); }
 
14002
{ (ac_try="$ac_compiler -V >&5"
 
14003
case "(($ac_try" in
 
14004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14005
  *) ac_try_echo=$ac_try;;
 
14006
esac
 
14007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14008
  (eval "$ac_compiler -V >&5") 2>&5
4640
14009
  ac_status=$?
4641
14010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642
14011
  (exit $ac_status); }
4643
14012
 
4644
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4645
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
14013
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
14014
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4646
14015
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4647
14016
  echo $ECHO_N "(cached) $ECHO_C" >&6
4648
14017
else
4665
14034
}
4666
14035
_ACEOF
4667
14036
rm -f conftest.$ac_objext
4668
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669
 
  (eval $ac_compile) 2>conftest.er1
 
14037
if { (ac_try="$ac_compile"
 
14038
case "(($ac_try" in
 
14039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14040
  *) ac_try_echo=$ac_try;;
 
14041
esac
 
14042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14043
  (eval "$ac_compile") 2>conftest.er1
4670
14044
  ac_status=$?
4671
14045
  grep -v '^ *+' conftest.er1 >conftest.err
4672
14046
  rm -f conftest.er1
4673
14047
  cat conftest.err >&5
4674
14048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
14049
  (exit $ac_status); } &&
4676
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4677
 
                         || test ! -s conftest.err'
4678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
 
  (eval $ac_try) 2>&5
 
14050
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
14051
  { (case "(($ac_try" in
 
14052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14053
  *) ac_try_echo=$ac_try;;
 
14054
esac
 
14055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14056
  (eval "$ac_try") 2>&5
4680
14057
  ac_status=$?
4681
14058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
14059
  (exit $ac_status); }; } &&
4683
14060
         { ac_try='test -s conftest.$ac_objext'
4684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685
 
  (eval $ac_try) 2>&5
 
14061
  { (case "(($ac_try" in
 
14062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14063
  *) ac_try_echo=$ac_try;;
 
14064
esac
 
14065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14066
  (eval "$ac_try") 2>&5
4686
14067
  ac_status=$?
4687
14068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
14069
  (exit $ac_status); }; }; then
4691
14072
  echo "$as_me: failed program was:" >&5
4692
14073
sed 's/^/| /' conftest.$ac_ext >&5
4693
14074
 
4694
 
ac_compiler_gnu=no
 
14075
        ac_compiler_gnu=no
4695
14076
fi
4696
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14077
 
 
14078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697
14079
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4698
14080
 
4699
14081
fi
4700
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4701
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
14082
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
14083
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4702
14084
GXX=`test $ac_compiler_gnu = yes && echo yes`
4703
14085
ac_test_CXXFLAGS=${CXXFLAGS+set}
4704
14086
ac_save_CXXFLAGS=$CXXFLAGS
4705
 
CXXFLAGS="-g"
4706
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4707
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
14087
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
14088
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4708
14089
if test "${ac_cv_prog_cxx_g+set}" = set; then
4709
14090
  echo $ECHO_N "(cached) $ECHO_C" >&6
4710
14091
else
4711
 
  cat >conftest.$ac_ext <<_ACEOF
4712
 
/* confdefs.h.  */
4713
 
_ACEOF
4714
 
cat confdefs.h >>conftest.$ac_ext
4715
 
cat >>conftest.$ac_ext <<_ACEOF
4716
 
/* end confdefs.h.  */
4717
 
 
4718
 
int
4719
 
main ()
4720
 
{
4721
 
 
4722
 
  ;
4723
 
  return 0;
4724
 
}
4725
 
_ACEOF
4726
 
rm -f conftest.$ac_objext
4727
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728
 
  (eval $ac_compile) 2>conftest.er1
4729
 
  ac_status=$?
4730
 
  grep -v '^ *+' conftest.er1 >conftest.err
4731
 
  rm -f conftest.er1
4732
 
  cat conftest.err >&5
4733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
 
  (exit $ac_status); } &&
4735
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4736
 
                         || test ! -s conftest.err'
4737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738
 
  (eval $ac_try) 2>&5
4739
 
  ac_status=$?
4740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741
 
  (exit $ac_status); }; } &&
4742
 
         { ac_try='test -s conftest.$ac_objext'
4743
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744
 
  (eval $ac_try) 2>&5
4745
 
  ac_status=$?
4746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747
 
  (exit $ac_status); }; }; then
4748
 
  ac_cv_prog_cxx_g=yes
4749
 
else
4750
 
  echo "$as_me: failed program was:" >&5
4751
 
sed 's/^/| /' conftest.$ac_ext >&5
4752
 
 
4753
 
ac_cv_prog_cxx_g=no
4754
 
fi
4755
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4756
 
fi
4757
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4758
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
14092
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
14093
   ac_cxx_werror_flag=yes
 
14094
   ac_cv_prog_cxx_g=no
 
14095
   CXXFLAGS="-g"
 
14096
   cat >conftest.$ac_ext <<_ACEOF
 
14097
/* confdefs.h.  */
 
14098
_ACEOF
 
14099
cat confdefs.h >>conftest.$ac_ext
 
14100
cat >>conftest.$ac_ext <<_ACEOF
 
14101
/* end confdefs.h.  */
 
14102
 
 
14103
int
 
14104
main ()
 
14105
{
 
14106
 
 
14107
  ;
 
14108
  return 0;
 
14109
}
 
14110
_ACEOF
 
14111
rm -f conftest.$ac_objext
 
14112
if { (ac_try="$ac_compile"
 
14113
case "(($ac_try" in
 
14114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14115
  *) ac_try_echo=$ac_try;;
 
14116
esac
 
14117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14118
  (eval "$ac_compile") 2>conftest.er1
 
14119
  ac_status=$?
 
14120
  grep -v '^ *+' conftest.er1 >conftest.err
 
14121
  rm -f conftest.er1
 
14122
  cat conftest.err >&5
 
14123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14124
  (exit $ac_status); } &&
 
14125
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
14126
  { (case "(($ac_try" in
 
14127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14128
  *) ac_try_echo=$ac_try;;
 
14129
esac
 
14130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14131
  (eval "$ac_try") 2>&5
 
14132
  ac_status=$?
 
14133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14134
  (exit $ac_status); }; } &&
 
14135
         { ac_try='test -s conftest.$ac_objext'
 
14136
  { (case "(($ac_try" in
 
14137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14138
  *) ac_try_echo=$ac_try;;
 
14139
esac
 
14140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14141
  (eval "$ac_try") 2>&5
 
14142
  ac_status=$?
 
14143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14144
  (exit $ac_status); }; }; then
 
14145
  ac_cv_prog_cxx_g=yes
 
14146
else
 
14147
  echo "$as_me: failed program was:" >&5
 
14148
sed 's/^/| /' conftest.$ac_ext >&5
 
14149
 
 
14150
        CXXFLAGS=""
 
14151
      cat >conftest.$ac_ext <<_ACEOF
 
14152
/* confdefs.h.  */
 
14153
_ACEOF
 
14154
cat confdefs.h >>conftest.$ac_ext
 
14155
cat >>conftest.$ac_ext <<_ACEOF
 
14156
/* end confdefs.h.  */
 
14157
 
 
14158
int
 
14159
main ()
 
14160
{
 
14161
 
 
14162
  ;
 
14163
  return 0;
 
14164
}
 
14165
_ACEOF
 
14166
rm -f conftest.$ac_objext
 
14167
if { (ac_try="$ac_compile"
 
14168
case "(($ac_try" in
 
14169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14170
  *) ac_try_echo=$ac_try;;
 
14171
esac
 
14172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14173
  (eval "$ac_compile") 2>conftest.er1
 
14174
  ac_status=$?
 
14175
  grep -v '^ *+' conftest.er1 >conftest.err
 
14176
  rm -f conftest.er1
 
14177
  cat conftest.err >&5
 
14178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14179
  (exit $ac_status); } &&
 
14180
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
14181
  { (case "(($ac_try" in
 
14182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14183
  *) ac_try_echo=$ac_try;;
 
14184
esac
 
14185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14186
  (eval "$ac_try") 2>&5
 
14187
  ac_status=$?
 
14188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14189
  (exit $ac_status); }; } &&
 
14190
         { ac_try='test -s conftest.$ac_objext'
 
14191
  { (case "(($ac_try" in
 
14192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14193
  *) ac_try_echo=$ac_try;;
 
14194
esac
 
14195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14196
  (eval "$ac_try") 2>&5
 
14197
  ac_status=$?
 
14198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14199
  (exit $ac_status); }; }; then
 
14200
  :
 
14201
else
 
14202
  echo "$as_me: failed program was:" >&5
 
14203
sed 's/^/| /' conftest.$ac_ext >&5
 
14204
 
 
14205
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
14206
         CXXFLAGS="-g"
 
14207
         cat >conftest.$ac_ext <<_ACEOF
 
14208
/* confdefs.h.  */
 
14209
_ACEOF
 
14210
cat confdefs.h >>conftest.$ac_ext
 
14211
cat >>conftest.$ac_ext <<_ACEOF
 
14212
/* end confdefs.h.  */
 
14213
 
 
14214
int
 
14215
main ()
 
14216
{
 
14217
 
 
14218
  ;
 
14219
  return 0;
 
14220
}
 
14221
_ACEOF
 
14222
rm -f conftest.$ac_objext
 
14223
if { (ac_try="$ac_compile"
 
14224
case "(($ac_try" in
 
14225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14226
  *) ac_try_echo=$ac_try;;
 
14227
esac
 
14228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14229
  (eval "$ac_compile") 2>conftest.er1
 
14230
  ac_status=$?
 
14231
  grep -v '^ *+' conftest.er1 >conftest.err
 
14232
  rm -f conftest.er1
 
14233
  cat conftest.err >&5
 
14234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14235
  (exit $ac_status); } &&
 
14236
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
14237
  { (case "(($ac_try" in
 
14238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14239
  *) ac_try_echo=$ac_try;;
 
14240
esac
 
14241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14242
  (eval "$ac_try") 2>&5
 
14243
  ac_status=$?
 
14244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14245
  (exit $ac_status); }; } &&
 
14246
         { ac_try='test -s conftest.$ac_objext'
 
14247
  { (case "(($ac_try" in
 
14248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14249
  *) ac_try_echo=$ac_try;;
 
14250
esac
 
14251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14252
  (eval "$ac_try") 2>&5
 
14253
  ac_status=$?
 
14254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14255
  (exit $ac_status); }; }; then
 
14256
  ac_cv_prog_cxx_g=yes
 
14257
else
 
14258
  echo "$as_me: failed program was:" >&5
 
14259
sed 's/^/| /' conftest.$ac_ext >&5
 
14260
 
 
14261
 
 
14262
fi
 
14263
 
 
14264
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14265
fi
 
14266
 
 
14267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14268
fi
 
14269
 
 
14270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14271
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
14272
fi
 
14273
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
14274
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4759
14275
if test "$ac_test_CXXFLAGS" = set; then
4760
14276
  CXXFLAGS=$ac_save_CXXFLAGS
4761
14277
elif test $ac_cv_prog_cxx_g = yes; then
4771
14287
    CXXFLAGS=
4772
14288
  fi
4773
14289
fi
4774
 
for ac_declaration in \
4775
 
   '' \
4776
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4777
 
   'extern "C" void std::exit (int); using std::exit;' \
4778
 
   'extern "C" void exit (int) throw ();' \
4779
 
   'extern "C" void exit (int);' \
4780
 
   'void exit (int);'
4781
 
do
4782
 
  cat >conftest.$ac_ext <<_ACEOF
4783
 
/* confdefs.h.  */
4784
 
_ACEOF
4785
 
cat confdefs.h >>conftest.$ac_ext
4786
 
cat >>conftest.$ac_ext <<_ACEOF
4787
 
/* end confdefs.h.  */
4788
 
$ac_declaration
4789
 
#include <stdlib.h>
4790
 
int
4791
 
main ()
4792
 
{
4793
 
exit (42);
4794
 
  ;
4795
 
  return 0;
4796
 
}
4797
 
_ACEOF
4798
 
rm -f conftest.$ac_objext
4799
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800
 
  (eval $ac_compile) 2>conftest.er1
4801
 
  ac_status=$?
4802
 
  grep -v '^ *+' conftest.er1 >conftest.err
4803
 
  rm -f conftest.er1
4804
 
  cat conftest.err >&5
4805
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806
 
  (exit $ac_status); } &&
4807
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4808
 
                         || test ! -s conftest.err'
4809
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810
 
  (eval $ac_try) 2>&5
4811
 
  ac_status=$?
4812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
 
  (exit $ac_status); }; } &&
4814
 
         { ac_try='test -s conftest.$ac_objext'
4815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816
 
  (eval $ac_try) 2>&5
4817
 
  ac_status=$?
4818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
 
  (exit $ac_status); }; }; then
4820
 
  :
4821
 
else
4822
 
  echo "$as_me: failed program was:" >&5
4823
 
sed 's/^/| /' conftest.$ac_ext >&5
4824
 
 
4825
 
continue
4826
 
fi
4827
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828
 
  cat >conftest.$ac_ext <<_ACEOF
4829
 
/* confdefs.h.  */
4830
 
_ACEOF
4831
 
cat confdefs.h >>conftest.$ac_ext
4832
 
cat >>conftest.$ac_ext <<_ACEOF
4833
 
/* end confdefs.h.  */
4834
 
$ac_declaration
4835
 
int
4836
 
main ()
4837
 
{
4838
 
exit (42);
4839
 
  ;
4840
 
  return 0;
4841
 
}
4842
 
_ACEOF
4843
 
rm -f conftest.$ac_objext
4844
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845
 
  (eval $ac_compile) 2>conftest.er1
4846
 
  ac_status=$?
4847
 
  grep -v '^ *+' conftest.er1 >conftest.err
4848
 
  rm -f conftest.er1
4849
 
  cat conftest.err >&5
4850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851
 
  (exit $ac_status); } &&
4852
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4853
 
                         || test ! -s conftest.err'
4854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855
 
  (eval $ac_try) 2>&5
4856
 
  ac_status=$?
4857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
 
  (exit $ac_status); }; } &&
4859
 
         { ac_try='test -s conftest.$ac_objext'
4860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861
 
  (eval $ac_try) 2>&5
4862
 
  ac_status=$?
4863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
 
  (exit $ac_status); }; }; then
4865
 
  break
4866
 
else
4867
 
  echo "$as_me: failed program was:" >&5
4868
 
sed 's/^/| /' conftest.$ac_ext >&5
4869
 
 
4870
 
fi
4871
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4872
 
done
4873
 
rm -f conftest*
4874
 
if test -n "$ac_declaration"; then
4875
 
  echo '#ifdef __cplusplus' >>confdefs.h
4876
 
  echo $ac_declaration      >>confdefs.h
4877
 
  echo '#endif'             >>confdefs.h
4878
 
fi
4879
 
 
4880
 
ac_ext=cc
 
14290
ac_ext=cpp
4881
14291
ac_cpp='$CXXCPP $CPPFLAGS'
4882
14292
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883
14293
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885
14295
 
4886
14296
depcc="$CXX"  am_compiler_list=
4887
14297
 
4888
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4889
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
14298
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
14299
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4890
14300
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4891
14301
  echo $ECHO_N "(cached) $ECHO_C" >&6
4892
14302
else
4975
14385
fi
4976
14386
 
4977
14387
fi
4978
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4979
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
14388
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
14389
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4980
14390
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4981
14391
 
4982
14392
 
4992
14402
fi
4993
14403
 
4994
14404
 
4995
 
ac_ext=cc
 
14405
 
 
14406
 
 
14407
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
14408
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
14409
    (test "X$CXX" != "Xg++"))) ; then
 
14410
  ac_ext=cpp
4996
14411
ac_cpp='$CXXCPP $CPPFLAGS'
4997
14412
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998
14413
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999
14414
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5001
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
14415
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
14416
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5002
14417
if test -z "$CXXCPP"; then
5003
14418
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5004
14419
  echo $ECHO_N "(cached) $ECHO_C" >&6
5028
14443
#endif
5029
14444
                     Syntax error
5030
14445
_ACEOF
5031
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14446
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14447
case "(($ac_try" in
 
14448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14449
  *) ac_try_echo=$ac_try;;
 
14450
esac
 
14451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14452
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5033
14453
  ac_status=$?
5034
14454
  grep -v '^ *+' conftest.er1 >conftest.err
5035
14455
  rm -f conftest.er1
5054
14474
  # Broken: fails on valid input.
5055
14475
continue
5056
14476
fi
 
14477
 
5057
14478
rm -f conftest.err conftest.$ac_ext
5058
14479
 
5059
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
14480
  # OK, works on sane cases.  Now check whether nonexistent headers
5060
14481
  # can be detected and how.
5061
14482
  cat >conftest.$ac_ext <<_ACEOF
5062
14483
/* confdefs.h.  */
5066
14487
/* end confdefs.h.  */
5067
14488
#include <ac_nonexistent.h>
5068
14489
_ACEOF
5069
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5070
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14490
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14491
case "(($ac_try" in
 
14492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14493
  *) ac_try_echo=$ac_try;;
 
14494
esac
 
14495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14496
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071
14497
  ac_status=$?
5072
14498
  grep -v '^ *+' conftest.er1 >conftest.err
5073
14499
  rm -f conftest.er1
5094
14520
ac_preproc_ok=:
5095
14521
break
5096
14522
fi
 
14523
 
5097
14524
rm -f conftest.err conftest.$ac_ext
5098
14525
 
5099
14526
done
5111
14538
else
5112
14539
  ac_cv_prog_CXXCPP=$CXXCPP
5113
14540
fi
5114
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5115
 
echo "${ECHO_T}$CXXCPP" >&6
 
14541
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
14542
echo "${ECHO_T}$CXXCPP" >&6; }
5116
14543
ac_preproc_ok=false
5117
14544
for ac_cxx_preproc_warn_flag in '' yes
5118
14545
do
5135
14562
#endif
5136
14563
                     Syntax error
5137
14564
_ACEOF
5138
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14565
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14566
case "(($ac_try" in
 
14567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14568
  *) ac_try_echo=$ac_try;;
 
14569
esac
 
14570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14571
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140
14572
  ac_status=$?
5141
14573
  grep -v '^ *+' conftest.er1 >conftest.err
5142
14574
  rm -f conftest.er1
5161
14593
  # Broken: fails on valid input.
5162
14594
continue
5163
14595
fi
 
14596
 
5164
14597
rm -f conftest.err conftest.$ac_ext
5165
14598
 
5166
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
14599
  # OK, works on sane cases.  Now check whether nonexistent headers
5167
14600
  # can be detected and how.
5168
14601
  cat >conftest.$ac_ext <<_ACEOF
5169
14602
/* confdefs.h.  */
5173
14606
/* end confdefs.h.  */
5174
14607
#include <ac_nonexistent.h>
5175
14608
_ACEOF
5176
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14609
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14610
case "(($ac_try" in
 
14611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14612
  *) ac_try_echo=$ac_try;;
 
14613
esac
 
14614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14615
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178
14616
  ac_status=$?
5179
14617
  grep -v '^ *+' conftest.er1 >conftest.err
5180
14618
  rm -f conftest.er1
5201
14639
ac_preproc_ok=:
5202
14640
break
5203
14641
fi
 
14642
 
5204
14643
rm -f conftest.err conftest.$ac_ext
5205
14644
 
5206
14645
done
5216
14655
   { (exit 1); exit 1; }; }
5217
14656
fi
5218
14657
 
5219
 
ac_ext=cc
 
14658
ac_ext=cpp
5220
14659
ac_cpp='$CXXCPP $CPPFLAGS'
5221
14660
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222
14661
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223
14662
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224
14663
 
 
14664
fi
 
14665
 
5225
14666
 
5226
14667
ac_ext=f
5227
14668
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5228
14669
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229
14670
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5230
14671
if test -n "$ac_tool_prefix"; then
5231
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
14672
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5232
14673
  do
5233
14674
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5234
14675
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5235
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5236
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5237
14678
if test "${ac_cv_prog_F77+set}" = set; then
5238
14679
  echo $ECHO_N "(cached) $ECHO_C" >&6
5239
14680
else
5246
14687
  IFS=$as_save_IFS
5247
14688
  test -z "$as_dir" && as_dir=.
5248
14689
  for ac_exec_ext in '' $ac_executable_extensions; do
5249
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5250
14691
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5251
14692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252
14693
    break 2
5253
14694
  fi
5254
14695
done
5255
14696
done
 
14697
IFS=$as_save_IFS
5256
14698
 
5257
14699
fi
5258
14700
fi
5259
14701
F77=$ac_cv_prog_F77
5260
14702
if test -n "$F77"; then
5261
 
  echo "$as_me:$LINENO: result: $F77" >&5
5262
 
echo "${ECHO_T}$F77" >&6
 
14703
  { echo "$as_me:$LINENO: result: $F77" >&5
 
14704
echo "${ECHO_T}$F77" >&6; }
5263
14705
else
5264
 
  echo "$as_me:$LINENO: result: no" >&5
5265
 
echo "${ECHO_T}no" >&6
 
14706
  { echo "$as_me:$LINENO: result: no" >&5
 
14707
echo "${ECHO_T}no" >&6; }
5266
14708
fi
5267
14709
 
 
14710
 
5268
14711
    test -n "$F77" && break
5269
14712
  done
5270
14713
fi
5271
14714
if test -z "$F77"; then
5272
14715
  ac_ct_F77=$F77
5273
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
14716
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5274
14717
do
5275
14718
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5276
14719
set dummy $ac_prog; ac_word=$2
5277
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5278
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14720
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279
14722
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5280
14723
  echo $ECHO_N "(cached) $ECHO_C" >&6
5281
14724
else
5288
14731
  IFS=$as_save_IFS
5289
14732
  test -z "$as_dir" && as_dir=.
5290
14733
  for ac_exec_ext in '' $ac_executable_extensions; do
5291
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5292
14735
    ac_cv_prog_ac_ct_F77="$ac_prog"
5293
14736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294
14737
    break 2
5295
14738
  fi
5296
14739
done
5297
14740
done
 
14741
IFS=$as_save_IFS
5298
14742
 
5299
14743
fi
5300
14744
fi
5301
14745
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5302
14746
if test -n "$ac_ct_F77"; then
5303
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5304
 
echo "${ECHO_T}$ac_ct_F77" >&6
 
14747
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
14748
echo "${ECHO_T}$ac_ct_F77" >&6; }
5305
14749
else
5306
 
  echo "$as_me:$LINENO: result: no" >&5
5307
 
echo "${ECHO_T}no" >&6
 
14750
  { echo "$as_me:$LINENO: result: no" >&5
 
14751
echo "${ECHO_T}no" >&6; }
5308
14752
fi
5309
14753
 
 
14754
 
5310
14755
  test -n "$ac_ct_F77" && break
5311
14756
done
5312
14757
 
5313
 
  F77=$ac_ct_F77
 
14758
  if test "x$ac_ct_F77" = x; then
 
14759
    F77=""
 
14760
  else
 
14761
    case $cross_compiling:$ac_tool_warned in
 
14762
yes:)
 
14763
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
14764
whose name does not start with the host triplet.  If you think this
 
14765
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
14766
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
14767
whose name does not start with the host triplet.  If you think this
 
14768
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
14769
ac_tool_warned=yes ;;
 
14770
esac
 
14771
    F77=$ac_ct_F77
 
14772
  fi
5314
14773
fi
5315
14774
 
5316
14775
 
5317
14776
# Provide some information about the compiler.
5318
 
echo "$as_me:5318:" \
5319
 
     "checking for Fortran 77 compiler version" >&5
 
14777
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5320
14778
ac_compiler=`set X $ac_compile; echo $2`
5321
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5322
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5323
 
  ac_status=$?
5324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
 
  (exit $ac_status); }
5326
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5327
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5328
 
  ac_status=$?
5329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330
 
  (exit $ac_status); }
5331
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5332
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
14779
{ (ac_try="$ac_compiler --version >&5"
 
14780
case "(($ac_try" in
 
14781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14782
  *) ac_try_echo=$ac_try;;
 
14783
esac
 
14784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14785
  (eval "$ac_compiler --version >&5") 2>&5
 
14786
  ac_status=$?
 
14787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14788
  (exit $ac_status); }
 
14789
{ (ac_try="$ac_compiler -v >&5"
 
14790
case "(($ac_try" in
 
14791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14792
  *) ac_try_echo=$ac_try;;
 
14793
esac
 
14794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14795
  (eval "$ac_compiler -v >&5") 2>&5
 
14796
  ac_status=$?
 
14797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14798
  (exit $ac_status); }
 
14799
{ (ac_try="$ac_compiler -V >&5"
 
14800
case "(($ac_try" in
 
14801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14802
  *) ac_try_echo=$ac_try;;
 
14803
esac
 
14804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14805
  (eval "$ac_compiler -V >&5") 2>&5
5333
14806
  ac_status=$?
5334
14807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335
14808
  (exit $ac_status); }
5339
14812
# input file.  (Note that this only needs to work for GNU compilers.)
5340
14813
ac_save_ext=$ac_ext
5341
14814
ac_ext=F
5342
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5343
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
14815
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
14816
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5344
14817
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5345
14818
  echo $ECHO_N "(cached) $ECHO_C" >&6
5346
14819
else
5353
14826
      end
5354
14827
_ACEOF
5355
14828
rm -f conftest.$ac_objext
5356
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357
 
  (eval $ac_compile) 2>conftest.er1
 
14829
if { (ac_try="$ac_compile"
 
14830
case "(($ac_try" in
 
14831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14832
  *) ac_try_echo=$ac_try;;
 
14833
esac
 
14834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14835
  (eval "$ac_compile") 2>conftest.er1
5358
14836
  ac_status=$?
5359
14837
  grep -v '^ *+' conftest.er1 >conftest.err
5360
14838
  rm -f conftest.er1
5361
14839
  cat conftest.err >&5
5362
14840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
14841
  (exit $ac_status); } &&
5364
 
         { ac_try='test -z "$ac_f77_werror_flag"
5365
 
                         || test ! -s conftest.err'
5366
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367
 
  (eval $ac_try) 2>&5
 
14842
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
14843
  { (case "(($ac_try" in
 
14844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14845
  *) ac_try_echo=$ac_try;;
 
14846
esac
 
14847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14848
  (eval "$ac_try") 2>&5
5368
14849
  ac_status=$?
5369
14850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370
14851
  (exit $ac_status); }; } &&
5371
14852
         { ac_try='test -s conftest.$ac_objext'
5372
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373
 
  (eval $ac_try) 2>&5
 
14853
  { (case "(($ac_try" in
 
14854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14855
  *) ac_try_echo=$ac_try;;
 
14856
esac
 
14857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14858
  (eval "$ac_try") 2>&5
5374
14859
  ac_status=$?
5375
14860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376
14861
  (exit $ac_status); }; }; then
5379
14864
  echo "$as_me: failed program was:" >&5
5380
14865
sed 's/^/| /' conftest.$ac_ext >&5
5381
14866
 
5382
 
ac_compiler_gnu=no
 
14867
        ac_compiler_gnu=no
5383
14868
fi
5384
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14869
 
 
14870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385
14871
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5386
14872
 
5387
14873
fi
5388
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5389
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
14874
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
14875
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5390
14876
ac_ext=$ac_save_ext
5391
14877
ac_test_FFLAGS=${FFLAGS+set}
5392
14878
ac_save_FFLAGS=$FFLAGS
5393
14879
FFLAGS=
5394
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5395
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
14880
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
14881
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5396
14882
if test "${ac_cv_prog_f77_g+set}" = set; then
5397
14883
  echo $ECHO_N "(cached) $ECHO_C" >&6
5398
14884
else
5403
14889
      end
5404
14890
_ACEOF
5405
14891
rm -f conftest.$ac_objext
5406
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407
 
  (eval $ac_compile) 2>conftest.er1
 
14892
if { (ac_try="$ac_compile"
 
14893
case "(($ac_try" in
 
14894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14895
  *) ac_try_echo=$ac_try;;
 
14896
esac
 
14897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14898
  (eval "$ac_compile") 2>conftest.er1
5408
14899
  ac_status=$?
5409
14900
  grep -v '^ *+' conftest.er1 >conftest.err
5410
14901
  rm -f conftest.er1
5411
14902
  cat conftest.err >&5
5412
14903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413
14904
  (exit $ac_status); } &&
5414
 
         { ac_try='test -z "$ac_f77_werror_flag"
5415
 
                         || test ! -s conftest.err'
5416
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417
 
  (eval $ac_try) 2>&5
 
14905
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
14906
  { (case "(($ac_try" in
 
14907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14908
  *) ac_try_echo=$ac_try;;
 
14909
esac
 
14910
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14911
  (eval "$ac_try") 2>&5
5418
14912
  ac_status=$?
5419
14913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420
14914
  (exit $ac_status); }; } &&
5421
14915
         { ac_try='test -s conftest.$ac_objext'
5422
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423
 
  (eval $ac_try) 2>&5
 
14916
  { (case "(($ac_try" in
 
14917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14918
  *) ac_try_echo=$ac_try;;
 
14919
esac
 
14920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14921
  (eval "$ac_try") 2>&5
5424
14922
  ac_status=$?
5425
14923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
14924
  (exit $ac_status); }; }; then
5429
14927
  echo "$as_me: failed program was:" >&5
5430
14928
sed 's/^/| /' conftest.$ac_ext >&5
5431
14929
 
5432
 
ac_cv_prog_f77_g=no
5433
 
fi
5434
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5435
 
 
5436
 
fi
5437
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5438
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
14930
        ac_cv_prog_f77_g=no
 
14931
fi
 
14932
 
 
14933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14934
 
 
14935
fi
 
14936
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
14937
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5439
14938
if test "$ac_test_FFLAGS" = set; then
5440
14939
  FFLAGS=$ac_save_FFLAGS
5441
14940
elif test $ac_cv_prog_f77_g = yes; then
5464
14963
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5465
14964
 
5466
14965
# find the maximum length of command line arguments
5467
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5468
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
14966
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
14967
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5469
14968
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5470
14969
  echo $ECHO_N "(cached) $ECHO_C" >&6
5471
14970
else
5505
15004
    lt_cv_sys_max_cmd_len=8192;
5506
15005
    ;;
5507
15006
 
5508
 
 *)
 
15007
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
15008
    # This has been around since 386BSD, at least.  Likely further.
 
15009
    if test -x /sbin/sysctl; then
 
15010
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
15011
    elif test -x /usr/sbin/sysctl; then
 
15012
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
15013
    else
 
15014
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
15015
    fi
 
15016
    # And add a safety zone
 
15017
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
15018
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
15019
    ;;
 
15020
 
 
15021
  interix*)
 
15022
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
15023
    lt_cv_sys_max_cmd_len=196608
 
15024
    ;;
 
15025
 
 
15026
  osf*)
 
15027
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
15028
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
15029
    # nice to cause kernel panics so lets avoid the loop below.
 
15030
    # First set a reasonable default.
 
15031
    lt_cv_sys_max_cmd_len=16384
 
15032
    #
 
15033
    if test -x /sbin/sysconfig; then
 
15034
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
15035
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
15036
      esac
 
15037
    fi
 
15038
    ;;
 
15039
  sco3.2v5*)
 
15040
    lt_cv_sys_max_cmd_len=102400
 
15041
    ;;
 
15042
  sysv5* | sco5v6* | sysv4.2uw2*)
 
15043
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
15044
    if test -n "$kargmax"; then
 
15045
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
15046
    else
 
15047
      lt_cv_sys_max_cmd_len=32768
 
15048
    fi
 
15049
    ;;
 
15050
  *)
5509
15051
    # If test is not a shell built-in, we'll probably end up computing a
5510
15052
    # maximum length that is only half of the actual maximum length, but
5511
15053
    # we can't tell.
5512
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
15054
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
15055
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5513
15056
               = "XX$teststring") >/dev/null 2>&1 &&
5514
15057
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5515
15058
            lt_cv_sys_max_cmd_len=$new_result &&
5529
15072
fi
5530
15073
 
5531
15074
if test -n $lt_cv_sys_max_cmd_len ; then
5532
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5533
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
15075
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
15076
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5534
15077
else
5535
 
  echo "$as_me:$LINENO: result: none" >&5
5536
 
echo "${ECHO_T}none" >&6
 
15078
  { echo "$as_me:$LINENO: result: none" >&5
 
15079
echo "${ECHO_T}none" >&6; }
5537
15080
fi
5538
15081
 
5539
15082
 
5540
15083
 
5541
15084
 
5542
15085
# Check for command to grab the raw symbol name followed by C symbol from nm.
5543
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5544
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
15086
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
15087
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5545
15088
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5546
15089
  echo $ECHO_N "(cached) $ECHO_C" >&6
5547
15090
else
5555
15098
# Regexp to match symbols that can be accessed directly from C.
5556
15099
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5557
15100
 
5558
 
# Transform the above into a raw symbol and a C symbol.
5559
 
symxfrm='\1 \2\3 \3'
5560
 
 
5561
15101
# Transform an extracted symbol line into a proper C declaration
5562
15102
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5563
15103
 
5579
15119
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5580
15120
  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'"
5581
15121
  ;;
 
15122
linux* | k*bsd*-gnu)
 
15123
  if test "$host_cpu" = ia64; then
 
15124
    symcode='[ABCDGIRSTW]'
 
15125
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
15126
    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'"
 
15127
  fi
 
15128
  ;;
5582
15129
irix* | nonstopux*)
5583
15130
  symcode='[BCDEGRST]'
5584
15131
  ;;
5585
15132
osf*)
5586
15133
  symcode='[BCDEGQRST]'
5587
15134
  ;;
5588
 
solaris* | sysv5*)
 
15135
solaris*)
5589
15136
  symcode='[BDRT]'
5590
15137
  ;;
 
15138
sco3.2v5*)
 
15139
  symcode='[DT]'
 
15140
  ;;
 
15141
sysv4.2uw2*)
 
15142
  symcode='[DT]'
 
15143
  ;;
 
15144
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
15145
  symcode='[ABDT]'
 
15146
  ;;
5591
15147
sysv4)
5592
15148
  symcode='[DFNSTU]'
5593
15149
  ;;
5610
15166
# Try without a prefix undercore, then with it.
5611
15167
for ac_symprfx in "" "_"; do
5612
15168
 
 
15169
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
15170
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
15171
 
5613
15172
  # Write the raw and C identifiers.
5614
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
15173
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5615
15174
 
5616
15175
  # Check to see that the pipe works correctly.
5617
15176
  pipe_works=no
5729
15288
  lt_cv_sys_global_symbol_to_cdecl=
5730
15289
fi
5731
15290
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732
 
  echo "$as_me:$LINENO: result: failed" >&5
5733
 
echo "${ECHO_T}failed" >&6
 
15291
  { echo "$as_me:$LINENO: result: failed" >&5
 
15292
echo "${ECHO_T}failed" >&6; }
5734
15293
else
5735
 
  echo "$as_me:$LINENO: result: ok" >&5
5736
 
echo "${ECHO_T}ok" >&6
 
15294
  { echo "$as_me:$LINENO: result: ok" >&5
 
15295
echo "${ECHO_T}ok" >&6; }
5737
15296
fi
5738
15297
 
5739
 
echo "$as_me:$LINENO: checking for objdir" >&5
5740
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
15298
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
15299
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5741
15300
if test "${lt_cv_objdir+set}" = set; then
5742
15301
  echo $ECHO_N "(cached) $ECHO_C" >&6
5743
15302
else
5751
15310
fi
5752
15311
rmdir .libs 2>/dev/null
5753
15312
fi
5754
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5755
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
15313
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
15314
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5756
15315
objdir=$lt_cv_objdir
5757
15316
 
5758
15317
 
5773
15332
 
5774
15333
# Sed substitution that helps us do robust quoting.  It backslashifies
5775
15334
# metacharacters that are still active within double-quoted strings.
5776
 
Xsed='sed -e s/^X//'
 
15335
Xsed='sed -e 1s/^X//'
5777
15336
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5778
15337
 
5779
15338
# Same as above, but do not quote variable references.
5793
15352
default_ofile=libtool
5794
15353
can_build_shared=yes
5795
15354
 
5796
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
15355
# All known linkers require a `.a' archive for static linking (except MSVC,
5797
15356
# which needs '.lib').
5798
15357
libext=a
5799
15358
ltmain="$ac_aux_dir/ltmain.sh"
5803
15362
if test -n "$ac_tool_prefix"; then
5804
15363
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5805
15364
set dummy ${ac_tool_prefix}ar; ac_word=$2
5806
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5807
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15365
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808
15367
if test "${ac_cv_prog_AR+set}" = set; then
5809
15368
  echo $ECHO_N "(cached) $ECHO_C" >&6
5810
15369
else
5817
15376
  IFS=$as_save_IFS
5818
15377
  test -z "$as_dir" && as_dir=.
5819
15378
  for ac_exec_ext in '' $ac_executable_extensions; do
5820
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15379
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821
15380
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5822
15381
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823
15382
    break 2
5824
15383
  fi
5825
15384
done
5826
15385
done
 
15386
IFS=$as_save_IFS
5827
15387
 
5828
15388
fi
5829
15389
fi
5830
15390
AR=$ac_cv_prog_AR
5831
15391
if test -n "$AR"; then
5832
 
  echo "$as_me:$LINENO: result: $AR" >&5
5833
 
echo "${ECHO_T}$AR" >&6
 
15392
  { echo "$as_me:$LINENO: result: $AR" >&5
 
15393
echo "${ECHO_T}$AR" >&6; }
5834
15394
else
5835
 
  echo "$as_me:$LINENO: result: no" >&5
5836
 
echo "${ECHO_T}no" >&6
 
15395
  { echo "$as_me:$LINENO: result: no" >&5
 
15396
echo "${ECHO_T}no" >&6; }
5837
15397
fi
 
15398
 
5838
15399
 
5839
15400
fi
5840
15401
if test -z "$ac_cv_prog_AR"; then
5841
15402
  ac_ct_AR=$AR
5842
15403
  # Extract the first word of "ar", so it can be a program name with args.
5843
15404
set dummy ar; ac_word=$2
5844
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5845
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15405
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15406
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846
15407
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5847
15408
  echo $ECHO_N "(cached) $ECHO_C" >&6
5848
15409
else
5855
15416
  IFS=$as_save_IFS
5856
15417
  test -z "$as_dir" && as_dir=.
5857
15418
  for ac_exec_ext in '' $ac_executable_extensions; do
5858
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859
15420
    ac_cv_prog_ac_ct_AR="ar"
5860
15421
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861
15422
    break 2
5862
15423
  fi
5863
15424
done
5864
15425
done
 
15426
IFS=$as_save_IFS
5865
15427
 
5866
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5867
15428
fi
5868
15429
fi
5869
15430
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5870
15431
if test -n "$ac_ct_AR"; then
5871
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5872
 
echo "${ECHO_T}$ac_ct_AR" >&6
 
15432
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
15433
echo "${ECHO_T}$ac_ct_AR" >&6; }
5873
15434
else
5874
 
  echo "$as_me:$LINENO: result: no" >&5
5875
 
echo "${ECHO_T}no" >&6
 
15435
  { echo "$as_me:$LINENO: result: no" >&5
 
15436
echo "${ECHO_T}no" >&6; }
5876
15437
fi
5877
15438
 
5878
 
  AR=$ac_ct_AR
 
15439
  if test "x$ac_ct_AR" = x; then
 
15440
    AR="false"
 
15441
  else
 
15442
    case $cross_compiling:$ac_tool_warned in
 
15443
yes:)
 
15444
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
15445
whose name does not start with the host triplet.  If you think this
 
15446
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
15447
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
15448
whose name does not start with the host triplet.  If you think this
 
15449
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
15450
ac_tool_warned=yes ;;
 
15451
esac
 
15452
    AR=$ac_ct_AR
 
15453
  fi
5879
15454
else
5880
15455
  AR="$ac_cv_prog_AR"
5881
15456
fi
5883
15458
if test -n "$ac_tool_prefix"; then
5884
15459
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5885
15460
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5886
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5887
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15461
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888
15463
if test "${ac_cv_prog_RANLIB+set}" = set; then
5889
15464
  echo $ECHO_N "(cached) $ECHO_C" >&6
5890
15465
else
5897
15472
  IFS=$as_save_IFS
5898
15473
  test -z "$as_dir" && as_dir=.
5899
15474
  for ac_exec_ext in '' $ac_executable_extensions; do
5900
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901
15476
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5902
15477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903
15478
    break 2
5904
15479
  fi
5905
15480
done
5906
15481
done
 
15482
IFS=$as_save_IFS
5907
15483
 
5908
15484
fi
5909
15485
fi
5910
15486
RANLIB=$ac_cv_prog_RANLIB
5911
15487
if test -n "$RANLIB"; then
5912
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5913
 
echo "${ECHO_T}$RANLIB" >&6
 
15488
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
15489
echo "${ECHO_T}$RANLIB" >&6; }
5914
15490
else
5915
 
  echo "$as_me:$LINENO: result: no" >&5
5916
 
echo "${ECHO_T}no" >&6
 
15491
  { echo "$as_me:$LINENO: result: no" >&5
 
15492
echo "${ECHO_T}no" >&6; }
5917
15493
fi
 
15494
 
5918
15495
 
5919
15496
fi
5920
15497
if test -z "$ac_cv_prog_RANLIB"; then
5921
15498
  ac_ct_RANLIB=$RANLIB
5922
15499
  # Extract the first word of "ranlib", so it can be a program name with args.
5923
15500
set dummy ranlib; ac_word=$2
5924
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5925
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15501
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926
15503
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5927
15504
  echo $ECHO_N "(cached) $ECHO_C" >&6
5928
15505
else
5935
15512
  IFS=$as_save_IFS
5936
15513
  test -z "$as_dir" && as_dir=.
5937
15514
  for ac_exec_ext in '' $ac_executable_extensions; do
5938
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939
15516
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5940
15517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941
15518
    break 2
5942
15519
  fi
5943
15520
done
5944
15521
done
 
15522
IFS=$as_save_IFS
5945
15523
 
5946
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5947
15524
fi
5948
15525
fi
5949
15526
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5950
15527
if test -n "$ac_ct_RANLIB"; then
5951
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5952
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
15528
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
15529
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5953
15530
else
5954
 
  echo "$as_me:$LINENO: result: no" >&5
5955
 
echo "${ECHO_T}no" >&6
 
15531
  { echo "$as_me:$LINENO: result: no" >&5
 
15532
echo "${ECHO_T}no" >&6; }
5956
15533
fi
5957
15534
 
5958
 
  RANLIB=$ac_ct_RANLIB
 
15535
  if test "x$ac_ct_RANLIB" = x; then
 
15536
    RANLIB=":"
 
15537
  else
 
15538
    case $cross_compiling:$ac_tool_warned in
 
15539
yes:)
 
15540
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
15541
whose name does not start with the host triplet.  If you think this
 
15542
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
15543
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
15544
whose name does not start with the host triplet.  If you think this
 
15545
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
15546
ac_tool_warned=yes ;;
 
15547
esac
 
15548
    RANLIB=$ac_ct_RANLIB
 
15549
  fi
5959
15550
else
5960
15551
  RANLIB="$ac_cv_prog_RANLIB"
5961
15552
fi
5963
15554
if test -n "$ac_tool_prefix"; then
5964
15555
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5965
15556
set dummy ${ac_tool_prefix}strip; ac_word=$2
5966
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5967
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15557
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15558
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968
15559
if test "${ac_cv_prog_STRIP+set}" = set; then
5969
15560
  echo $ECHO_N "(cached) $ECHO_C" >&6
5970
15561
else
5977
15568
  IFS=$as_save_IFS
5978
15569
  test -z "$as_dir" && as_dir=.
5979
15570
  for ac_exec_ext in '' $ac_executable_extensions; do
5980
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15571
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981
15572
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5982
15573
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983
15574
    break 2
5984
15575
  fi
5985
15576
done
5986
15577
done
 
15578
IFS=$as_save_IFS
5987
15579
 
5988
15580
fi
5989
15581
fi
5990
15582
STRIP=$ac_cv_prog_STRIP
5991
15583
if test -n "$STRIP"; then
5992
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5993
 
echo "${ECHO_T}$STRIP" >&6
 
15584
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
15585
echo "${ECHO_T}$STRIP" >&6; }
5994
15586
else
5995
 
  echo "$as_me:$LINENO: result: no" >&5
5996
 
echo "${ECHO_T}no" >&6
 
15587
  { echo "$as_me:$LINENO: result: no" >&5
 
15588
echo "${ECHO_T}no" >&6; }
5997
15589
fi
 
15590
 
5998
15591
 
5999
15592
fi
6000
15593
if test -z "$ac_cv_prog_STRIP"; then
6001
15594
  ac_ct_STRIP=$STRIP
6002
15595
  # Extract the first word of "strip", so it can be a program name with args.
6003
15596
set dummy strip; ac_word=$2
6004
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6005
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15597
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006
15599
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6007
15600
  echo $ECHO_N "(cached) $ECHO_C" >&6
6008
15601
else
6015
15608
  IFS=$as_save_IFS
6016
15609
  test -z "$as_dir" && as_dir=.
6017
15610
  for ac_exec_ext in '' $ac_executable_extensions; do
6018
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019
15612
    ac_cv_prog_ac_ct_STRIP="strip"
6020
15613
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021
15614
    break 2
6022
15615
  fi
6023
15616
done
6024
15617
done
 
15618
IFS=$as_save_IFS
6025
15619
 
6026
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6027
15620
fi
6028
15621
fi
6029
15622
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6030
15623
if test -n "$ac_ct_STRIP"; then
6031
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6032
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
15624
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
15625
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6033
15626
else
6034
 
  echo "$as_me:$LINENO: result: no" >&5
6035
 
echo "${ECHO_T}no" >&6
 
15627
  { echo "$as_me:$LINENO: result: no" >&5
 
15628
echo "${ECHO_T}no" >&6; }
6036
15629
fi
6037
15630
 
6038
 
  STRIP=$ac_ct_STRIP
 
15631
  if test "x$ac_ct_STRIP" = x; then
 
15632
    STRIP=":"
 
15633
  else
 
15634
    case $cross_compiling:$ac_tool_warned in
 
15635
yes:)
 
15636
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
15637
whose name does not start with the host triplet.  If you think this
 
15638
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
15639
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
15640
whose name does not start with the host triplet.  If you think this
 
15641
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
15642
ac_tool_warned=yes ;;
 
15643
esac
 
15644
    STRIP=$ac_ct_STRIP
 
15645
  fi
6039
15646
else
6040
15647
  STRIP="$ac_cv_prog_STRIP"
6041
15648
fi
6050
15657
test -z "$AS" && AS=as
6051
15658
test -z "$CC" && CC=cc
6052
15659
test -z "$LTCC" && LTCC=$CC
 
15660
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6053
15661
test -z "$DLLTOOL" && DLLTOOL=dlltool
6054
15662
test -z "$LD" && LD=ld
6055
15663
test -z "$LN_S" && LN_S="ln -s"
6069
15677
if test -n "$RANLIB"; then
6070
15678
  case $host_os in
6071
15679
  openbsd*)
6072
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
15680
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6073
15681
    ;;
6074
15682
  *)
6075
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
15683
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6076
15684
    ;;
6077
15685
  esac
6078
15686
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6079
15687
fi
6080
15688
 
 
15689
for cc_temp in $compiler""; do
 
15690
  case $cc_temp in
 
15691
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15692
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15693
    \-*) ;;
 
15694
    *) break;;
 
15695
  esac
 
15696
done
 
15697
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15698
 
 
15699
 
6081
15700
# Only perform the check for file, if the check method requires it
6082
15701
case $deplibs_check_method in
6083
15702
file_magic*)
6084
15703
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6085
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6086
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
15704
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
15705
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6087
15706
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6088
15707
  echo $ECHO_N "(cached) $ECHO_C" >&6
6089
15708
else
6103
15722
      if test -n "$file_magic_test_file"; then
6104
15723
        case $deplibs_check_method in
6105
15724
        "file_magic "*)
6106
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
15725
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6107
15726
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108
15727
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6109
15728
            $EGREP "$file_magic_regex" > /dev/null; then
6135
15754
 
6136
15755
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137
15756
if test -n "$MAGIC_CMD"; then
6138
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6139
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
15757
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
15758
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6140
15759
else
6141
 
  echo "$as_me:$LINENO: result: no" >&5
6142
 
echo "${ECHO_T}no" >&6
 
15760
  { echo "$as_me:$LINENO: result: no" >&5
 
15761
echo "${ECHO_T}no" >&6; }
6143
15762
fi
6144
15763
 
6145
15764
if test -z "$lt_cv_path_MAGIC_CMD"; then
6146
15765
  if test -n "$ac_tool_prefix"; then
6147
 
    echo "$as_me:$LINENO: checking for file" >&5
6148
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
15766
    { echo "$as_me:$LINENO: checking for file" >&5
 
15767
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6149
15768
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6150
15769
  echo $ECHO_N "(cached) $ECHO_C" >&6
6151
15770
else
6165
15784
      if test -n "$file_magic_test_file"; then
6166
15785
        case $deplibs_check_method in
6167
15786
        "file_magic "*)
6168
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
15787
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6169
15788
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170
15789
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6171
15790
            $EGREP "$file_magic_regex" > /dev/null; then
6197
15816
 
6198
15817
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6199
15818
if test -n "$MAGIC_CMD"; then
6200
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6201
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
15819
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
15820
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6202
15821
else
6203
 
  echo "$as_me:$LINENO: result: no" >&5
6204
 
echo "${ECHO_T}no" >&6
 
15822
  { echo "$as_me:$LINENO: result: no" >&5
 
15823
echo "${ECHO_T}no" >&6; }
6205
15824
fi
6206
15825
 
6207
15826
  else
6216
15835
enable_dlopen=yes
6217
15836
enable_win32_dll=no
6218
15837
 
6219
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
15838
# Check whether --enable-libtool-lock was given.
6220
15839
if test "${enable_libtool_lock+set}" = set; then
6221
 
  enableval="$enable_libtool_lock"
 
15840
  enableval=$enable_libtool_lock;
 
15841
fi
6222
15842
 
6223
 
fi;
6224
15843
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6225
15844
 
6226
15845
 
6227
 
# Check whether --with-pic or --without-pic was given.
 
15846
# Check whether --with-pic was given.
6228
15847
if test "${with_pic+set}" = set; then
6229
 
  withval="$with_pic"
6230
 
  pic_mode="$withval"
 
15848
  withval=$with_pic; pic_mode="$withval"
6231
15849
else
6232
15850
  pic_mode=default
6233
 
fi;
 
15851
fi
 
15852
 
6234
15853
test -z "$pic_mode" && pic_mode=default
6235
15854
 
6236
15855
# Use C for the default configuration in the libtool script
6260
15879
# If no C compiler was specified, use CC.
6261
15880
LTCC=${LTCC-"$CC"}
6262
15881
 
 
15882
# If no C compiler flags were specified, use CFLAGS.
 
15883
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15884
 
6263
15885
# Allow CC to be a program name with arguments.
6264
15886
compiler=$CC
6265
15887
 
6266
15888
 
6267
 
#
6268
 
# Check for any special shared library compilation flags.
6269
 
#
6270
 
lt_prog_cc_shlib=
6271
 
if test "$GCC" = no; then
6272
 
  case $host_os in
6273
 
  sco3.2v5*)
6274
 
    lt_prog_cc_shlib='-belf'
6275
 
    ;;
6276
 
  esac
6277
 
fi
6278
 
if test -n "$lt_prog_cc_shlib"; then
6279
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6280
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6281
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6282
 
  else
6283
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6284
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6285
 
    lt_cv_prog_cc_can_build_shared=no
6286
 
  fi
6287
 
fi
6288
 
 
6289
 
 
6290
 
#
6291
 
# Check to make sure the static flag actually works.
6292
 
#
6293
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6294
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6295
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6296
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6297
 
else
6298
 
  lt_prog_compiler_static_works=no
6299
 
   save_LDFLAGS="$LDFLAGS"
6300
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6301
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6302
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6303
 
     # The compiler can only warn and ignore the option if not recognized
6304
 
     # So say no if there are warnings
6305
 
     if test -s conftest.err; then
6306
 
       # Append any errors to the config.log.
6307
 
       cat conftest.err 1>&5
6308
 
     else
6309
 
       lt_prog_compiler_static_works=yes
6310
 
     fi
6311
 
   fi
6312
 
   $rm conftest*
6313
 
   LDFLAGS="$save_LDFLAGS"
6314
 
 
6315
 
fi
6316
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6317
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6318
 
 
6319
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6320
 
    :
6321
 
else
6322
 
    lt_prog_compiler_static=
6323
 
fi
6324
 
 
 
15889
# save warnings/boilerplate of simple test code
 
15890
ac_outfile=conftest.$ac_objext
 
15891
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15892
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15893
_lt_compiler_boilerplate=`cat conftest.err`
 
15894
$rm conftest*
 
15895
 
 
15896
ac_outfile=conftest.$ac_objext
 
15897
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15898
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15899
_lt_linker_boilerplate=`cat conftest.err`
 
15900
$rm conftest*
6325
15901
 
6326
15902
 
6327
15903
 
6331
15907
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6332
15908
 
6333
15909
 
6334
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6335
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15910
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15911
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6336
15912
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6337
15913
  echo $ECHO_N "(cached) $ECHO_C" >&6
6338
15914
else
6346
15922
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6347
15923
   # The option is referenced via a variable to avoid confusing sed.
6348
15924
   lt_compile=`echo "$ac_compile" | $SED \
6349
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15925
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6350
15926
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6351
15927
   -e 's:$: $lt_compiler_flag:'`
6352
 
   (eval echo "\"\$as_me:6352: $lt_compile\"" >&5)
 
15928
   (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
6353
15929
   (eval "$lt_compile" 2>conftest.err)
6354
15930
   ac_status=$?
6355
15931
   cat conftest.err >&5
6356
 
   echo "$as_me:6356: \$? = $ac_status" >&5
 
15932
   echo "$as_me:15932: \$? = $ac_status" >&5
6357
15933
   if (exit $ac_status) && test -s "$ac_outfile"; then
6358
15934
     # The compiler can only warn and ignore the option if not recognized
6359
 
     # So say no if there are warnings
6360
 
     if test ! -s conftest.err; then
 
15935
     # So say no if there are warnings other than the usual output.
 
15936
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15937
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15938
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6361
15939
       lt_cv_prog_compiler_rtti_exceptions=yes
6362
15940
     fi
6363
15941
   fi
6364
15942
   $rm conftest*
6365
15943
 
6366
15944
fi
6367
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6368
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15945
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15946
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6369
15947
 
6370
15948
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6371
15949
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6379
15957
lt_prog_compiler_pic=
6380
15958
lt_prog_compiler_static=
6381
15959
 
6382
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6383
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15960
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15961
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6384
15962
 
6385
15963
  if test "$GCC" = yes; then
6386
15964
    lt_prog_compiler_wl='-Wl,'
6418
15996
      lt_prog_compiler_pic='-fno-common'
6419
15997
      ;;
6420
15998
 
 
15999
    interix3*)
 
16000
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16001
      # Instead, we relocate shared libraries at runtime.
 
16002
      ;;
 
16003
 
6421
16004
    msdosdjgpp*)
6422
16005
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6423
16006
      # on systems that don't support them.
6434
16017
    hpux*)
6435
16018
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6436
16019
      # not for PA HP-UX.
6437
 
      case "$host_cpu" in
 
16020
      case $host_cpu in
6438
16021
      hppa*64*|ia64*)
6439
16022
        # +Z the default
6440
16023
        ;;
6460
16043
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6461
16044
      fi
6462
16045
      ;;
 
16046
      darwin*)
 
16047
        # PIC is the default on this platform
 
16048
        # Common symbols not allowed in MH_DYLIB files
 
16049
       case $cc_basename in
 
16050
         xlc*)
 
16051
         lt_prog_compiler_pic='-qnocommon'
 
16052
         lt_prog_compiler_wl='-Wl,'
 
16053
         ;;
 
16054
       esac
 
16055
       ;;
6463
16056
 
6464
16057
    mingw* | pw32* | os2*)
6465
16058
      # This hack is so that the source file can tell whether it is being
6471
16064
      lt_prog_compiler_wl='-Wl,'
6472
16065
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6473
16066
      # not for PA HP-UX.
6474
 
      case "$host_cpu" in
 
16067
      case $host_cpu in
6475
16068
      hppa*64*|ia64*)
6476
16069
        # +Z the default
6477
16070
        ;;
6494
16087
      lt_prog_compiler_static='-Bstatic'
6495
16088
      ;;
6496
16089
 
6497
 
    linux*)
6498
 
      case $CC in
 
16090
    linux* | k*bsd*-gnu)
 
16091
      case $cc_basename in
6499
16092
      icc* | ecc*)
6500
16093
        lt_prog_compiler_wl='-Wl,'
6501
16094
        lt_prog_compiler_pic='-KPIC'
6502
16095
        lt_prog_compiler_static='-static'
6503
16096
        ;;
 
16097
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16098
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16099
        # which looks to be a dead project)
 
16100
        lt_prog_compiler_wl='-Wl,'
 
16101
        lt_prog_compiler_pic='-fpic'
 
16102
        lt_prog_compiler_static='-Bstatic'
 
16103
        ;;
6504
16104
      ccc*)
6505
16105
        lt_prog_compiler_wl='-Wl,'
6506
16106
        # All Alpha code is PIC.
6515
16115
      lt_prog_compiler_static='-non_shared'
6516
16116
      ;;
6517
16117
 
6518
 
    sco3.2v5*)
6519
 
      lt_prog_compiler_pic='-Kpic'
6520
 
      lt_prog_compiler_static='-dn'
6521
 
      ;;
6522
 
 
6523
16118
    solaris*)
6524
 
      lt_prog_compiler_wl='-Wl,'
6525
16119
      lt_prog_compiler_pic='-KPIC'
6526
16120
      lt_prog_compiler_static='-Bstatic'
 
16121
      case $cc_basename in
 
16122
      f77* | f90* | f95*)
 
16123
        lt_prog_compiler_wl='-Qoption ld ';;
 
16124
      *)
 
16125
        lt_prog_compiler_wl='-Wl,';;
 
16126
      esac
6527
16127
      ;;
6528
16128
 
6529
16129
    sunos4*)
6532
16132
      lt_prog_compiler_static='-Bstatic'
6533
16133
      ;;
6534
16134
 
6535
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16135
    sysv4 | sysv4.2uw2* | sysv4.3*)
6536
16136
      lt_prog_compiler_wl='-Wl,'
6537
16137
      lt_prog_compiler_pic='-KPIC'
6538
16138
      lt_prog_compiler_static='-Bstatic'
6545
16145
      fi
6546
16146
      ;;
6547
16147
 
 
16148
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16149
      lt_prog_compiler_wl='-Wl,'
 
16150
      lt_prog_compiler_pic='-KPIC'
 
16151
      lt_prog_compiler_static='-Bstatic'
 
16152
      ;;
 
16153
 
 
16154
    unicos*)
 
16155
      lt_prog_compiler_wl='-Wl,'
 
16156
      lt_prog_compiler_can_build_shared=no
 
16157
      ;;
 
16158
 
6548
16159
    uts4*)
6549
16160
      lt_prog_compiler_pic='-pic'
6550
16161
      lt_prog_compiler_static='-Bstatic'
6556
16167
    esac
6557
16168
  fi
6558
16169
 
6559
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6560
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
16170
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
16171
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6561
16172
 
6562
16173
#
6563
16174
# Check to make sure the PIC flag actually works.
6564
16175
#
6565
16176
if test -n "$lt_prog_compiler_pic"; then
6566
16177
 
6567
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6568
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
16178
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
16179
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6569
16180
if test "${lt_prog_compiler_pic_works+set}" = set; then
6570
16181
  echo $ECHO_N "(cached) $ECHO_C" >&6
6571
16182
else
6579
16190
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6580
16191
   # The option is referenced via a variable to avoid confusing sed.
6581
16192
   lt_compile=`echo "$ac_compile" | $SED \
6582
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16193
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6583
16194
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6584
16195
   -e 's:$: $lt_compiler_flag:'`
6585
 
   (eval echo "\"\$as_me:6585: $lt_compile\"" >&5)
 
16196
   (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
6586
16197
   (eval "$lt_compile" 2>conftest.err)
6587
16198
   ac_status=$?
6588
16199
   cat conftest.err >&5
6589
 
   echo "$as_me:6589: \$? = $ac_status" >&5
 
16200
   echo "$as_me:16200: \$? = $ac_status" >&5
6590
16201
   if (exit $ac_status) && test -s "$ac_outfile"; then
6591
16202
     # The compiler can only warn and ignore the option if not recognized
6592
 
     # So say no if there are warnings
6593
 
     if test ! -s conftest.err; then
 
16203
     # So say no if there are warnings other than the usual output.
 
16204
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16205
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16206
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6594
16207
       lt_prog_compiler_pic_works=yes
6595
16208
     fi
6596
16209
   fi
6597
16210
   $rm conftest*
6598
16211
 
6599
16212
fi
6600
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6601
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
16213
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
16214
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6602
16215
 
6603
16216
if test x"$lt_prog_compiler_pic_works" = xyes; then
6604
16217
    case $lt_prog_compiler_pic in
6611
16224
fi
6612
16225
 
6613
16226
fi
6614
 
case "$host_os" in
 
16227
case $host_os in
6615
16228
  # For platforms which do not support PIC, -DPIC is meaningless:
6616
16229
  *djgpp*)
6617
16230
    lt_prog_compiler_pic=
6621
16234
    ;;
6622
16235
esac
6623
16236
 
6624
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6625
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16237
#
 
16238
# Check to make sure the static flag actually works.
 
16239
#
 
16240
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
16241
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16242
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16243
if test "${lt_prog_compiler_static_works+set}" = set; then
 
16244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16245
else
 
16246
  lt_prog_compiler_static_works=no
 
16247
   save_LDFLAGS="$LDFLAGS"
 
16248
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16249
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16250
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16251
     # The linker can only warn and ignore the option if not recognized
 
16252
     # So say no if there are warnings
 
16253
     if test -s conftest.err; then
 
16254
       # Append any errors to the config.log.
 
16255
       cat conftest.err 1>&5
 
16256
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16257
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16258
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16259
         lt_prog_compiler_static_works=yes
 
16260
       fi
 
16261
     else
 
16262
       lt_prog_compiler_static_works=yes
 
16263
     fi
 
16264
   fi
 
16265
   $rm conftest*
 
16266
   LDFLAGS="$save_LDFLAGS"
 
16267
 
 
16268
fi
 
16269
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
16270
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
16271
 
 
16272
if test x"$lt_prog_compiler_static_works" = xyes; then
 
16273
    :
 
16274
else
 
16275
    lt_prog_compiler_static=
 
16276
fi
 
16277
 
 
16278
 
 
16279
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16280
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6626
16281
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6627
16282
  echo $ECHO_N "(cached) $ECHO_C" >&6
6628
16283
else
6639
16294
   # Note that $ac_compile itself does not contain backslashes and begins
6640
16295
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6641
16296
   lt_compile=`echo "$ac_compile" | $SED \
6642
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16297
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6643
16298
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6644
16299
   -e 's:$: $lt_compiler_flag:'`
6645
 
   (eval echo "\"\$as_me:6645: $lt_compile\"" >&5)
 
16300
   (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
6646
16301
   (eval "$lt_compile" 2>out/conftest.err)
6647
16302
   ac_status=$?
6648
16303
   cat out/conftest.err >&5
6649
 
   echo "$as_me:6649: \$? = $ac_status" >&5
 
16304
   echo "$as_me:16304: \$? = $ac_status" >&5
6650
16305
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6651
16306
   then
6652
16307
     # The compiler can only warn and ignore the option if not recognized
6653
16308
     # So say no if there are warnings
6654
 
     if test ! -s out/conftest.err; then
 
16309
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16310
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16311
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6655
16312
       lt_cv_prog_compiler_c_o=yes
6656
16313
     fi
6657
16314
   fi
6658
 
   chmod u+w .
 
16315
   chmod u+w . 2>&5
6659
16316
   $rm conftest*
6660
16317
   # SGI C++ compiler will create directory out/ii_files/ for
6661
16318
   # template instantiation
6666
16323
   $rm conftest*
6667
16324
 
6668
16325
fi
6669
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6670
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
16326
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
16327
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6671
16328
 
6672
16329
 
6673
16330
hard_links="nottested"
6674
16331
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6675
16332
  # do not overwrite the value of need_locks provided by the user
6676
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6677
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16333
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16334
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6678
16335
  hard_links=yes
6679
16336
  $rm conftest*
6680
16337
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6681
16338
  touch conftest.a
6682
16339
  ln conftest.a conftest.b 2>&5 || hard_links=no
6683
16340
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6684
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6685
 
echo "${ECHO_T}$hard_links" >&6
 
16341
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16342
echo "${ECHO_T}$hard_links" >&6; }
6686
16343
  if test "$hard_links" = no; then
6687
16344
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6688
16345
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6692
16349
  need_locks=no
6693
16350
fi
6694
16351
 
6695
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6696
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16352
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16353
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6697
16354
 
6698
16355
  runpath_var=
6699
16356
  allow_undefined_flag=
6731
16388
  # rely on this symbol name, it's probably fine to never include it in
6732
16389
  # preloaded symbol tables.
6733
16390
  extract_expsyms_cmds=
 
16391
  # Just being paranoid about ensuring that cc_basename is set.
 
16392
  for cc_temp in $compiler""; do
 
16393
  case $cc_temp in
 
16394
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16395
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16396
    \-*) ;;
 
16397
    *) break;;
 
16398
  esac
 
16399
done
 
16400
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6734
16401
 
6735
16402
  case $host_os in
6736
16403
  cygwin* | mingw* | pw32*)
6741
16408
      with_gnu_ld=no
6742
16409
    fi
6743
16410
    ;;
 
16411
  interix*)
 
16412
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16413
    with_gnu_ld=yes
 
16414
    ;;
6744
16415
  openbsd*)
6745
16416
    with_gnu_ld=no
6746
16417
    ;;
6751
16422
    # If archive_cmds runs LD, not CC, wlarc should be empty
6752
16423
    wlarc='${wl}'
6753
16424
 
 
16425
    # Set some defaults for GNU ld with shared library support. These
 
16426
    # are reset later if shared libraries are not supported. Putting them
 
16427
    # here allows them to be overridden if necessary.
 
16428
    runpath_var=LD_RUN_PATH
 
16429
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
16430
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
16431
    # ancient GNU ld didn't support --whole-archive et. al.
 
16432
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16433
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16434
      else
 
16435
        whole_archive_flag_spec=
 
16436
    fi
 
16437
    supports_anon_versioning=no
 
16438
    case `$LD -v 2>/dev/null` in
 
16439
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16440
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16441
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16442
      *\ 2.11.*) ;; # other 2.11 versions
 
16443
      *) supports_anon_versioning=yes ;;
 
16444
    esac
 
16445
 
6754
16446
    # See if GNU ld supports shared libraries.
6755
16447
    case $host_os in
6756
16448
    aix3* | aix4* | aix5*)
6801
16493
      allow_undefined_flag=unsupported
6802
16494
      always_export_symbols=no
6803
16495
      enable_shared_with_static_runtimes=yes
6804
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16496
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6805
16497
 
6806
16498
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6807
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16499
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6808
16500
        # If the export-symbols file already is a .def file (1st line
6809
16501
        # is EXPORTS), use it as is; otherwise, prepend...
6810
16502
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6813
16505
          echo EXPORTS > $output_objdir/$soname.def;
6814
16506
          cat $export_symbols >> $output_objdir/$soname.def;
6815
16507
        fi~
6816
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6817
 
      else
6818
 
        ld_shlibs=no
6819
 
      fi
6820
 
      ;;
6821
 
 
6822
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16508
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16509
      else
 
16510
        ld_shlibs=no
 
16511
      fi
 
16512
      ;;
 
16513
 
 
16514
    interix3*)
 
16515
      hardcode_direct=no
 
16516
      hardcode_shlibpath_var=no
 
16517
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
16518
      export_dynamic_flag_spec='${wl}-E'
 
16519
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16520
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16521
      # default) and relocated if they conflict, which is a slow very memory
 
16522
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16523
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16524
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16525
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16526
      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'
 
16527
      ;;
 
16528
 
 
16529
    linux* | k*bsd*-gnu)
 
16530
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16531
        tmp_addflag=
 
16532
        case $cc_basename,$host_cpu in
 
16533
        pgcc*)                          # Portland Group C compiler
 
16534
          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'
 
16535
          tmp_addflag=' $pic_flag'
 
16536
          ;;
 
16537
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16538
          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'
 
16539
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16540
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16541
          tmp_addflag=' -i_dynamic' ;;
 
16542
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16543
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16544
        ifc* | ifort*)                  # Intel Fortran compiler
 
16545
          tmp_addflag=' -nofor_main' ;;
 
16546
        esac
 
16547
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16548
 
 
16549
        if test $supports_anon_versioning = yes; then
 
16550
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
16551
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16552
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16553
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16554
        fi
 
16555
        link_all_deplibs=no
 
16556
      else
 
16557
        ld_shlibs=no
 
16558
      fi
 
16559
      ;;
 
16560
 
 
16561
    netbsd* | netbsdelf*-gnu)
6823
16562
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6824
16563
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6825
16564
        wlarc=
6829
16568
      fi
6830
16569
      ;;
6831
16570
 
6832
 
    solaris* | sysv5*)
 
16571
    solaris*)
6833
16572
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6834
16573
        ld_shlibs=no
6835
16574
        cat <<EOF 1>&2
6850
16589
      fi
6851
16590
      ;;
6852
16591
 
 
16592
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16593
      case `$LD -v 2>&1` in
 
16594
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16595
        ld_shlibs=no
 
16596
        cat <<_LT_EOF 1>&2
 
16597
 
 
16598
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16599
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16600
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16601
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16602
*** your PATH or compiler configuration so that the native linker is
 
16603
*** used, and then restart.
 
16604
 
 
16605
_LT_EOF
 
16606
        ;;
 
16607
        *)
 
16608
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16609
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16610
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16611
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16612
          else
 
16613
            ld_shlibs=no
 
16614
          fi
 
16615
        ;;
 
16616
      esac
 
16617
      ;;
 
16618
 
6853
16619
    sunos4*)
6854
16620
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6855
16621
      wlarc=
6857
16623
      hardcode_shlibpath_var=no
6858
16624
      ;;
6859
16625
 
6860
 
  linux*)
6861
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6862
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863
 
        archive_cmds="$tmp_archive_cmds"
6864
 
      supports_anon_versioning=no
6865
 
      case `$LD -v 2>/dev/null` in
6866
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869
 
        *\ 2.11.*) ;; # other 2.11 versions
6870
 
        *) supports_anon_versioning=yes ;;
6871
 
      esac
6872
 
      if test $supports_anon_versioning = yes; then
6873
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6874
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6875
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6876
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6877
 
      else
6878
 
        archive_expsym_cmds="$tmp_archive_cmds"
6879
 
      fi
6880
 
      link_all_deplibs=no
6881
 
    else
6882
 
      ld_shlibs=no
6883
 
    fi
6884
 
    ;;
6885
 
 
6886
16626
    *)
6887
16627
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6888
16628
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6893
16633
      ;;
6894
16634
    esac
6895
16635
 
6896
 
    if test "$ld_shlibs" = yes; then
6897
 
      runpath_var=LD_RUN_PATH
6898
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6899
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6900
 
      # ancient GNU ld didn't support --whole-archive et. al.
6901
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6902
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6903
 
      else
6904
 
        whole_archive_flag_spec=
6905
 
      fi
 
16636
    if test "$ld_shlibs" = no; then
 
16637
      runpath_var=
 
16638
      hardcode_libdir_flag_spec=
 
16639
      export_dynamic_flag_spec=
 
16640
      whole_archive_flag_spec=
6906
16641
    fi
6907
16642
  else
6908
16643
    # PORTME fill in a description of your system's linker (not GNU ld)
6914
16649
      # Note: this linker hardcodes the directories in LIBPATH if there
6915
16650
      # are no directories specified by -L.
6916
16651
      hardcode_minus_L=yes
6917
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16652
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6918
16653
        # Neither direct hardcoding nor static linking is supported with a
6919
16654
        # broken collect2.
6920
16655
        hardcode_direct=unsupported
6948
16683
            break
6949
16684
          fi
6950
16685
          done
 
16686
          ;;
6951
16687
        esac
6952
16688
 
6953
16689
        exp_sym_flag='-bexport'
6966
16702
      link_all_deplibs=yes
6967
16703
 
6968
16704
      if test "$GCC" = yes; then
6969
 
        case $host_os in aix4.012|aix4.012.*)
 
16705
        case $host_os in aix4.[012]|aix4.[012].*)
6970
16706
        # We only want to do this on AIX 4.2 and lower, the check
6971
16707
        # below for broken collect2 doesn't work under 4.3+
6972
16708
          collect2name=`${CC} -print-prog-name=collect2`
6985
16721
          hardcode_libdir_flag_spec='-L$libdir'
6986
16722
          hardcode_libdir_separator=
6987
16723
          fi
 
16724
          ;;
6988
16725
        esac
6989
16726
        shared_flag='-shared'
 
16727
        if test "$aix_use_runtimelinking" = yes; then
 
16728
          shared_flag="$shared_flag "'${wl}-G'
 
16729
        fi
6990
16730
      else
6991
16731
        # not using gcc
6992
16732
        if test "$host_cpu" = ia64; then
6994
16734
        # chokes on -Wl,-G. The following line is correct:
6995
16735
          shared_flag='-G'
6996
16736
        else
6997
 
        if test "$aix_use_runtimelinking" = yes; then
 
16737
          if test "$aix_use_runtimelinking" = yes; then
6998
16738
            shared_flag='${wl}-G'
6999
16739
          else
7000
16740
            shared_flag='${wl}-bM:SRE'
7001
 
        fi
 
16741
          fi
7002
16742
        fi
7003
16743
      fi
7004
16744
 
7026
16766
}
7027
16767
_ACEOF
7028
16768
rm -f conftest.$ac_objext conftest$ac_exeext
7029
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030
 
  (eval $ac_link) 2>conftest.er1
 
16769
if { (ac_try="$ac_link"
 
16770
case "(($ac_try" in
 
16771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16772
  *) ac_try_echo=$ac_try;;
 
16773
esac
 
16774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16775
  (eval "$ac_link") 2>conftest.er1
7031
16776
  ac_status=$?
7032
16777
  grep -v '^ *+' conftest.er1 >conftest.err
7033
16778
  rm -f conftest.er1
7034
16779
  cat conftest.err >&5
7035
16780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036
16781
  (exit $ac_status); } &&
7037
 
         { ac_try='test -z "$ac_c_werror_flag"
7038
 
                         || test ! -s conftest.err'
7039
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040
 
  (eval $ac_try) 2>&5
 
16782
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
16783
  { (case "(($ac_try" in
 
16784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16785
  *) ac_try_echo=$ac_try;;
 
16786
esac
 
16787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16788
  (eval "$ac_try") 2>&5
7041
16789
  ac_status=$?
7042
16790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
16791
  (exit $ac_status); }; } &&
7044
16792
         { ac_try='test -s conftest$ac_exeext'
7045
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046
 
  (eval $ac_try) 2>&5
 
16793
  { (case "(($ac_try" in
 
16794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16795
  *) ac_try_echo=$ac_try;;
 
16796
esac
 
16797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16798
  (eval "$ac_try") 2>&5
7047
16799
  ac_status=$?
7048
16800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049
16801
  (exit $ac_status); }; }; then
7057
16809
  echo "$as_me: failed program was:" >&5
7058
16810
sed 's/^/| /' conftest.$ac_ext >&5
7059
16811
 
 
16812
 
7060
16813
fi
7061
 
rm -f conftest.err conftest.$ac_objext \
 
16814
 
 
16815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7062
16816
      conftest$ac_exeext conftest.$ac_ext
7063
16817
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7064
16818
 
7065
16819
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7066
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16820
        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"
7067
16821
       else
7068
16822
        if test "$host_cpu" = ia64; then
7069
16823
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7070
16824
          allow_undefined_flag="-z nodefs"
7071
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16825
          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"
7072
16826
        else
7073
16827
         # Determine the default libpath from the value encoded in an empty executable.
7074
16828
         cat >conftest.$ac_ext <<_ACEOF
7087
16841
}
7088
16842
_ACEOF
7089
16843
rm -f conftest.$ac_objext conftest$ac_exeext
7090
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7091
 
  (eval $ac_link) 2>conftest.er1
 
16844
if { (ac_try="$ac_link"
 
16845
case "(($ac_try" in
 
16846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16847
  *) ac_try_echo=$ac_try;;
 
16848
esac
 
16849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16850
  (eval "$ac_link") 2>conftest.er1
7092
16851
  ac_status=$?
7093
16852
  grep -v '^ *+' conftest.er1 >conftest.err
7094
16853
  rm -f conftest.er1
7095
16854
  cat conftest.err >&5
7096
16855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097
16856
  (exit $ac_status); } &&
7098
 
         { ac_try='test -z "$ac_c_werror_flag"
7099
 
                         || test ! -s conftest.err'
7100
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101
 
  (eval $ac_try) 2>&5
 
16857
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
16858
  { (case "(($ac_try" in
 
16859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16860
  *) ac_try_echo=$ac_try;;
 
16861
esac
 
16862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16863
  (eval "$ac_try") 2>&5
7102
16864
  ac_status=$?
7103
16865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104
16866
  (exit $ac_status); }; } &&
7105
16867
         { ac_try='test -s conftest$ac_exeext'
7106
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107
 
  (eval $ac_try) 2>&5
 
16868
  { (case "(($ac_try" in
 
16869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16870
  *) ac_try_echo=$ac_try;;
 
16871
esac
 
16872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16873
  (eval "$ac_try") 2>&5
7108
16874
  ac_status=$?
7109
16875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110
16876
  (exit $ac_status); }; }; then
7118
16884
  echo "$as_me: failed program was:" >&5
7119
16885
sed 's/^/| /' conftest.$ac_ext >&5
7120
16886
 
 
16887
 
7121
16888
fi
7122
 
rm -f conftest.err conftest.$ac_objext \
 
16889
 
 
16890
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7123
16891
      conftest$ac_exeext conftest.$ac_ext
7124
16892
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7125
16893
 
7128
16896
          # -berok will link without error, but may produce a broken library.
7129
16897
          no_undefined_flag=' ${wl}-bernotok'
7130
16898
          allow_undefined_flag=' ${wl}-berok'
7131
 
          # -bexpall does not export symbols beginning with underscore (_)
7132
 
          always_export_symbols=yes
7133
16899
          # Exported symbols can be pulled into shared objects from archives
7134
 
          whole_archive_flag_spec=' '
 
16900
          whole_archive_flag_spec='$convenience'
7135
16901
          archive_cmds_need_lc=yes
7136
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7137
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16902
          # This is similar to how AIX traditionally builds its shared libraries.
 
16903
          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'
7138
16904
        fi
7139
16905
      fi
7140
16906
      ;;
7147
16913
      ld_shlibs=no
7148
16914
      ;;
7149
16915
 
7150
 
    bsdi4*)
 
16916
    bsdi[45]*)
7151
16917
      export_dynamic_flag_spec=-rdynamic
7152
16918
      ;;
7153
16919
 
7173
16939
      ;;
7174
16940
 
7175
16941
    darwin* | rhapsody*)
7176
 
    if test "$GXX" = yes ; then
 
16942
      case $host_os in
 
16943
        rhapsody* | darwin1.[012])
 
16944
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
16945
         ;;
 
16946
       *) # Darwin 1.3 on
 
16947
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16948
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16949
         else
 
16950
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16951
             10.[012])
 
16952
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16953
               ;;
 
16954
             10.*)
 
16955
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
16956
               ;;
 
16957
           esac
 
16958
         fi
 
16959
         ;;
 
16960
      esac
7177
16961
      archive_cmds_need_lc=no
7178
 
      case "$host_os" in
7179
 
      rhapsody* | darwin1.[012])
7180
 
        allow_undefined_flag='-undefined suppress'
7181
 
        ;;
7182
 
      *) # Darwin 1.3 on
7183
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7184
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7185
 
      else
7186
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7187
 
          10.[012])
7188
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7189
 
            ;;
7190
 
          10.*)
7191
 
            allow_undefined_flag='-undefined dynamic_lookup'
7192
 
            ;;
7193
 
        esac
7194
 
      fi
7195
 
        ;;
7196
 
      esac
7197
 
        lt_int_apple_cc_single_mod=no
7198
 
        output_verbose_link_cmd='echo'
7199
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7200
 
          lt_int_apple_cc_single_mod=yes
7201
 
        fi
7202
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7203
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7204
 
        else
7205
 
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7206
 
      fi
7207
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7208
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7209
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7210
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7211
 
        else
7212
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7213
 
        fi
7214
 
          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}'
7215
16962
      hardcode_direct=no
7216
16963
      hardcode_automatic=yes
7217
16964
      hardcode_shlibpath_var=unsupported
7218
 
      whole_archive_flag_spec='-all_load $convenience'
 
16965
      whole_archive_flag_spec=''
7219
16966
      link_all_deplibs=yes
 
16967
    if test "$GCC" = yes ; then
 
16968
        output_verbose_link_cmd='echo'
 
16969
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16970
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16971
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16972
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16973
      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}'
7220
16974
    else
7221
 
      ld_shlibs=no
 
16975
      case $cc_basename in
 
16976
        xlc*)
 
16977
         output_verbose_link_cmd='echo'
 
16978
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16979
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16980
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16981
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16982
          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}'
 
16983
          ;;
 
16984
       *)
 
16985
         ld_shlibs=no
 
16986
          ;;
 
16987
      esac
7222
16988
    fi
7223
16989
      ;;
7224
16990
 
7252
17018
      ;;
7253
17019
 
7254
17020
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7255
 
    freebsd* | kfreebsd*-gnu)
 
17021
    freebsd* | dragonfly*)
7256
17022
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7257
17023
      hardcode_libdir_flag_spec='-R$libdir'
7258
17024
      hardcode_direct=yes
7275
17041
      export_dynamic_flag_spec='${wl}-E'
7276
17042
      ;;
7277
17043
 
7278
 
    hpux10* | hpux11*)
7279
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7280
 
        case "$host_cpu" in
7281
 
        hppa*64*|ia64*)
 
17044
    hpux10*)
 
17045
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17046
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17047
      else
 
17048
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17049
      fi
 
17050
      if test "$with_gnu_ld" = no; then
 
17051
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
17052
        hardcode_libdir_separator=:
 
17053
 
 
17054
        hardcode_direct=yes
 
17055
        export_dynamic_flag_spec='${wl}-E'
 
17056
 
 
17057
        # hardcode_minus_L: Not really in the search PATH,
 
17058
        # but as the default location of the library.
 
17059
        hardcode_minus_L=yes
 
17060
      fi
 
17061
      ;;
 
17062
 
 
17063
    hpux11*)
 
17064
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17065
        case $host_cpu in
 
17066
        hppa*64*)
7282
17067
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7283
17068
          ;;
 
17069
        ia64*)
 
17070
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17071
          ;;
7284
17072
        *)
7285
17073
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7286
17074
          ;;
7287
17075
        esac
7288
17076
      else
7289
 
        case "$host_cpu" in
7290
 
        hppa*64*|ia64*)
7291
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17077
        case $host_cpu in
 
17078
        hppa*64*)
 
17079
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17080
          ;;
 
17081
        ia64*)
 
17082
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7292
17083
          ;;
7293
17084
        *)
7294
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17085
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7295
17086
          ;;
7296
17087
        esac
7297
17088
      fi
7298
17089
      if test "$with_gnu_ld" = no; then
7299
 
        case "$host_cpu" in
7300
 
        hppa*64*)
7301
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
17090
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
17091
        hardcode_libdir_separator=:
 
17092
 
 
17093
        case $host_cpu in
 
17094
        hppa*64*|ia64*)
7302
17095
          hardcode_libdir_flag_spec_ld='+b $libdir'
7303
 
          hardcode_libdir_separator=:
7304
 
          hardcode_direct=no
7305
 
          hardcode_shlibpath_var=no
7306
 
          ;;
7307
 
        ia64*)
7308
 
          hardcode_libdir_flag_spec='-L$libdir'
7309
 
          hardcode_direct=no
7310
 
          hardcode_shlibpath_var=no
7311
 
 
7312
 
          # hardcode_minus_L: Not really in the search PATH,
7313
 
          # but as the default location of the library.
7314
 
          hardcode_minus_L=yes
 
17096
          hardcode_direct=no
 
17097
          hardcode_shlibpath_var=no
7315
17098
          ;;
7316
17099
        *)
7317
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7318
 
          hardcode_libdir_separator=:
7319
17100
          hardcode_direct=yes
7320
17101
          export_dynamic_flag_spec='${wl}-E'
7321
17102
 
7339
17120
      link_all_deplibs=yes
7340
17121
      ;;
7341
17122
 
7342
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17123
    netbsd* | netbsdelf*-gnu)
7343
17124
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7344
17125
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7345
17126
      else
7363
17144
      hardcode_shlibpath_var=no
7364
17145
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7365
17146
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17147
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7366
17148
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7367
17149
        export_dynamic_flag_spec='${wl}-E'
7368
17150
      else
7408
17190
        allow_undefined_flag=' -expect_unresolved \*'
7409
17191
        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'
7410
17192
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7411
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17193
        $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'
7412
17194
 
7413
17195
        # Both c and cxx compiler support -rpath directly
7414
17196
        hardcode_libdir_flag_spec='-rpath $libdir'
7416
17198
      hardcode_libdir_separator=:
7417
17199
      ;;
7418
17200
 
7419
 
    sco3.2v5*)
7420
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421
 
      hardcode_shlibpath_var=no
7422
 
      export_dynamic_flag_spec='${wl}-Bexport'
7423
 
      runpath_var=LD_RUN_PATH
7424
 
      hardcode_runpath_var=yes
7425
 
      ;;
7426
 
 
7427
17201
    solaris*)
7428
17202
      no_undefined_flag=' -z text'
7429
17203
      if test "$GCC" = yes; then
 
17204
        wlarc='${wl}'
7430
17205
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7431
17206
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7432
17207
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7433
17208
      else
 
17209
        wlarc=''
7434
17210
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435
17211
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7436
17212
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7439
17215
      hardcode_shlibpath_var=no
7440
17216
      case $host_os in
7441
17217
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7442
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7443
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
17218
      *)
 
17219
        # The compiler driver will combine linker options so we
 
17220
        # cannot just pass the convience library names through
 
17221
        # without $wl, iff we do not link with $LD.
 
17222
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17223
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17224
        case $wlarc in
 
17225
        '')
 
17226
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
17227
        *)
 
17228
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17229
        esac ;;
7444
17230
      esac
7445
17231
      link_all_deplibs=yes
7446
17232
      ;;
7497
17283
      fi
7498
17284
      ;;
7499
17285
 
7500
 
    sysv4.2uw2*)
7501
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7502
 
      hardcode_direct=yes
7503
 
      hardcode_minus_L=no
7504
 
      hardcode_shlibpath_var=no
7505
 
      hardcode_runpath_var=yes
7506
 
      runpath_var=LD_RUN_PATH
7507
 
      ;;
7508
 
 
7509
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7510
 
      no_undefined_flag='${wl}-z ${wl}text'
7511
 
      if test "$GCC" = yes; then
7512
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513
 
      else
7514
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7515
 
      fi
7516
 
      runpath_var='LD_RUN_PATH'
7517
 
      hardcode_shlibpath_var=no
7518
 
      ;;
7519
 
 
7520
 
    sysv5*)
7521
 
      no_undefined_flag=' -z text'
7522
 
      # $CC -shared without GNU ld will not create a library from C++
7523
 
      # object files and a static libstdc++, better avoid it by now
7524
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7525
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7526
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7527
 
      hardcode_libdir_flag_spec=
7528
 
      hardcode_shlibpath_var=no
7529
 
      runpath_var='LD_RUN_PATH'
 
17286
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17287
      no_undefined_flag='${wl}-z,text'
 
17288
      archive_cmds_need_lc=no
 
17289
      hardcode_shlibpath_var=no
 
17290
      runpath_var='LD_RUN_PATH'
 
17291
 
 
17292
      if test "$GCC" = yes; then
 
17293
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17294
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17295
      else
 
17296
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17297
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17298
      fi
 
17299
      ;;
 
17300
 
 
17301
    sysv5* | sco3.2v5* | sco5v6*)
 
17302
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17303
      # link with -lc, and that would cause any symbols used from libc to
 
17304
      # always be unresolved, which means just about no library would
 
17305
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17306
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17307
      # as -z defs.
 
17308
      no_undefined_flag='${wl}-z,text'
 
17309
      allow_undefined_flag='${wl}-z,nodefs'
 
17310
      archive_cmds_need_lc=no
 
17311
      hardcode_shlibpath_var=no
 
17312
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17313
      hardcode_libdir_separator=':'
 
17314
      link_all_deplibs=yes
 
17315
      export_dynamic_flag_spec='${wl}-Bexport'
 
17316
      runpath_var='LD_RUN_PATH'
 
17317
 
 
17318
      if test "$GCC" = yes; then
 
17319
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17320
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17321
      else
 
17322
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17323
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17324
      fi
7530
17325
      ;;
7531
17326
 
7532
17327
    uts4*)
7541
17336
    esac
7542
17337
  fi
7543
17338
 
7544
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7545
 
echo "${ECHO_T}$ld_shlibs" >&6
 
17339
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
17340
echo "${ECHO_T}$ld_shlibs" >&6; }
7546
17341
test "$ld_shlibs" = no && can_build_shared=no
7547
17342
 
7548
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7549
 
if test "$GCC" = yes; then
7550
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7551
 
fi
7552
 
 
7553
17343
#
7554
17344
# Do we need to explicitly link libc?
7555
17345
#
7567
17357
      # Test whether the compiler implicitly links with -lc since on some
7568
17358
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7569
17359
      # to ld, don't add -lc before -lgcc.
7570
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7571
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17360
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17361
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7572
17362
      $rm conftest*
7573
17363
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7574
17364
 
7582
17372
        libobjs=conftest.$ac_objext
7583
17373
        deplibs=
7584
17374
        wl=$lt_prog_compiler_wl
 
17375
        pic_flag=$lt_prog_compiler_pic
7585
17376
        compiler_flags=-v
7586
17377
        linker_flags=-v
7587
17378
        verstring=
7604
17395
        cat conftest.err 1>&5
7605
17396
      fi
7606
17397
      $rm conftest*
7607
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7608
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
17398
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
17399
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7609
17400
      ;;
7610
17401
    esac
7611
17402
  fi
7612
17403
  ;;
7613
17404
esac
7614
17405
 
7615
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7616
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17406
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17407
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7617
17408
library_names_spec=
7618
17409
libname_spec='lib$name'
7619
17410
soname_spec=
7714
17505
  shlibpath_var=LIBRARY_PATH
7715
17506
  ;;
7716
17507
 
7717
 
bsdi4*)
 
17508
bsdi[45]*)
7718
17509
  version_type=linux
7719
17510
  need_version=no
7720
17511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742
17533
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7743
17534
      dldir=$destdir/`dirname \$dlpath`~
7744
17535
      test -d \$dldir || mkdir -p \$dldir~
7745
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17536
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17537
      chmod a+x \$dldir/$dlname'
7746
17538
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7747
17539
      dlpath=$dir/\$dldll~
7748
17540
       $rm \$dlpath'
7772
17564
      ;;
7773
17565
    pw32*)
7774
17566
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7775
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17567
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7776
17568
      ;;
7777
17569
    esac
7778
17570
    ;;
7795
17587
  soname_spec='${libname}${release}${major}$shared_ext'
7796
17588
  shlibpath_overrides_runpath=yes
7797
17589
  shlibpath_var=DYLD_LIBRARY_PATH
7798
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17590
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7799
17591
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7800
17592
  if test "$GCC" = yes; then
7801
17593
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7818
17610
  dynamic_linker=no
7819
17611
  ;;
7820
17612
 
7821
 
kfreebsd*-gnu)
7822
 
  version_type=linux
7823
 
  need_lib_prefix=no
7824
 
  need_version=no
7825
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7826
 
  soname_spec='${libname}${release}${shared_ext}$major'
7827
 
  shlibpath_var=LD_LIBRARY_PATH
7828
 
  shlibpath_overrides_runpath=no
7829
 
  hardcode_into_libs=yes
7830
 
  dynamic_linker='GNU ld.so'
7831
 
  ;;
7832
 
 
7833
 
freebsd*)
7834
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17613
freebsd* | dragonfly*)
 
17614
  # DragonFly does not have aout.  When/if they implement a new
 
17615
  # versioning mechanism, adjust this.
 
17616
  if test -x /usr/bin/objformat; then
 
17617
    objformat=`/usr/bin/objformat`
 
17618
  else
 
17619
    case $host_os in
 
17620
    freebsd[123]*) objformat=aout ;;
 
17621
    *) objformat=elf ;;
 
17622
    esac
 
17623
  fi
7835
17624
  version_type=freebsd-$objformat
7836
17625
  case $version_type in
7837
17626
    freebsd-elf*)
7849
17638
  freebsd2*)
7850
17639
    shlibpath_overrides_runpath=yes
7851
17640
    ;;
7852
 
  freebsd3.01* | freebsdelf3.01*)
 
17641
  freebsd3.[01]* | freebsdelf3.[01]*)
7853
17642
    shlibpath_overrides_runpath=yes
7854
17643
    hardcode_into_libs=yes
7855
17644
    ;;
7856
 
  *) # from 3.2 on
 
17645
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17646
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7857
17647
    shlibpath_overrides_runpath=no
7858
17648
    hardcode_into_libs=yes
7859
17649
    ;;
 
17650
  freebsd*) # from 4.6 on
 
17651
    shlibpath_overrides_runpath=yes
 
17652
    hardcode_into_libs=yes
 
17653
    ;;
7860
17654
  esac
7861
17655
  ;;
7862
17656
 
7876
17670
  version_type=sunos
7877
17671
  need_lib_prefix=no
7878
17672
  need_version=no
7879
 
  case "$host_cpu" in
 
17673
  case $host_cpu in
7880
17674
  ia64*)
7881
17675
    shrext_cmds='.so'
7882
17676
    hardcode_into_libs=yes
7916
17710
  postinstall_cmds='chmod 555 $lib'
7917
17711
  ;;
7918
17712
 
 
17713
interix3*)
 
17714
  version_type=linux
 
17715
  need_lib_prefix=no
 
17716
  need_version=no
 
17717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17718
  soname_spec='${libname}${release}${shared_ext}$major'
 
17719
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17720
  shlibpath_var=LD_LIBRARY_PATH
 
17721
  shlibpath_overrides_runpath=no
 
17722
  hardcode_into_libs=yes
 
17723
  ;;
 
17724
 
7919
17725
irix5* | irix6* | nonstopux*)
7920
17726
  case $host_os in
7921
17727
    nonstopux*) version_type=nonstopux ;;
7959
17765
  ;;
7960
17766
 
7961
17767
# This must be Linux ELF.
7962
 
linux*)
 
17768
linux* | k*bsd*-gnu)
7963
17769
  version_type=linux
7964
17770
  need_lib_prefix=no
7965
17771
  need_version=no
7975
17781
 
7976
17782
  # Append ld.so.conf contents to the search path
7977
17783
  if test -f /etc/ld.so.conf; then
7978
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17784
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7979
17785
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7980
17786
  fi
7981
17787
 
8000
17806
  dynamic_linker='NetBSD ld.elf_so'
8001
17807
  ;;
8002
17808
 
8003
 
knetbsd*-gnu)
8004
 
  version_type=linux
8005
 
  need_lib_prefix=no
8006
 
  need_version=no
8007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8008
 
  soname_spec='${libname}${release}${shared_ext}$major'
8009
 
  shlibpath_var=LD_LIBRARY_PATH
8010
 
  shlibpath_overrides_runpath=no
8011
 
  hardcode_into_libs=yes
8012
 
  dynamic_linker='GNU ld.so'
8013
 
  ;;
8014
 
 
8015
17809
netbsd*)
8016
17810
  version_type=sunos
8017
17811
  need_lib_prefix=no
8049
17843
 
8050
17844
openbsd*)
8051
17845
  version_type=sunos
 
17846
  sys_lib_dlsearch_path_spec="/usr/lib"
8052
17847
  need_lib_prefix=no
8053
 
  need_version=yes
 
17848
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17849
  case $host_os in
 
17850
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17851
    *)                         need_version=no  ;;
 
17852
  esac
8054
17853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8055
17854
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8056
17855
  shlibpath_var=LD_LIBRARY_PATH
8088
17887
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8089
17888
  ;;
8090
17889
 
8091
 
sco3.2v5*)
8092
 
  version_type=osf
8093
 
  soname_spec='${libname}${release}${shared_ext}$major'
8094
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095
 
  shlibpath_var=LD_LIBRARY_PATH
8096
 
  ;;
8097
 
 
8098
17890
solaris*)
8099
17891
  version_type=linux
8100
17892
  need_lib_prefix=no
8120
17912
  need_version=yes
8121
17913
  ;;
8122
17914
 
8123
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17915
sysv4 | sysv4.3*)
8124
17916
  version_type=linux
8125
17917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126
17918
  soname_spec='${libname}${release}${shared_ext}$major'
8153
17945
  fi
8154
17946
  ;;
8155
17947
 
 
17948
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17949
  version_type=freebsd-elf
 
17950
  need_lib_prefix=no
 
17951
  need_version=no
 
17952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17953
  soname_spec='${libname}${release}${shared_ext}$major'
 
17954
  shlibpath_var=LD_LIBRARY_PATH
 
17955
  hardcode_into_libs=yes
 
17956
  if test "$with_gnu_ld" = yes; then
 
17957
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17958
    shlibpath_overrides_runpath=no
 
17959
  else
 
17960
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17961
    shlibpath_overrides_runpath=yes
 
17962
    case $host_os in
 
17963
      sco3.2v5*)
 
17964
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17965
        ;;
 
17966
    esac
 
17967
  fi
 
17968
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17969
  ;;
 
17970
 
8156
17971
uts4*)
8157
17972
  version_type=linux
8158
17973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164
17979
  dynamic_linker=no
8165
17980
  ;;
8166
17981
esac
8167
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8168
 
echo "${ECHO_T}$dynamic_linker" >&6
 
17982
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17983
echo "${ECHO_T}$dynamic_linker" >&6; }
8169
17984
test "$dynamic_linker" = no && can_build_shared=no
8170
17985
 
8171
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8172
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17986
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17987
if test "$GCC" = yes; then
 
17988
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17989
fi
 
17990
 
 
17991
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17992
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8173
17993
hardcode_action=
8174
17994
if test -n "$hardcode_libdir_flag_spec" || \
8175
 
   test -n "$runpath_var " || \
8176
 
   test "X$hardcode_automatic"="Xyes" ; then
 
17995
   test -n "$runpath_var" || \
 
17996
   test "X$hardcode_automatic" = "Xyes" ; then
8177
17997
 
8178
17998
  # We can hardcode non-existant directories.
8179
17999
  if test "$hardcode_direct" != no &&
8193
18013
  # directories.
8194
18014
  hardcode_action=unsupported
8195
18015
fi
8196
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8197
 
echo "${ECHO_T}$hardcode_action" >&6
 
18016
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
18017
echo "${ECHO_T}$hardcode_action" >&6; }
8198
18018
 
8199
18019
if test "$hardcode_action" = relink; then
8200
18020
  # Fast installation is not supported
8207
18027
 
8208
18028
striplib=
8209
18029
old_striplib=
8210
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8211
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18030
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18031
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8212
18032
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8213
18033
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8214
18034
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8215
 
  echo "$as_me:$LINENO: result: yes" >&5
8216
 
echo "${ECHO_T}yes" >&6
 
18035
  { echo "$as_me:$LINENO: result: yes" >&5
 
18036
echo "${ECHO_T}yes" >&6; }
8217
18037
else
8218
18038
# FIXME - insert some real tests, host_os isn't really good enough
8219
18039
  case $host_os in
8220
18040
   darwin*)
8221
18041
       if test -n "$STRIP" ; then
8222
18042
         striplib="$STRIP -x"
8223
 
         echo "$as_me:$LINENO: result: yes" >&5
8224
 
echo "${ECHO_T}yes" >&6
 
18043
         { echo "$as_me:$LINENO: result: yes" >&5
 
18044
echo "${ECHO_T}yes" >&6; }
8225
18045
       else
8226
 
  echo "$as_me:$LINENO: result: no" >&5
8227
 
echo "${ECHO_T}no" >&6
 
18046
  { echo "$as_me:$LINENO: result: no" >&5
 
18047
echo "${ECHO_T}no" >&6; }
8228
18048
fi
8229
18049
       ;;
8230
18050
   *)
8231
 
  echo "$as_me:$LINENO: result: no" >&5
8232
 
echo "${ECHO_T}no" >&6
 
18051
  { echo "$as_me:$LINENO: result: no" >&5
 
18052
echo "${ECHO_T}no" >&6; }
8233
18053
    ;;
8234
18054
  esac
8235
18055
fi
8261
18081
 
8262
18082
  darwin*)
8263
18083
  # if libdl is installed we need to link against it
8264
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8265
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18084
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18085
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8266
18086
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8267
18087
  echo $ECHO_N "(cached) $ECHO_C" >&6
8268
18088
else
8275
18095
cat >>conftest.$ac_ext <<_ACEOF
8276
18096
/* end confdefs.h.  */
8277
18097
 
8278
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18098
/* Override any GCC internal prototype to avoid an error.
 
18099
   Use char because int might match the return type of a GCC
 
18100
   builtin and then its argument prototype would still apply.  */
8279
18101
#ifdef __cplusplus
8280
18102
extern "C"
8281
18103
#endif
8282
 
/* We use char because int might match the return type of a gcc2
8283
 
   builtin and then its argument prototype would still apply.  */
8284
18104
char dlopen ();
8285
18105
int
8286
18106
main ()
8287
18107
{
8288
 
dlopen ();
 
18108
return dlopen ();
8289
18109
  ;
8290
18110
  return 0;
8291
18111
}
8292
18112
_ACEOF
8293
18113
rm -f conftest.$ac_objext conftest$ac_exeext
8294
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295
 
  (eval $ac_link) 2>conftest.er1
 
18114
if { (ac_try="$ac_link"
 
18115
case "(($ac_try" in
 
18116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18117
  *) ac_try_echo=$ac_try;;
 
18118
esac
 
18119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18120
  (eval "$ac_link") 2>conftest.er1
8296
18121
  ac_status=$?
8297
18122
  grep -v '^ *+' conftest.er1 >conftest.err
8298
18123
  rm -f conftest.er1
8299
18124
  cat conftest.err >&5
8300
18125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301
18126
  (exit $ac_status); } &&
8302
 
         { ac_try='test -z "$ac_c_werror_flag"
8303
 
                         || test ! -s conftest.err'
8304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305
 
  (eval $ac_try) 2>&5
 
18127
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18128
  { (case "(($ac_try" in
 
18129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18130
  *) ac_try_echo=$ac_try;;
 
18131
esac
 
18132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18133
  (eval "$ac_try") 2>&5
8306
18134
  ac_status=$?
8307
18135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308
18136
  (exit $ac_status); }; } &&
8309
18137
         { ac_try='test -s conftest$ac_exeext'
8310
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311
 
  (eval $ac_try) 2>&5
 
18138
  { (case "(($ac_try" in
 
18139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18140
  *) ac_try_echo=$ac_try;;
 
18141
esac
 
18142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18143
  (eval "$ac_try") 2>&5
8312
18144
  ac_status=$?
8313
18145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314
18146
  (exit $ac_status); }; }; then
8317
18149
  echo "$as_me: failed program was:" >&5
8318
18150
sed 's/^/| /' conftest.$ac_ext >&5
8319
18151
 
8320
 
ac_cv_lib_dl_dlopen=no
 
18152
        ac_cv_lib_dl_dlopen=no
8321
18153
fi
8322
 
rm -f conftest.err conftest.$ac_objext \
 
18154
 
 
18155
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8323
18156
      conftest$ac_exeext conftest.$ac_ext
8324
18157
LIBS=$ac_check_lib_save_LIBS
8325
18158
fi
8326
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8327
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18159
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18160
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8328
18161
if test $ac_cv_lib_dl_dlopen = yes; then
8329
18162
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8330
18163
else
8338
18171
   ;;
8339
18172
 
8340
18173
  *)
8341
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8342
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18174
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
18175
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8343
18176
if test "${ac_cv_func_shl_load+set}" = set; then
8344
18177
  echo $ECHO_N "(cached) $ECHO_C" >&6
8345
18178
else
8366
18199
 
8367
18200
#undef shl_load
8368
18201
 
8369
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18202
/* Override any GCC internal prototype to avoid an error.
 
18203
   Use char because int might match the return type of a GCC
 
18204
   builtin and then its argument prototype would still apply.  */
8370
18205
#ifdef __cplusplus
8371
18206
extern "C"
8372
 
{
8373
18207
#endif
8374
 
/* We use char because int might match the return type of a gcc2
8375
 
   builtin and then its argument prototype would still apply.  */
8376
18208
char shl_load ();
8377
18209
/* The GNU C library defines this for functions which it implements
8378
18210
    to always fail with ENOSYS.  Some functions are actually named
8379
18211
    something starting with __ and the normal name is an alias.  */
8380
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18212
#if defined __stub_shl_load || defined __stub___shl_load
8381
18213
choke me
8382
 
#else
8383
 
char (*f) () = shl_load;
8384
 
#endif
8385
 
#ifdef __cplusplus
8386
 
}
8387
18214
#endif
8388
18215
 
8389
18216
int
8390
18217
main ()
8391
18218
{
8392
 
return f != shl_load;
 
18219
return shl_load ();
8393
18220
  ;
8394
18221
  return 0;
8395
18222
}
8396
18223
_ACEOF
8397
18224
rm -f conftest.$ac_objext conftest$ac_exeext
8398
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399
 
  (eval $ac_link) 2>conftest.er1
 
18225
if { (ac_try="$ac_link"
 
18226
case "(($ac_try" in
 
18227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18228
  *) ac_try_echo=$ac_try;;
 
18229
esac
 
18230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18231
  (eval "$ac_link") 2>conftest.er1
8400
18232
  ac_status=$?
8401
18233
  grep -v '^ *+' conftest.er1 >conftest.err
8402
18234
  rm -f conftest.er1
8403
18235
  cat conftest.err >&5
8404
18236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405
18237
  (exit $ac_status); } &&
8406
 
         { ac_try='test -z "$ac_c_werror_flag"
8407
 
                         || test ! -s conftest.err'
8408
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409
 
  (eval $ac_try) 2>&5
 
18238
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18239
  { (case "(($ac_try" in
 
18240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18241
  *) ac_try_echo=$ac_try;;
 
18242
esac
 
18243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18244
  (eval "$ac_try") 2>&5
8410
18245
  ac_status=$?
8411
18246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412
18247
  (exit $ac_status); }; } &&
8413
18248
         { ac_try='test -s conftest$ac_exeext'
8414
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415
 
  (eval $ac_try) 2>&5
 
18249
  { (case "(($ac_try" in
 
18250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18251
  *) ac_try_echo=$ac_try;;
 
18252
esac
 
18253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18254
  (eval "$ac_try") 2>&5
8416
18255
  ac_status=$?
8417
18256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418
18257
  (exit $ac_status); }; }; then
8421
18260
  echo "$as_me: failed program was:" >&5
8422
18261
sed 's/^/| /' conftest.$ac_ext >&5
8423
18262
 
8424
 
ac_cv_func_shl_load=no
 
18263
        ac_cv_func_shl_load=no
8425
18264
fi
8426
 
rm -f conftest.err conftest.$ac_objext \
 
18265
 
 
18266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8427
18267
      conftest$ac_exeext conftest.$ac_ext
8428
18268
fi
8429
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8430
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18269
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18270
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8431
18271
if test $ac_cv_func_shl_load = yes; then
8432
18272
  lt_cv_dlopen="shl_load"
8433
18273
else
8434
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8435
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18274
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18275
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8436
18276
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8437
18277
  echo $ECHO_N "(cached) $ECHO_C" >&6
8438
18278
else
8445
18285
cat >>conftest.$ac_ext <<_ACEOF
8446
18286
/* end confdefs.h.  */
8447
18287
 
8448
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18288
/* Override any GCC internal prototype to avoid an error.
 
18289
   Use char because int might match the return type of a GCC
 
18290
   builtin and then its argument prototype would still apply.  */
8449
18291
#ifdef __cplusplus
8450
18292
extern "C"
8451
18293
#endif
8452
 
/* We use char because int might match the return type of a gcc2
8453
 
   builtin and then its argument prototype would still apply.  */
8454
18294
char shl_load ();
8455
18295
int
8456
18296
main ()
8457
18297
{
8458
 
shl_load ();
 
18298
return shl_load ();
8459
18299
  ;
8460
18300
  return 0;
8461
18301
}
8462
18302
_ACEOF
8463
18303
rm -f conftest.$ac_objext conftest$ac_exeext
8464
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465
 
  (eval $ac_link) 2>conftest.er1
 
18304
if { (ac_try="$ac_link"
 
18305
case "(($ac_try" in
 
18306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18307
  *) ac_try_echo=$ac_try;;
 
18308
esac
 
18309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18310
  (eval "$ac_link") 2>conftest.er1
8466
18311
  ac_status=$?
8467
18312
  grep -v '^ *+' conftest.er1 >conftest.err
8468
18313
  rm -f conftest.er1
8469
18314
  cat conftest.err >&5
8470
18315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471
18316
  (exit $ac_status); } &&
8472
 
         { ac_try='test -z "$ac_c_werror_flag"
8473
 
                         || test ! -s conftest.err'
8474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475
 
  (eval $ac_try) 2>&5
 
18317
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18318
  { (case "(($ac_try" in
 
18319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18320
  *) ac_try_echo=$ac_try;;
 
18321
esac
 
18322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18323
  (eval "$ac_try") 2>&5
8476
18324
  ac_status=$?
8477
18325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478
18326
  (exit $ac_status); }; } &&
8479
18327
         { ac_try='test -s conftest$ac_exeext'
8480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481
 
  (eval $ac_try) 2>&5
 
18328
  { (case "(($ac_try" in
 
18329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18330
  *) ac_try_echo=$ac_try;;
 
18331
esac
 
18332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18333
  (eval "$ac_try") 2>&5
8482
18334
  ac_status=$?
8483
18335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
18336
  (exit $ac_status); }; }; then
8487
18339
  echo "$as_me: failed program was:" >&5
8488
18340
sed 's/^/| /' conftest.$ac_ext >&5
8489
18341
 
8490
 
ac_cv_lib_dld_shl_load=no
 
18342
        ac_cv_lib_dld_shl_load=no
8491
18343
fi
8492
 
rm -f conftest.err conftest.$ac_objext \
 
18344
 
 
18345
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8493
18346
      conftest$ac_exeext conftest.$ac_ext
8494
18347
LIBS=$ac_check_lib_save_LIBS
8495
18348
fi
8496
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8497
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18349
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18350
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8498
18351
if test $ac_cv_lib_dld_shl_load = yes; then
8499
18352
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8500
18353
else
8501
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8502
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18354
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
18355
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8503
18356
if test "${ac_cv_func_dlopen+set}" = set; then
8504
18357
  echo $ECHO_N "(cached) $ECHO_C" >&6
8505
18358
else
8526
18379
 
8527
18380
#undef dlopen
8528
18381
 
8529
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18382
/* Override any GCC internal prototype to avoid an error.
 
18383
   Use char because int might match the return type of a GCC
 
18384
   builtin and then its argument prototype would still apply.  */
8530
18385
#ifdef __cplusplus
8531
18386
extern "C"
8532
 
{
8533
18387
#endif
8534
 
/* We use char because int might match the return type of a gcc2
8535
 
   builtin and then its argument prototype would still apply.  */
8536
18388
char dlopen ();
8537
18389
/* The GNU C library defines this for functions which it implements
8538
18390
    to always fail with ENOSYS.  Some functions are actually named
8539
18391
    something starting with __ and the normal name is an alias.  */
8540
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18392
#if defined __stub_dlopen || defined __stub___dlopen
8541
18393
choke me
8542
 
#else
8543
 
char (*f) () = dlopen;
8544
 
#endif
8545
 
#ifdef __cplusplus
8546
 
}
8547
18394
#endif
8548
18395
 
8549
18396
int
8550
18397
main ()
8551
18398
{
8552
 
return f != dlopen;
 
18399
return dlopen ();
8553
18400
  ;
8554
18401
  return 0;
8555
18402
}
8556
18403
_ACEOF
8557
18404
rm -f conftest.$ac_objext conftest$ac_exeext
8558
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559
 
  (eval $ac_link) 2>conftest.er1
 
18405
if { (ac_try="$ac_link"
 
18406
case "(($ac_try" in
 
18407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18408
  *) ac_try_echo=$ac_try;;
 
18409
esac
 
18410
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18411
  (eval "$ac_link") 2>conftest.er1
8560
18412
  ac_status=$?
8561
18413
  grep -v '^ *+' conftest.er1 >conftest.err
8562
18414
  rm -f conftest.er1
8563
18415
  cat conftest.err >&5
8564
18416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
18417
  (exit $ac_status); } &&
8566
 
         { ac_try='test -z "$ac_c_werror_flag"
8567
 
                         || test ! -s conftest.err'
8568
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569
 
  (eval $ac_try) 2>&5
 
18418
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18419
  { (case "(($ac_try" in
 
18420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18421
  *) ac_try_echo=$ac_try;;
 
18422
esac
 
18423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18424
  (eval "$ac_try") 2>&5
8570
18425
  ac_status=$?
8571
18426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572
18427
  (exit $ac_status); }; } &&
8573
18428
         { ac_try='test -s conftest$ac_exeext'
8574
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575
 
  (eval $ac_try) 2>&5
 
18429
  { (case "(($ac_try" in
 
18430
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18431
  *) ac_try_echo=$ac_try;;
 
18432
esac
 
18433
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18434
  (eval "$ac_try") 2>&5
8576
18435
  ac_status=$?
8577
18436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578
18437
  (exit $ac_status); }; }; then
8581
18440
  echo "$as_me: failed program was:" >&5
8582
18441
sed 's/^/| /' conftest.$ac_ext >&5
8583
18442
 
8584
 
ac_cv_func_dlopen=no
 
18443
        ac_cv_func_dlopen=no
8585
18444
fi
8586
 
rm -f conftest.err conftest.$ac_objext \
 
18445
 
 
18446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587
18447
      conftest$ac_exeext conftest.$ac_ext
8588
18448
fi
8589
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8590
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18449
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18450
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8591
18451
if test $ac_cv_func_dlopen = yes; then
8592
18452
  lt_cv_dlopen="dlopen"
8593
18453
else
8594
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8595
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18454
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18455
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8596
18456
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8597
18457
  echo $ECHO_N "(cached) $ECHO_C" >&6
8598
18458
else
8605
18465
cat >>conftest.$ac_ext <<_ACEOF
8606
18466
/* end confdefs.h.  */
8607
18467
 
8608
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18468
/* Override any GCC internal prototype to avoid an error.
 
18469
   Use char because int might match the return type of a GCC
 
18470
   builtin and then its argument prototype would still apply.  */
8609
18471
#ifdef __cplusplus
8610
18472
extern "C"
8611
18473
#endif
8612
 
/* We use char because int might match the return type of a gcc2
8613
 
   builtin and then its argument prototype would still apply.  */
8614
18474
char dlopen ();
8615
18475
int
8616
18476
main ()
8617
18477
{
8618
 
dlopen ();
 
18478
return dlopen ();
8619
18479
  ;
8620
18480
  return 0;
8621
18481
}
8622
18482
_ACEOF
8623
18483
rm -f conftest.$ac_objext conftest$ac_exeext
8624
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625
 
  (eval $ac_link) 2>conftest.er1
 
18484
if { (ac_try="$ac_link"
 
18485
case "(($ac_try" in
 
18486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18487
  *) ac_try_echo=$ac_try;;
 
18488
esac
 
18489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18490
  (eval "$ac_link") 2>conftest.er1
8626
18491
  ac_status=$?
8627
18492
  grep -v '^ *+' conftest.er1 >conftest.err
8628
18493
  rm -f conftest.er1
8629
18494
  cat conftest.err >&5
8630
18495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631
18496
  (exit $ac_status); } &&
8632
 
         { ac_try='test -z "$ac_c_werror_flag"
8633
 
                         || test ! -s conftest.err'
8634
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635
 
  (eval $ac_try) 2>&5
 
18497
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18498
  { (case "(($ac_try" in
 
18499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18500
  *) ac_try_echo=$ac_try;;
 
18501
esac
 
18502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18503
  (eval "$ac_try") 2>&5
8636
18504
  ac_status=$?
8637
18505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
18506
  (exit $ac_status); }; } &&
8639
18507
         { ac_try='test -s conftest$ac_exeext'
8640
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641
 
  (eval $ac_try) 2>&5
 
18508
  { (case "(($ac_try" in
 
18509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18510
  *) ac_try_echo=$ac_try;;
 
18511
esac
 
18512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18513
  (eval "$ac_try") 2>&5
8642
18514
  ac_status=$?
8643
18515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644
18516
  (exit $ac_status); }; }; then
8647
18519
  echo "$as_me: failed program was:" >&5
8648
18520
sed 's/^/| /' conftest.$ac_ext >&5
8649
18521
 
8650
 
ac_cv_lib_dl_dlopen=no
 
18522
        ac_cv_lib_dl_dlopen=no
8651
18523
fi
8652
 
rm -f conftest.err conftest.$ac_objext \
 
18524
 
 
18525
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653
18526
      conftest$ac_exeext conftest.$ac_ext
8654
18527
LIBS=$ac_check_lib_save_LIBS
8655
18528
fi
8656
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8657
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18529
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18530
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8658
18531
if test $ac_cv_lib_dl_dlopen = yes; then
8659
18532
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8660
18533
else
8661
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8662
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18534
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18535
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8663
18536
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8664
18537
  echo $ECHO_N "(cached) $ECHO_C" >&6
8665
18538
else
8672
18545
cat >>conftest.$ac_ext <<_ACEOF
8673
18546
/* end confdefs.h.  */
8674
18547
 
8675
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18548
/* Override any GCC internal prototype to avoid an error.
 
18549
   Use char because int might match the return type of a GCC
 
18550
   builtin and then its argument prototype would still apply.  */
8676
18551
#ifdef __cplusplus
8677
18552
extern "C"
8678
18553
#endif
8679
 
/* We use char because int might match the return type of a gcc2
8680
 
   builtin and then its argument prototype would still apply.  */
8681
18554
char dlopen ();
8682
18555
int
8683
18556
main ()
8684
18557
{
8685
 
dlopen ();
 
18558
return dlopen ();
8686
18559
  ;
8687
18560
  return 0;
8688
18561
}
8689
18562
_ACEOF
8690
18563
rm -f conftest.$ac_objext conftest$ac_exeext
8691
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692
 
  (eval $ac_link) 2>conftest.er1
 
18564
if { (ac_try="$ac_link"
 
18565
case "(($ac_try" in
 
18566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18567
  *) ac_try_echo=$ac_try;;
 
18568
esac
 
18569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18570
  (eval "$ac_link") 2>conftest.er1
8693
18571
  ac_status=$?
8694
18572
  grep -v '^ *+' conftest.er1 >conftest.err
8695
18573
  rm -f conftest.er1
8696
18574
  cat conftest.err >&5
8697
18575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698
18576
  (exit $ac_status); } &&
8699
 
         { ac_try='test -z "$ac_c_werror_flag"
8700
 
                         || test ! -s conftest.err'
8701
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702
 
  (eval $ac_try) 2>&5
 
18577
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18578
  { (case "(($ac_try" in
 
18579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18580
  *) ac_try_echo=$ac_try;;
 
18581
esac
 
18582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18583
  (eval "$ac_try") 2>&5
8703
18584
  ac_status=$?
8704
18585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705
18586
  (exit $ac_status); }; } &&
8706
18587
         { ac_try='test -s conftest$ac_exeext'
8707
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708
 
  (eval $ac_try) 2>&5
 
18588
  { (case "(($ac_try" in
 
18589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18590
  *) ac_try_echo=$ac_try;;
 
18591
esac
 
18592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18593
  (eval "$ac_try") 2>&5
8709
18594
  ac_status=$?
8710
18595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711
18596
  (exit $ac_status); }; }; then
8714
18599
  echo "$as_me: failed program was:" >&5
8715
18600
sed 's/^/| /' conftest.$ac_ext >&5
8716
18601
 
8717
 
ac_cv_lib_svld_dlopen=no
 
18602
        ac_cv_lib_svld_dlopen=no
8718
18603
fi
8719
 
rm -f conftest.err conftest.$ac_objext \
 
18604
 
 
18605
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720
18606
      conftest$ac_exeext conftest.$ac_ext
8721
18607
LIBS=$ac_check_lib_save_LIBS
8722
18608
fi
8723
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8724
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18609
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8725
18611
if test $ac_cv_lib_svld_dlopen = yes; then
8726
18612
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8727
18613
else
8728
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8729
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18614
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8730
18616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8731
18617
  echo $ECHO_N "(cached) $ECHO_C" >&6
8732
18618
else
8739
18625
cat >>conftest.$ac_ext <<_ACEOF
8740
18626
/* end confdefs.h.  */
8741
18627
 
8742
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18628
/* Override any GCC internal prototype to avoid an error.
 
18629
   Use char because int might match the return type of a GCC
 
18630
   builtin and then its argument prototype would still apply.  */
8743
18631
#ifdef __cplusplus
8744
18632
extern "C"
8745
18633
#endif
8746
 
/* We use char because int might match the return type of a gcc2
8747
 
   builtin and then its argument prototype would still apply.  */
8748
18634
char dld_link ();
8749
18635
int
8750
18636
main ()
8751
18637
{
8752
 
dld_link ();
 
18638
return dld_link ();
8753
18639
  ;
8754
18640
  return 0;
8755
18641
}
8756
18642
_ACEOF
8757
18643
rm -f conftest.$ac_objext conftest$ac_exeext
8758
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759
 
  (eval $ac_link) 2>conftest.er1
 
18644
if { (ac_try="$ac_link"
 
18645
case "(($ac_try" in
 
18646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18647
  *) ac_try_echo=$ac_try;;
 
18648
esac
 
18649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18650
  (eval "$ac_link") 2>conftest.er1
8760
18651
  ac_status=$?
8761
18652
  grep -v '^ *+' conftest.er1 >conftest.err
8762
18653
  rm -f conftest.er1
8763
18654
  cat conftest.err >&5
8764
18655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765
18656
  (exit $ac_status); } &&
8766
 
         { ac_try='test -z "$ac_c_werror_flag"
8767
 
                         || test ! -s conftest.err'
8768
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769
 
  (eval $ac_try) 2>&5
 
18657
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
18658
  { (case "(($ac_try" in
 
18659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18660
  *) ac_try_echo=$ac_try;;
 
18661
esac
 
18662
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18663
  (eval "$ac_try") 2>&5
8770
18664
  ac_status=$?
8771
18665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772
18666
  (exit $ac_status); }; } &&
8773
18667
         { ac_try='test -s conftest$ac_exeext'
8774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775
 
  (eval $ac_try) 2>&5
 
18668
  { (case "(($ac_try" in
 
18669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18670
  *) ac_try_echo=$ac_try;;
 
18671
esac
 
18672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18673
  (eval "$ac_try") 2>&5
8776
18674
  ac_status=$?
8777
18675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778
18676
  (exit $ac_status); }; }; then
8781
18679
  echo "$as_me: failed program was:" >&5
8782
18680
sed 's/^/| /' conftest.$ac_ext >&5
8783
18681
 
8784
 
ac_cv_lib_dld_dld_link=no
 
18682
        ac_cv_lib_dld_dld_link=no
8785
18683
fi
8786
 
rm -f conftest.err conftest.$ac_objext \
 
18684
 
 
18685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787
18686
      conftest$ac_exeext conftest.$ac_ext
8788
18687
LIBS=$ac_check_lib_save_LIBS
8789
18688
fi
8790
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8791
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18689
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18690
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8792
18691
if test $ac_cv_lib_dld_dld_link = yes; then
8793
18692
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8794
18693
fi
8823
18722
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8824
18723
 
8825
18724
    save_LDFLAGS="$LDFLAGS"
8826
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18725
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8827
18726
 
8828
18727
    save_LIBS="$LIBS"
8829
18728
    LIBS="$lt_cv_dlopen_libs $LIBS"
8830
18729
 
8831
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8832
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18730
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18731
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8833
18732
if test "${lt_cv_dlopen_self+set}" = set; then
8834
18733
  echo $ECHO_N "(cached) $ECHO_C" >&6
8835
18734
else
8839
18738
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8840
18739
  lt_status=$lt_dlunknown
8841
18740
  cat > conftest.$ac_ext <<EOF
8842
 
#line 8842 "configure"
 
18741
#line 18741 "configure"
8843
18742
#include "confdefs.h"
8844
18743
 
8845
18744
#if HAVE_DLFCN_H
8896
18795
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8897
18796
      /* dlclose (self); */
8898
18797
    }
 
18798
  else
 
18799
    puts (dlerror ());
8899
18800
 
8900
18801
    exit (status);
8901
18802
}
8905
18806
  ac_status=$?
8906
18807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907
18808
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8908
 
    (./conftest; exit; ) 2>/dev/null
 
18809
    (./conftest; exit; ) >&5 2>/dev/null
8909
18810
    lt_status=$?
8910
18811
    case x$lt_status in
8911
18812
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8912
18813
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8913
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18814
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8914
18815
    esac
8915
18816
  else :
8916
18817
    # compilation failed
8921
18822
 
8922
18823
 
8923
18824
fi
8924
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8925
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18825
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18826
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8926
18827
 
8927
18828
    if test "x$lt_cv_dlopen_self" = xyes; then
8928
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8929
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8930
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18829
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
18830
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18831
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8931
18832
if test "${lt_cv_dlopen_self_static+set}" = set; then
8932
18833
  echo $ECHO_N "(cached) $ECHO_C" >&6
8933
18834
else
8937
18838
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8938
18839
  lt_status=$lt_dlunknown
8939
18840
  cat > conftest.$ac_ext <<EOF
8940
 
#line 8940 "configure"
 
18841
#line 18841 "configure"
8941
18842
#include "confdefs.h"
8942
18843
 
8943
18844
#if HAVE_DLFCN_H
8994
18895
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8995
18896
      /* dlclose (self); */
8996
18897
    }
 
18898
  else
 
18899
    puts (dlerror ());
8997
18900
 
8998
18901
    exit (status);
8999
18902
}
9003
18906
  ac_status=$?
9004
18907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
18908
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9006
 
    (./conftest; exit; ) 2>/dev/null
 
18909
    (./conftest; exit; ) >&5 2>/dev/null
9007
18910
    lt_status=$?
9008
18911
    case x$lt_status in
9009
18912
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9010
18913
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9011
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18914
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9012
18915
    esac
9013
18916
  else :
9014
18917
    # compilation failed
9019
18922
 
9020
18923
 
9021
18924
fi
9022
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9023
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18925
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18926
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9024
18927
    fi
9025
18928
 
9026
18929
    CPPFLAGS="$save_CPPFLAGS"
9041
18944
fi
9042
18945
 
9043
18946
 
9044
 
# Report which librarie types wil actually be built
9045
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9046
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9047
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9048
 
echo "${ECHO_T}$can_build_shared" >&6
 
18947
# Report which library types will actually be built
 
18948
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
18949
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
18950
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
18951
echo "${ECHO_T}$can_build_shared" >&6; }
9049
18952
 
9050
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9051
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
18953
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
18954
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9052
18955
test "$can_build_shared" = "no" && enable_shared=no
9053
18956
 
9054
18957
# On AIX, shared libraries and static libraries use the same namespace, and
9055
18958
# are all built from PIC.
9056
 
case "$host_os" in
 
18959
case $host_os in
9057
18960
aix3*)
9058
18961
  test "$enable_shared" = yes && enable_static=no
9059
18962
  if test -n "$RANLIB"; then
9066
18969
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9067
18970
    test "$enable_shared" = yes && enable_static=no
9068
18971
  fi
9069
 
  ;;
9070
 
  darwin* | rhapsody*)
9071
 
  if test "$GCC" = yes; then
9072
 
    archive_cmds_need_lc=no
9073
 
    case "$host_os" in
9074
 
    rhapsody* | darwin1.[012])
9075
 
      allow_undefined_flag='-undefined suppress'
9076
 
      ;;
9077
 
    *) # Darwin 1.3 on
9078
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9079
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9080
 
      else
9081
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9082
 
          10.[012])
9083
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9084
 
            ;;
9085
 
          10.*)
9086
 
            allow_undefined_flag='-undefined dynamic_lookup'
9087
 
            ;;
9088
 
        esac
9089
 
      fi
9090
 
      ;;
9091
 
    esac
9092
 
    output_verbose_link_cmd='echo'
9093
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9094
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9095
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9096
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9097
 
    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}'
9098
 
    hardcode_direct=no
9099
 
    hardcode_automatic=yes
9100
 
    hardcode_shlibpath_var=unsupported
9101
 
    whole_archive_flag_spec='-all_load $convenience'
9102
 
    link_all_deplibs=yes
9103
 
  else
9104
 
    ld_shlibs=no
9105
 
  fi
9106
18972
    ;;
9107
18973
esac
9108
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
9109
 
echo "${ECHO_T}$enable_shared" >&6
 
18974
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
18975
echo "${ECHO_T}$enable_shared" >&6; }
9110
18976
 
9111
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9112
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
18977
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
18978
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9113
18979
# Make sure either enable_shared or enable_static is yes.
9114
18980
test "$enable_shared" = yes || enable_static=yes
9115
 
echo "$as_me:$LINENO: result: $enable_static" >&5
9116
 
echo "${ECHO_T}$enable_static" >&6
 
18981
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
18982
echo "${ECHO_T}$enable_static" >&6; }
9117
18983
 
9118
18984
# The else clause should only fire when bootstrapping the
9119
18985
# libtool distribution, otherwise you forgot to ship ltmain.sh
9128
18994
  # Now quote all the things that may contain metacharacters while being
9129
18995
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9130
18996
  # variables and quote the copies for generation of the libtool script.
9131
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18997
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9132
18998
    SED SHELL STRIP \
9133
18999
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9134
19000
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9232
19098
#
9233
19099
# You should have received a copy of the GNU General Public License
9234
19100
# along with this program; if not, write to the Free Software
9235
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19101
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9236
19102
#
9237
19103
# As a special exception to the GNU General Public License, if you
9238
19104
# distribute this file as part of a program that contains a
9243
19109
SED=$lt_SED
9244
19110
 
9245
19111
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9246
 
Xsed="$SED -e s/^X//"
 
19112
Xsed="$SED -e 1s/^X//"
9247
19113
 
9248
19114
# The HP-UX ksh and POSIX shell print the target directory to stdout
9249
19115
# if CDPATH is set.
9250
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
19116
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9251
19117
 
9252
19118
# The names of the tagged configurations supported by this script.
9253
19119
available_tags=
9277
19143
# The host system.
9278
19144
host_alias=$host_alias
9279
19145
host=$host
 
19146
host_os=$host_os
 
19147
 
 
19148
# The build system.
 
19149
build_alias=$build_alias
 
19150
build=$build
 
19151
build_os=$build_os
9280
19152
 
9281
19153
# An echo program that does not interpret backslashes.
9282
19154
echo=$lt_echo
9288
19160
# A C compiler.
9289
19161
LTCC=$lt_LTCC
9290
19162
 
 
19163
# LTCC compiler flags.
 
19164
LTCFLAGS=$lt_LTCFLAGS
 
19165
 
9291
19166
# A language-specific compiler.
9292
19167
CC=$lt_compiler
9293
19168
 
9353
19228
# Does compiler simultaneously support -c and -o options?
9354
19229
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9355
19230
 
9356
 
# Must we lock files when doing compilation ?
 
19231
# Must we lock files when doing compilation?
9357
19232
need_locks=$lt_need_locks
9358
19233
 
9359
19234
# Do we need the lib prefix for modules?
9596
19471
CC="$lt_save_CC"
9597
19472
 
9598
19473
 
9599
 
# Check whether --with-tags or --without-tags was given.
 
19474
# Check whether --with-tags was given.
9600
19475
if test "${with_tags+set}" = set; then
9601
 
  withval="$with_tags"
9602
 
  tagnames="$withval"
9603
 
fi;
 
19476
  withval=$with_tags; tagnames="$withval"
 
19477
fi
 
19478
 
9604
19479
 
9605
19480
if test -f "$ltmain" && test -n "$tagnames"; then
9606
19481
  if test ! -f "${ofile}"; then
9618
19493
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9619
19494
    fi
9620
19495
  fi
 
19496
  if test -z "$LTCFLAGS"; then
 
19497
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
19498
  fi
9621
19499
 
9622
19500
  # Extract list of available tagged configurations in $ofile.
9623
19501
  # Note that this assumes the entire list is on one line.
9648
19526
 
9649
19527
      case $tagname in
9650
19528
      CXX)
9651
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9652
 
          ac_ext=cc
 
19529
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
19530
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
19531
            (test "X$CXX" != "Xg++"))) ; then
 
19532
          ac_ext=cpp
9653
19533
ac_cpp='$CXXCPP $CPPFLAGS'
9654
19534
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9655
19535
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9668
19548
hardcode_libdir_flag_spec_ld_CXX=
9669
19549
hardcode_libdir_separator_CXX=
9670
19550
hardcode_minus_L_CXX=no
 
19551
hardcode_shlibpath_var_CXX=unsupported
9671
19552
hardcode_automatic_CXX=no
9672
19553
module_cmds_CXX=
9673
19554
module_expsym_cmds_CXX=
9685
19566
compiler_lib_search_path_CXX=
9686
19567
 
9687
19568
# Source file extension for C++ test sources.
9688
 
ac_ext=cc
 
19569
ac_ext=cpp
9689
19570
 
9690
19571
# Object file extension for compiled C++ test sources.
9691
19572
objext=o
9695
19576
lt_simple_compile_test_code="int some_variable = 0;\n"
9696
19577
 
9697
19578
# Code to be used in simple link tests
9698
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
19579
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9699
19580
 
9700
19581
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9701
19582
 
9702
19583
# If no C compiler was specified, use CC.
9703
19584
LTCC=${LTCC-"$CC"}
9704
19585
 
 
19586
# If no C compiler flags were specified, use CFLAGS.
 
19587
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19588
 
9705
19589
# Allow CC to be a program name with arguments.
9706
19590
compiler=$CC
9707
19591
 
9708
19592
 
 
19593
# save warnings/boilerplate of simple test code
 
19594
ac_outfile=conftest.$ac_objext
 
19595
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19596
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19597
_lt_compiler_boilerplate=`cat conftest.err`
 
19598
$rm conftest*
 
19599
 
 
19600
ac_outfile=conftest.$ac_objext
 
19601
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19602
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19603
_lt_linker_boilerplate=`cat conftest.err`
 
19604
$rm conftest*
 
19605
 
 
19606
 
9709
19607
# Allow CC to be a program name with arguments.
9710
19608
lt_save_CC=$CC
9711
19609
lt_save_LD=$LD
9716
19614
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9717
19615
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9718
19616
else
9719
 
  unset lt_cv_prog_gnu_ld
 
19617
  $as_unset lt_cv_prog_gnu_ld
9720
19618
fi
9721
19619
if test -n "${lt_cv_path_LDCXX+set}"; then
9722
19620
  lt_cv_path_LD=$lt_cv_path_LDCXX
9723
19621
else
9724
 
  unset lt_cv_path_LD
 
19622
  $as_unset lt_cv_path_LD
9725
19623
fi
9726
19624
test -z "${LDCXX+set}" || LD=$LDCXX
9727
19625
CC=${CXX-"c++"}
9728
19626
compiler=$CC
9729
19627
compiler_CXX=$CC
9730
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
19628
for cc_temp in $compiler""; do
 
19629
  case $cc_temp in
 
19630
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19631
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19632
    \-*) ;;
 
19633
    *) break;;
 
19634
  esac
 
19635
done
 
19636
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19637
 
9731
19638
 
9732
19639
# We don't want -fno-exception wen compiling C++ code, so set the
9733
19640
# no_builtin_flag separately
9741
19648
  # Set up default GNU C++ configuration
9742
19649
 
9743
19650
 
9744
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
19651
# Check whether --with-gnu-ld was given.
9745
19652
if test "${with_gnu_ld+set}" = set; then
9746
 
  withval="$with_gnu_ld"
9747
 
  test "$withval" = no || with_gnu_ld=yes
 
19653
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9748
19654
else
9749
19655
  with_gnu_ld=no
9750
 
fi;
 
19656
fi
 
19657
 
9751
19658
ac_prog=ld
9752
19659
if test "$GCC" = yes; then
9753
19660
  # Check if gcc -print-prog-name=ld gives a path.
9754
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9755
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
19661
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
19662
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9756
19663
  case $host in
9757
19664
  *-*-mingw*)
9758
19665
    # gcc leaves a trailing carriage return which upsets mingw
9781
19688
    ;;
9782
19689
  esac
9783
19690
elif test "$with_gnu_ld" = yes; then
9784
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9785
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
19691
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
19692
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9786
19693
else
9787
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9788
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
19694
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
19695
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9789
19696
fi
9790
19697
if test "${lt_cv_path_LD+set}" = set; then
9791
19698
  echo $ECHO_N "(cached) $ECHO_C" >&6
9798
19705
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9799
19706
      lt_cv_path_LD="$ac_dir/$ac_prog"
9800
19707
      # Check to see if the program is GNU ld.  I'd rather use --version,
9801
 
      # but apparently some GNU ld's only accept -v.
 
19708
      # but apparently some variants of GNU ld only accept -v.
9802
19709
      # Break only if it was the GNU/non-GNU ld that we prefer.
9803
19710
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9804
19711
      *GNU* | *'with BFD'*)
9818
19725
 
9819
19726
LD="$lt_cv_path_LD"
9820
19727
if test -n "$LD"; then
9821
 
  echo "$as_me:$LINENO: result: $LD" >&5
9822
 
echo "${ECHO_T}$LD" >&6
 
19728
  { echo "$as_me:$LINENO: result: $LD" >&5
 
19729
echo "${ECHO_T}$LD" >&6; }
9823
19730
else
9824
 
  echo "$as_me:$LINENO: result: no" >&5
9825
 
echo "${ECHO_T}no" >&6
 
19731
  { echo "$as_me:$LINENO: result: no" >&5
 
19732
echo "${ECHO_T}no" >&6; }
9826
19733
fi
9827
19734
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9828
19735
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9829
19736
   { (exit 1); exit 1; }; }
9830
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9831
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
19737
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
19738
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9832
19739
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9833
19740
  echo $ECHO_N "(cached) $ECHO_C" >&6
9834
19741
else
9835
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
19742
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9836
19743
case `$LD -v 2>&1 </dev/null` in
9837
19744
*GNU* | *'with BFD'*)
9838
19745
  lt_cv_prog_gnu_ld=yes
9842
19749
  ;;
9843
19750
esac
9844
19751
fi
9845
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9846
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
19752
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
19753
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9847
19754
with_gnu_ld=$lt_cv_prog_gnu_ld
9848
19755
 
9849
19756
 
9893
19800
fi
9894
19801
 
9895
19802
# PORTME: fill in a description of your system's C++ link characteristics
9896
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9897
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
19803
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
19804
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9898
19805
ld_shlibs_CXX=yes
9899
19806
case $host_os in
9900
19807
  aix3*)
9923
19830
            ;;
9924
19831
          esac
9925
19832
        done
 
19833
        ;;
9926
19834
      esac
9927
19835
 
9928
19836
      exp_sym_flag='-bexport'
9941
19849
    link_all_deplibs_CXX=yes
9942
19850
 
9943
19851
    if test "$GXX" = yes; then
9944
 
      case $host_os in aix4.012|aix4.012.*)
 
19852
      case $host_os in aix4.[012]|aix4.[012].*)
9945
19853
      # We only want to do this on AIX 4.2 and lower, the check
9946
19854
      # below for broken collect2 doesn't work under 4.3+
9947
19855
        collect2name=`${CC} -print-prog-name=collect2`
9960
19868
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9961
19869
          hardcode_libdir_separator_CXX=
9962
19870
        fi
 
19871
        ;;
9963
19872
      esac
9964
19873
      shared_flag='-shared'
 
19874
      if test "$aix_use_runtimelinking" = yes; then
 
19875
        shared_flag="$shared_flag "'${wl}-G'
 
19876
      fi
9965
19877
    else
9966
19878
      # not using gcc
9967
19879
      if test "$host_cpu" = ia64; then
10001
19913
}
10002
19914
_ACEOF
10003
19915
rm -f conftest.$ac_objext conftest$ac_exeext
10004
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005
 
  (eval $ac_link) 2>conftest.er1
 
19916
if { (ac_try="$ac_link"
 
19917
case "(($ac_try" in
 
19918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19919
  *) ac_try_echo=$ac_try;;
 
19920
esac
 
19921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19922
  (eval "$ac_link") 2>conftest.er1
10006
19923
  ac_status=$?
10007
19924
  grep -v '^ *+' conftest.er1 >conftest.err
10008
19925
  rm -f conftest.er1
10009
19926
  cat conftest.err >&5
10010
19927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011
19928
  (exit $ac_status); } &&
10012
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10013
 
                         || test ! -s conftest.err'
10014
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015
 
  (eval $ac_try) 2>&5
 
19929
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
19930
  { (case "(($ac_try" in
 
19931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19932
  *) ac_try_echo=$ac_try;;
 
19933
esac
 
19934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19935
  (eval "$ac_try") 2>&5
10016
19936
  ac_status=$?
10017
19937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018
19938
  (exit $ac_status); }; } &&
10019
19939
         { ac_try='test -s conftest$ac_exeext'
10020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021
 
  (eval $ac_try) 2>&5
 
19940
  { (case "(($ac_try" in
 
19941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19942
  *) ac_try_echo=$ac_try;;
 
19943
esac
 
19944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19945
  (eval "$ac_try") 2>&5
10022
19946
  ac_status=$?
10023
19947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024
19948
  (exit $ac_status); }; }; then
10032
19956
  echo "$as_me: failed program was:" >&5
10033
19957
sed 's/^/| /' conftest.$ac_ext >&5
10034
19958
 
 
19959
 
10035
19960
fi
10036
 
rm -f conftest.err conftest.$ac_objext \
 
19961
 
 
19962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037
19963
      conftest$ac_exeext conftest.$ac_ext
10038
19964
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039
19965
 
10040
19966
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10041
19967
 
10042
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
19968
      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"
10043
19969
     else
10044
19970
      if test "$host_cpu" = ia64; then
10045
19971
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10046
19972
        allow_undefined_flag_CXX="-z nodefs"
10047
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
19973
        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"
10048
19974
      else
10049
19975
        # Determine the default libpath from the value encoded in an empty executable.
10050
19976
        cat >conftest.$ac_ext <<_ACEOF
10063
19989
}
10064
19990
_ACEOF
10065
19991
rm -f conftest.$ac_objext conftest$ac_exeext
10066
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067
 
  (eval $ac_link) 2>conftest.er1
 
19992
if { (ac_try="$ac_link"
 
19993
case "(($ac_try" in
 
19994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19995
  *) ac_try_echo=$ac_try;;
 
19996
esac
 
19997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19998
  (eval "$ac_link") 2>conftest.er1
10068
19999
  ac_status=$?
10069
20000
  grep -v '^ *+' conftest.er1 >conftest.err
10070
20001
  rm -f conftest.er1
10071
20002
  cat conftest.err >&5
10072
20003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
20004
  (exit $ac_status); } &&
10074
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10075
 
                         || test ! -s conftest.err'
10076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077
 
  (eval $ac_try) 2>&5
 
20005
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
20006
  { (case "(($ac_try" in
 
20007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20008
  *) ac_try_echo=$ac_try;;
 
20009
esac
 
20010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20011
  (eval "$ac_try") 2>&5
10078
20012
  ac_status=$?
10079
20013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080
20014
  (exit $ac_status); }; } &&
10081
20015
         { ac_try='test -s conftest$ac_exeext'
10082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083
 
  (eval $ac_try) 2>&5
 
20016
  { (case "(($ac_try" in
 
20017
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20018
  *) ac_try_echo=$ac_try;;
 
20019
esac
 
20020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20021
  (eval "$ac_try") 2>&5
10084
20022
  ac_status=$?
10085
20023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
20024
  (exit $ac_status); }; }; then
10094
20032
  echo "$as_me: failed program was:" >&5
10095
20033
sed 's/^/| /' conftest.$ac_ext >&5
10096
20034
 
 
20035
 
10097
20036
fi
10098
 
rm -f conftest.err conftest.$ac_objext \
 
20037
 
 
20038
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10099
20039
      conftest$ac_exeext conftest.$ac_ext
10100
20040
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10101
20041
 
10104
20044
        # -berok will link without error, but may produce a broken library.
10105
20045
        no_undefined_flag_CXX=' ${wl}-bernotok'
10106
20046
        allow_undefined_flag_CXX=' ${wl}-berok'
10107
 
        # -bexpall does not export symbols beginning with underscore (_)
10108
 
        always_export_symbols_CXX=yes
10109
20047
        # Exported symbols can be pulled into shared objects from archives
10110
 
        whole_archive_flag_spec_CXX=' '
 
20048
        whole_archive_flag_spec_CXX='$convenience'
10111
20049
        archive_cmds_need_lc_CXX=yes
10112
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10113
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
20050
        # This is similar to how AIX traditionally builds its shared libraries.
 
20051
        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'
10114
20052
      fi
10115
20053
    fi
10116
20054
    ;;
 
20055
 
 
20056
  beos*)
 
20057
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
20058
      allow_undefined_flag_CXX=unsupported
 
20059
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
20060
      # support --undefined.  This deserves some investigation.  FIXME
 
20061
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20062
    else
 
20063
      ld_shlibs_CXX=no
 
20064
    fi
 
20065
    ;;
 
20066
 
10117
20067
  chorus*)
10118
20068
    case $cc_basename in
10119
20069
      *)
10132
20082
    enable_shared_with_static_runtimes_CXX=yes
10133
20083
 
10134
20084
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10135
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
20085
      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'
10136
20086
      # If the export-symbols file already is a .def file (1st line
10137
20087
      # is EXPORTS), use it as is; otherwise, prepend...
10138
20088
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141
20091
        echo EXPORTS > $output_objdir/$soname.def;
10142
20092
        cat $export_symbols >> $output_objdir/$soname.def;
10143
20093
      fi~
10144
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
20094
      $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'
10145
20095
    else
10146
20096
      ld_shlibs_CXX=no
10147
20097
    fi
10148
20098
  ;;
10149
 
 
10150
 
  darwin* | rhapsody*)
10151
 
  if test "$GXX" = yes; then
10152
 
    archive_cmds_need_lc_CXX=no
10153
 
    case "$host_os" in
10154
 
    rhapsody* | darwin1.[012])
10155
 
      allow_undefined_flag_CXX='-undefined suppress'
10156
 
      ;;
10157
 
    *) # Darwin 1.3 on
10158
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10159
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10160
 
      else
10161
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10162
 
          10.[012])
10163
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10164
 
            ;;
10165
 
          10.*)
10166
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10167
 
            ;;
 
20099
      darwin* | rhapsody*)
 
20100
        case $host_os in
 
20101
        rhapsody* | darwin1.[012])
 
20102
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
20103
         ;;
 
20104
       *) # Darwin 1.3 on
 
20105
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
20106
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
20107
         else
 
20108
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
20109
             10.[012])
 
20110
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
20111
               ;;
 
20112
             10.*)
 
20113
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
20114
               ;;
 
20115
           esac
 
20116
         fi
 
20117
         ;;
10168
20118
        esac
10169
 
      fi
10170
 
      ;;
10171
 
    esac
10172
 
    lt_int_apple_cc_single_mod=no
10173
 
    output_verbose_link_cmd='echo'
10174
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10175
 
      lt_int_apple_cc_single_mod=yes
10176
 
    fi
10177
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10178
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10179
 
    else
10180
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10181
 
    fi
10182
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
20119
      archive_cmds_need_lc_CXX=no
 
20120
      hardcode_direct_CXX=no
 
20121
      hardcode_automatic_CXX=yes
 
20122
      hardcode_shlibpath_var_CXX=unsupported
 
20123
      whole_archive_flag_spec_CXX=''
 
20124
      link_all_deplibs_CXX=yes
10183
20125
 
10184
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10185
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10186
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10187
 
    else
10188
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10189
 
    fi
10190
 
    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}'
10191
 
    hardcode_direct_CXX=no
10192
 
    hardcode_automatic_CXX=yes
10193
 
    hardcode_shlibpath_var_CXX=unsupported
10194
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10195
 
    link_all_deplibs_CXX=yes
10196
 
  else
10197
 
    ld_shlibs_CXX=no
10198
 
  fi
10199
 
    ;;
 
20126
    if test "$GXX" = yes ; then
 
20127
      lt_int_apple_cc_single_mod=no
 
20128
      output_verbose_link_cmd='echo'
 
20129
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
20130
       lt_int_apple_cc_single_mod=yes
 
20131
      fi
 
20132
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
20133
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
20134
      else
 
20135
          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'
 
20136
        fi
 
20137
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
20138
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
20139
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
20140
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
20141
          else
 
20142
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
20143
          fi
 
20144
            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}'
 
20145
      else
 
20146
      case $cc_basename in
 
20147
        xlc*)
 
20148
         output_verbose_link_cmd='echo'
 
20149
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
20150
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
20151
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
20152
          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
20153
          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}'
 
20154
          ;;
 
20155
       *)
 
20156
         ld_shlibs_CXX=no
 
20157
          ;;
 
20158
      esac
 
20159
      fi
 
20160
        ;;
10200
20161
 
10201
20162
  dgux*)
10202
20163
    case $cc_basename in
10203
 
      ec++)
 
20164
      ec++*)
10204
20165
        # FIXME: insert proper C++ library support
10205
20166
        ld_shlibs_CXX=no
10206
20167
        ;;
10207
 
      ghcx)
 
20168
      ghcx*)
10208
20169
        # Green Hills C++ Compiler
10209
20170
        # FIXME: insert proper C++ library support
10210
20171
        ld_shlibs_CXX=no
10215
20176
        ;;
10216
20177
    esac
10217
20178
    ;;
10218
 
  freebsd12*)
 
20179
  freebsd[12]*)
10219
20180
    # C++ shared libraries reported to be fairly broken before switch to ELF
10220
20181
    ld_shlibs_CXX=no
10221
20182
    ;;
10222
20183
  freebsd-elf*)
10223
20184
    archive_cmds_need_lc_CXX=no
10224
20185
    ;;
10225
 
  freebsd* | kfreebsd*-gnu)
 
20186
  freebsd* | dragonfly*)
10226
20187
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10227
20188
    # conventions
10228
20189
    ld_shlibs_CXX=yes
10239
20200
                                # location of the library.
10240
20201
 
10241
20202
    case $cc_basename in
10242
 
    CC)
 
20203
    CC*)
10243
20204
      # FIXME: insert proper C++ library support
10244
20205
      ld_shlibs_CXX=no
10245
20206
      ;;
10246
 
    aCC)
 
20207
    aCC*)
10247
20208
      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'
10248
20209
      # Commands to make compiler produce verbose output that lists
10249
20210
      # what "hidden" libraries, object files and flags are used when
10253
20214
      # explicitly linking system object files so we need to strip them
10254
20215
      # from the output so that they don't get included in the library
10255
20216
      # dependencies.
10256
 
      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'
 
20217
      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'
10257
20218
      ;;
10258
20219
    *)
10259
20220
      if test "$GXX" = yes; then
10267
20228
    ;;
10268
20229
  hpux10*|hpux11*)
10269
20230
    if test $with_gnu_ld = no; then
10270
 
      case "$host_cpu" in
10271
 
      hppa*64*)
10272
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
20231
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
20232
      hardcode_libdir_separator_CXX=:
 
20233
 
 
20234
      case $host_cpu in
 
20235
      hppa*64*|ia64*)
10273
20236
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10274
 
        hardcode_libdir_separator_CXX=:
10275
 
        ;;
10276
 
      ia64*)
10277
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10278
20237
        ;;
10279
20238
      *)
10280
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10281
 
        hardcode_libdir_separator_CXX=:
10282
20239
        export_dynamic_flag_spec_CXX='${wl}-E'
10283
20240
        ;;
10284
20241
      esac
10285
20242
    fi
10286
 
    case "$host_cpu" in
10287
 
    hppa*64*)
10288
 
      hardcode_direct_CXX=no
10289
 
      hardcode_shlibpath_var_CXX=no
10290
 
      ;;
10291
 
    ia64*)
10292
 
      hardcode_direct_CXX=no
10293
 
      hardcode_shlibpath_var_CXX=no
10294
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10295
 
                                              # but as the default
10296
 
                                              # location of the library.
 
20243
    case $host_cpu in
 
20244
    hppa*64*|ia64*)
 
20245
      hardcode_direct_CXX=no
 
20246
      hardcode_shlibpath_var_CXX=no
10297
20247
      ;;
10298
20248
    *)
10299
20249
      hardcode_direct_CXX=yes
10304
20254
    esac
10305
20255
 
10306
20256
    case $cc_basename in
10307
 
      CC)
 
20257
      CC*)
10308
20258
        # FIXME: insert proper C++ library support
10309
20259
        ld_shlibs_CXX=no
10310
20260
        ;;
10311
 
      aCC)
10312
 
        case "$host_cpu" in
10313
 
        hppa*64*|ia64*)
10314
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
20261
      aCC*)
 
20262
        case $host_cpu in
 
20263
        hppa*64*)
 
20264
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
20265
          ;;
 
20266
        ia64*)
 
20267
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315
20268
          ;;
10316
20269
        *)
10317
20270
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10330
20283
      *)
10331
20284
        if test "$GXX" = yes; then
10332
20285
          if test $with_gnu_ld = no; then
10333
 
            case "$host_cpu" in
10334
 
            ia64*|hppa*64*)
10335
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
20286
            case $host_cpu in
 
20287
            hppa*64*)
 
20288
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
20289
              ;;
 
20290
            ia64*)
 
20291
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10336
20292
              ;;
10337
20293
            *)
10338
20294
              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'
10346
20302
        ;;
10347
20303
    esac
10348
20304
    ;;
 
20305
  interix3*)
 
20306
    hardcode_direct_CXX=no
 
20307
    hardcode_shlibpath_var_CXX=no
 
20308
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
20309
    export_dynamic_flag_spec_CXX='${wl}-E'
 
20310
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
20311
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
20312
    # default) and relocated if they conflict, which is a slow very memory
 
20313
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
20314
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
20315
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
20316
    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'
 
20317
    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'
 
20318
    ;;
10349
20319
  irix5* | irix6*)
10350
20320
    case $cc_basename in
10351
 
      CC)
 
20321
      CC*)
10352
20322
        # SGI C++
10353
 
        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 ${objdir}/so_locations -o $lib'
 
20323
        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'
10354
20324
 
10355
20325
        # Archives containing C++ object files must be created using
10356
20326
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10361
20331
      *)
10362
20332
        if test "$GXX" = yes; then
10363
20333
          if test "$with_gnu_ld" = no; then
10364
 
            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}${objdir}/so_locations -o $lib'
 
20334
            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'
10365
20335
          else
10366
20336
            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'
10367
20337
          fi
10372
20342
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10373
20343
    hardcode_libdir_separator_CXX=:
10374
20344
    ;;
10375
 
  linux*)
 
20345
  linux* | k*bsd*-gnu)
10376
20346
    case $cc_basename in
10377
 
      KCC)
 
20347
      KCC*)
10378
20348
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10379
20349
 
10380
20350
        # KCC will only create a shared library if the output file
10399
20369
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10400
20370
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401
20371
        ;;
10402
 
      icpc)
 
20372
      icpc*)
10403
20373
        # Intel C++
10404
20374
        with_gnu_ld=yes
 
20375
        # version 8.0 and above of icpc choke on multiply defined symbols
 
20376
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
20377
        # earlier do not add the objects themselves.
 
20378
        case `$CC -V 2>&1` in
 
20379
        *"Version 7."*)
 
20380
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20381
          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'
 
20382
          ;;
 
20383
        *)  # Version 8.0 or newer
 
20384
          tmp_idyn=
 
20385
          case $host_cpu in
 
20386
            ia64*) tmp_idyn=' -i_dynamic';;
 
20387
          esac
 
20388
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20389
          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'
 
20390
          ;;
 
20391
        esac
10405
20392
        archive_cmds_need_lc_CXX=no
10406
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407
 
        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'
10408
20393
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10409
20394
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10410
20395
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10411
20396
        ;;
10412
 
      cxx)
 
20397
      pgCC*)
 
20398
        # Portland Group C++ compiler
 
20399
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
20400
        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'
 
20401
 
 
20402
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
20403
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
20404
        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'
 
20405
        ;;
 
20406
      cxx*)
10413
20407
        # Compaq C++
10414
20408
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415
20409
        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'
10440
20434
    ;;
10441
20435
  mvs*)
10442
20436
    case $cc_basename in
10443
 
      cxx)
 
20437
      cxx*)
10444
20438
        # FIXME: insert proper C++ library support
10445
20439
        ld_shlibs_CXX=no
10446
20440
        ;;
10450
20444
        ;;
10451
20445
    esac
10452
20446
    ;;
10453
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
20447
  netbsd* | netbsdelf*-gnu)
10454
20448
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10455
20449
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10456
20450
      wlarc=
10461
20455
    # Workaround some broken pre-1.5 toolchains
10462
20456
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10463
20457
    ;;
 
20458
  openbsd2*)
 
20459
    # C++ shared libraries are fairly broken
 
20460
    ld_shlibs_CXX=no
 
20461
    ;;
 
20462
  openbsd*)
 
20463
    hardcode_direct_CXX=yes
 
20464
    hardcode_shlibpath_var_CXX=no
 
20465
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
20466
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
20467
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
20468
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
20469
      export_dynamic_flag_spec_CXX='${wl}-E'
 
20470
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
20471
    fi
 
20472
    output_verbose_link_cmd='echo'
 
20473
    ;;
10464
20474
  osf3*)
10465
20475
    case $cc_basename in
10466
 
      KCC)
 
20476
      KCC*)
10467
20477
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10468
20478
 
10469
20479
        # KCC will only create a shared library if the output file
10479
20489
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10480
20490
 
10481
20491
        ;;
10482
 
      RCC)
 
20492
      RCC*)
10483
20493
        # Rational C++ 2.4.1
10484
20494
        # FIXME: insert proper C++ library support
10485
20495
        ld_shlibs_CXX=no
10486
20496
        ;;
10487
 
      cxx)
 
20497
      cxx*)
10488
20498
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10489
 
        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 ${objdir}/so_locations -o $lib'
 
20499
        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'
10490
20500
 
10491
20501
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10492
20502
        hardcode_libdir_separator_CXX=:
10504
20514
      *)
10505
20515
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10506
20516
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10507
 
          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}${objdir}/so_locations -o $lib'
 
20517
          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'
10508
20518
 
10509
20519
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10510
20520
          hardcode_libdir_separator_CXX=:
10523
20533
    ;;
10524
20534
  osf4* | osf5*)
10525
20535
    case $cc_basename in
10526
 
      KCC)
 
20536
      KCC*)
10527
20537
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10528
20538
 
10529
20539
        # KCC will only create a shared library if the output file
10538
20548
        # the KAI C++ compiler.
10539
20549
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10540
20550
        ;;
10541
 
      RCC)
 
20551
      RCC*)
10542
20552
        # Rational C++ 2.4.1
10543
20553
        # FIXME: insert proper C++ library support
10544
20554
        ld_shlibs_CXX=no
10545
20555
        ;;
10546
 
      cxx)
 
20556
      cxx*)
10547
20557
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10548
 
        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 ${objdir}/so_locations -o $lib'
 
20558
        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'
10549
20559
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10550
20560
          echo "-hidden">> $lib.exp~
10551
 
          $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 $objdir/so_locations -o $lib~
 
20561
          $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~
10552
20562
          $rm $lib.exp'
10553
20563
 
10554
20564
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10567
20577
      *)
10568
20578
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10569
20579
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10570
 
         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}${objdir}/so_locations -o $lib'
 
20580
         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'
10571
20581
 
10572
20582
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10573
20583
          hardcode_libdir_separator_CXX=:
10588
20598
    # FIXME: insert proper C++ library support
10589
20599
    ld_shlibs_CXX=no
10590
20600
    ;;
10591
 
  sco*)
10592
 
    archive_cmds_need_lc_CXX=no
10593
 
    case $cc_basename in
10594
 
      CC)
10595
 
        # FIXME: insert proper C++ library support
10596
 
        ld_shlibs_CXX=no
10597
 
        ;;
10598
 
      *)
10599
 
        # FIXME: insert proper C++ library support
10600
 
        ld_shlibs_CXX=no
10601
 
        ;;
10602
 
    esac
10603
 
    ;;
10604
20601
  sunos4*)
10605
20602
    case $cc_basename in
10606
 
      CC)
 
20603
      CC*)
10607
20604
        # Sun C++ 4.x
10608
20605
        # FIXME: insert proper C++ library support
10609
20606
        ld_shlibs_CXX=no
10610
20607
        ;;
10611
 
      lcc)
 
20608
      lcc*)
10612
20609
        # Lucid
10613
20610
        # FIXME: insert proper C++ library support
10614
20611
        ld_shlibs_CXX=no
10621
20618
    ;;
10622
20619
  solaris*)
10623
20620
    case $cc_basename in
10624
 
      CC)
 
20621
      CC*)
10625
20622
        # Sun C++ 4.2, 5.x and Centerline C++
 
20623
        archive_cmds_need_lc_CXX=yes
10626
20624
        no_undefined_flag_CXX=' -zdefs'
10627
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
20625
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10628
20626
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10629
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
20627
        $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'
10630
20628
 
10631
20629
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10632
20630
        hardcode_shlibpath_var_CXX=no
10633
20631
        case $host_os in
10634
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
20632
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10635
20633
          *)
10636
20634
            # The C++ compiler is used as linker so we must use $wl
10637
20635
            # flag to pass the commands to the underlying system
10638
 
            # linker.
 
20636
            # linker. We must also pass each convience library through
 
20637
            # to the system linker between allextract/defaultextract.
 
20638
            # The C++ compiler will combine linker options so we
 
20639
            # cannot just pass the convience library names through
 
20640
            # without $wl.
10639
20641
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10640
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
20642
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10641
20643
            ;;
10642
20644
        esac
10643
20645
        link_all_deplibs_CXX=yes
10644
20646
 
10645
 
        # Commands to make compiler produce verbose output that lists
10646
 
        # what "hidden" libraries, object files and flags are used when
10647
 
        # linking a shared library.
10648
 
        #
10649
 
        # There doesn't appear to be a way to prevent this compiler from
10650
 
        # explicitly linking system object files so we need to strip them
10651
 
        # from the output so that they don't get included in the library
10652
 
        # dependencies.
10653
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
20647
        output_verbose_link_cmd='echo'
10654
20648
 
10655
20649
        # Archives containing C++ object files must be created using
10656
20650
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10658
20652
        # in the archive.
10659
20653
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10660
20654
        ;;
10661
 
      gcx)
 
20655
      gcx*)
10662
20656
        # Green Hills C++ Compiler
10663
20657
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10664
20658
 
10696
20690
        ;;
10697
20691
    esac
10698
20692
    ;;
10699
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10700
 
    archive_cmds_need_lc_CXX=no
 
20693
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
20694
    no_undefined_flag_CXX='${wl}-z,text'
 
20695
    archive_cmds_need_lc_CXX=no
 
20696
    hardcode_shlibpath_var_CXX=no
 
20697
    runpath_var='LD_RUN_PATH'
 
20698
 
 
20699
    case $cc_basename in
 
20700
      CC*)
 
20701
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20702
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20703
        ;;
 
20704
      *)
 
20705
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20706
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20707
        ;;
 
20708
    esac
 
20709
    ;;
 
20710
  sysv5* | sco3.2v5* | sco5v6*)
 
20711
    # Note: We can NOT use -z defs as we might desire, because we do not
 
20712
    # link with -lc, and that would cause any symbols used from libc to
 
20713
    # always be unresolved, which means just about no library would
 
20714
    # ever link correctly.  If we're not using GNU ld we use -z text
 
20715
    # though, which does catch some bad symbols but isn't as heavy-handed
 
20716
    # as -z defs.
 
20717
    # For security reasons, it is highly recommended that you always
 
20718
    # use absolute paths for naming shared libraries, and exclude the
 
20719
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
20720
    # requires that you compile everything twice, which is a pain.
 
20721
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
20722
    # non-empty value in the environment.  Most likely only useful for
 
20723
    # creating official distributions of packages.
 
20724
    # This is a hack until libtool officially supports absolute path
 
20725
    # names for shared libraries.
 
20726
    no_undefined_flag_CXX='${wl}-z,text'
 
20727
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
20728
    archive_cmds_need_lc_CXX=no
 
20729
    hardcode_shlibpath_var_CXX=no
 
20730
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
20731
    hardcode_libdir_separator_CXX=':'
 
20732
    link_all_deplibs_CXX=yes
 
20733
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
20734
    runpath_var='LD_RUN_PATH'
 
20735
 
 
20736
    case $cc_basename in
 
20737
      CC*)
 
20738
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20739
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20740
        ;;
 
20741
      *)
 
20742
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20743
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20744
        ;;
 
20745
    esac
10701
20746
    ;;
10702
20747
  tandem*)
10703
20748
    case $cc_basename in
10704
 
      NCC)
 
20749
      NCC*)
10705
20750
        # NonStop-UX NCC 3.20
10706
20751
        # FIXME: insert proper C++ library support
10707
20752
        ld_shlibs_CXX=no
10721
20766
    ld_shlibs_CXX=no
10722
20767
    ;;
10723
20768
esac
10724
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10725
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
20769
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
20770
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10726
20771
test "$ld_shlibs_CXX" = no && can_build_shared=no
10727
20772
 
10728
20773
GCC_CXX="$GXX"
10754
20799
  # The `*' in the case matches for architectures that use `case' in
10755
20800
  # $output_verbose_cmd can trigger glob expansion during the loop
10756
20801
  # eval without this substitution.
10757
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
20802
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10758
20803
 
10759
20804
  for p in `eval $output_verbose_link_cmd`; do
10760
20805
    case $p in
10830
20875
 
10831
20876
$rm -f confest.$objext
10832
20877
 
 
20878
# PORTME: override above test on systems where it is broken
 
20879
case $host_os in
 
20880
interix3*)
 
20881
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
20882
  # hack all around it, let's just trust "g++" to DTRT.
 
20883
  predep_objects_CXX=
 
20884
  postdep_objects_CXX=
 
20885
  postdeps_CXX=
 
20886
  ;;
 
20887
 
 
20888
solaris*)
 
20889
  case $cc_basename in
 
20890
  CC*)
 
20891
    # Adding this requires a known-good setup of shared libraries for
 
20892
    # Sun compiler versions before 5.6, else PIC objects from an old
 
20893
    # archive will be linked into the output, leading to subtle bugs.
 
20894
    postdeps_CXX='-lCstd -lCrun'
 
20895
    ;;
 
20896
  esac
 
20897
  ;;
 
20898
esac
 
20899
 
 
20900
 
10833
20901
case " $postdeps_CXX " in
10834
20902
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10835
20903
esac
10838
20906
lt_prog_compiler_pic_CXX=
10839
20907
lt_prog_compiler_static_CXX=
10840
20908
 
10841
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10842
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
20909
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
20910
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10843
20911
 
10844
20912
  # C++ specific cases for pic, static, wl, etc.
10845
20913
  if test "$GXX" = yes; then
10877
20945
      # DJGPP does not support shared libraries at all
10878
20946
      lt_prog_compiler_pic_CXX=
10879
20947
      ;;
 
20948
    interix3*)
 
20949
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
20950
      # Instead, we relocate shared libraries at runtime.
 
20951
      ;;
10880
20952
    sysv4*MP*)
10881
20953
      if test -d /usr/nec; then
10882
20954
        lt_prog_compiler_pic_CXX=-Kconform_pic
10885
20957
    hpux*)
10886
20958
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10887
20959
      # not for PA HP-UX.
10888
 
      case "$host_cpu" in
 
20960
      case $host_cpu in
10889
20961
      hppa*64*|ia64*)
10890
20962
        ;;
10891
20963
      *)
10910
20982
        ;;
10911
20983
      chorus*)
10912
20984
        case $cc_basename in
10913
 
        cxch68)
 
20985
        cxch68*)
10914
20986
          # Green Hills C++ Compiler
10915
20987
          # _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"
10916
20988
          ;;
10917
20989
        esac
10918
20990
        ;;
 
20991
       darwin*)
 
20992
         # PIC is the default on this platform
 
20993
         # Common symbols not allowed in MH_DYLIB files
 
20994
         case $cc_basename in
 
20995
           xlc*)
 
20996
           lt_prog_compiler_pic_CXX='-qnocommon'
 
20997
           lt_prog_compiler_wl_CXX='-Wl,'
 
20998
           ;;
 
20999
         esac
 
21000
       ;;
10919
21001
      dgux*)
10920
21002
        case $cc_basename in
10921
 
          ec++)
 
21003
          ec++*)
10922
21004
            lt_prog_compiler_pic_CXX='-KPIC'
10923
21005
            ;;
10924
 
          ghcx)
 
21006
          ghcx*)
10925
21007
            # Green Hills C++ Compiler
10926
21008
            lt_prog_compiler_pic_CXX='-pic'
10927
21009
            ;;
10929
21011
            ;;
10930
21012
        esac
10931
21013
        ;;
10932
 
      freebsd* | kfreebsd*-gnu)
 
21014
      freebsd* | dragonfly*)
10933
21015
        # FreeBSD uses GNU C++
10934
21016
        ;;
10935
21017
      hpux9* | hpux10* | hpux11*)
10936
21018
        case $cc_basename in
10937
 
          CC)
 
21019
          CC*)
10938
21020
            lt_prog_compiler_wl_CXX='-Wl,'
10939
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
21021
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10940
21022
            if test "$host_cpu" != ia64; then
10941
21023
              lt_prog_compiler_pic_CXX='+Z'
10942
21024
            fi
10943
21025
            ;;
10944
 
          aCC)
 
21026
          aCC*)
10945
21027
            lt_prog_compiler_wl_CXX='-Wl,'
10946
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10947
 
            case "$host_cpu" in
 
21028
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
21029
            case $host_cpu in
10948
21030
            hppa*64*|ia64*)
10949
21031
              # +Z the default
10950
21032
              ;;
10957
21039
            ;;
10958
21040
        esac
10959
21041
        ;;
 
21042
      interix*)
 
21043
        # This is c89, which is MS Visual C++ (no shared libs)
 
21044
        # Anyone wants to do a port?
 
21045
        ;;
10960
21046
      irix5* | irix6* | nonstopux*)
10961
21047
        case $cc_basename in
10962
 
          CC)
 
21048
          CC*)
10963
21049
            lt_prog_compiler_wl_CXX='-Wl,'
10964
21050
            lt_prog_compiler_static_CXX='-non_shared'
10965
21051
            # CC pic flag -KPIC is the default.
10968
21054
            ;;
10969
21055
        esac
10970
21056
        ;;
10971
 
      linux*)
 
21057
      linux* | k*bsd*-gnu)
10972
21058
        case $cc_basename in
10973
 
          KCC)
 
21059
          KCC*)
10974
21060
            # KAI C++ Compiler
10975
21061
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10976
21062
            lt_prog_compiler_pic_CXX='-fPIC'
10977
21063
            ;;
10978
 
          icpc)
 
21064
          icpc* | ecpc*)
10979
21065
            # Intel C++
10980
21066
            lt_prog_compiler_wl_CXX='-Wl,'
10981
21067
            lt_prog_compiler_pic_CXX='-KPIC'
10982
21068
            lt_prog_compiler_static_CXX='-static'
10983
21069
            ;;
10984
 
          cxx)
 
21070
          pgCC*)
 
21071
            # Portland Group C++ compiler.
 
21072
            lt_prog_compiler_wl_CXX='-Wl,'
 
21073
            lt_prog_compiler_pic_CXX='-fpic'
 
21074
            lt_prog_compiler_static_CXX='-Bstatic'
 
21075
            ;;
 
21076
          cxx*)
10985
21077
            # Compaq C++
10986
21078
            # Make sure the PIC flag is empty.  It appears that all Alpha
10987
21079
            # Linux and Compaq Tru64 Unix objects are PIC.
10998
21090
        ;;
10999
21091
      mvs*)
11000
21092
        case $cc_basename in
11001
 
          cxx)
 
21093
          cxx*)
11002
21094
            lt_prog_compiler_pic_CXX='-W c,exportall'
11003
21095
            ;;
11004
21096
          *)
11005
21097
            ;;
11006
21098
        esac
11007
21099
        ;;
11008
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
21100
      netbsd* | netbsdelf*-gnu)
11009
21101
        ;;
11010
21102
      osf3* | osf4* | osf5*)
11011
21103
        case $cc_basename in
11012
 
          KCC)
 
21104
          KCC*)
11013
21105
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11014
21106
            ;;
11015
 
          RCC)
 
21107
          RCC*)
11016
21108
            # Rational C++ 2.4.1
11017
21109
            lt_prog_compiler_pic_CXX='-pic'
11018
21110
            ;;
11019
 
          cxx)
 
21111
          cxx*)
11020
21112
            # Digital/Compaq C++
11021
21113
            lt_prog_compiler_wl_CXX='-Wl,'
11022
21114
            # Make sure the PIC flag is empty.  It appears that all Alpha
11030
21122
        ;;
11031
21123
      psos*)
11032
21124
        ;;
11033
 
      sco*)
11034
 
        case $cc_basename in
11035
 
          CC)
11036
 
            lt_prog_compiler_pic_CXX='-fPIC'
11037
 
            ;;
11038
 
          *)
11039
 
            ;;
11040
 
        esac
11041
 
        ;;
11042
21125
      solaris*)
11043
21126
        case $cc_basename in
11044
 
          CC)
 
21127
          CC*)
11045
21128
            # Sun C++ 4.2, 5.x and Centerline C++
11046
21129
            lt_prog_compiler_pic_CXX='-KPIC'
11047
21130
            lt_prog_compiler_static_CXX='-Bstatic'
11048
21131
            lt_prog_compiler_wl_CXX='-Qoption ld '
11049
21132
            ;;
11050
 
          gcx)
 
21133
          gcx*)
11051
21134
            # Green Hills C++ Compiler
11052
21135
            lt_prog_compiler_pic_CXX='-PIC'
11053
21136
            ;;
11057
21140
        ;;
11058
21141
      sunos4*)
11059
21142
        case $cc_basename in
11060
 
          CC)
 
21143
          CC*)
11061
21144
            # Sun C++ 4.x
11062
21145
            lt_prog_compiler_pic_CXX='-pic'
11063
21146
            lt_prog_compiler_static_CXX='-Bstatic'
11064
21147
            ;;
11065
 
          lcc)
 
21148
          lcc*)
11066
21149
            # Lucid
11067
21150
            lt_prog_compiler_pic_CXX='-pic'
11068
21151
            ;;
11072
21155
        ;;
11073
21156
      tandem*)
11074
21157
        case $cc_basename in
11075
 
          NCC)
 
21158
          NCC*)
11076
21159
            # NonStop-UX NCC 3.20
11077
21160
            lt_prog_compiler_pic_CXX='-KPIC'
11078
21161
            ;;
11080
21163
            ;;
11081
21164
        esac
11082
21165
        ;;
11083
 
      unixware*)
 
21166
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
21167
        case $cc_basename in
 
21168
          CC*)
 
21169
            lt_prog_compiler_wl_CXX='-Wl,'
 
21170
            lt_prog_compiler_pic_CXX='-KPIC'
 
21171
            lt_prog_compiler_static_CXX='-Bstatic'
 
21172
            ;;
 
21173
        esac
11084
21174
        ;;
11085
21175
      vxworks*)
11086
21176
        ;;
11090
21180
    esac
11091
21181
  fi
11092
21182
 
11093
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11094
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
21183
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
21184
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11095
21185
 
11096
21186
#
11097
21187
# Check to make sure the PIC flag actually works.
11098
21188
#
11099
21189
if test -n "$lt_prog_compiler_pic_CXX"; then
11100
21190
 
11101
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11102
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
21191
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
21192
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11103
21193
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11104
21194
  echo $ECHO_N "(cached) $ECHO_C" >&6
11105
21195
else
11113
21203
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11114
21204
   # The option is referenced via a variable to avoid confusing sed.
11115
21205
   lt_compile=`echo "$ac_compile" | $SED \
11116
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
21206
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11117
21207
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11118
21208
   -e 's:$: $lt_compiler_flag:'`
11119
 
   (eval echo "\"\$as_me:11119: $lt_compile\"" >&5)
 
21209
   (eval echo "\"\$as_me:21209: $lt_compile\"" >&5)
11120
21210
   (eval "$lt_compile" 2>conftest.err)
11121
21211
   ac_status=$?
11122
21212
   cat conftest.err >&5
11123
 
   echo "$as_me:11123: \$? = $ac_status" >&5
 
21213
   echo "$as_me:21213: \$? = $ac_status" >&5
11124
21214
   if (exit $ac_status) && test -s "$ac_outfile"; then
11125
21215
     # The compiler can only warn and ignore the option if not recognized
11126
 
     # So say no if there are warnings
11127
 
     if test ! -s conftest.err; then
 
21216
     # So say no if there are warnings other than the usual output.
 
21217
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
21218
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
21219
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11128
21220
       lt_prog_compiler_pic_works_CXX=yes
11129
21221
     fi
11130
21222
   fi
11131
21223
   $rm conftest*
11132
21224
 
11133
21225
fi
11134
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11135
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
21226
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
21227
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11136
21228
 
11137
21229
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11138
21230
    case $lt_prog_compiler_pic_CXX in
11145
21237
fi
11146
21238
 
11147
21239
fi
11148
 
case "$host_os" in
 
21240
case $host_os in
11149
21241
  # For platforms which do not support PIC, -DPIC is meaningless:
11150
21242
  *djgpp*)
11151
21243
    lt_prog_compiler_pic_CXX=
11155
21247
    ;;
11156
21248
esac
11157
21249
 
11158
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11159
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
21250
#
 
21251
# Check to make sure the static flag actually works.
 
21252
#
 
21253
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
21254
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
21255
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
21256
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
21257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21258
else
 
21259
  lt_prog_compiler_static_works_CXX=no
 
21260
   save_LDFLAGS="$LDFLAGS"
 
21261
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
21262
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
21263
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
21264
     # The linker can only warn and ignore the option if not recognized
 
21265
     # So say no if there are warnings
 
21266
     if test -s conftest.err; then
 
21267
       # Append any errors to the config.log.
 
21268
       cat conftest.err 1>&5
 
21269
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
21270
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
21271
       if diff conftest.exp conftest.er2 >/dev/null; then
 
21272
         lt_prog_compiler_static_works_CXX=yes
 
21273
       fi
 
21274
     else
 
21275
       lt_prog_compiler_static_works_CXX=yes
 
21276
     fi
 
21277
   fi
 
21278
   $rm conftest*
 
21279
   LDFLAGS="$save_LDFLAGS"
 
21280
 
 
21281
fi
 
21282
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
21283
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
21284
 
 
21285
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
21286
    :
 
21287
else
 
21288
    lt_prog_compiler_static_CXX=
 
21289
fi
 
21290
 
 
21291
 
 
21292
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
21293
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11160
21294
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11161
21295
  echo $ECHO_N "(cached) $ECHO_C" >&6
11162
21296
else
11173
21307
   # Note that $ac_compile itself does not contain backslashes and begins
11174
21308
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11175
21309
   lt_compile=`echo "$ac_compile" | $SED \
11176
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
21310
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177
21311
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178
21312
   -e 's:$: $lt_compiler_flag:'`
11179
 
   (eval echo "\"\$as_me:11179: $lt_compile\"" >&5)
 
21313
   (eval echo "\"\$as_me:21313: $lt_compile\"" >&5)
11180
21314
   (eval "$lt_compile" 2>out/conftest.err)
11181
21315
   ac_status=$?
11182
21316
   cat out/conftest.err >&5
11183
 
   echo "$as_me:11183: \$? = $ac_status" >&5
 
21317
   echo "$as_me:21317: \$? = $ac_status" >&5
11184
21318
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11185
21319
   then
11186
21320
     # The compiler can only warn and ignore the option if not recognized
11187
21321
     # So say no if there are warnings
11188
 
     if test ! -s out/conftest.err; then
 
21322
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
21323
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
21324
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11189
21325
       lt_cv_prog_compiler_c_o_CXX=yes
11190
21326
     fi
11191
21327
   fi
11192
 
   chmod u+w .
 
21328
   chmod u+w . 2>&5
11193
21329
   $rm conftest*
11194
21330
   # SGI C++ compiler will create directory out/ii_files/ for
11195
21331
   # template instantiation
11200
21336
   $rm conftest*
11201
21337
 
11202
21338
fi
11203
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11204
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
21339
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
21340
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11205
21341
 
11206
21342
 
11207
21343
hard_links="nottested"
11208
21344
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11209
21345
  # do not overwrite the value of need_locks provided by the user
11210
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11211
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
21346
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
21347
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11212
21348
  hard_links=yes
11213
21349
  $rm conftest*
11214
21350
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11215
21351
  touch conftest.a
11216
21352
  ln conftest.a conftest.b 2>&5 || hard_links=no
11217
21353
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11218
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11219
 
echo "${ECHO_T}$hard_links" >&6
 
21354
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
21355
echo "${ECHO_T}$hard_links" >&6; }
11220
21356
  if test "$hard_links" = no; then
11221
21357
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11222
21358
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11226
21362
  need_locks=no
11227
21363
fi
11228
21364
 
11229
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11230
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
21365
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
21366
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11231
21367
 
11232
21368
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11233
21369
  case $host_os in
11244
21380
    export_symbols_cmds_CXX="$ltdll_cmds"
11245
21381
  ;;
11246
21382
  cygwin* | mingw*)
11247
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
21383
    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'
11248
21384
  ;;
11249
 
  linux*)
 
21385
  linux* | k*bsd*-gnu)
11250
21386
    link_all_deplibs_CXX=no
11251
21387
  ;;
11252
21388
  *)
11254
21390
  ;;
11255
21391
  esac
11256
21392
 
11257
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11258
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
21393
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
21394
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11259
21395
test "$ld_shlibs_CXX" = no && can_build_shared=no
11260
21396
 
11261
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11262
 
if test "$GCC" = yes; then
11263
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11264
 
fi
11265
 
 
11266
21397
#
11267
21398
# Do we need to explicitly link libc?
11268
21399
#
11280
21411
      # Test whether the compiler implicitly links with -lc since on some
11281
21412
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11282
21413
      # to ld, don't add -lc before -lgcc.
11283
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11284
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
21414
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
21415
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11285
21416
      $rm conftest*
11286
21417
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11287
21418
 
11295
21426
        libobjs=conftest.$ac_objext
11296
21427
        deplibs=
11297
21428
        wl=$lt_prog_compiler_wl_CXX
 
21429
        pic_flag=$lt_prog_compiler_pic_CXX
11298
21430
        compiler_flags=-v
11299
21431
        linker_flags=-v
11300
21432
        verstring=
11317
21449
        cat conftest.err 1>&5
11318
21450
      fi
11319
21451
      $rm conftest*
11320
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11321
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
21452
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
21453
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11322
21454
      ;;
11323
21455
    esac
11324
21456
  fi
11325
21457
  ;;
11326
21458
esac
11327
21459
 
11328
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11329
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
21460
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
21461
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11330
21462
library_names_spec=
11331
21463
libname_spec='lib$name'
11332
21464
soname_spec=
11427
21559
  shlibpath_var=LIBRARY_PATH
11428
21560
  ;;
11429
21561
 
11430
 
bsdi4*)
 
21562
bsdi[45]*)
11431
21563
  version_type=linux
11432
21564
  need_version=no
11433
21565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455
21587
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11456
21588
      dldir=$destdir/`dirname \$dlpath`~
11457
21589
      test -d \$dldir || mkdir -p \$dldir~
11458
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
21590
      $install_prog $dir/$dlname \$dldir/$dlname~
 
21591
      chmod a+x \$dldir/$dlname'
11459
21592
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11460
21593
      dlpath=$dir/\$dldll~
11461
21594
       $rm \$dlpath'
11485
21618
      ;;
11486
21619
    pw32*)
11487
21620
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11488
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
21621
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489
21622
      ;;
11490
21623
    esac
11491
21624
    ;;
11508
21641
  soname_spec='${libname}${release}${major}$shared_ext'
11509
21642
  shlibpath_overrides_runpath=yes
11510
21643
  shlibpath_var=DYLD_LIBRARY_PATH
11511
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
21644
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11512
21645
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11513
21646
  if test "$GCC" = yes; then
11514
21647
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11531
21664
  dynamic_linker=no
11532
21665
  ;;
11533
21666
 
11534
 
kfreebsd*-gnu)
11535
 
  version_type=linux
11536
 
  need_lib_prefix=no
11537
 
  need_version=no
11538
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11539
 
  soname_spec='${libname}${release}${shared_ext}$major'
11540
 
  shlibpath_var=LD_LIBRARY_PATH
11541
 
  shlibpath_overrides_runpath=no
11542
 
  hardcode_into_libs=yes
11543
 
  dynamic_linker='GNU ld.so'
11544
 
  ;;
11545
 
 
11546
 
freebsd*)
11547
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
21667
freebsd* | dragonfly*)
 
21668
  # DragonFly does not have aout.  When/if they implement a new
 
21669
  # versioning mechanism, adjust this.
 
21670
  if test -x /usr/bin/objformat; then
 
21671
    objformat=`/usr/bin/objformat`
 
21672
  else
 
21673
    case $host_os in
 
21674
    freebsd[123]*) objformat=aout ;;
 
21675
    *) objformat=elf ;;
 
21676
    esac
 
21677
  fi
11548
21678
  version_type=freebsd-$objformat
11549
21679
  case $version_type in
11550
21680
    freebsd-elf*)
11562
21692
  freebsd2*)
11563
21693
    shlibpath_overrides_runpath=yes
11564
21694
    ;;
11565
 
  freebsd3.01* | freebsdelf3.01*)
 
21695
  freebsd3.[01]* | freebsdelf3.[01]*)
11566
21696
    shlibpath_overrides_runpath=yes
11567
21697
    hardcode_into_libs=yes
11568
21698
    ;;
11569
 
  *) # from 3.2 on
 
21699
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
21700
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11570
21701
    shlibpath_overrides_runpath=no
11571
21702
    hardcode_into_libs=yes
11572
21703
    ;;
 
21704
  freebsd*) # from 4.6 on
 
21705
    shlibpath_overrides_runpath=yes
 
21706
    hardcode_into_libs=yes
 
21707
    ;;
11573
21708
  esac
11574
21709
  ;;
11575
21710
 
11589
21724
  version_type=sunos
11590
21725
  need_lib_prefix=no
11591
21726
  need_version=no
11592
 
  case "$host_cpu" in
 
21727
  case $host_cpu in
11593
21728
  ia64*)
11594
21729
    shrext_cmds='.so'
11595
21730
    hardcode_into_libs=yes
11629
21764
  postinstall_cmds='chmod 555 $lib'
11630
21765
  ;;
11631
21766
 
 
21767
interix3*)
 
21768
  version_type=linux
 
21769
  need_lib_prefix=no
 
21770
  need_version=no
 
21771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
21772
  soname_spec='${libname}${release}${shared_ext}$major'
 
21773
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
21774
  shlibpath_var=LD_LIBRARY_PATH
 
21775
  shlibpath_overrides_runpath=no
 
21776
  hardcode_into_libs=yes
 
21777
  ;;
 
21778
 
11632
21779
irix5* | irix6* | nonstopux*)
11633
21780
  case $host_os in
11634
21781
    nonstopux*) version_type=nonstopux ;;
11672
21819
  ;;
11673
21820
 
11674
21821
# This must be Linux ELF.
11675
 
linux*)
 
21822
linux* | k*bsd*-gnu)
11676
21823
  version_type=linux
11677
21824
  need_lib_prefix=no
11678
21825
  need_version=no
11688
21835
 
11689
21836
  # Append ld.so.conf contents to the search path
11690
21837
  if test -f /etc/ld.so.conf; then
11691
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
21838
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11692
21839
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11693
21840
  fi
11694
21841
 
11713
21860
  dynamic_linker='NetBSD ld.elf_so'
11714
21861
  ;;
11715
21862
 
11716
 
knetbsd*-gnu)
11717
 
  version_type=linux
11718
 
  need_lib_prefix=no
11719
 
  need_version=no
11720
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11721
 
  soname_spec='${libname}${release}${shared_ext}$major'
11722
 
  shlibpath_var=LD_LIBRARY_PATH
11723
 
  shlibpath_overrides_runpath=no
11724
 
  hardcode_into_libs=yes
11725
 
  dynamic_linker='GNU ld.so'
11726
 
  ;;
11727
 
 
11728
21863
netbsd*)
11729
21864
  version_type=sunos
11730
21865
  need_lib_prefix=no
11762
21897
 
11763
21898
openbsd*)
11764
21899
  version_type=sunos
 
21900
  sys_lib_dlsearch_path_spec="/usr/lib"
11765
21901
  need_lib_prefix=no
11766
 
  need_version=yes
 
21902
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
21903
  case $host_os in
 
21904
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
21905
    *)                         need_version=no  ;;
 
21906
  esac
11767
21907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11768
21908
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11769
21909
  shlibpath_var=LD_LIBRARY_PATH
11801
21941
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11802
21942
  ;;
11803
21943
 
11804
 
sco3.2v5*)
11805
 
  version_type=osf
11806
 
  soname_spec='${libname}${release}${shared_ext}$major'
11807
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808
 
  shlibpath_var=LD_LIBRARY_PATH
11809
 
  ;;
11810
 
 
11811
21944
solaris*)
11812
21945
  version_type=linux
11813
21946
  need_lib_prefix=no
11833
21966
  need_version=yes
11834
21967
  ;;
11835
21968
 
11836
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
21969
sysv4 | sysv4.3*)
11837
21970
  version_type=linux
11838
21971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839
21972
  soname_spec='${libname}${release}${shared_ext}$major'
11866
21999
  fi
11867
22000
  ;;
11868
22001
 
 
22002
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
22003
  version_type=freebsd-elf
 
22004
  need_lib_prefix=no
 
22005
  need_version=no
 
22006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22007
  soname_spec='${libname}${release}${shared_ext}$major'
 
22008
  shlibpath_var=LD_LIBRARY_PATH
 
22009
  hardcode_into_libs=yes
 
22010
  if test "$with_gnu_ld" = yes; then
 
22011
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
22012
    shlibpath_overrides_runpath=no
 
22013
  else
 
22014
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
22015
    shlibpath_overrides_runpath=yes
 
22016
    case $host_os in
 
22017
      sco3.2v5*)
 
22018
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
22019
        ;;
 
22020
    esac
 
22021
  fi
 
22022
  sys_lib_dlsearch_path_spec='/usr/lib'
 
22023
  ;;
 
22024
 
11869
22025
uts4*)
11870
22026
  version_type=linux
11871
22027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877
22033
  dynamic_linker=no
11878
22034
  ;;
11879
22035
esac
11880
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11881
 
echo "${ECHO_T}$dynamic_linker" >&6
 
22036
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
22037
echo "${ECHO_T}$dynamic_linker" >&6; }
11882
22038
test "$dynamic_linker" = no && can_build_shared=no
11883
22039
 
11884
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11885
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
22040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
22041
if test "$GCC" = yes; then
 
22042
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
22043
fi
 
22044
 
 
22045
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
22046
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11886
22047
hardcode_action_CXX=
11887
22048
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11888
 
   test -n "$runpath_var CXX" || \
11889
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
22049
   test -n "$runpath_var_CXX" || \
 
22050
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11890
22051
 
11891
22052
  # We can hardcode non-existant directories.
11892
22053
  if test "$hardcode_direct_CXX" != no &&
11906
22067
  # directories.
11907
22068
  hardcode_action_CXX=unsupported
11908
22069
fi
11909
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11910
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
22070
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
22071
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11911
22072
 
11912
22073
if test "$hardcode_action_CXX" = relink; then
11913
22074
  # Fast installation is not supported
11918
22079
  enable_fast_install=needless
11919
22080
fi
11920
22081
 
11921
 
striplib=
11922
 
old_striplib=
11923
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11924
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11925
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11926
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11927
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11928
 
  echo "$as_me:$LINENO: result: yes" >&5
11929
 
echo "${ECHO_T}yes" >&6
11930
 
else
11931
 
# FIXME - insert some real tests, host_os isn't really good enough
11932
 
  case $host_os in
11933
 
   darwin*)
11934
 
       if test -n "$STRIP" ; then
11935
 
         striplib="$STRIP -x"
11936
 
         echo "$as_me:$LINENO: result: yes" >&5
11937
 
echo "${ECHO_T}yes" >&6
11938
 
       else
11939
 
  echo "$as_me:$LINENO: result: no" >&5
11940
 
echo "${ECHO_T}no" >&6
11941
 
fi
11942
 
       ;;
11943
 
   *)
11944
 
  echo "$as_me:$LINENO: result: no" >&5
11945
 
echo "${ECHO_T}no" >&6
11946
 
    ;;
11947
 
  esac
11948
 
fi
11949
 
 
11950
 
if test "x$enable_dlopen" != xyes; then
11951
 
  enable_dlopen=unknown
11952
 
  enable_dlopen_self=unknown
11953
 
  enable_dlopen_self_static=unknown
11954
 
else
11955
 
  lt_cv_dlopen=no
11956
 
  lt_cv_dlopen_libs=
11957
 
 
11958
 
  case $host_os in
11959
 
  beos*)
11960
 
    lt_cv_dlopen="load_add_on"
11961
 
    lt_cv_dlopen_libs=
11962
 
    lt_cv_dlopen_self=yes
11963
 
    ;;
11964
 
 
11965
 
  mingw* | pw32*)
11966
 
    lt_cv_dlopen="LoadLibrary"
11967
 
    lt_cv_dlopen_libs=
11968
 
   ;;
11969
 
 
11970
 
  cygwin*)
11971
 
    lt_cv_dlopen="dlopen"
11972
 
    lt_cv_dlopen_libs=
11973
 
   ;;
11974
 
 
11975
 
  darwin*)
11976
 
  # if libdl is installed we need to link against it
11977
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11978
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11979
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11981
 
else
11982
 
  ac_check_lib_save_LIBS=$LIBS
11983
 
LIBS="-ldl  $LIBS"
11984
 
cat >conftest.$ac_ext <<_ACEOF
11985
 
/* confdefs.h.  */
11986
 
_ACEOF
11987
 
cat confdefs.h >>conftest.$ac_ext
11988
 
cat >>conftest.$ac_ext <<_ACEOF
11989
 
/* end confdefs.h.  */
11990
 
 
11991
 
/* Override any gcc2 internal prototype to avoid an error.  */
11992
 
#ifdef __cplusplus
11993
 
extern "C"
11994
 
#endif
11995
 
/* We use char because int might match the return type of a gcc2
11996
 
   builtin and then its argument prototype would still apply.  */
11997
 
char dlopen ();
11998
 
int
11999
 
main ()
12000
 
{
12001
 
dlopen ();
12002
 
  ;
12003
 
  return 0;
12004
 
}
12005
 
_ACEOF
12006
 
rm -f conftest.$ac_objext conftest$ac_exeext
12007
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008
 
  (eval $ac_link) 2>conftest.er1
12009
 
  ac_status=$?
12010
 
  grep -v '^ *+' conftest.er1 >conftest.err
12011
 
  rm -f conftest.er1
12012
 
  cat conftest.err >&5
12013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014
 
  (exit $ac_status); } &&
12015
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12016
 
                         || test ! -s conftest.err'
12017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018
 
  (eval $ac_try) 2>&5
12019
 
  ac_status=$?
12020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021
 
  (exit $ac_status); }; } &&
12022
 
         { ac_try='test -s conftest$ac_exeext'
12023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024
 
  (eval $ac_try) 2>&5
12025
 
  ac_status=$?
12026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027
 
  (exit $ac_status); }; }; then
12028
 
  ac_cv_lib_dl_dlopen=yes
12029
 
else
12030
 
  echo "$as_me: failed program was:" >&5
12031
 
sed 's/^/| /' conftest.$ac_ext >&5
12032
 
 
12033
 
ac_cv_lib_dl_dlopen=no
12034
 
fi
12035
 
rm -f conftest.err conftest.$ac_objext \
12036
 
      conftest$ac_exeext conftest.$ac_ext
12037
 
LIBS=$ac_check_lib_save_LIBS
12038
 
fi
12039
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12040
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12041
 
if test $ac_cv_lib_dl_dlopen = yes; then
12042
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12043
 
else
12044
 
 
12045
 
    lt_cv_dlopen="dyld"
12046
 
    lt_cv_dlopen_libs=
12047
 
    lt_cv_dlopen_self=yes
12048
 
 
12049
 
fi
12050
 
 
12051
 
   ;;
12052
 
 
12053
 
  *)
12054
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12055
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12056
 
if test "${ac_cv_func_shl_load+set}" = set; then
12057
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12058
 
else
12059
 
  cat >conftest.$ac_ext <<_ACEOF
12060
 
/* confdefs.h.  */
12061
 
_ACEOF
12062
 
cat confdefs.h >>conftest.$ac_ext
12063
 
cat >>conftest.$ac_ext <<_ACEOF
12064
 
/* end confdefs.h.  */
12065
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12066
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12067
 
#define shl_load innocuous_shl_load
12068
 
 
12069
 
/* System header to define __stub macros and hopefully few prototypes,
12070
 
    which can conflict with char shl_load (); below.
12071
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072
 
    <limits.h> exists even on freestanding compilers.  */
12073
 
 
12074
 
#ifdef __STDC__
12075
 
# include <limits.h>
12076
 
#else
12077
 
# include <assert.h>
12078
 
#endif
12079
 
 
12080
 
#undef shl_load
12081
 
 
12082
 
/* Override any gcc2 internal prototype to avoid an error.  */
12083
 
#ifdef __cplusplus
12084
 
extern "C"
12085
 
{
12086
 
#endif
12087
 
/* We use char because int might match the return type of a gcc2
12088
 
   builtin and then its argument prototype would still apply.  */
12089
 
char shl_load ();
12090
 
/* The GNU C library defines this for functions which it implements
12091
 
    to always fail with ENOSYS.  Some functions are actually named
12092
 
    something starting with __ and the normal name is an alias.  */
12093
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12094
 
choke me
12095
 
#else
12096
 
char (*f) () = shl_load;
12097
 
#endif
12098
 
#ifdef __cplusplus
12099
 
}
12100
 
#endif
12101
 
 
12102
 
int
12103
 
main ()
12104
 
{
12105
 
return f != shl_load;
12106
 
  ;
12107
 
  return 0;
12108
 
}
12109
 
_ACEOF
12110
 
rm -f conftest.$ac_objext conftest$ac_exeext
12111
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112
 
  (eval $ac_link) 2>conftest.er1
12113
 
  ac_status=$?
12114
 
  grep -v '^ *+' conftest.er1 >conftest.err
12115
 
  rm -f conftest.er1
12116
 
  cat conftest.err >&5
12117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118
 
  (exit $ac_status); } &&
12119
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12120
 
                         || test ! -s conftest.err'
12121
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122
 
  (eval $ac_try) 2>&5
12123
 
  ac_status=$?
12124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125
 
  (exit $ac_status); }; } &&
12126
 
         { ac_try='test -s conftest$ac_exeext'
12127
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128
 
  (eval $ac_try) 2>&5
12129
 
  ac_status=$?
12130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131
 
  (exit $ac_status); }; }; then
12132
 
  ac_cv_func_shl_load=yes
12133
 
else
12134
 
  echo "$as_me: failed program was:" >&5
12135
 
sed 's/^/| /' conftest.$ac_ext >&5
12136
 
 
12137
 
ac_cv_func_shl_load=no
12138
 
fi
12139
 
rm -f conftest.err conftest.$ac_objext \
12140
 
      conftest$ac_exeext conftest.$ac_ext
12141
 
fi
12142
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12143
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12144
 
if test $ac_cv_func_shl_load = yes; then
12145
 
  lt_cv_dlopen="shl_load"
12146
 
else
12147
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12148
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12149
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12151
 
else
12152
 
  ac_check_lib_save_LIBS=$LIBS
12153
 
LIBS="-ldld  $LIBS"
12154
 
cat >conftest.$ac_ext <<_ACEOF
12155
 
/* confdefs.h.  */
12156
 
_ACEOF
12157
 
cat confdefs.h >>conftest.$ac_ext
12158
 
cat >>conftest.$ac_ext <<_ACEOF
12159
 
/* end confdefs.h.  */
12160
 
 
12161
 
/* Override any gcc2 internal prototype to avoid an error.  */
12162
 
#ifdef __cplusplus
12163
 
extern "C"
12164
 
#endif
12165
 
/* We use char because int might match the return type of a gcc2
12166
 
   builtin and then its argument prototype would still apply.  */
12167
 
char shl_load ();
12168
 
int
12169
 
main ()
12170
 
{
12171
 
shl_load ();
12172
 
  ;
12173
 
  return 0;
12174
 
}
12175
 
_ACEOF
12176
 
rm -f conftest.$ac_objext conftest$ac_exeext
12177
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178
 
  (eval $ac_link) 2>conftest.er1
12179
 
  ac_status=$?
12180
 
  grep -v '^ *+' conftest.er1 >conftest.err
12181
 
  rm -f conftest.er1
12182
 
  cat conftest.err >&5
12183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184
 
  (exit $ac_status); } &&
12185
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12186
 
                         || test ! -s conftest.err'
12187
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188
 
  (eval $ac_try) 2>&5
12189
 
  ac_status=$?
12190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191
 
  (exit $ac_status); }; } &&
12192
 
         { ac_try='test -s conftest$ac_exeext'
12193
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194
 
  (eval $ac_try) 2>&5
12195
 
  ac_status=$?
12196
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197
 
  (exit $ac_status); }; }; then
12198
 
  ac_cv_lib_dld_shl_load=yes
12199
 
else
12200
 
  echo "$as_me: failed program was:" >&5
12201
 
sed 's/^/| /' conftest.$ac_ext >&5
12202
 
 
12203
 
ac_cv_lib_dld_shl_load=no
12204
 
fi
12205
 
rm -f conftest.err conftest.$ac_objext \
12206
 
      conftest$ac_exeext conftest.$ac_ext
12207
 
LIBS=$ac_check_lib_save_LIBS
12208
 
fi
12209
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12210
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12211
 
if test $ac_cv_lib_dld_shl_load = yes; then
12212
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12213
 
else
12214
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12215
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12216
 
if test "${ac_cv_func_dlopen+set}" = set; then
12217
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12218
 
else
12219
 
  cat >conftest.$ac_ext <<_ACEOF
12220
 
/* confdefs.h.  */
12221
 
_ACEOF
12222
 
cat confdefs.h >>conftest.$ac_ext
12223
 
cat >>conftest.$ac_ext <<_ACEOF
12224
 
/* end confdefs.h.  */
12225
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12226
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12227
 
#define dlopen innocuous_dlopen
12228
 
 
12229
 
/* System header to define __stub macros and hopefully few prototypes,
12230
 
    which can conflict with char dlopen (); below.
12231
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232
 
    <limits.h> exists even on freestanding compilers.  */
12233
 
 
12234
 
#ifdef __STDC__
12235
 
# include <limits.h>
12236
 
#else
12237
 
# include <assert.h>
12238
 
#endif
12239
 
 
12240
 
#undef dlopen
12241
 
 
12242
 
/* Override any gcc2 internal prototype to avoid an error.  */
12243
 
#ifdef __cplusplus
12244
 
extern "C"
12245
 
{
12246
 
#endif
12247
 
/* We use char because int might match the return type of a gcc2
12248
 
   builtin and then its argument prototype would still apply.  */
12249
 
char dlopen ();
12250
 
/* The GNU C library defines this for functions which it implements
12251
 
    to always fail with ENOSYS.  Some functions are actually named
12252
 
    something starting with __ and the normal name is an alias.  */
12253
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12254
 
choke me
12255
 
#else
12256
 
char (*f) () = dlopen;
12257
 
#endif
12258
 
#ifdef __cplusplus
12259
 
}
12260
 
#endif
12261
 
 
12262
 
int
12263
 
main ()
12264
 
{
12265
 
return f != dlopen;
12266
 
  ;
12267
 
  return 0;
12268
 
}
12269
 
_ACEOF
12270
 
rm -f conftest.$ac_objext conftest$ac_exeext
12271
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272
 
  (eval $ac_link) 2>conftest.er1
12273
 
  ac_status=$?
12274
 
  grep -v '^ *+' conftest.er1 >conftest.err
12275
 
  rm -f conftest.er1
12276
 
  cat conftest.err >&5
12277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
 
  (exit $ac_status); } &&
12279
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12280
 
                         || test ! -s conftest.err'
12281
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282
 
  (eval $ac_try) 2>&5
12283
 
  ac_status=$?
12284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285
 
  (exit $ac_status); }; } &&
12286
 
         { ac_try='test -s conftest$ac_exeext'
12287
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288
 
  (eval $ac_try) 2>&5
12289
 
  ac_status=$?
12290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291
 
  (exit $ac_status); }; }; then
12292
 
  ac_cv_func_dlopen=yes
12293
 
else
12294
 
  echo "$as_me: failed program was:" >&5
12295
 
sed 's/^/| /' conftest.$ac_ext >&5
12296
 
 
12297
 
ac_cv_func_dlopen=no
12298
 
fi
12299
 
rm -f conftest.err conftest.$ac_objext \
12300
 
      conftest$ac_exeext conftest.$ac_ext
12301
 
fi
12302
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12303
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12304
 
if test $ac_cv_func_dlopen = yes; then
12305
 
  lt_cv_dlopen="dlopen"
12306
 
else
12307
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12308
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12309
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12310
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12311
 
else
12312
 
  ac_check_lib_save_LIBS=$LIBS
12313
 
LIBS="-ldl  $LIBS"
12314
 
cat >conftest.$ac_ext <<_ACEOF
12315
 
/* confdefs.h.  */
12316
 
_ACEOF
12317
 
cat confdefs.h >>conftest.$ac_ext
12318
 
cat >>conftest.$ac_ext <<_ACEOF
12319
 
/* end confdefs.h.  */
12320
 
 
12321
 
/* Override any gcc2 internal prototype to avoid an error.  */
12322
 
#ifdef __cplusplus
12323
 
extern "C"
12324
 
#endif
12325
 
/* We use char because int might match the return type of a gcc2
12326
 
   builtin and then its argument prototype would still apply.  */
12327
 
char dlopen ();
12328
 
int
12329
 
main ()
12330
 
{
12331
 
dlopen ();
12332
 
  ;
12333
 
  return 0;
12334
 
}
12335
 
_ACEOF
12336
 
rm -f conftest.$ac_objext conftest$ac_exeext
12337
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338
 
  (eval $ac_link) 2>conftest.er1
12339
 
  ac_status=$?
12340
 
  grep -v '^ *+' conftest.er1 >conftest.err
12341
 
  rm -f conftest.er1
12342
 
  cat conftest.err >&5
12343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
 
  (exit $ac_status); } &&
12345
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12346
 
                         || test ! -s conftest.err'
12347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348
 
  (eval $ac_try) 2>&5
12349
 
  ac_status=$?
12350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351
 
  (exit $ac_status); }; } &&
12352
 
         { ac_try='test -s conftest$ac_exeext'
12353
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354
 
  (eval $ac_try) 2>&5
12355
 
  ac_status=$?
12356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357
 
  (exit $ac_status); }; }; then
12358
 
  ac_cv_lib_dl_dlopen=yes
12359
 
else
12360
 
  echo "$as_me: failed program was:" >&5
12361
 
sed 's/^/| /' conftest.$ac_ext >&5
12362
 
 
12363
 
ac_cv_lib_dl_dlopen=no
12364
 
fi
12365
 
rm -f conftest.err conftest.$ac_objext \
12366
 
      conftest$ac_exeext conftest.$ac_ext
12367
 
LIBS=$ac_check_lib_save_LIBS
12368
 
fi
12369
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12370
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12371
 
if test $ac_cv_lib_dl_dlopen = yes; then
12372
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12373
 
else
12374
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12375
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12376
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12377
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12378
 
else
12379
 
  ac_check_lib_save_LIBS=$LIBS
12380
 
LIBS="-lsvld  $LIBS"
12381
 
cat >conftest.$ac_ext <<_ACEOF
12382
 
/* confdefs.h.  */
12383
 
_ACEOF
12384
 
cat confdefs.h >>conftest.$ac_ext
12385
 
cat >>conftest.$ac_ext <<_ACEOF
12386
 
/* end confdefs.h.  */
12387
 
 
12388
 
/* Override any gcc2 internal prototype to avoid an error.  */
12389
 
#ifdef __cplusplus
12390
 
extern "C"
12391
 
#endif
12392
 
/* We use char because int might match the return type of a gcc2
12393
 
   builtin and then its argument prototype would still apply.  */
12394
 
char dlopen ();
12395
 
int
12396
 
main ()
12397
 
{
12398
 
dlopen ();
12399
 
  ;
12400
 
  return 0;
12401
 
}
12402
 
_ACEOF
12403
 
rm -f conftest.$ac_objext conftest$ac_exeext
12404
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405
 
  (eval $ac_link) 2>conftest.er1
12406
 
  ac_status=$?
12407
 
  grep -v '^ *+' conftest.er1 >conftest.err
12408
 
  rm -f conftest.er1
12409
 
  cat conftest.err >&5
12410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411
 
  (exit $ac_status); } &&
12412
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12413
 
                         || test ! -s conftest.err'
12414
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415
 
  (eval $ac_try) 2>&5
12416
 
  ac_status=$?
12417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418
 
  (exit $ac_status); }; } &&
12419
 
         { ac_try='test -s conftest$ac_exeext'
12420
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421
 
  (eval $ac_try) 2>&5
12422
 
  ac_status=$?
12423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424
 
  (exit $ac_status); }; }; then
12425
 
  ac_cv_lib_svld_dlopen=yes
12426
 
else
12427
 
  echo "$as_me: failed program was:" >&5
12428
 
sed 's/^/| /' conftest.$ac_ext >&5
12429
 
 
12430
 
ac_cv_lib_svld_dlopen=no
12431
 
fi
12432
 
rm -f conftest.err conftest.$ac_objext \
12433
 
      conftest$ac_exeext conftest.$ac_ext
12434
 
LIBS=$ac_check_lib_save_LIBS
12435
 
fi
12436
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12437
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12438
 
if test $ac_cv_lib_svld_dlopen = yes; then
12439
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12440
 
else
12441
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12442
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12443
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12445
 
else
12446
 
  ac_check_lib_save_LIBS=$LIBS
12447
 
LIBS="-ldld  $LIBS"
12448
 
cat >conftest.$ac_ext <<_ACEOF
12449
 
/* confdefs.h.  */
12450
 
_ACEOF
12451
 
cat confdefs.h >>conftest.$ac_ext
12452
 
cat >>conftest.$ac_ext <<_ACEOF
12453
 
/* end confdefs.h.  */
12454
 
 
12455
 
/* Override any gcc2 internal prototype to avoid an error.  */
12456
 
#ifdef __cplusplus
12457
 
extern "C"
12458
 
#endif
12459
 
/* We use char because int might match the return type of a gcc2
12460
 
   builtin and then its argument prototype would still apply.  */
12461
 
char dld_link ();
12462
 
int
12463
 
main ()
12464
 
{
12465
 
dld_link ();
12466
 
  ;
12467
 
  return 0;
12468
 
}
12469
 
_ACEOF
12470
 
rm -f conftest.$ac_objext conftest$ac_exeext
12471
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12472
 
  (eval $ac_link) 2>conftest.er1
12473
 
  ac_status=$?
12474
 
  grep -v '^ *+' conftest.er1 >conftest.err
12475
 
  rm -f conftest.er1
12476
 
  cat conftest.err >&5
12477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478
 
  (exit $ac_status); } &&
12479
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12480
 
                         || test ! -s conftest.err'
12481
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482
 
  (eval $ac_try) 2>&5
12483
 
  ac_status=$?
12484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485
 
  (exit $ac_status); }; } &&
12486
 
         { ac_try='test -s conftest$ac_exeext'
12487
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488
 
  (eval $ac_try) 2>&5
12489
 
  ac_status=$?
12490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
 
  (exit $ac_status); }; }; then
12492
 
  ac_cv_lib_dld_dld_link=yes
12493
 
else
12494
 
  echo "$as_me: failed program was:" >&5
12495
 
sed 's/^/| /' conftest.$ac_ext >&5
12496
 
 
12497
 
ac_cv_lib_dld_dld_link=no
12498
 
fi
12499
 
rm -f conftest.err conftest.$ac_objext \
12500
 
      conftest$ac_exeext conftest.$ac_ext
12501
 
LIBS=$ac_check_lib_save_LIBS
12502
 
fi
12503
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12504
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12505
 
if test $ac_cv_lib_dld_dld_link = yes; then
12506
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12507
 
fi
12508
 
 
12509
 
 
12510
 
fi
12511
 
 
12512
 
 
12513
 
fi
12514
 
 
12515
 
 
12516
 
fi
12517
 
 
12518
 
 
12519
 
fi
12520
 
 
12521
 
 
12522
 
fi
12523
 
 
12524
 
    ;;
12525
 
  esac
12526
 
 
12527
 
  if test "x$lt_cv_dlopen" != xno; then
12528
 
    enable_dlopen=yes
12529
 
  else
12530
 
    enable_dlopen=no
12531
 
  fi
12532
 
 
12533
 
  case $lt_cv_dlopen in
12534
 
  dlopen)
12535
 
    save_CPPFLAGS="$CPPFLAGS"
12536
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12537
 
 
12538
 
    save_LDFLAGS="$LDFLAGS"
12539
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12540
 
 
12541
 
    save_LIBS="$LIBS"
12542
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12543
 
 
12544
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12545
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12546
 
if test "${lt_cv_dlopen_self+set}" = set; then
12547
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12548
 
else
12549
 
          if test "$cross_compiling" = yes; then :
12550
 
  lt_cv_dlopen_self=cross
12551
 
else
12552
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12553
 
  lt_status=$lt_dlunknown
12554
 
  cat > conftest.$ac_ext <<EOF
12555
 
#line 12555 "configure"
12556
 
#include "confdefs.h"
12557
 
 
12558
 
#if HAVE_DLFCN_H
12559
 
#include <dlfcn.h>
12560
 
#endif
12561
 
 
12562
 
#include <stdio.h>
12563
 
 
12564
 
#ifdef RTLD_GLOBAL
12565
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12566
 
#else
12567
 
#  ifdef DL_GLOBAL
12568
 
#    define LT_DLGLOBAL         DL_GLOBAL
12569
 
#  else
12570
 
#    define LT_DLGLOBAL         0
12571
 
#  endif
12572
 
#endif
12573
 
 
12574
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575
 
   find out it does not work in some platform. */
12576
 
#ifndef LT_DLLAZY_OR_NOW
12577
 
#  ifdef RTLD_LAZY
12578
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12579
 
#  else
12580
 
#    ifdef DL_LAZY
12581
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12582
 
#    else
12583
 
#      ifdef RTLD_NOW
12584
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12585
 
#      else
12586
 
#        ifdef DL_NOW
12587
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12588
 
#        else
12589
 
#          define LT_DLLAZY_OR_NOW      0
12590
 
#        endif
12591
 
#      endif
12592
 
#    endif
12593
 
#  endif
12594
 
#endif
12595
 
 
12596
 
#ifdef __cplusplus
12597
 
extern "C" void exit (int);
12598
 
#endif
12599
 
 
12600
 
void fnord() { int i=42;}
12601
 
int main ()
12602
 
{
12603
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604
 
  int status = $lt_dlunknown;
12605
 
 
12606
 
  if (self)
12607
 
    {
12608
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12609
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610
 
      /* dlclose (self); */
12611
 
    }
12612
 
 
12613
 
    exit (status);
12614
 
}
12615
 
EOF
12616
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617
 
  (eval $ac_link) 2>&5
12618
 
  ac_status=$?
12619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12621
 
    (./conftest; exit; ) 2>/dev/null
12622
 
    lt_status=$?
12623
 
    case x$lt_status in
12624
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12625
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12626
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12627
 
    esac
12628
 
  else :
12629
 
    # compilation failed
12630
 
    lt_cv_dlopen_self=no
12631
 
  fi
12632
 
fi
12633
 
rm -fr conftest*
12634
 
 
12635
 
 
12636
 
fi
12637
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12638
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12639
 
 
12640
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12641
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12642
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12643
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12644
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12646
 
else
12647
 
          if test "$cross_compiling" = yes; then :
12648
 
  lt_cv_dlopen_self_static=cross
12649
 
else
12650
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12651
 
  lt_status=$lt_dlunknown
12652
 
  cat > conftest.$ac_ext <<EOF
12653
 
#line 12653 "configure"
12654
 
#include "confdefs.h"
12655
 
 
12656
 
#if HAVE_DLFCN_H
12657
 
#include <dlfcn.h>
12658
 
#endif
12659
 
 
12660
 
#include <stdio.h>
12661
 
 
12662
 
#ifdef RTLD_GLOBAL
12663
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12664
 
#else
12665
 
#  ifdef DL_GLOBAL
12666
 
#    define LT_DLGLOBAL         DL_GLOBAL
12667
 
#  else
12668
 
#    define LT_DLGLOBAL         0
12669
 
#  endif
12670
 
#endif
12671
 
 
12672
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12673
 
   find out it does not work in some platform. */
12674
 
#ifndef LT_DLLAZY_OR_NOW
12675
 
#  ifdef RTLD_LAZY
12676
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12677
 
#  else
12678
 
#    ifdef DL_LAZY
12679
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12680
 
#    else
12681
 
#      ifdef RTLD_NOW
12682
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12683
 
#      else
12684
 
#        ifdef DL_NOW
12685
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12686
 
#        else
12687
 
#          define LT_DLLAZY_OR_NOW      0
12688
 
#        endif
12689
 
#      endif
12690
 
#    endif
12691
 
#  endif
12692
 
#endif
12693
 
 
12694
 
#ifdef __cplusplus
12695
 
extern "C" void exit (int);
12696
 
#endif
12697
 
 
12698
 
void fnord() { int i=42;}
12699
 
int main ()
12700
 
{
12701
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12702
 
  int status = $lt_dlunknown;
12703
 
 
12704
 
  if (self)
12705
 
    {
12706
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12707
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12708
 
      /* dlclose (self); */
12709
 
    }
12710
 
 
12711
 
    exit (status);
12712
 
}
12713
 
EOF
12714
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715
 
  (eval $ac_link) 2>&5
12716
 
  ac_status=$?
12717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12719
 
    (./conftest; exit; ) 2>/dev/null
12720
 
    lt_status=$?
12721
 
    case x$lt_status in
12722
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12723
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12724
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12725
 
    esac
12726
 
  else :
12727
 
    # compilation failed
12728
 
    lt_cv_dlopen_self_static=no
12729
 
  fi
12730
 
fi
12731
 
rm -fr conftest*
12732
 
 
12733
 
 
12734
 
fi
12735
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12736
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12737
 
    fi
12738
 
 
12739
 
    CPPFLAGS="$save_CPPFLAGS"
12740
 
    LDFLAGS="$save_LDFLAGS"
12741
 
    LIBS="$save_LIBS"
12742
 
    ;;
12743
 
  esac
12744
 
 
12745
 
  case $lt_cv_dlopen_self in
12746
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12747
 
  *) enable_dlopen_self=unknown ;;
12748
 
  esac
12749
 
 
12750
 
  case $lt_cv_dlopen_self_static in
12751
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12752
 
  *) enable_dlopen_self_static=unknown ;;
12753
 
  esac
12754
 
fi
12755
 
 
12756
22082
 
12757
22083
# The else clause should only fire when bootstrapping the
12758
22084
# libtool distribution, otherwise you forgot to ship ltmain.sh
12767
22093
  # Now quote all the things that may contain metacharacters while being
12768
22094
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12769
22095
  # variables and quote the copies for generation of the libtool script.
12770
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
22096
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12771
22097
    SED SHELL STRIP \
12772
22098
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12773
22099
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12868
22194
# The host system.
12869
22195
host_alias=$host_alias
12870
22196
host=$host
 
22197
host_os=$host_os
 
22198
 
 
22199
# The build system.
 
22200
build_alias=$build_alias
 
22201
build=$build
 
22202
build_os=$build_os
12871
22203
 
12872
22204
# An echo program that does not interpret backslashes.
12873
22205
echo=$lt_echo
12879
22211
# A C compiler.
12880
22212
LTCC=$lt_LTCC
12881
22213
 
 
22214
# LTCC compiler flags.
 
22215
LTCFLAGS=$lt_LTCFLAGS
 
22216
 
12882
22217
# A language-specific compiler.
12883
22218
CC=$lt_compiler_CXX
12884
22219
 
12944
22279
# Does compiler simultaneously support -c and -o options?
12945
22280
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12946
22281
 
12947
 
# Must we lock files when doing compilation ?
 
22282
# Must we lock files when doing compilation?
12948
22283
need_locks=$lt_need_locks
12949
22284
 
12950
22285
# Do we need the lib prefix for modules?
13221
22556
# If no C compiler was specified, use CC.
13222
22557
LTCC=${LTCC-"$CC"}
13223
22558
 
 
22559
# If no C compiler flags were specified, use CFLAGS.
 
22560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
22561
 
13224
22562
# Allow CC to be a program name with arguments.
13225
22563
compiler=$CC
13226
22564
 
13227
22565
 
 
22566
# save warnings/boilerplate of simple test code
 
22567
ac_outfile=conftest.$ac_objext
 
22568
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
22569
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
22570
_lt_compiler_boilerplate=`cat conftest.err`
 
22571
$rm conftest*
 
22572
 
 
22573
ac_outfile=conftest.$ac_objext
 
22574
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
22575
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
22576
_lt_linker_boilerplate=`cat conftest.err`
 
22577
$rm conftest*
 
22578
 
 
22579
 
13228
22580
# Allow CC to be a program name with arguments.
13229
22581
lt_save_CC="$CC"
13230
22582
CC=${F77-"f77"}
13231
22583
compiler=$CC
13232
22584
compiler_F77=$CC
13233
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13234
 
 
13235
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13236
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13237
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13238
 
echo "${ECHO_T}$can_build_shared" >&6
13239
 
 
13240
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13241
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
22585
for cc_temp in $compiler""; do
 
22586
  case $cc_temp in
 
22587
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
22588
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
22589
    \-*) ;;
 
22590
    *) break;;
 
22591
  esac
 
22592
done
 
22593
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
22594
 
 
22595
 
 
22596
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
22597
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
22598
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
22599
echo "${ECHO_T}$can_build_shared" >&6; }
 
22600
 
 
22601
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
22602
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13242
22603
test "$can_build_shared" = "no" && enable_shared=no
13243
22604
 
13244
22605
# On AIX, shared libraries and static libraries use the same namespace, and
13245
22606
# are all built from PIC.
13246
 
case "$host_os" in
 
22607
case $host_os in
13247
22608
aix3*)
13248
22609
  test "$enable_shared" = yes && enable_static=no
13249
22610
  if test -n "$RANLIB"; then
13252
22613
  fi
13253
22614
  ;;
13254
22615
aix4* | aix5*)
13255
 
  test "$enable_shared" = yes && enable_static=no
 
22616
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
22617
    test "$enable_shared" = yes && enable_static=no
 
22618
  fi
13256
22619
  ;;
13257
22620
esac
13258
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13259
 
echo "${ECHO_T}$enable_shared" >&6
 
22621
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
22622
echo "${ECHO_T}$enable_shared" >&6; }
13260
22623
 
13261
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13262
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
22624
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
22625
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13263
22626
# Make sure either enable_shared or enable_static is yes.
13264
22627
test "$enable_shared" = yes || enable_static=yes
13265
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13266
 
echo "${ECHO_T}$enable_static" >&6
13267
 
 
13268
 
test "$ld_shlibs_F77" = no && can_build_shared=no
 
22628
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
22629
echo "${ECHO_T}$enable_static" >&6; }
13269
22630
 
13270
22631
GCC_F77="$G77"
13271
22632
LD_F77="$LD"
13274
22635
lt_prog_compiler_pic_F77=
13275
22636
lt_prog_compiler_static_F77=
13276
22637
 
13277
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13278
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
22638
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
22639
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13279
22640
 
13280
22641
  if test "$GCC" = yes; then
13281
22642
    lt_prog_compiler_wl_F77='-Wl,'
13313
22674
      lt_prog_compiler_pic_F77='-fno-common'
13314
22675
      ;;
13315
22676
 
 
22677
    interix3*)
 
22678
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
22679
      # Instead, we relocate shared libraries at runtime.
 
22680
      ;;
 
22681
 
13316
22682
    msdosdjgpp*)
13317
22683
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13318
22684
      # on systems that don't support them.
13329
22695
    hpux*)
13330
22696
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13331
22697
      # not for PA HP-UX.
13332
 
      case "$host_cpu" in
 
22698
      case $host_cpu in
13333
22699
      hppa*64*|ia64*)
13334
22700
        # +Z the default
13335
22701
        ;;
13355
22721
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13356
22722
      fi
13357
22723
      ;;
 
22724
      darwin*)
 
22725
        # PIC is the default on this platform
 
22726
        # Common symbols not allowed in MH_DYLIB files
 
22727
       case $cc_basename in
 
22728
         xlc*)
 
22729
         lt_prog_compiler_pic_F77='-qnocommon'
 
22730
         lt_prog_compiler_wl_F77='-Wl,'
 
22731
         ;;
 
22732
       esac
 
22733
       ;;
13358
22734
 
13359
22735
    mingw* | pw32* | os2*)
13360
22736
      # This hack is so that the source file can tell whether it is being
13366
22742
      lt_prog_compiler_wl_F77='-Wl,'
13367
22743
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13368
22744
      # not for PA HP-UX.
13369
 
      case "$host_cpu" in
 
22745
      case $host_cpu in
13370
22746
      hppa*64*|ia64*)
13371
22747
        # +Z the default
13372
22748
        ;;
13389
22765
      lt_prog_compiler_static_F77='-Bstatic'
13390
22766
      ;;
13391
22767
 
13392
 
    linux*)
13393
 
      case $CC in
 
22768
    linux* | k*bsd*-gnu)
 
22769
      case $cc_basename in
13394
22770
      icc* | ecc*)
13395
22771
        lt_prog_compiler_wl_F77='-Wl,'
13396
22772
        lt_prog_compiler_pic_F77='-KPIC'
13397
22773
        lt_prog_compiler_static_F77='-static'
13398
22774
        ;;
 
22775
      pgcc* | pgf77* | pgf90* | pgf95*)
 
22776
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
22777
        # which looks to be a dead project)
 
22778
        lt_prog_compiler_wl_F77='-Wl,'
 
22779
        lt_prog_compiler_pic_F77='-fpic'
 
22780
        lt_prog_compiler_static_F77='-Bstatic'
 
22781
        ;;
13399
22782
      ccc*)
13400
22783
        lt_prog_compiler_wl_F77='-Wl,'
13401
22784
        # All Alpha code is PIC.
13410
22793
      lt_prog_compiler_static_F77='-non_shared'
13411
22794
      ;;
13412
22795
 
13413
 
    sco3.2v5*)
13414
 
      lt_prog_compiler_pic_F77='-Kpic'
13415
 
      lt_prog_compiler_static_F77='-dn'
13416
 
      ;;
13417
 
 
13418
22796
    solaris*)
13419
 
      lt_prog_compiler_wl_F77='-Wl,'
13420
22797
      lt_prog_compiler_pic_F77='-KPIC'
13421
22798
      lt_prog_compiler_static_F77='-Bstatic'
 
22799
      case $cc_basename in
 
22800
      f77* | f90* | f95*)
 
22801
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
22802
      *)
 
22803
        lt_prog_compiler_wl_F77='-Wl,';;
 
22804
      esac
13422
22805
      ;;
13423
22806
 
13424
22807
    sunos4*)
13427
22810
      lt_prog_compiler_static_F77='-Bstatic'
13428
22811
      ;;
13429
22812
 
13430
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
22813
    sysv4 | sysv4.2uw2* | sysv4.3*)
13431
22814
      lt_prog_compiler_wl_F77='-Wl,'
13432
22815
      lt_prog_compiler_pic_F77='-KPIC'
13433
22816
      lt_prog_compiler_static_F77='-Bstatic'
13440
22823
      fi
13441
22824
      ;;
13442
22825
 
 
22826
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
22827
      lt_prog_compiler_wl_F77='-Wl,'
 
22828
      lt_prog_compiler_pic_F77='-KPIC'
 
22829
      lt_prog_compiler_static_F77='-Bstatic'
 
22830
      ;;
 
22831
 
 
22832
    unicos*)
 
22833
      lt_prog_compiler_wl_F77='-Wl,'
 
22834
      lt_prog_compiler_can_build_shared_F77=no
 
22835
      ;;
 
22836
 
13443
22837
    uts4*)
13444
22838
      lt_prog_compiler_pic_F77='-pic'
13445
22839
      lt_prog_compiler_static_F77='-Bstatic'
13451
22845
    esac
13452
22846
  fi
13453
22847
 
13454
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13455
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
22848
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
22849
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13456
22850
 
13457
22851
#
13458
22852
# Check to make sure the PIC flag actually works.
13459
22853
#
13460
22854
if test -n "$lt_prog_compiler_pic_F77"; then
13461
22855
 
13462
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13463
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
22856
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
22857
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13464
22858
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13465
22859
  echo $ECHO_N "(cached) $ECHO_C" >&6
13466
22860
else
13474
22868
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13475
22869
   # The option is referenced via a variable to avoid confusing sed.
13476
22870
   lt_compile=`echo "$ac_compile" | $SED \
13477
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
22871
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13478
22872
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13479
22873
   -e 's:$: $lt_compiler_flag:'`
13480
 
   (eval echo "\"\$as_me:13480: $lt_compile\"" >&5)
 
22874
   (eval echo "\"\$as_me:22874: $lt_compile\"" >&5)
13481
22875
   (eval "$lt_compile" 2>conftest.err)
13482
22876
   ac_status=$?
13483
22877
   cat conftest.err >&5
13484
 
   echo "$as_me:13484: \$? = $ac_status" >&5
 
22878
   echo "$as_me:22878: \$? = $ac_status" >&5
13485
22879
   if (exit $ac_status) && test -s "$ac_outfile"; then
13486
22880
     # The compiler can only warn and ignore the option if not recognized
13487
 
     # So say no if there are warnings
13488
 
     if test ! -s conftest.err; then
 
22881
     # So say no if there are warnings other than the usual output.
 
22882
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
22883
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
22884
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13489
22885
       lt_prog_compiler_pic_works_F77=yes
13490
22886
     fi
13491
22887
   fi
13492
22888
   $rm conftest*
13493
22889
 
13494
22890
fi
13495
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13496
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
22891
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
22892
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13497
22893
 
13498
22894
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13499
22895
    case $lt_prog_compiler_pic_F77 in
13506
22902
fi
13507
22903
 
13508
22904
fi
13509
 
case "$host_os" in
 
22905
case $host_os in
13510
22906
  # For platforms which do not support PIC, -DPIC is meaningless:
13511
22907
  *djgpp*)
13512
22908
    lt_prog_compiler_pic_F77=
13516
22912
    ;;
13517
22913
esac
13518
22914
 
13519
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13520
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
22915
#
 
22916
# Check to make sure the static flag actually works.
 
22917
#
 
22918
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
22919
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
22920
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
22921
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
22922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22923
else
 
22924
  lt_prog_compiler_static_works_F77=no
 
22925
   save_LDFLAGS="$LDFLAGS"
 
22926
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
22927
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
22928
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
22929
     # The linker can only warn and ignore the option if not recognized
 
22930
     # So say no if there are warnings
 
22931
     if test -s conftest.err; then
 
22932
       # Append any errors to the config.log.
 
22933
       cat conftest.err 1>&5
 
22934
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
22935
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
22936
       if diff conftest.exp conftest.er2 >/dev/null; then
 
22937
         lt_prog_compiler_static_works_F77=yes
 
22938
       fi
 
22939
     else
 
22940
       lt_prog_compiler_static_works_F77=yes
 
22941
     fi
 
22942
   fi
 
22943
   $rm conftest*
 
22944
   LDFLAGS="$save_LDFLAGS"
 
22945
 
 
22946
fi
 
22947
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
22948
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
22949
 
 
22950
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
22951
    :
 
22952
else
 
22953
    lt_prog_compiler_static_F77=
 
22954
fi
 
22955
 
 
22956
 
 
22957
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
22958
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13521
22959
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13522
22960
  echo $ECHO_N "(cached) $ECHO_C" >&6
13523
22961
else
13534
22972
   # Note that $ac_compile itself does not contain backslashes and begins
13535
22973
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13536
22974
   lt_compile=`echo "$ac_compile" | $SED \
13537
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
22975
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13538
22976
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13539
22977
   -e 's:$: $lt_compiler_flag:'`
13540
 
   (eval echo "\"\$as_me:13540: $lt_compile\"" >&5)
 
22978
   (eval echo "\"\$as_me:22978: $lt_compile\"" >&5)
13541
22979
   (eval "$lt_compile" 2>out/conftest.err)
13542
22980
   ac_status=$?
13543
22981
   cat out/conftest.err >&5
13544
 
   echo "$as_me:13544: \$? = $ac_status" >&5
 
22982
   echo "$as_me:22982: \$? = $ac_status" >&5
13545
22983
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13546
22984
   then
13547
22985
     # The compiler can only warn and ignore the option if not recognized
13548
22986
     # So say no if there are warnings
13549
 
     if test ! -s out/conftest.err; then
 
22987
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
22988
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
22989
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13550
22990
       lt_cv_prog_compiler_c_o_F77=yes
13551
22991
     fi
13552
22992
   fi
13553
 
   chmod u+w .
 
22993
   chmod u+w . 2>&5
13554
22994
   $rm conftest*
13555
22995
   # SGI C++ compiler will create directory out/ii_files/ for
13556
22996
   # template instantiation
13561
23001
   $rm conftest*
13562
23002
 
13563
23003
fi
13564
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13565
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
23004
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
23005
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13566
23006
 
13567
23007
 
13568
23008
hard_links="nottested"
13569
23009
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13570
23010
  # do not overwrite the value of need_locks provided by the user
13571
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13572
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
23011
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
23012
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13573
23013
  hard_links=yes
13574
23014
  $rm conftest*
13575
23015
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13576
23016
  touch conftest.a
13577
23017
  ln conftest.a conftest.b 2>&5 || hard_links=no
13578
23018
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13579
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13580
 
echo "${ECHO_T}$hard_links" >&6
 
23019
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
23020
echo "${ECHO_T}$hard_links" >&6; }
13581
23021
  if test "$hard_links" = no; then
13582
23022
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13583
23023
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13587
23027
  need_locks=no
13588
23028
fi
13589
23029
 
13590
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13591
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
23030
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
23031
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13592
23032
 
13593
23033
  runpath_var=
13594
23034
  allow_undefined_flag_F77=
13626
23066
  # rely on this symbol name, it's probably fine to never include it in
13627
23067
  # preloaded symbol tables.
13628
23068
  extract_expsyms_cmds=
 
23069
  # Just being paranoid about ensuring that cc_basename is set.
 
23070
  for cc_temp in $compiler""; do
 
23071
  case $cc_temp in
 
23072
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
23073
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
23074
    \-*) ;;
 
23075
    *) break;;
 
23076
  esac
 
23077
done
 
23078
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13629
23079
 
13630
23080
  case $host_os in
13631
23081
  cygwin* | mingw* | pw32*)
13636
23086
      with_gnu_ld=no
13637
23087
    fi
13638
23088
    ;;
 
23089
  interix*)
 
23090
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
23091
    with_gnu_ld=yes
 
23092
    ;;
13639
23093
  openbsd*)
13640
23094
    with_gnu_ld=no
13641
23095
    ;;
13646
23100
    # If archive_cmds runs LD, not CC, wlarc should be empty
13647
23101
    wlarc='${wl}'
13648
23102
 
 
23103
    # Set some defaults for GNU ld with shared library support. These
 
23104
    # are reset later if shared libraries are not supported. Putting them
 
23105
    # here allows them to be overridden if necessary.
 
23106
    runpath_var=LD_RUN_PATH
 
23107
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
23108
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
23109
    # ancient GNU ld didn't support --whole-archive et. al.
 
23110
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
23111
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
23112
      else
 
23113
        whole_archive_flag_spec_F77=
 
23114
    fi
 
23115
    supports_anon_versioning=no
 
23116
    case `$LD -v 2>/dev/null` in
 
23117
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
23118
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
23119
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
23120
      *\ 2.11.*) ;; # other 2.11 versions
 
23121
      *) supports_anon_versioning=yes ;;
 
23122
    esac
 
23123
 
13649
23124
    # See if GNU ld supports shared libraries.
13650
23125
    case $host_os in
13651
23126
    aix3* | aix4* | aix5*)
13696
23171
      allow_undefined_flag_F77=unsupported
13697
23172
      always_export_symbols_F77=no
13698
23173
      enable_shared_with_static_runtimes_F77=yes
13699
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
23174
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13700
23175
 
13701
23176
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13702
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
23177
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13703
23178
        # If the export-symbols file already is a .def file (1st line
13704
23179
        # is EXPORTS), use it as is; otherwise, prepend...
13705
23180
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13708
23183
          echo EXPORTS > $output_objdir/$soname.def;
13709
23184
          cat $export_symbols >> $output_objdir/$soname.def;
13710
23185
        fi~
13711
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13712
 
      else
13713
 
        ld_shlibs=no
13714
 
      fi
13715
 
      ;;
13716
 
 
13717
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
23186
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
23187
      else
 
23188
        ld_shlibs_F77=no
 
23189
      fi
 
23190
      ;;
 
23191
 
 
23192
    interix3*)
 
23193
      hardcode_direct_F77=no
 
23194
      hardcode_shlibpath_var_F77=no
 
23195
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
23196
      export_dynamic_flag_spec_F77='${wl}-E'
 
23197
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
23198
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
23199
      # default) and relocated if they conflict, which is a slow very memory
 
23200
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
23201
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
23202
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
23203
      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'
 
23204
      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'
 
23205
      ;;
 
23206
 
 
23207
    linux* | k*bsd*-gnu)
 
23208
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
23209
        tmp_addflag=
 
23210
        case $cc_basename,$host_cpu in
 
23211
        pgcc*)                          # Portland Group C compiler
 
23212
          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'
 
23213
          tmp_addflag=' $pic_flag'
 
23214
          ;;
 
23215
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
23216
          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'
 
23217
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
23218
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
23219
          tmp_addflag=' -i_dynamic' ;;
 
23220
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
23221
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
23222
        ifc* | ifort*)                  # Intel Fortran compiler
 
23223
          tmp_addflag=' -nofor_main' ;;
 
23224
        esac
 
23225
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
23226
 
 
23227
        if test $supports_anon_versioning = yes; then
 
23228
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
23229
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
23230
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
23231
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
23232
        fi
 
23233
        link_all_deplibs_F77=no
 
23234
      else
 
23235
        ld_shlibs_F77=no
 
23236
      fi
 
23237
      ;;
 
23238
 
 
23239
    netbsd* | netbsdelf*-gnu)
13718
23240
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13719
23241
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13720
23242
        wlarc=
13724
23246
      fi
13725
23247
      ;;
13726
23248
 
13727
 
    solaris* | sysv5*)
 
23249
    solaris*)
13728
23250
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13729
23251
        ld_shlibs_F77=no
13730
23252
        cat <<EOF 1>&2
13745
23267
      fi
13746
23268
      ;;
13747
23269
 
 
23270
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
23271
      case `$LD -v 2>&1` in
 
23272
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
23273
        ld_shlibs_F77=no
 
23274
        cat <<_LT_EOF 1>&2
 
23275
 
 
23276
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
23277
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
23278
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
23279
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
23280
*** your PATH or compiler configuration so that the native linker is
 
23281
*** used, and then restart.
 
23282
 
 
23283
_LT_EOF
 
23284
        ;;
 
23285
        *)
 
23286
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
23287
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
23288
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
23289
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
23290
          else
 
23291
            ld_shlibs_F77=no
 
23292
          fi
 
23293
        ;;
 
23294
      esac
 
23295
      ;;
 
23296
 
13748
23297
    sunos4*)
13749
23298
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13750
23299
      wlarc=
13752
23301
      hardcode_shlibpath_var_F77=no
13753
23302
      ;;
13754
23303
 
13755
 
  linux*)
13756
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13757
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758
 
        archive_cmds_F77="$tmp_archive_cmds"
13759
 
      supports_anon_versioning=no
13760
 
      case `$LD -v 2>/dev/null` in
13761
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13762
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13763
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13764
 
        *\ 2.11.*) ;; # other 2.11 versions
13765
 
        *) supports_anon_versioning=yes ;;
13766
 
      esac
13767
 
      if test $supports_anon_versioning = yes; then
13768
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13769
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13770
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13771
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13772
 
      else
13773
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13774
 
      fi
13775
 
      link_all_deplibs_F77=no
13776
 
    else
13777
 
      ld_shlibs_F77=no
13778
 
    fi
13779
 
    ;;
13780
 
 
13781
23304
    *)
13782
23305
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13783
23306
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13788
23311
      ;;
13789
23312
    esac
13790
23313
 
13791
 
    if test "$ld_shlibs_F77" = yes; then
13792
 
      runpath_var=LD_RUN_PATH
13793
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13794
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13795
 
      # ancient GNU ld didn't support --whole-archive et. al.
13796
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13797
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13798
 
      else
13799
 
        whole_archive_flag_spec_F77=
13800
 
      fi
 
23314
    if test "$ld_shlibs_F77" = no; then
 
23315
      runpath_var=
 
23316
      hardcode_libdir_flag_spec_F77=
 
23317
      export_dynamic_flag_spec_F77=
 
23318
      whole_archive_flag_spec_F77=
13801
23319
    fi
13802
23320
  else
13803
23321
    # PORTME fill in a description of your system's linker (not GNU ld)
13809
23327
      # Note: this linker hardcodes the directories in LIBPATH if there
13810
23328
      # are no directories specified by -L.
13811
23329
      hardcode_minus_L_F77=yes
13812
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
23330
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13813
23331
        # Neither direct hardcoding nor static linking is supported with a
13814
23332
        # broken collect2.
13815
23333
        hardcode_direct_F77=unsupported
13843
23361
            break
13844
23362
          fi
13845
23363
          done
 
23364
          ;;
13846
23365
        esac
13847
23366
 
13848
23367
        exp_sym_flag='-bexport'
13861
23380
      link_all_deplibs_F77=yes
13862
23381
 
13863
23382
      if test "$GCC" = yes; then
13864
 
        case $host_os in aix4.012|aix4.012.*)
 
23383
        case $host_os in aix4.[012]|aix4.[012].*)
13865
23384
        # We only want to do this on AIX 4.2 and lower, the check
13866
23385
        # below for broken collect2 doesn't work under 4.3+
13867
23386
          collect2name=`${CC} -print-prog-name=collect2`
13880
23399
          hardcode_libdir_flag_spec_F77='-L$libdir'
13881
23400
          hardcode_libdir_separator_F77=
13882
23401
          fi
 
23402
          ;;
13883
23403
        esac
13884
23404
        shared_flag='-shared'
 
23405
        if test "$aix_use_runtimelinking" = yes; then
 
23406
          shared_flag="$shared_flag "'${wl}-G'
 
23407
        fi
13885
23408
      else
13886
23409
        # not using gcc
13887
23410
        if test "$host_cpu" = ia64; then
13889
23412
        # chokes on -Wl,-G. The following line is correct:
13890
23413
          shared_flag='-G'
13891
23414
        else
13892
 
        if test "$aix_use_runtimelinking" = yes; then
 
23415
          if test "$aix_use_runtimelinking" = yes; then
13893
23416
            shared_flag='${wl}-G'
13894
23417
          else
13895
23418
            shared_flag='${wl}-bM:SRE'
13896
 
        fi
 
23419
          fi
13897
23420
        fi
13898
23421
      fi
13899
23422
 
13911
23434
      end
13912
23435
_ACEOF
13913
23436
rm -f conftest.$ac_objext conftest$ac_exeext
13914
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915
 
  (eval $ac_link) 2>conftest.er1
 
23437
if { (ac_try="$ac_link"
 
23438
case "(($ac_try" in
 
23439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23440
  *) ac_try_echo=$ac_try;;
 
23441
esac
 
23442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23443
  (eval "$ac_link") 2>conftest.er1
13916
23444
  ac_status=$?
13917
23445
  grep -v '^ *+' conftest.er1 >conftest.err
13918
23446
  rm -f conftest.er1
13919
23447
  cat conftest.err >&5
13920
23448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921
23449
  (exit $ac_status); } &&
13922
 
         { ac_try='test -z "$ac_f77_werror_flag"
13923
 
                         || test ! -s conftest.err'
13924
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925
 
  (eval $ac_try) 2>&5
 
23450
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
23451
  { (case "(($ac_try" in
 
23452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23453
  *) ac_try_echo=$ac_try;;
 
23454
esac
 
23455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23456
  (eval "$ac_try") 2>&5
13926
23457
  ac_status=$?
13927
23458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928
23459
  (exit $ac_status); }; } &&
13929
23460
         { ac_try='test -s conftest$ac_exeext'
13930
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931
 
  (eval $ac_try) 2>&5
 
23461
  { (case "(($ac_try" in
 
23462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23463
  *) ac_try_echo=$ac_try;;
 
23464
esac
 
23465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23466
  (eval "$ac_try") 2>&5
13932
23467
  ac_status=$?
13933
23468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934
23469
  (exit $ac_status); }; }; then
13942
23477
  echo "$as_me: failed program was:" >&5
13943
23478
sed 's/^/| /' conftest.$ac_ext >&5
13944
23479
 
 
23480
 
13945
23481
fi
13946
 
rm -f conftest.err conftest.$ac_objext \
 
23482
 
 
23483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13947
23484
      conftest$ac_exeext conftest.$ac_ext
13948
23485
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13949
23486
 
13950
23487
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13951
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
23488
        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"
13952
23489
       else
13953
23490
        if test "$host_cpu" = ia64; then
13954
23491
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13955
23492
          allow_undefined_flag_F77="-z nodefs"
13956
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
23493
          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"
13957
23494
        else
13958
23495
         # Determine the default libpath from the value encoded in an empty executable.
13959
23496
         cat >conftest.$ac_ext <<_ACEOF
13962
23499
      end
13963
23500
_ACEOF
13964
23501
rm -f conftest.$ac_objext conftest$ac_exeext
13965
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13966
 
  (eval $ac_link) 2>conftest.er1
 
23502
if { (ac_try="$ac_link"
 
23503
case "(($ac_try" in
 
23504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23505
  *) ac_try_echo=$ac_try;;
 
23506
esac
 
23507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23508
  (eval "$ac_link") 2>conftest.er1
13967
23509
  ac_status=$?
13968
23510
  grep -v '^ *+' conftest.er1 >conftest.err
13969
23511
  rm -f conftest.er1
13970
23512
  cat conftest.err >&5
13971
23513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972
23514
  (exit $ac_status); } &&
13973
 
         { ac_try='test -z "$ac_f77_werror_flag"
13974
 
                         || test ! -s conftest.err'
13975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976
 
  (eval $ac_try) 2>&5
 
23515
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
23516
  { (case "(($ac_try" in
 
23517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23518
  *) ac_try_echo=$ac_try;;
 
23519
esac
 
23520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23521
  (eval "$ac_try") 2>&5
13977
23522
  ac_status=$?
13978
23523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979
23524
  (exit $ac_status); }; } &&
13980
23525
         { ac_try='test -s conftest$ac_exeext'
13981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982
 
  (eval $ac_try) 2>&5
 
23526
  { (case "(($ac_try" in
 
23527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23528
  *) ac_try_echo=$ac_try;;
 
23529
esac
 
23530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23531
  (eval "$ac_try") 2>&5
13983
23532
  ac_status=$?
13984
23533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985
23534
  (exit $ac_status); }; }; then
13993
23542
  echo "$as_me: failed program was:" >&5
13994
23543
sed 's/^/| /' conftest.$ac_ext >&5
13995
23544
 
 
23545
 
13996
23546
fi
13997
 
rm -f conftest.err conftest.$ac_objext \
 
23547
 
 
23548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13998
23549
      conftest$ac_exeext conftest.$ac_ext
13999
23550
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14000
23551
 
14003
23554
          # -berok will link without error, but may produce a broken library.
14004
23555
          no_undefined_flag_F77=' ${wl}-bernotok'
14005
23556
          allow_undefined_flag_F77=' ${wl}-berok'
14006
 
          # -bexpall does not export symbols beginning with underscore (_)
14007
 
          always_export_symbols_F77=yes
14008
23557
          # Exported symbols can be pulled into shared objects from archives
14009
 
          whole_archive_flag_spec_F77=' '
 
23558
          whole_archive_flag_spec_F77='$convenience'
14010
23559
          archive_cmds_need_lc_F77=yes
14011
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14012
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
23560
          # This is similar to how AIX traditionally builds its shared libraries.
 
23561
          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'
14013
23562
        fi
14014
23563
      fi
14015
23564
      ;;
14022
23571
      ld_shlibs_F77=no
14023
23572
      ;;
14024
23573
 
14025
 
    bsdi4*)
 
23574
    bsdi[45]*)
14026
23575
      export_dynamic_flag_spec_F77=-rdynamic
14027
23576
      ;;
14028
23577
 
14043
23592
      old_archive_From_new_cmds_F77='true'
14044
23593
      # FIXME: Should let the user specify the lib program.
14045
23594
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14046
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
23595
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14047
23596
      enable_shared_with_static_runtimes_F77=yes
14048
23597
      ;;
14049
23598
 
14050
23599
    darwin* | rhapsody*)
14051
 
    if test "$GXX" = yes ; then
 
23600
      case $host_os in
 
23601
        rhapsody* | darwin1.[012])
 
23602
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
23603
         ;;
 
23604
       *) # Darwin 1.3 on
 
23605
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
23606
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
23607
         else
 
23608
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
23609
             10.[012])
 
23610
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
23611
               ;;
 
23612
             10.*)
 
23613
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
23614
               ;;
 
23615
           esac
 
23616
         fi
 
23617
         ;;
 
23618
      esac
14052
23619
      archive_cmds_need_lc_F77=no
14053
 
      case "$host_os" in
14054
 
      rhapsody* | darwin1.[012])
14055
 
        allow_undefined_flag_F77='-undefined suppress'
14056
 
        ;;
14057
 
      *) # Darwin 1.3 on
14058
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14059
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14060
 
      else
14061
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
14062
 
          10.[012])
14063
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14064
 
            ;;
14065
 
          10.*)
14066
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
14067
 
            ;;
14068
 
        esac
14069
 
      fi
14070
 
        ;;
14071
 
      esac
14072
 
        lt_int_apple_cc_single_mod=no
14073
 
        output_verbose_link_cmd='echo'
14074
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14075
 
          lt_int_apple_cc_single_mod=yes
14076
 
        fi
14077
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14078
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14079
 
        else
14080
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14081
 
      fi
14082
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14083
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14084
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14085
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14086
 
        else
14087
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14088
 
        fi
14089
 
          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}'
14090
23620
      hardcode_direct_F77=no
14091
23621
      hardcode_automatic_F77=yes
14092
23622
      hardcode_shlibpath_var_F77=unsupported
14093
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
23623
      whole_archive_flag_spec_F77=''
14094
23624
      link_all_deplibs_F77=yes
 
23625
    if test "$GCC" = yes ; then
 
23626
        output_verbose_link_cmd='echo'
 
23627
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
23628
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
23629
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
23630
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
23631
      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}'
14095
23632
    else
14096
 
      ld_shlibs_F77=no
 
23633
      case $cc_basename in
 
23634
        xlc*)
 
23635
         output_verbose_link_cmd='echo'
 
23636
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
23637
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
23638
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
23639
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
23640
          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}'
 
23641
          ;;
 
23642
       *)
 
23643
         ld_shlibs_F77=no
 
23644
          ;;
 
23645
      esac
14097
23646
    fi
14098
23647
      ;;
14099
23648
 
14127
23676
      ;;
14128
23677
 
14129
23678
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14130
 
    freebsd* | kfreebsd*-gnu)
 
23679
    freebsd* | dragonfly*)
14131
23680
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14132
23681
      hardcode_libdir_flag_spec_F77='-R$libdir'
14133
23682
      hardcode_direct_F77=yes
14150
23699
      export_dynamic_flag_spec_F77='${wl}-E'
14151
23700
      ;;
14152
23701
 
14153
 
    hpux10* | hpux11*)
14154
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14155
 
        case "$host_cpu" in
14156
 
        hppa*64*|ia64*)
 
23702
    hpux10*)
 
23703
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
23704
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
23705
      else
 
23706
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
23707
      fi
 
23708
      if test "$with_gnu_ld" = no; then
 
23709
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
23710
        hardcode_libdir_separator_F77=:
 
23711
 
 
23712
        hardcode_direct_F77=yes
 
23713
        export_dynamic_flag_spec_F77='${wl}-E'
 
23714
 
 
23715
        # hardcode_minus_L: Not really in the search PATH,
 
23716
        # but as the default location of the library.
 
23717
        hardcode_minus_L_F77=yes
 
23718
      fi
 
23719
      ;;
 
23720
 
 
23721
    hpux11*)
 
23722
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
23723
        case $host_cpu in
 
23724
        hppa*64*)
14157
23725
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14158
23726
          ;;
 
23727
        ia64*)
 
23728
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
23729
          ;;
14159
23730
        *)
14160
23731
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14161
23732
          ;;
14162
23733
        esac
14163
23734
      else
14164
 
        case "$host_cpu" in
14165
 
        hppa*64*|ia64*)
14166
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
23735
        case $host_cpu in
 
23736
        hppa*64*)
 
23737
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23738
          ;;
 
23739
        ia64*)
 
23740
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14167
23741
          ;;
14168
23742
        *)
14169
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
23743
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14170
23744
          ;;
14171
23745
        esac
14172
23746
      fi
14173
23747
      if test "$with_gnu_ld" = no; then
14174
 
        case "$host_cpu" in
14175
 
        hppa*64*)
14176
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
23748
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
23749
        hardcode_libdir_separator_F77=:
 
23750
 
 
23751
        case $host_cpu in
 
23752
        hppa*64*|ia64*)
14177
23753
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14178
 
          hardcode_libdir_separator_F77=:
14179
 
          hardcode_direct_F77=no
14180
 
          hardcode_shlibpath_var_F77=no
14181
 
          ;;
14182
 
        ia64*)
14183
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14184
 
          hardcode_direct_F77=no
14185
 
          hardcode_shlibpath_var_F77=no
14186
 
 
14187
 
          # hardcode_minus_L: Not really in the search PATH,
14188
 
          # but as the default location of the library.
14189
 
          hardcode_minus_L_F77=yes
 
23754
          hardcode_direct_F77=no
 
23755
          hardcode_shlibpath_var_F77=no
14190
23756
          ;;
14191
23757
        *)
14192
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14193
 
          hardcode_libdir_separator_F77=:
14194
23758
          hardcode_direct_F77=yes
14195
23759
          export_dynamic_flag_spec_F77='${wl}-E'
14196
23760
 
14214
23778
      link_all_deplibs_F77=yes
14215
23779
      ;;
14216
23780
 
14217
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
23781
    netbsd* | netbsdelf*-gnu)
14218
23782
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14219
23783
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14220
23784
      else
14238
23802
      hardcode_shlibpath_var_F77=no
14239
23803
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14240
23804
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
23805
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14241
23806
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14242
23807
        export_dynamic_flag_spec_F77='${wl}-E'
14243
23808
      else
14283
23848
        allow_undefined_flag_F77=' -expect_unresolved \*'
14284
23849
        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'
14285
23850
        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~
14286
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
23851
        $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'
14287
23852
 
14288
23853
        # Both c and cxx compiler support -rpath directly
14289
23854
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14291
23856
      hardcode_libdir_separator_F77=:
14292
23857
      ;;
14293
23858
 
14294
 
    sco3.2v5*)
14295
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296
 
      hardcode_shlibpath_var_F77=no
14297
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14298
 
      runpath_var=LD_RUN_PATH
14299
 
      hardcode_runpath_var=yes
14300
 
      ;;
14301
 
 
14302
23859
    solaris*)
14303
23860
      no_undefined_flag_F77=' -z text'
14304
23861
      if test "$GCC" = yes; then
 
23862
        wlarc='${wl}'
14305
23863
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14306
23864
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14307
23865
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14308
23866
      else
 
23867
        wlarc=''
14309
23868
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310
23869
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14311
23870
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14314
23873
      hardcode_shlibpath_var_F77=no
14315
23874
      case $host_os in
14316
23875
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14317
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14318
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
23876
      *)
 
23877
        # The compiler driver will combine linker options so we
 
23878
        # cannot just pass the convience library names through
 
23879
        # without $wl, iff we do not link with $LD.
 
23880
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
23881
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
23882
        case $wlarc in
 
23883
        '')
 
23884
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
23885
        *)
 
23886
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
23887
        esac ;;
14319
23888
      esac
14320
23889
      link_all_deplibs_F77=yes
14321
23890
      ;;
14372
23941
      fi
14373
23942
      ;;
14374
23943
 
14375
 
    sysv4.2uw2*)
14376
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14377
 
      hardcode_direct_F77=yes
14378
 
      hardcode_minus_L_F77=no
14379
 
      hardcode_shlibpath_var_F77=no
14380
 
      hardcode_runpath_var=yes
14381
 
      runpath_var=LD_RUN_PATH
14382
 
      ;;
14383
 
 
14384
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14385
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14386
 
      if test "$GCC" = yes; then
14387
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14388
 
      else
14389
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14390
 
      fi
14391
 
      runpath_var='LD_RUN_PATH'
14392
 
      hardcode_shlibpath_var_F77=no
14393
 
      ;;
14394
 
 
14395
 
    sysv5*)
14396
 
      no_undefined_flag_F77=' -z text'
14397
 
      # $CC -shared without GNU ld will not create a library from C++
14398
 
      # object files and a static libstdc++, better avoid it by now
14399
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14400
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14401
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14402
 
      hardcode_libdir_flag_spec_F77=
14403
 
      hardcode_shlibpath_var_F77=no
14404
 
      runpath_var='LD_RUN_PATH'
 
23944
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
23945
      no_undefined_flag_F77='${wl}-z,text'
 
23946
      archive_cmds_need_lc_F77=no
 
23947
      hardcode_shlibpath_var_F77=no
 
23948
      runpath_var='LD_RUN_PATH'
 
23949
 
 
23950
      if test "$GCC" = yes; then
 
23951
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23952
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23953
      else
 
23954
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23955
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23956
      fi
 
23957
      ;;
 
23958
 
 
23959
    sysv5* | sco3.2v5* | sco5v6*)
 
23960
      # Note: We can NOT use -z defs as we might desire, because we do not
 
23961
      # link with -lc, and that would cause any symbols used from libc to
 
23962
      # always be unresolved, which means just about no library would
 
23963
      # ever link correctly.  If we're not using GNU ld we use -z text
 
23964
      # though, which does catch some bad symbols but isn't as heavy-handed
 
23965
      # as -z defs.
 
23966
      no_undefined_flag_F77='${wl}-z,text'
 
23967
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
23968
      archive_cmds_need_lc_F77=no
 
23969
      hardcode_shlibpath_var_F77=no
 
23970
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
23971
      hardcode_libdir_separator_F77=':'
 
23972
      link_all_deplibs_F77=yes
 
23973
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
23974
      runpath_var='LD_RUN_PATH'
 
23975
 
 
23976
      if test "$GCC" = yes; then
 
23977
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23978
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23979
      else
 
23980
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23981
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
23982
      fi
14405
23983
      ;;
14406
23984
 
14407
23985
    uts4*)
14416
23994
    esac
14417
23995
  fi
14418
23996
 
14419
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14420
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
23997
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
23998
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14421
23999
test "$ld_shlibs_F77" = no && can_build_shared=no
14422
24000
 
14423
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14424
 
if test "$GCC" = yes; then
14425
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14426
 
fi
14427
 
 
14428
24001
#
14429
24002
# Do we need to explicitly link libc?
14430
24003
#
14442
24015
      # Test whether the compiler implicitly links with -lc since on some
14443
24016
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14444
24017
      # to ld, don't add -lc before -lgcc.
14445
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14446
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
24018
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
24019
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14447
24020
      $rm conftest*
14448
24021
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449
24022
 
14457
24030
        libobjs=conftest.$ac_objext
14458
24031
        deplibs=
14459
24032
        wl=$lt_prog_compiler_wl_F77
 
24033
        pic_flag=$lt_prog_compiler_pic_F77
14460
24034
        compiler_flags=-v
14461
24035
        linker_flags=-v
14462
24036
        verstring=
14479
24053
        cat conftest.err 1>&5
14480
24054
      fi
14481
24055
      $rm conftest*
14482
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14483
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
24056
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
24057
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14484
24058
      ;;
14485
24059
    esac
14486
24060
  fi
14487
24061
  ;;
14488
24062
esac
14489
24063
 
14490
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14491
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
24064
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
24065
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14492
24066
library_names_spec=
14493
24067
libname_spec='lib$name'
14494
24068
soname_spec=
14589
24163
  shlibpath_var=LIBRARY_PATH
14590
24164
  ;;
14591
24165
 
14592
 
bsdi4*)
 
24166
bsdi[45]*)
14593
24167
  version_type=linux
14594
24168
  need_version=no
14595
24169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617
24191
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14618
24192
      dldir=$destdir/`dirname \$dlpath`~
14619
24193
      test -d \$dldir || mkdir -p \$dldir~
14620
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
24194
      $install_prog $dir/$dlname \$dldir/$dlname~
 
24195
      chmod a+x \$dldir/$dlname'
14621
24196
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14622
24197
      dlpath=$dir/\$dldll~
14623
24198
       $rm \$dlpath'
14647
24222
      ;;
14648
24223
    pw32*)
14649
24224
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14650
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
24225
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14651
24226
      ;;
14652
24227
    esac
14653
24228
    ;;
14670
24245
  soname_spec='${libname}${release}${major}$shared_ext'
14671
24246
  shlibpath_overrides_runpath=yes
14672
24247
  shlibpath_var=DYLD_LIBRARY_PATH
14673
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
24248
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14674
24249
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14675
24250
  if test "$GCC" = yes; then
14676
24251
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14693
24268
  dynamic_linker=no
14694
24269
  ;;
14695
24270
 
14696
 
kfreebsd*-gnu)
14697
 
  version_type=linux
14698
 
  need_lib_prefix=no
14699
 
  need_version=no
14700
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14701
 
  soname_spec='${libname}${release}${shared_ext}$major'
14702
 
  shlibpath_var=LD_LIBRARY_PATH
14703
 
  shlibpath_overrides_runpath=no
14704
 
  hardcode_into_libs=yes
14705
 
  dynamic_linker='GNU ld.so'
14706
 
  ;;
14707
 
 
14708
 
freebsd*)
14709
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
24271
freebsd* | dragonfly*)
 
24272
  # DragonFly does not have aout.  When/if they implement a new
 
24273
  # versioning mechanism, adjust this.
 
24274
  if test -x /usr/bin/objformat; then
 
24275
    objformat=`/usr/bin/objformat`
 
24276
  else
 
24277
    case $host_os in
 
24278
    freebsd[123]*) objformat=aout ;;
 
24279
    *) objformat=elf ;;
 
24280
    esac
 
24281
  fi
14710
24282
  version_type=freebsd-$objformat
14711
24283
  case $version_type in
14712
24284
    freebsd-elf*)
14724
24296
  freebsd2*)
14725
24297
    shlibpath_overrides_runpath=yes
14726
24298
    ;;
14727
 
  freebsd3.01* | freebsdelf3.01*)
 
24299
  freebsd3.[01]* | freebsdelf3.[01]*)
14728
24300
    shlibpath_overrides_runpath=yes
14729
24301
    hardcode_into_libs=yes
14730
24302
    ;;
14731
 
  *) # from 3.2 on
 
24303
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
24304
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14732
24305
    shlibpath_overrides_runpath=no
14733
24306
    hardcode_into_libs=yes
14734
24307
    ;;
 
24308
  freebsd*) # from 4.6 on
 
24309
    shlibpath_overrides_runpath=yes
 
24310
    hardcode_into_libs=yes
 
24311
    ;;
14735
24312
  esac
14736
24313
  ;;
14737
24314
 
14751
24328
  version_type=sunos
14752
24329
  need_lib_prefix=no
14753
24330
  need_version=no
14754
 
  case "$host_cpu" in
 
24331
  case $host_cpu in
14755
24332
  ia64*)
14756
24333
    shrext_cmds='.so'
14757
24334
    hardcode_into_libs=yes
14791
24368
  postinstall_cmds='chmod 555 $lib'
14792
24369
  ;;
14793
24370
 
 
24371
interix3*)
 
24372
  version_type=linux
 
24373
  need_lib_prefix=no
 
24374
  need_version=no
 
24375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
24376
  soname_spec='${libname}${release}${shared_ext}$major'
 
24377
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
24378
  shlibpath_var=LD_LIBRARY_PATH
 
24379
  shlibpath_overrides_runpath=no
 
24380
  hardcode_into_libs=yes
 
24381
  ;;
 
24382
 
14794
24383
irix5* | irix6* | nonstopux*)
14795
24384
  case $host_os in
14796
24385
    nonstopux*) version_type=nonstopux ;;
14834
24423
  ;;
14835
24424
 
14836
24425
# This must be Linux ELF.
14837
 
linux*)
 
24426
linux* | k*bsd*-gnu)
14838
24427
  version_type=linux
14839
24428
  need_lib_prefix=no
14840
24429
  need_version=no
14850
24439
 
14851
24440
  # Append ld.so.conf contents to the search path
14852
24441
  if test -f /etc/ld.so.conf; then
14853
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
24442
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14854
24443
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14855
24444
  fi
14856
24445
 
14875
24464
  dynamic_linker='NetBSD ld.elf_so'
14876
24465
  ;;
14877
24466
 
14878
 
knetbsd*-gnu)
14879
 
  version_type=linux
14880
 
  need_lib_prefix=no
14881
 
  need_version=no
14882
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14883
 
  soname_spec='${libname}${release}${shared_ext}$major'
14884
 
  shlibpath_var=LD_LIBRARY_PATH
14885
 
  shlibpath_overrides_runpath=no
14886
 
  hardcode_into_libs=yes
14887
 
  dynamic_linker='GNU ld.so'
14888
 
  ;;
14889
 
 
14890
24467
netbsd*)
14891
24468
  version_type=sunos
14892
24469
  need_lib_prefix=no
14924
24501
 
14925
24502
openbsd*)
14926
24503
  version_type=sunos
 
24504
  sys_lib_dlsearch_path_spec="/usr/lib"
14927
24505
  need_lib_prefix=no
14928
 
  need_version=yes
 
24506
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
24507
  case $host_os in
 
24508
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
24509
    *)                         need_version=no  ;;
 
24510
  esac
14929
24511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14930
24512
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14931
24513
  shlibpath_var=LD_LIBRARY_PATH
14963
24545
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14964
24546
  ;;
14965
24547
 
14966
 
sco3.2v5*)
14967
 
  version_type=osf
14968
 
  soname_spec='${libname}${release}${shared_ext}$major'
14969
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970
 
  shlibpath_var=LD_LIBRARY_PATH
14971
 
  ;;
14972
 
 
14973
24548
solaris*)
14974
24549
  version_type=linux
14975
24550
  need_lib_prefix=no
14995
24570
  need_version=yes
14996
24571
  ;;
14997
24572
 
14998
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
24573
sysv4 | sysv4.3*)
14999
24574
  version_type=linux
15000
24575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001
24576
  soname_spec='${libname}${release}${shared_ext}$major'
15028
24603
  fi
15029
24604
  ;;
15030
24605
 
 
24606
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
24607
  version_type=freebsd-elf
 
24608
  need_lib_prefix=no
 
24609
  need_version=no
 
24610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
24611
  soname_spec='${libname}${release}${shared_ext}$major'
 
24612
  shlibpath_var=LD_LIBRARY_PATH
 
24613
  hardcode_into_libs=yes
 
24614
  if test "$with_gnu_ld" = yes; then
 
24615
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
24616
    shlibpath_overrides_runpath=no
 
24617
  else
 
24618
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
24619
    shlibpath_overrides_runpath=yes
 
24620
    case $host_os in
 
24621
      sco3.2v5*)
 
24622
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
24623
        ;;
 
24624
    esac
 
24625
  fi
 
24626
  sys_lib_dlsearch_path_spec='/usr/lib'
 
24627
  ;;
 
24628
 
15031
24629
uts4*)
15032
24630
  version_type=linux
15033
24631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039
24637
  dynamic_linker=no
15040
24638
  ;;
15041
24639
esac
15042
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15043
 
echo "${ECHO_T}$dynamic_linker" >&6
 
24640
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
24641
echo "${ECHO_T}$dynamic_linker" >&6; }
15044
24642
test "$dynamic_linker" = no && can_build_shared=no
15045
24643
 
15046
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15047
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
24644
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
24645
if test "$GCC" = yes; then
 
24646
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
24647
fi
 
24648
 
 
24649
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
24650
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15048
24651
hardcode_action_F77=
15049
24652
if test -n "$hardcode_libdir_flag_spec_F77" || \
15050
 
   test -n "$runpath_var F77" || \
15051
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
24653
   test -n "$runpath_var_F77" || \
 
24654
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15052
24655
 
15053
24656
  # We can hardcode non-existant directories.
15054
24657
  if test "$hardcode_direct_F77" != no &&
15068
24671
  # directories.
15069
24672
  hardcode_action_F77=unsupported
15070
24673
fi
15071
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15072
 
echo "${ECHO_T}$hardcode_action_F77" >&6
 
24674
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
24675
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15073
24676
 
15074
24677
if test "$hardcode_action_F77" = relink; then
15075
24678
  # Fast installation is not supported
15080
24683
  enable_fast_install=needless
15081
24684
fi
15082
24685
 
15083
 
striplib=
15084
 
old_striplib=
15085
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15086
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15087
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15088
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15089
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15090
 
  echo "$as_me:$LINENO: result: yes" >&5
15091
 
echo "${ECHO_T}yes" >&6
15092
 
else
15093
 
# FIXME - insert some real tests, host_os isn't really good enough
15094
 
  case $host_os in
15095
 
   darwin*)
15096
 
       if test -n "$STRIP" ; then
15097
 
         striplib="$STRIP -x"
15098
 
         echo "$as_me:$LINENO: result: yes" >&5
15099
 
echo "${ECHO_T}yes" >&6
15100
 
       else
15101
 
  echo "$as_me:$LINENO: result: no" >&5
15102
 
echo "${ECHO_T}no" >&6
15103
 
fi
15104
 
       ;;
15105
 
   *)
15106
 
  echo "$as_me:$LINENO: result: no" >&5
15107
 
echo "${ECHO_T}no" >&6
15108
 
    ;;
15109
 
  esac
15110
 
fi
15111
 
 
15112
 
 
15113
24686
 
15114
24687
# The else clause should only fire when bootstrapping the
15115
24688
# libtool distribution, otherwise you forgot to ship ltmain.sh
15124
24697
  # Now quote all the things that may contain metacharacters while being
15125
24698
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15126
24699
  # variables and quote the copies for generation of the libtool script.
15127
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
24700
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15128
24701
    SED SHELL STRIP \
15129
24702
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15130
24703
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15225
24798
# The host system.
15226
24799
host_alias=$host_alias
15227
24800
host=$host
 
24801
host_os=$host_os
 
24802
 
 
24803
# The build system.
 
24804
build_alias=$build_alias
 
24805
build=$build
 
24806
build_os=$build_os
15228
24807
 
15229
24808
# An echo program that does not interpret backslashes.
15230
24809
echo=$lt_echo
15236
24815
# A C compiler.
15237
24816
LTCC=$lt_LTCC
15238
24817
 
 
24818
# LTCC compiler flags.
 
24819
LTCFLAGS=$lt_LTCFLAGS
 
24820
 
15239
24821
# A language-specific compiler.
15240
24822
CC=$lt_compiler_F77
15241
24823
 
15301
24883
# Does compiler simultaneously support -c and -o options?
15302
24884
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15303
24885
 
15304
 
# Must we lock files when doing compilation ?
 
24886
# Must we lock files when doing compilation?
15305
24887
need_locks=$lt_need_locks
15306
24888
 
15307
24889
# Do we need the lib prefix for modules?
15527
25109
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15528
25110
 
15529
25111
 
15530
 
 
15531
25112
# Source file extension for Java test sources.
15532
25113
ac_ext=java
15533
25114
 
15539
25120
lt_simple_compile_test_code="class foo {}\n"
15540
25121
 
15541
25122
# Code to be used in simple link tests
15542
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
25123
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15543
25124
 
15544
25125
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15545
25126
 
15546
25127
# If no C compiler was specified, use CC.
15547
25128
LTCC=${LTCC-"$CC"}
15548
25129
 
 
25130
# If no C compiler flags were specified, use CFLAGS.
 
25131
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
25132
 
15549
25133
# Allow CC to be a program name with arguments.
15550
25134
compiler=$CC
15551
25135
 
15552
25136
 
 
25137
# save warnings/boilerplate of simple test code
 
25138
ac_outfile=conftest.$ac_objext
 
25139
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
25140
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
25141
_lt_compiler_boilerplate=`cat conftest.err`
 
25142
$rm conftest*
 
25143
 
 
25144
ac_outfile=conftest.$ac_objext
 
25145
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
25146
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
25147
_lt_linker_boilerplate=`cat conftest.err`
 
25148
$rm conftest*
 
25149
 
 
25150
 
15553
25151
# Allow CC to be a program name with arguments.
15554
25152
lt_save_CC="$CC"
15555
25153
CC=${GCJ-"gcj"}
15556
25154
compiler=$CC
15557
25155
compiler_GCJ=$CC
 
25156
for cc_temp in $compiler""; do
 
25157
  case $cc_temp in
 
25158
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
25159
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
25160
    \-*) ;;
 
25161
    *) break;;
 
25162
  esac
 
25163
done
 
25164
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
25165
 
15558
25166
 
15559
25167
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15560
25168
archive_cmds_need_lc_GCJ=no
15561
25169
 
 
25170
old_archive_cmds_GCJ=$old_archive_cmds
 
25171
 
15562
25172
 
15563
25173
lt_prog_compiler_no_builtin_flag_GCJ=
15564
25174
 
15566
25176
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15567
25177
 
15568
25178
 
15569
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15570
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
25179
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
25180
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15571
25181
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15572
25182
  echo $ECHO_N "(cached) $ECHO_C" >&6
15573
25183
else
15581
25191
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15582
25192
   # The option is referenced via a variable to avoid confusing sed.
15583
25193
   lt_compile=`echo "$ac_compile" | $SED \
15584
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
25194
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15585
25195
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15586
25196
   -e 's:$: $lt_compiler_flag:'`
15587
 
   (eval echo "\"\$as_me:15587: $lt_compile\"" >&5)
 
25197
   (eval echo "\"\$as_me:25197: $lt_compile\"" >&5)
15588
25198
   (eval "$lt_compile" 2>conftest.err)
15589
25199
   ac_status=$?
15590
25200
   cat conftest.err >&5
15591
 
   echo "$as_me:15591: \$? = $ac_status" >&5
 
25201
   echo "$as_me:25201: \$? = $ac_status" >&5
15592
25202
   if (exit $ac_status) && test -s "$ac_outfile"; then
15593
25203
     # The compiler can only warn and ignore the option if not recognized
15594
 
     # So say no if there are warnings
15595
 
     if test ! -s conftest.err; then
 
25204
     # So say no if there are warnings other than the usual output.
 
25205
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
25206
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
25207
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15596
25208
       lt_cv_prog_compiler_rtti_exceptions=yes
15597
25209
     fi
15598
25210
   fi
15599
25211
   $rm conftest*
15600
25212
 
15601
25213
fi
15602
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15603
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
25214
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
25215
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15604
25216
 
15605
25217
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15606
25218
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15614
25226
lt_prog_compiler_pic_GCJ=
15615
25227
lt_prog_compiler_static_GCJ=
15616
25228
 
15617
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15618
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
25229
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
25230
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15619
25231
 
15620
25232
  if test "$GCC" = yes; then
15621
25233
    lt_prog_compiler_wl_GCJ='-Wl,'
15653
25265
      lt_prog_compiler_pic_GCJ='-fno-common'
15654
25266
      ;;
15655
25267
 
 
25268
    interix3*)
 
25269
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
25270
      # Instead, we relocate shared libraries at runtime.
 
25271
      ;;
 
25272
 
15656
25273
    msdosdjgpp*)
15657
25274
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15658
25275
      # on systems that don't support them.
15669
25286
    hpux*)
15670
25287
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15671
25288
      # not for PA HP-UX.
15672
 
      case "$host_cpu" in
 
25289
      case $host_cpu in
15673
25290
      hppa*64*|ia64*)
15674
25291
        # +Z the default
15675
25292
        ;;
15695
25312
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15696
25313
      fi
15697
25314
      ;;
 
25315
      darwin*)
 
25316
        # PIC is the default on this platform
 
25317
        # Common symbols not allowed in MH_DYLIB files
 
25318
       case $cc_basename in
 
25319
         xlc*)
 
25320
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
25321
         lt_prog_compiler_wl_GCJ='-Wl,'
 
25322
         ;;
 
25323
       esac
 
25324
       ;;
15698
25325
 
15699
25326
    mingw* | pw32* | os2*)
15700
25327
      # This hack is so that the source file can tell whether it is being
15706
25333
      lt_prog_compiler_wl_GCJ='-Wl,'
15707
25334
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15708
25335
      # not for PA HP-UX.
15709
 
      case "$host_cpu" in
 
25336
      case $host_cpu in
15710
25337
      hppa*64*|ia64*)
15711
25338
        # +Z the default
15712
25339
        ;;
15729
25356
      lt_prog_compiler_static_GCJ='-Bstatic'
15730
25357
      ;;
15731
25358
 
15732
 
    linux*)
15733
 
      case $CC in
 
25359
    linux* | k*bsd*-gnu)
 
25360
      case $cc_basename in
15734
25361
      icc* | ecc*)
15735
25362
        lt_prog_compiler_wl_GCJ='-Wl,'
15736
25363
        lt_prog_compiler_pic_GCJ='-KPIC'
15737
25364
        lt_prog_compiler_static_GCJ='-static'
15738
25365
        ;;
 
25366
      pgcc* | pgf77* | pgf90* | pgf95*)
 
25367
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
25368
        # which looks to be a dead project)
 
25369
        lt_prog_compiler_wl_GCJ='-Wl,'
 
25370
        lt_prog_compiler_pic_GCJ='-fpic'
 
25371
        lt_prog_compiler_static_GCJ='-Bstatic'
 
25372
        ;;
15739
25373
      ccc*)
15740
25374
        lt_prog_compiler_wl_GCJ='-Wl,'
15741
25375
        # All Alpha code is PIC.
15750
25384
      lt_prog_compiler_static_GCJ='-non_shared'
15751
25385
      ;;
15752
25386
 
15753
 
    sco3.2v5*)
15754
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15755
 
      lt_prog_compiler_static_GCJ='-dn'
15756
 
      ;;
15757
 
 
15758
25387
    solaris*)
15759
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15760
25388
      lt_prog_compiler_pic_GCJ='-KPIC'
15761
25389
      lt_prog_compiler_static_GCJ='-Bstatic'
 
25390
      case $cc_basename in
 
25391
      f77* | f90* | f95*)
 
25392
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
25393
      *)
 
25394
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
25395
      esac
15762
25396
      ;;
15763
25397
 
15764
25398
    sunos4*)
15767
25401
      lt_prog_compiler_static_GCJ='-Bstatic'
15768
25402
      ;;
15769
25403
 
15770
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
25404
    sysv4 | sysv4.2uw2* | sysv4.3*)
15771
25405
      lt_prog_compiler_wl_GCJ='-Wl,'
15772
25406
      lt_prog_compiler_pic_GCJ='-KPIC'
15773
25407
      lt_prog_compiler_static_GCJ='-Bstatic'
15780
25414
      fi
15781
25415
      ;;
15782
25416
 
 
25417
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
25418
      lt_prog_compiler_wl_GCJ='-Wl,'
 
25419
      lt_prog_compiler_pic_GCJ='-KPIC'
 
25420
      lt_prog_compiler_static_GCJ='-Bstatic'
 
25421
      ;;
 
25422
 
 
25423
    unicos*)
 
25424
      lt_prog_compiler_wl_GCJ='-Wl,'
 
25425
      lt_prog_compiler_can_build_shared_GCJ=no
 
25426
      ;;
 
25427
 
15783
25428
    uts4*)
15784
25429
      lt_prog_compiler_pic_GCJ='-pic'
15785
25430
      lt_prog_compiler_static_GCJ='-Bstatic'
15791
25436
    esac
15792
25437
  fi
15793
25438
 
15794
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15795
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
25439
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
25440
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15796
25441
 
15797
25442
#
15798
25443
# Check to make sure the PIC flag actually works.
15799
25444
#
15800
25445
if test -n "$lt_prog_compiler_pic_GCJ"; then
15801
25446
 
15802
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15803
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
25447
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
25448
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15804
25449
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15805
25450
  echo $ECHO_N "(cached) $ECHO_C" >&6
15806
25451
else
15814
25459
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15815
25460
   # The option is referenced via a variable to avoid confusing sed.
15816
25461
   lt_compile=`echo "$ac_compile" | $SED \
15817
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
25462
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15818
25463
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15819
25464
   -e 's:$: $lt_compiler_flag:'`
15820
 
   (eval echo "\"\$as_me:15820: $lt_compile\"" >&5)
 
25465
   (eval echo "\"\$as_me:25465: $lt_compile\"" >&5)
15821
25466
   (eval "$lt_compile" 2>conftest.err)
15822
25467
   ac_status=$?
15823
25468
   cat conftest.err >&5
15824
 
   echo "$as_me:15824: \$? = $ac_status" >&5
 
25469
   echo "$as_me:25469: \$? = $ac_status" >&5
15825
25470
   if (exit $ac_status) && test -s "$ac_outfile"; then
15826
25471
     # The compiler can only warn and ignore the option if not recognized
15827
 
     # So say no if there are warnings
15828
 
     if test ! -s conftest.err; then
 
25472
     # So say no if there are warnings other than the usual output.
 
25473
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
25474
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
25475
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15829
25476
       lt_prog_compiler_pic_works_GCJ=yes
15830
25477
     fi
15831
25478
   fi
15832
25479
   $rm conftest*
15833
25480
 
15834
25481
fi
15835
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15836
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
25482
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
25483
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15837
25484
 
15838
25485
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15839
25486
    case $lt_prog_compiler_pic_GCJ in
15846
25493
fi
15847
25494
 
15848
25495
fi
15849
 
case "$host_os" in
 
25496
case $host_os in
15850
25497
  # For platforms which do not support PIC, -DPIC is meaningless:
15851
25498
  *djgpp*)
15852
25499
    lt_prog_compiler_pic_GCJ=
15856
25503
    ;;
15857
25504
esac
15858
25505
 
15859
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15860
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
25506
#
 
25507
# Check to make sure the static flag actually works.
 
25508
#
 
25509
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
25510
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
25511
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
25512
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
25513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25514
else
 
25515
  lt_prog_compiler_static_works_GCJ=no
 
25516
   save_LDFLAGS="$LDFLAGS"
 
25517
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
25518
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
25519
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
25520
     # The linker can only warn and ignore the option if not recognized
 
25521
     # So say no if there are warnings
 
25522
     if test -s conftest.err; then
 
25523
       # Append any errors to the config.log.
 
25524
       cat conftest.err 1>&5
 
25525
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
25526
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
25527
       if diff conftest.exp conftest.er2 >/dev/null; then
 
25528
         lt_prog_compiler_static_works_GCJ=yes
 
25529
       fi
 
25530
     else
 
25531
       lt_prog_compiler_static_works_GCJ=yes
 
25532
     fi
 
25533
   fi
 
25534
   $rm conftest*
 
25535
   LDFLAGS="$save_LDFLAGS"
 
25536
 
 
25537
fi
 
25538
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
25539
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
25540
 
 
25541
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
25542
    :
 
25543
else
 
25544
    lt_prog_compiler_static_GCJ=
 
25545
fi
 
25546
 
 
25547
 
 
25548
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
25549
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15861
25550
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15862
25551
  echo $ECHO_N "(cached) $ECHO_C" >&6
15863
25552
else
15874
25563
   # Note that $ac_compile itself does not contain backslashes and begins
15875
25564
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15876
25565
   lt_compile=`echo "$ac_compile" | $SED \
15877
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
25566
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15878
25567
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15879
25568
   -e 's:$: $lt_compiler_flag:'`
15880
 
   (eval echo "\"\$as_me:15880: $lt_compile\"" >&5)
 
25569
   (eval echo "\"\$as_me:25569: $lt_compile\"" >&5)
15881
25570
   (eval "$lt_compile" 2>out/conftest.err)
15882
25571
   ac_status=$?
15883
25572
   cat out/conftest.err >&5
15884
 
   echo "$as_me:15884: \$? = $ac_status" >&5
 
25573
   echo "$as_me:25573: \$? = $ac_status" >&5
15885
25574
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15886
25575
   then
15887
25576
     # The compiler can only warn and ignore the option if not recognized
15888
25577
     # So say no if there are warnings
15889
 
     if test ! -s out/conftest.err; then
 
25578
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
25579
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
25580
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15890
25581
       lt_cv_prog_compiler_c_o_GCJ=yes
15891
25582
     fi
15892
25583
   fi
15893
 
   chmod u+w .
 
25584
   chmod u+w . 2>&5
15894
25585
   $rm conftest*
15895
25586
   # SGI C++ compiler will create directory out/ii_files/ for
15896
25587
   # template instantiation
15901
25592
   $rm conftest*
15902
25593
 
15903
25594
fi
15904
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15905
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
25595
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
25596
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15906
25597
 
15907
25598
 
15908
25599
hard_links="nottested"
15909
25600
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15910
25601
  # do not overwrite the value of need_locks provided by the user
15911
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15912
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
25602
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
25603
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15913
25604
  hard_links=yes
15914
25605
  $rm conftest*
15915
25606
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15916
25607
  touch conftest.a
15917
25608
  ln conftest.a conftest.b 2>&5 || hard_links=no
15918
25609
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15919
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15920
 
echo "${ECHO_T}$hard_links" >&6
 
25610
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
25611
echo "${ECHO_T}$hard_links" >&6; }
15921
25612
  if test "$hard_links" = no; then
15922
25613
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15923
25614
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15927
25618
  need_locks=no
15928
25619
fi
15929
25620
 
15930
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15931
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
25621
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
25622
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15932
25623
 
15933
25624
  runpath_var=
15934
25625
  allow_undefined_flag_GCJ=
15966
25657
  # rely on this symbol name, it's probably fine to never include it in
15967
25658
  # preloaded symbol tables.
15968
25659
  extract_expsyms_cmds=
 
25660
  # Just being paranoid about ensuring that cc_basename is set.
 
25661
  for cc_temp in $compiler""; do
 
25662
  case $cc_temp in
 
25663
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
25664
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
25665
    \-*) ;;
 
25666
    *) break;;
 
25667
  esac
 
25668
done
 
25669
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15969
25670
 
15970
25671
  case $host_os in
15971
25672
  cygwin* | mingw* | pw32*)
15976
25677
      with_gnu_ld=no
15977
25678
    fi
15978
25679
    ;;
 
25680
  interix*)
 
25681
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
25682
    with_gnu_ld=yes
 
25683
    ;;
15979
25684
  openbsd*)
15980
25685
    with_gnu_ld=no
15981
25686
    ;;
15986
25691
    # If archive_cmds runs LD, not CC, wlarc should be empty
15987
25692
    wlarc='${wl}'
15988
25693
 
 
25694
    # Set some defaults for GNU ld with shared library support. These
 
25695
    # are reset later if shared libraries are not supported. Putting them
 
25696
    # here allows them to be overridden if necessary.
 
25697
    runpath_var=LD_RUN_PATH
 
25698
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
25699
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
25700
    # ancient GNU ld didn't support --whole-archive et. al.
 
25701
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
25702
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
25703
      else
 
25704
        whole_archive_flag_spec_GCJ=
 
25705
    fi
 
25706
    supports_anon_versioning=no
 
25707
    case `$LD -v 2>/dev/null` in
 
25708
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
25709
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
25710
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
25711
      *\ 2.11.*) ;; # other 2.11 versions
 
25712
      *) supports_anon_versioning=yes ;;
 
25713
    esac
 
25714
 
15989
25715
    # See if GNU ld supports shared libraries.
15990
25716
    case $host_os in
15991
25717
    aix3* | aix4* | aix5*)
16036
25762
      allow_undefined_flag_GCJ=unsupported
16037
25763
      always_export_symbols_GCJ=no
16038
25764
      enable_shared_with_static_runtimes_GCJ=yes
16039
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
25765
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16040
25766
 
16041
25767
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16042
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
25768
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16043
25769
        # If the export-symbols file already is a .def file (1st line
16044
25770
        # is EXPORTS), use it as is; otherwise, prepend...
16045
25771
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16048
25774
          echo EXPORTS > $output_objdir/$soname.def;
16049
25775
          cat $export_symbols >> $output_objdir/$soname.def;
16050
25776
        fi~
16051
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16052
 
      else
16053
 
        ld_shlibs=no
16054
 
      fi
16055
 
      ;;
16056
 
 
16057
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
25777
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
25778
      else
 
25779
        ld_shlibs_GCJ=no
 
25780
      fi
 
25781
      ;;
 
25782
 
 
25783
    interix3*)
 
25784
      hardcode_direct_GCJ=no
 
25785
      hardcode_shlibpath_var_GCJ=no
 
25786
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
25787
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
25788
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
25789
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
25790
      # default) and relocated if they conflict, which is a slow very memory
 
25791
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
25792
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
25793
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
25794
      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'
 
25795
      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'
 
25796
      ;;
 
25797
 
 
25798
    linux* | k*bsd*-gnu)
 
25799
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25800
        tmp_addflag=
 
25801
        case $cc_basename,$host_cpu in
 
25802
        pgcc*)                          # Portland Group C compiler
 
25803
          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'
 
25804
          tmp_addflag=' $pic_flag'
 
25805
          ;;
 
25806
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
25807
          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'
 
25808
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
25809
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
25810
          tmp_addflag=' -i_dynamic' ;;
 
25811
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
25812
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
25813
        ifc* | ifort*)                  # Intel Fortran compiler
 
25814
          tmp_addflag=' -nofor_main' ;;
 
25815
        esac
 
25816
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25817
 
 
25818
        if test $supports_anon_versioning = yes; then
 
25819
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
25820
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
25821
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
25822
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
25823
        fi
 
25824
        link_all_deplibs_GCJ=no
 
25825
      else
 
25826
        ld_shlibs_GCJ=no
 
25827
      fi
 
25828
      ;;
 
25829
 
 
25830
    netbsd* | netbsdelf*-gnu)
16058
25831
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16059
25832
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16060
25833
        wlarc=
16064
25837
      fi
16065
25838
      ;;
16066
25839
 
16067
 
    solaris* | sysv5*)
 
25840
    solaris*)
16068
25841
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16069
25842
        ld_shlibs_GCJ=no
16070
25843
        cat <<EOF 1>&2
16085
25858
      fi
16086
25859
      ;;
16087
25860
 
 
25861
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
25862
      case `$LD -v 2>&1` in
 
25863
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
25864
        ld_shlibs_GCJ=no
 
25865
        cat <<_LT_EOF 1>&2
 
25866
 
 
25867
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
25868
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
25869
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
25870
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
25871
*** your PATH or compiler configuration so that the native linker is
 
25872
*** used, and then restart.
 
25873
 
 
25874
_LT_EOF
 
25875
        ;;
 
25876
        *)
 
25877
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25878
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
25879
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
25880
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
25881
          else
 
25882
            ld_shlibs_GCJ=no
 
25883
          fi
 
25884
        ;;
 
25885
      esac
 
25886
      ;;
 
25887
 
16088
25888
    sunos4*)
16089
25889
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16090
25890
      wlarc=
16092
25892
      hardcode_shlibpath_var_GCJ=no
16093
25893
      ;;
16094
25894
 
16095
 
  linux*)
16096
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16097
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16098
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16099
 
      supports_anon_versioning=no
16100
 
      case `$LD -v 2>/dev/null` in
16101
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16102
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16103
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16104
 
        *\ 2.11.*) ;; # other 2.11 versions
16105
 
        *) supports_anon_versioning=yes ;;
16106
 
      esac
16107
 
      if test $supports_anon_versioning = yes; then
16108
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16109
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16110
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16111
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16112
 
      else
16113
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16114
 
      fi
16115
 
      link_all_deplibs_GCJ=no
16116
 
    else
16117
 
      ld_shlibs_GCJ=no
16118
 
    fi
16119
 
    ;;
16120
 
 
16121
25895
    *)
16122
25896
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16123
25897
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128
25902
      ;;
16129
25903
    esac
16130
25904
 
16131
 
    if test "$ld_shlibs_GCJ" = yes; then
16132
 
      runpath_var=LD_RUN_PATH
16133
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16134
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16135
 
      # ancient GNU ld didn't support --whole-archive et. al.
16136
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16137
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16138
 
      else
16139
 
        whole_archive_flag_spec_GCJ=
16140
 
      fi
 
25905
    if test "$ld_shlibs_GCJ" = no; then
 
25906
      runpath_var=
 
25907
      hardcode_libdir_flag_spec_GCJ=
 
25908
      export_dynamic_flag_spec_GCJ=
 
25909
      whole_archive_flag_spec_GCJ=
16141
25910
    fi
16142
25911
  else
16143
25912
    # PORTME fill in a description of your system's linker (not GNU ld)
16149
25918
      # Note: this linker hardcodes the directories in LIBPATH if there
16150
25919
      # are no directories specified by -L.
16151
25920
      hardcode_minus_L_GCJ=yes
16152
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
25921
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16153
25922
        # Neither direct hardcoding nor static linking is supported with a
16154
25923
        # broken collect2.
16155
25924
        hardcode_direct_GCJ=unsupported
16183
25952
            break
16184
25953
          fi
16185
25954
          done
 
25955
          ;;
16186
25956
        esac
16187
25957
 
16188
25958
        exp_sym_flag='-bexport'
16201
25971
      link_all_deplibs_GCJ=yes
16202
25972
 
16203
25973
      if test "$GCC" = yes; then
16204
 
        case $host_os in aix4.012|aix4.012.*)
 
25974
        case $host_os in aix4.[012]|aix4.[012].*)
16205
25975
        # We only want to do this on AIX 4.2 and lower, the check
16206
25976
        # below for broken collect2 doesn't work under 4.3+
16207
25977
          collect2name=`${CC} -print-prog-name=collect2`
16220
25990
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16221
25991
          hardcode_libdir_separator_GCJ=
16222
25992
          fi
 
25993
          ;;
16223
25994
        esac
16224
25995
        shared_flag='-shared'
 
25996
        if test "$aix_use_runtimelinking" = yes; then
 
25997
          shared_flag="$shared_flag "'${wl}-G'
 
25998
        fi
16225
25999
      else
16226
26000
        # not using gcc
16227
26001
        if test "$host_cpu" = ia64; then
16229
26003
        # chokes on -Wl,-G. The following line is correct:
16230
26004
          shared_flag='-G'
16231
26005
        else
16232
 
        if test "$aix_use_runtimelinking" = yes; then
 
26006
          if test "$aix_use_runtimelinking" = yes; then
16233
26007
            shared_flag='${wl}-G'
16234
26008
          else
16235
26009
            shared_flag='${wl}-bM:SRE'
16236
 
        fi
 
26010
          fi
16237
26011
        fi
16238
26012
      fi
16239
26013
 
16261
26035
}
16262
26036
_ACEOF
16263
26037
rm -f conftest.$ac_objext conftest$ac_exeext
16264
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265
 
  (eval $ac_link) 2>conftest.er1
 
26038
if { (ac_try="$ac_link"
 
26039
case "(($ac_try" in
 
26040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26041
  *) ac_try_echo=$ac_try;;
 
26042
esac
 
26043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26044
  (eval "$ac_link") 2>conftest.er1
16266
26045
  ac_status=$?
16267
26046
  grep -v '^ *+' conftest.er1 >conftest.err
16268
26047
  rm -f conftest.er1
16269
26048
  cat conftest.err >&5
16270
26049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271
26050
  (exit $ac_status); } &&
16272
 
         { ac_try='test -z "$ac_c_werror_flag"
16273
 
                         || test ! -s conftest.err'
16274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275
 
  (eval $ac_try) 2>&5
 
26051
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
26052
  { (case "(($ac_try" in
 
26053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26054
  *) ac_try_echo=$ac_try;;
 
26055
esac
 
26056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26057
  (eval "$ac_try") 2>&5
16276
26058
  ac_status=$?
16277
26059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278
26060
  (exit $ac_status); }; } &&
16279
26061
         { ac_try='test -s conftest$ac_exeext'
16280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281
 
  (eval $ac_try) 2>&5
 
26062
  { (case "(($ac_try" in
 
26063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26064
  *) ac_try_echo=$ac_try;;
 
26065
esac
 
26066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26067
  (eval "$ac_try") 2>&5
16282
26068
  ac_status=$?
16283
26069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284
26070
  (exit $ac_status); }; }; then
16292
26078
  echo "$as_me: failed program was:" >&5
16293
26079
sed 's/^/| /' conftest.$ac_ext >&5
16294
26080
 
 
26081
 
16295
26082
fi
16296
 
rm -f conftest.err conftest.$ac_objext \
 
26083
 
 
26084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297
26085
      conftest$ac_exeext conftest.$ac_ext
16298
26086
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16299
26087
 
16300
26088
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16301
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
26089
        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"
16302
26090
       else
16303
26091
        if test "$host_cpu" = ia64; then
16304
26092
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16305
26093
          allow_undefined_flag_GCJ="-z nodefs"
16306
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
26094
          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"
16307
26095
        else
16308
26096
         # Determine the default libpath from the value encoded in an empty executable.
16309
26097
         cat >conftest.$ac_ext <<_ACEOF
16322
26110
}
16323
26111
_ACEOF
16324
26112
rm -f conftest.$ac_objext conftest$ac_exeext
16325
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16326
 
  (eval $ac_link) 2>conftest.er1
 
26113
if { (ac_try="$ac_link"
 
26114
case "(($ac_try" in
 
26115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26116
  *) ac_try_echo=$ac_try;;
 
26117
esac
 
26118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26119
  (eval "$ac_link") 2>conftest.er1
16327
26120
  ac_status=$?
16328
26121
  grep -v '^ *+' conftest.er1 >conftest.err
16329
26122
  rm -f conftest.er1
16330
26123
  cat conftest.err >&5
16331
26124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332
26125
  (exit $ac_status); } &&
16333
 
         { ac_try='test -z "$ac_c_werror_flag"
16334
 
                         || test ! -s conftest.err'
16335
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336
 
  (eval $ac_try) 2>&5
 
26126
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
26127
  { (case "(($ac_try" in
 
26128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26129
  *) ac_try_echo=$ac_try;;
 
26130
esac
 
26131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26132
  (eval "$ac_try") 2>&5
16337
26133
  ac_status=$?
16338
26134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339
26135
  (exit $ac_status); }; } &&
16340
26136
         { ac_try='test -s conftest$ac_exeext'
16341
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342
 
  (eval $ac_try) 2>&5
 
26137
  { (case "(($ac_try" in
 
26138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26139
  *) ac_try_echo=$ac_try;;
 
26140
esac
 
26141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26142
  (eval "$ac_try") 2>&5
16343
26143
  ac_status=$?
16344
26144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345
26145
  (exit $ac_status); }; }; then
16353
26153
  echo "$as_me: failed program was:" >&5
16354
26154
sed 's/^/| /' conftest.$ac_ext >&5
16355
26155
 
 
26156
 
16356
26157
fi
16357
 
rm -f conftest.err conftest.$ac_objext \
 
26158
 
 
26159
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16358
26160
      conftest$ac_exeext conftest.$ac_ext
16359
26161
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16360
26162
 
16363
26165
          # -berok will link without error, but may produce a broken library.
16364
26166
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16365
26167
          allow_undefined_flag_GCJ=' ${wl}-berok'
16366
 
          # -bexpall does not export symbols beginning with underscore (_)
16367
 
          always_export_symbols_GCJ=yes
16368
26168
          # Exported symbols can be pulled into shared objects from archives
16369
 
          whole_archive_flag_spec_GCJ=' '
 
26169
          whole_archive_flag_spec_GCJ='$convenience'
16370
26170
          archive_cmds_need_lc_GCJ=yes
16371
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16372
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
26171
          # This is similar to how AIX traditionally builds its shared libraries.
 
26172
          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'
16373
26173
        fi
16374
26174
      fi
16375
26175
      ;;
16382
26182
      ld_shlibs_GCJ=no
16383
26183
      ;;
16384
26184
 
16385
 
    bsdi4*)
 
26185
    bsdi[45]*)
16386
26186
      export_dynamic_flag_spec_GCJ=-rdynamic
16387
26187
      ;;
16388
26188
 
16403
26203
      old_archive_From_new_cmds_GCJ='true'
16404
26204
      # FIXME: Should let the user specify the lib program.
16405
26205
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16406
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
26206
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16407
26207
      enable_shared_with_static_runtimes_GCJ=yes
16408
26208
      ;;
16409
26209
 
16410
26210
    darwin* | rhapsody*)
16411
 
    if test "$GXX" = yes ; then
 
26211
      case $host_os in
 
26212
        rhapsody* | darwin1.[012])
 
26213
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
26214
         ;;
 
26215
       *) # Darwin 1.3 on
 
26216
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
26217
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
26218
         else
 
26219
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
26220
             10.[012])
 
26221
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
26222
               ;;
 
26223
             10.*)
 
26224
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
26225
               ;;
 
26226
           esac
 
26227
         fi
 
26228
         ;;
 
26229
      esac
16412
26230
      archive_cmds_need_lc_GCJ=no
16413
 
      case "$host_os" in
16414
 
      rhapsody* | darwin1.[012])
16415
 
        allow_undefined_flag_GCJ='-undefined suppress'
16416
 
        ;;
16417
 
      *) # Darwin 1.3 on
16418
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16419
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16420
 
      else
16421
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16422
 
          10.[012])
16423
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16424
 
            ;;
16425
 
          10.*)
16426
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16427
 
            ;;
16428
 
        esac
16429
 
      fi
16430
 
        ;;
16431
 
      esac
16432
 
        lt_int_apple_cc_single_mod=no
16433
 
        output_verbose_link_cmd='echo'
16434
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16435
 
          lt_int_apple_cc_single_mod=yes
16436
 
        fi
16437
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16438
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16439
 
        else
16440
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16441
 
      fi
16442
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16443
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16444
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16445
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16446
 
        else
16447
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448
 
        fi
16449
 
          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}'
16450
26231
      hardcode_direct_GCJ=no
16451
26232
      hardcode_automatic_GCJ=yes
16452
26233
      hardcode_shlibpath_var_GCJ=unsupported
16453
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
26234
      whole_archive_flag_spec_GCJ=''
16454
26235
      link_all_deplibs_GCJ=yes
 
26236
    if test "$GCC" = yes ; then
 
26237
        output_verbose_link_cmd='echo'
 
26238
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
26239
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
26240
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
26241
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
26242
      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}'
16455
26243
    else
16456
 
      ld_shlibs_GCJ=no
 
26244
      case $cc_basename in
 
26245
        xlc*)
 
26246
         output_verbose_link_cmd='echo'
 
26247
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
26248
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
26249
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
26250
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
26251
          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}'
 
26252
          ;;
 
26253
       *)
 
26254
         ld_shlibs_GCJ=no
 
26255
          ;;
 
26256
      esac
16457
26257
    fi
16458
26258
      ;;
16459
26259
 
16487
26287
      ;;
16488
26288
 
16489
26289
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16490
 
    freebsd* | kfreebsd*-gnu)
 
26290
    freebsd* | dragonfly*)
16491
26291
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16492
26292
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16493
26293
      hardcode_direct_GCJ=yes
16510
26310
      export_dynamic_flag_spec_GCJ='${wl}-E'
16511
26311
      ;;
16512
26312
 
16513
 
    hpux10* | hpux11*)
16514
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16515
 
        case "$host_cpu" in
16516
 
        hppa*64*|ia64*)
 
26313
    hpux10*)
 
26314
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
26315
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
26316
      else
 
26317
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
26318
      fi
 
26319
      if test "$with_gnu_ld" = no; then
 
26320
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
26321
        hardcode_libdir_separator_GCJ=:
 
26322
 
 
26323
        hardcode_direct_GCJ=yes
 
26324
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
26325
 
 
26326
        # hardcode_minus_L: Not really in the search PATH,
 
26327
        # but as the default location of the library.
 
26328
        hardcode_minus_L_GCJ=yes
 
26329
      fi
 
26330
      ;;
 
26331
 
 
26332
    hpux11*)
 
26333
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
26334
        case $host_cpu in
 
26335
        hppa*64*)
16517
26336
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16518
26337
          ;;
 
26338
        ia64*)
 
26339
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
26340
          ;;
16519
26341
        *)
16520
26342
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16521
26343
          ;;
16522
26344
        esac
16523
26345
      else
16524
 
        case "$host_cpu" in
16525
 
        hppa*64*|ia64*)
16526
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
26346
        case $host_cpu in
 
26347
        hppa*64*)
 
26348
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26349
          ;;
 
26350
        ia64*)
 
26351
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16527
26352
          ;;
16528
26353
        *)
16529
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
26354
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16530
26355
          ;;
16531
26356
        esac
16532
26357
      fi
16533
26358
      if test "$with_gnu_ld" = no; then
16534
 
        case "$host_cpu" in
16535
 
        hppa*64*)
16536
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
26359
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
26360
        hardcode_libdir_separator_GCJ=:
 
26361
 
 
26362
        case $host_cpu in
 
26363
        hppa*64*|ia64*)
16537
26364
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16538
 
          hardcode_libdir_separator_GCJ=:
16539
 
          hardcode_direct_GCJ=no
16540
 
          hardcode_shlibpath_var_GCJ=no
16541
 
          ;;
16542
 
        ia64*)
16543
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16544
 
          hardcode_direct_GCJ=no
16545
 
          hardcode_shlibpath_var_GCJ=no
16546
 
 
16547
 
          # hardcode_minus_L: Not really in the search PATH,
16548
 
          # but as the default location of the library.
16549
 
          hardcode_minus_L_GCJ=yes
 
26365
          hardcode_direct_GCJ=no
 
26366
          hardcode_shlibpath_var_GCJ=no
16550
26367
          ;;
16551
26368
        *)
16552
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16553
 
          hardcode_libdir_separator_GCJ=:
16554
26369
          hardcode_direct_GCJ=yes
16555
26370
          export_dynamic_flag_spec_GCJ='${wl}-E'
16556
26371
 
16574
26389
      link_all_deplibs_GCJ=yes
16575
26390
      ;;
16576
26391
 
16577
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
26392
    netbsd* | netbsdelf*-gnu)
16578
26393
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16579
26394
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16580
26395
      else
16598
26413
      hardcode_shlibpath_var_GCJ=no
16599
26414
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16600
26415
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
26416
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16601
26417
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16602
26418
        export_dynamic_flag_spec_GCJ='${wl}-E'
16603
26419
      else
16643
26459
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16644
26460
        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'
16645
26461
        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~
16646
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
26462
        $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'
16647
26463
 
16648
26464
        # Both c and cxx compiler support -rpath directly
16649
26465
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16651
26467
      hardcode_libdir_separator_GCJ=:
16652
26468
      ;;
16653
26469
 
16654
 
    sco3.2v5*)
16655
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16656
 
      hardcode_shlibpath_var_GCJ=no
16657
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16658
 
      runpath_var=LD_RUN_PATH
16659
 
      hardcode_runpath_var=yes
16660
 
      ;;
16661
 
 
16662
26470
    solaris*)
16663
26471
      no_undefined_flag_GCJ=' -z text'
16664
26472
      if test "$GCC" = yes; then
 
26473
        wlarc='${wl}'
16665
26474
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666
26475
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16667
26476
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16668
26477
      else
 
26478
        wlarc=''
16669
26479
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670
26480
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671
26481
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16674
26484
      hardcode_shlibpath_var_GCJ=no
16675
26485
      case $host_os in
16676
26486
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16677
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16678
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
26487
      *)
 
26488
        # The compiler driver will combine linker options so we
 
26489
        # cannot just pass the convience library names through
 
26490
        # without $wl, iff we do not link with $LD.
 
26491
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
26492
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
26493
        case $wlarc in
 
26494
        '')
 
26495
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
26496
        *)
 
26497
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
26498
        esac ;;
16679
26499
      esac
16680
26500
      link_all_deplibs_GCJ=yes
16681
26501
      ;;
16732
26552
      fi
16733
26553
      ;;
16734
26554
 
16735
 
    sysv4.2uw2*)
16736
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16737
 
      hardcode_direct_GCJ=yes
16738
 
      hardcode_minus_L_GCJ=no
16739
 
      hardcode_shlibpath_var_GCJ=no
16740
 
      hardcode_runpath_var=yes
16741
 
      runpath_var=LD_RUN_PATH
16742
 
      ;;
16743
 
 
16744
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16745
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16746
 
      if test "$GCC" = yes; then
16747
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748
 
      else
16749
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16750
 
      fi
16751
 
      runpath_var='LD_RUN_PATH'
16752
 
      hardcode_shlibpath_var_GCJ=no
16753
 
      ;;
16754
 
 
16755
 
    sysv5*)
16756
 
      no_undefined_flag_GCJ=' -z text'
16757
 
      # $CC -shared without GNU ld will not create a library from C++
16758
 
      # object files and a static libstdc++, better avoid it by now
16759
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16761
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16762
 
      hardcode_libdir_flag_spec_GCJ=
16763
 
      hardcode_shlibpath_var_GCJ=no
16764
 
      runpath_var='LD_RUN_PATH'
 
26555
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
26556
      no_undefined_flag_GCJ='${wl}-z,text'
 
26557
      archive_cmds_need_lc_GCJ=no
 
26558
      hardcode_shlibpath_var_GCJ=no
 
26559
      runpath_var='LD_RUN_PATH'
 
26560
 
 
26561
      if test "$GCC" = yes; then
 
26562
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26563
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26564
      else
 
26565
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26566
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26567
      fi
 
26568
      ;;
 
26569
 
 
26570
    sysv5* | sco3.2v5* | sco5v6*)
 
26571
      # Note: We can NOT use -z defs as we might desire, because we do not
 
26572
      # link with -lc, and that would cause any symbols used from libc to
 
26573
      # always be unresolved, which means just about no library would
 
26574
      # ever link correctly.  If we're not using GNU ld we use -z text
 
26575
      # though, which does catch some bad symbols but isn't as heavy-handed
 
26576
      # as -z defs.
 
26577
      no_undefined_flag_GCJ='${wl}-z,text'
 
26578
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
26579
      archive_cmds_need_lc_GCJ=no
 
26580
      hardcode_shlibpath_var_GCJ=no
 
26581
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
26582
      hardcode_libdir_separator_GCJ=':'
 
26583
      link_all_deplibs_GCJ=yes
 
26584
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
26585
      runpath_var='LD_RUN_PATH'
 
26586
 
 
26587
      if test "$GCC" = yes; then
 
26588
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26589
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26590
      else
 
26591
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26592
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
26593
      fi
16765
26594
      ;;
16766
26595
 
16767
26596
    uts4*)
16776
26605
    esac
16777
26606
  fi
16778
26607
 
16779
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16780
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
26608
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
26609
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16781
26610
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16782
26611
 
16783
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16784
 
if test "$GCC" = yes; then
16785
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16786
 
fi
16787
 
 
16788
26612
#
16789
26613
# Do we need to explicitly link libc?
16790
26614
#
16802
26626
      # Test whether the compiler implicitly links with -lc since on some
16803
26627
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16804
26628
      # to ld, don't add -lc before -lgcc.
16805
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16806
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
26629
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
26630
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16807
26631
      $rm conftest*
16808
26632
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16809
26633
 
16817
26641
        libobjs=conftest.$ac_objext
16818
26642
        deplibs=
16819
26643
        wl=$lt_prog_compiler_wl_GCJ
 
26644
        pic_flag=$lt_prog_compiler_pic_GCJ
16820
26645
        compiler_flags=-v
16821
26646
        linker_flags=-v
16822
26647
        verstring=
16839
26664
        cat conftest.err 1>&5
16840
26665
      fi
16841
26666
      $rm conftest*
16842
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16843
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
26667
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
26668
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16844
26669
      ;;
16845
26670
    esac
16846
26671
  fi
16847
26672
  ;;
16848
26673
esac
16849
26674
 
16850
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16851
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
26675
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
26676
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16852
26677
library_names_spec=
16853
26678
libname_spec='lib$name'
16854
26679
soname_spec=
16949
26774
  shlibpath_var=LIBRARY_PATH
16950
26775
  ;;
16951
26776
 
16952
 
bsdi4*)
 
26777
bsdi[45]*)
16953
26778
  version_type=linux
16954
26779
  need_version=no
16955
26780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977
26802
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16978
26803
      dldir=$destdir/`dirname \$dlpath`~
16979
26804
      test -d \$dldir || mkdir -p \$dldir~
16980
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
26805
      $install_prog $dir/$dlname \$dldir/$dlname~
 
26806
      chmod a+x \$dldir/$dlname'
16981
26807
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16982
26808
      dlpath=$dir/\$dldll~
16983
26809
       $rm \$dlpath'
17007
26833
      ;;
17008
26834
    pw32*)
17009
26835
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17010
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
26836
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011
26837
      ;;
17012
26838
    esac
17013
26839
    ;;
17030
26856
  soname_spec='${libname}${release}${major}$shared_ext'
17031
26857
  shlibpath_overrides_runpath=yes
17032
26858
  shlibpath_var=DYLD_LIBRARY_PATH
17033
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
26859
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17034
26860
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17035
26861
  if test "$GCC" = yes; then
17036
26862
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17053
26879
  dynamic_linker=no
17054
26880
  ;;
17055
26881
 
17056
 
kfreebsd*-gnu)
17057
 
  version_type=linux
17058
 
  need_lib_prefix=no
17059
 
  need_version=no
17060
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17061
 
  soname_spec='${libname}${release}${shared_ext}$major'
17062
 
  shlibpath_var=LD_LIBRARY_PATH
17063
 
  shlibpath_overrides_runpath=no
17064
 
  hardcode_into_libs=yes
17065
 
  dynamic_linker='GNU ld.so'
17066
 
  ;;
17067
 
 
17068
 
freebsd*)
17069
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
26882
freebsd* | dragonfly*)
 
26883
  # DragonFly does not have aout.  When/if they implement a new
 
26884
  # versioning mechanism, adjust this.
 
26885
  if test -x /usr/bin/objformat; then
 
26886
    objformat=`/usr/bin/objformat`
 
26887
  else
 
26888
    case $host_os in
 
26889
    freebsd[123]*) objformat=aout ;;
 
26890
    *) objformat=elf ;;
 
26891
    esac
 
26892
  fi
17070
26893
  version_type=freebsd-$objformat
17071
26894
  case $version_type in
17072
26895
    freebsd-elf*)
17084
26907
  freebsd2*)
17085
26908
    shlibpath_overrides_runpath=yes
17086
26909
    ;;
17087
 
  freebsd3.01* | freebsdelf3.01*)
 
26910
  freebsd3.[01]* | freebsdelf3.[01]*)
17088
26911
    shlibpath_overrides_runpath=yes
17089
26912
    hardcode_into_libs=yes
17090
26913
    ;;
17091
 
  *) # from 3.2 on
 
26914
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
26915
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17092
26916
    shlibpath_overrides_runpath=no
17093
26917
    hardcode_into_libs=yes
17094
26918
    ;;
 
26919
  freebsd*) # from 4.6 on
 
26920
    shlibpath_overrides_runpath=yes
 
26921
    hardcode_into_libs=yes
 
26922
    ;;
17095
26923
  esac
17096
26924
  ;;
17097
26925
 
17111
26939
  version_type=sunos
17112
26940
  need_lib_prefix=no
17113
26941
  need_version=no
17114
 
  case "$host_cpu" in
 
26942
  case $host_cpu in
17115
26943
  ia64*)
17116
26944
    shrext_cmds='.so'
17117
26945
    hardcode_into_libs=yes
17151
26979
  postinstall_cmds='chmod 555 $lib'
17152
26980
  ;;
17153
26981
 
 
26982
interix3*)
 
26983
  version_type=linux
 
26984
  need_lib_prefix=no
 
26985
  need_version=no
 
26986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26987
  soname_spec='${libname}${release}${shared_ext}$major'
 
26988
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
26989
  shlibpath_var=LD_LIBRARY_PATH
 
26990
  shlibpath_overrides_runpath=no
 
26991
  hardcode_into_libs=yes
 
26992
  ;;
 
26993
 
17154
26994
irix5* | irix6* | nonstopux*)
17155
26995
  case $host_os in
17156
26996
    nonstopux*) version_type=nonstopux ;;
17194
27034
  ;;
17195
27035
 
17196
27036
# This must be Linux ELF.
17197
 
linux*)
 
27037
linux* | k*bsd*-gnu)
17198
27038
  version_type=linux
17199
27039
  need_lib_prefix=no
17200
27040
  need_version=no
17210
27050
 
17211
27051
  # Append ld.so.conf contents to the search path
17212
27052
  if test -f /etc/ld.so.conf; then
17213
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
27053
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17214
27054
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17215
27055
  fi
17216
27056
 
17235
27075
  dynamic_linker='NetBSD ld.elf_so'
17236
27076
  ;;
17237
27077
 
17238
 
knetbsd*-gnu)
17239
 
  version_type=linux
17240
 
  need_lib_prefix=no
17241
 
  need_version=no
17242
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243
 
  soname_spec='${libname}${release}${shared_ext}$major'
17244
 
  shlibpath_var=LD_LIBRARY_PATH
17245
 
  shlibpath_overrides_runpath=no
17246
 
  hardcode_into_libs=yes
17247
 
  dynamic_linker='GNU ld.so'
17248
 
  ;;
17249
 
 
17250
27078
netbsd*)
17251
27079
  version_type=sunos
17252
27080
  need_lib_prefix=no
17284
27112
 
17285
27113
openbsd*)
17286
27114
  version_type=sunos
 
27115
  sys_lib_dlsearch_path_spec="/usr/lib"
17287
27116
  need_lib_prefix=no
17288
 
  need_version=yes
 
27117
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
27118
  case $host_os in
 
27119
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
27120
    *)                         need_version=no  ;;
 
27121
  esac
17289
27122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290
27123
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17291
27124
  shlibpath_var=LD_LIBRARY_PATH
17323
27156
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17324
27157
  ;;
17325
27158
 
17326
 
sco3.2v5*)
17327
 
  version_type=osf
17328
 
  soname_spec='${libname}${release}${shared_ext}$major'
17329
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330
 
  shlibpath_var=LD_LIBRARY_PATH
17331
 
  ;;
17332
 
 
17333
27159
solaris*)
17334
27160
  version_type=linux
17335
27161
  need_lib_prefix=no
17355
27181
  need_version=yes
17356
27182
  ;;
17357
27183
 
17358
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
27184
sysv4 | sysv4.3*)
17359
27185
  version_type=linux
17360
27186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361
27187
  soname_spec='${libname}${release}${shared_ext}$major'
17388
27214
  fi
17389
27215
  ;;
17390
27216
 
 
27217
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
27218
  version_type=freebsd-elf
 
27219
  need_lib_prefix=no
 
27220
  need_version=no
 
27221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
27222
  soname_spec='${libname}${release}${shared_ext}$major'
 
27223
  shlibpath_var=LD_LIBRARY_PATH
 
27224
  hardcode_into_libs=yes
 
27225
  if test "$with_gnu_ld" = yes; then
 
27226
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
27227
    shlibpath_overrides_runpath=no
 
27228
  else
 
27229
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
27230
    shlibpath_overrides_runpath=yes
 
27231
    case $host_os in
 
27232
      sco3.2v5*)
 
27233
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
27234
        ;;
 
27235
    esac
 
27236
  fi
 
27237
  sys_lib_dlsearch_path_spec='/usr/lib'
 
27238
  ;;
 
27239
 
17391
27240
uts4*)
17392
27241
  version_type=linux
17393
27242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399
27248
  dynamic_linker=no
17400
27249
  ;;
17401
27250
esac
17402
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17403
 
echo "${ECHO_T}$dynamic_linker" >&6
 
27251
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
27252
echo "${ECHO_T}$dynamic_linker" >&6; }
17404
27253
test "$dynamic_linker" = no && can_build_shared=no
17405
27254
 
17406
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17407
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
27255
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
27256
if test "$GCC" = yes; then
 
27257
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
27258
fi
 
27259
 
 
27260
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
27261
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17408
27262
hardcode_action_GCJ=
17409
27263
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17410
 
   test -n "$runpath_var GCJ" || \
17411
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
27264
   test -n "$runpath_var_GCJ" || \
 
27265
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17412
27266
 
17413
27267
  # We can hardcode non-existant directories.
17414
27268
  if test "$hardcode_direct_GCJ" != no &&
17428
27282
  # directories.
17429
27283
  hardcode_action_GCJ=unsupported
17430
27284
fi
17431
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17432
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
27285
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
27286
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17433
27287
 
17434
27288
if test "$hardcode_action_GCJ" = relink; then
17435
27289
  # Fast installation is not supported
17440
27294
  enable_fast_install=needless
17441
27295
fi
17442
27296
 
17443
 
striplib=
17444
 
old_striplib=
17445
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17446
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17447
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17448
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17449
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17450
 
  echo "$as_me:$LINENO: result: yes" >&5
17451
 
echo "${ECHO_T}yes" >&6
17452
 
else
17453
 
# FIXME - insert some real tests, host_os isn't really good enough
17454
 
  case $host_os in
17455
 
   darwin*)
17456
 
       if test -n "$STRIP" ; then
17457
 
         striplib="$STRIP -x"
17458
 
         echo "$as_me:$LINENO: result: yes" >&5
17459
 
echo "${ECHO_T}yes" >&6
17460
 
       else
17461
 
  echo "$as_me:$LINENO: result: no" >&5
17462
 
echo "${ECHO_T}no" >&6
17463
 
fi
17464
 
       ;;
17465
 
   *)
17466
 
  echo "$as_me:$LINENO: result: no" >&5
17467
 
echo "${ECHO_T}no" >&6
17468
 
    ;;
17469
 
  esac
17470
 
fi
17471
 
 
17472
 
if test "x$enable_dlopen" != xyes; then
17473
 
  enable_dlopen=unknown
17474
 
  enable_dlopen_self=unknown
17475
 
  enable_dlopen_self_static=unknown
17476
 
else
17477
 
  lt_cv_dlopen=no
17478
 
  lt_cv_dlopen_libs=
17479
 
 
17480
 
  case $host_os in
17481
 
  beos*)
17482
 
    lt_cv_dlopen="load_add_on"
17483
 
    lt_cv_dlopen_libs=
17484
 
    lt_cv_dlopen_self=yes
17485
 
    ;;
17486
 
 
17487
 
  mingw* | pw32*)
17488
 
    lt_cv_dlopen="LoadLibrary"
17489
 
    lt_cv_dlopen_libs=
17490
 
   ;;
17491
 
 
17492
 
  cygwin*)
17493
 
    lt_cv_dlopen="dlopen"
17494
 
    lt_cv_dlopen_libs=
17495
 
   ;;
17496
 
 
17497
 
  darwin*)
17498
 
  # if libdl is installed we need to link against it
17499
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17500
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17501
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17503
 
else
17504
 
  ac_check_lib_save_LIBS=$LIBS
17505
 
LIBS="-ldl  $LIBS"
17506
 
cat >conftest.$ac_ext <<_ACEOF
17507
 
/* confdefs.h.  */
17508
 
_ACEOF
17509
 
cat confdefs.h >>conftest.$ac_ext
17510
 
cat >>conftest.$ac_ext <<_ACEOF
17511
 
/* end confdefs.h.  */
17512
 
 
17513
 
/* Override any gcc2 internal prototype to avoid an error.  */
17514
 
#ifdef __cplusplus
17515
 
extern "C"
17516
 
#endif
17517
 
/* We use char because int might match the return type of a gcc2
17518
 
   builtin and then its argument prototype would still apply.  */
17519
 
char dlopen ();
17520
 
int
17521
 
main ()
17522
 
{
17523
 
dlopen ();
17524
 
  ;
17525
 
  return 0;
17526
 
}
17527
 
_ACEOF
17528
 
rm -f conftest.$ac_objext conftest$ac_exeext
17529
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530
 
  (eval $ac_link) 2>conftest.er1
17531
 
  ac_status=$?
17532
 
  grep -v '^ *+' conftest.er1 >conftest.err
17533
 
  rm -f conftest.er1
17534
 
  cat conftest.err >&5
17535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536
 
  (exit $ac_status); } &&
17537
 
         { ac_try='test -z "$ac_c_werror_flag"
17538
 
                         || test ! -s conftest.err'
17539
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540
 
  (eval $ac_try) 2>&5
17541
 
  ac_status=$?
17542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543
 
  (exit $ac_status); }; } &&
17544
 
         { ac_try='test -s conftest$ac_exeext'
17545
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546
 
  (eval $ac_try) 2>&5
17547
 
  ac_status=$?
17548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549
 
  (exit $ac_status); }; }; then
17550
 
  ac_cv_lib_dl_dlopen=yes
17551
 
else
17552
 
  echo "$as_me: failed program was:" >&5
17553
 
sed 's/^/| /' conftest.$ac_ext >&5
17554
 
 
17555
 
ac_cv_lib_dl_dlopen=no
17556
 
fi
17557
 
rm -f conftest.err conftest.$ac_objext \
17558
 
      conftest$ac_exeext conftest.$ac_ext
17559
 
LIBS=$ac_check_lib_save_LIBS
17560
 
fi
17561
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17562
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17563
 
if test $ac_cv_lib_dl_dlopen = yes; then
17564
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17565
 
else
17566
 
 
17567
 
    lt_cv_dlopen="dyld"
17568
 
    lt_cv_dlopen_libs=
17569
 
    lt_cv_dlopen_self=yes
17570
 
 
17571
 
fi
17572
 
 
17573
 
   ;;
17574
 
 
17575
 
  *)
17576
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17577
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17578
 
if test "${ac_cv_func_shl_load+set}" = set; then
17579
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17580
 
else
17581
 
  cat >conftest.$ac_ext <<_ACEOF
17582
 
/* confdefs.h.  */
17583
 
_ACEOF
17584
 
cat confdefs.h >>conftest.$ac_ext
17585
 
cat >>conftest.$ac_ext <<_ACEOF
17586
 
/* end confdefs.h.  */
17587
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17588
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17589
 
#define shl_load innocuous_shl_load
17590
 
 
17591
 
/* System header to define __stub macros and hopefully few prototypes,
17592
 
    which can conflict with char shl_load (); below.
17593
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594
 
    <limits.h> exists even on freestanding compilers.  */
17595
 
 
17596
 
#ifdef __STDC__
17597
 
# include <limits.h>
17598
 
#else
17599
 
# include <assert.h>
17600
 
#endif
17601
 
 
17602
 
#undef shl_load
17603
 
 
17604
 
/* Override any gcc2 internal prototype to avoid an error.  */
17605
 
#ifdef __cplusplus
17606
 
extern "C"
17607
 
{
17608
 
#endif
17609
 
/* We use char because int might match the return type of a gcc2
17610
 
   builtin and then its argument prototype would still apply.  */
17611
 
char shl_load ();
17612
 
/* The GNU C library defines this for functions which it implements
17613
 
    to always fail with ENOSYS.  Some functions are actually named
17614
 
    something starting with __ and the normal name is an alias.  */
17615
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17616
 
choke me
17617
 
#else
17618
 
char (*f) () = shl_load;
17619
 
#endif
17620
 
#ifdef __cplusplus
17621
 
}
17622
 
#endif
17623
 
 
17624
 
int
17625
 
main ()
17626
 
{
17627
 
return f != shl_load;
17628
 
  ;
17629
 
  return 0;
17630
 
}
17631
 
_ACEOF
17632
 
rm -f conftest.$ac_objext conftest$ac_exeext
17633
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634
 
  (eval $ac_link) 2>conftest.er1
17635
 
  ac_status=$?
17636
 
  grep -v '^ *+' conftest.er1 >conftest.err
17637
 
  rm -f conftest.er1
17638
 
  cat conftest.err >&5
17639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
 
  (exit $ac_status); } &&
17641
 
         { ac_try='test -z "$ac_c_werror_flag"
17642
 
                         || test ! -s conftest.err'
17643
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644
 
  (eval $ac_try) 2>&5
17645
 
  ac_status=$?
17646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647
 
  (exit $ac_status); }; } &&
17648
 
         { ac_try='test -s conftest$ac_exeext'
17649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650
 
  (eval $ac_try) 2>&5
17651
 
  ac_status=$?
17652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653
 
  (exit $ac_status); }; }; then
17654
 
  ac_cv_func_shl_load=yes
17655
 
else
17656
 
  echo "$as_me: failed program was:" >&5
17657
 
sed 's/^/| /' conftest.$ac_ext >&5
17658
 
 
17659
 
ac_cv_func_shl_load=no
17660
 
fi
17661
 
rm -f conftest.err conftest.$ac_objext \
17662
 
      conftest$ac_exeext conftest.$ac_ext
17663
 
fi
17664
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17665
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17666
 
if test $ac_cv_func_shl_load = yes; then
17667
 
  lt_cv_dlopen="shl_load"
17668
 
else
17669
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17670
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17671
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17672
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17673
 
else
17674
 
  ac_check_lib_save_LIBS=$LIBS
17675
 
LIBS="-ldld  $LIBS"
17676
 
cat >conftest.$ac_ext <<_ACEOF
17677
 
/* confdefs.h.  */
17678
 
_ACEOF
17679
 
cat confdefs.h >>conftest.$ac_ext
17680
 
cat >>conftest.$ac_ext <<_ACEOF
17681
 
/* end confdefs.h.  */
17682
 
 
17683
 
/* Override any gcc2 internal prototype to avoid an error.  */
17684
 
#ifdef __cplusplus
17685
 
extern "C"
17686
 
#endif
17687
 
/* We use char because int might match the return type of a gcc2
17688
 
   builtin and then its argument prototype would still apply.  */
17689
 
char shl_load ();
17690
 
int
17691
 
main ()
17692
 
{
17693
 
shl_load ();
17694
 
  ;
17695
 
  return 0;
17696
 
}
17697
 
_ACEOF
17698
 
rm -f conftest.$ac_objext conftest$ac_exeext
17699
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700
 
  (eval $ac_link) 2>conftest.er1
17701
 
  ac_status=$?
17702
 
  grep -v '^ *+' conftest.er1 >conftest.err
17703
 
  rm -f conftest.er1
17704
 
  cat conftest.err >&5
17705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706
 
  (exit $ac_status); } &&
17707
 
         { ac_try='test -z "$ac_c_werror_flag"
17708
 
                         || test ! -s conftest.err'
17709
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710
 
  (eval $ac_try) 2>&5
17711
 
  ac_status=$?
17712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713
 
  (exit $ac_status); }; } &&
17714
 
         { ac_try='test -s conftest$ac_exeext'
17715
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716
 
  (eval $ac_try) 2>&5
17717
 
  ac_status=$?
17718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719
 
  (exit $ac_status); }; }; then
17720
 
  ac_cv_lib_dld_shl_load=yes
17721
 
else
17722
 
  echo "$as_me: failed program was:" >&5
17723
 
sed 's/^/| /' conftest.$ac_ext >&5
17724
 
 
17725
 
ac_cv_lib_dld_shl_load=no
17726
 
fi
17727
 
rm -f conftest.err conftest.$ac_objext \
17728
 
      conftest$ac_exeext conftest.$ac_ext
17729
 
LIBS=$ac_check_lib_save_LIBS
17730
 
fi
17731
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17732
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17733
 
if test $ac_cv_lib_dld_shl_load = yes; then
17734
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17735
 
else
17736
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17737
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17738
 
if test "${ac_cv_func_dlopen+set}" = set; then
17739
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17740
 
else
17741
 
  cat >conftest.$ac_ext <<_ACEOF
17742
 
/* confdefs.h.  */
17743
 
_ACEOF
17744
 
cat confdefs.h >>conftest.$ac_ext
17745
 
cat >>conftest.$ac_ext <<_ACEOF
17746
 
/* end confdefs.h.  */
17747
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17748
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17749
 
#define dlopen innocuous_dlopen
17750
 
 
17751
 
/* System header to define __stub macros and hopefully few prototypes,
17752
 
    which can conflict with char dlopen (); below.
17753
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17754
 
    <limits.h> exists even on freestanding compilers.  */
17755
 
 
17756
 
#ifdef __STDC__
17757
 
# include <limits.h>
17758
 
#else
17759
 
# include <assert.h>
17760
 
#endif
17761
 
 
17762
 
#undef dlopen
17763
 
 
17764
 
/* Override any gcc2 internal prototype to avoid an error.  */
17765
 
#ifdef __cplusplus
17766
 
extern "C"
17767
 
{
17768
 
#endif
17769
 
/* We use char because int might match the return type of a gcc2
17770
 
   builtin and then its argument prototype would still apply.  */
17771
 
char dlopen ();
17772
 
/* The GNU C library defines this for functions which it implements
17773
 
    to always fail with ENOSYS.  Some functions are actually named
17774
 
    something starting with __ and the normal name is an alias.  */
17775
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17776
 
choke me
17777
 
#else
17778
 
char (*f) () = dlopen;
17779
 
#endif
17780
 
#ifdef __cplusplus
17781
 
}
17782
 
#endif
17783
 
 
17784
 
int
17785
 
main ()
17786
 
{
17787
 
return f != dlopen;
17788
 
  ;
17789
 
  return 0;
17790
 
}
17791
 
_ACEOF
17792
 
rm -f conftest.$ac_objext conftest$ac_exeext
17793
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794
 
  (eval $ac_link) 2>conftest.er1
17795
 
  ac_status=$?
17796
 
  grep -v '^ *+' conftest.er1 >conftest.err
17797
 
  rm -f conftest.er1
17798
 
  cat conftest.err >&5
17799
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800
 
  (exit $ac_status); } &&
17801
 
         { ac_try='test -z "$ac_c_werror_flag"
17802
 
                         || test ! -s conftest.err'
17803
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804
 
  (eval $ac_try) 2>&5
17805
 
  ac_status=$?
17806
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807
 
  (exit $ac_status); }; } &&
17808
 
         { ac_try='test -s conftest$ac_exeext'
17809
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810
 
  (eval $ac_try) 2>&5
17811
 
  ac_status=$?
17812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813
 
  (exit $ac_status); }; }; then
17814
 
  ac_cv_func_dlopen=yes
17815
 
else
17816
 
  echo "$as_me: failed program was:" >&5
17817
 
sed 's/^/| /' conftest.$ac_ext >&5
17818
 
 
17819
 
ac_cv_func_dlopen=no
17820
 
fi
17821
 
rm -f conftest.err conftest.$ac_objext \
17822
 
      conftest$ac_exeext conftest.$ac_ext
17823
 
fi
17824
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17825
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17826
 
if test $ac_cv_func_dlopen = yes; then
17827
 
  lt_cv_dlopen="dlopen"
17828
 
else
17829
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17830
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17831
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17832
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17833
 
else
17834
 
  ac_check_lib_save_LIBS=$LIBS
17835
 
LIBS="-ldl  $LIBS"
17836
 
cat >conftest.$ac_ext <<_ACEOF
17837
 
/* confdefs.h.  */
17838
 
_ACEOF
17839
 
cat confdefs.h >>conftest.$ac_ext
17840
 
cat >>conftest.$ac_ext <<_ACEOF
17841
 
/* end confdefs.h.  */
17842
 
 
17843
 
/* Override any gcc2 internal prototype to avoid an error.  */
17844
 
#ifdef __cplusplus
17845
 
extern "C"
17846
 
#endif
17847
 
/* We use char because int might match the return type of a gcc2
17848
 
   builtin and then its argument prototype would still apply.  */
17849
 
char dlopen ();
17850
 
int
17851
 
main ()
17852
 
{
17853
 
dlopen ();
17854
 
  ;
17855
 
  return 0;
17856
 
}
17857
 
_ACEOF
17858
 
rm -f conftest.$ac_objext conftest$ac_exeext
17859
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860
 
  (eval $ac_link) 2>conftest.er1
17861
 
  ac_status=$?
17862
 
  grep -v '^ *+' conftest.er1 >conftest.err
17863
 
  rm -f conftest.er1
17864
 
  cat conftest.err >&5
17865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
 
  (exit $ac_status); } &&
17867
 
         { ac_try='test -z "$ac_c_werror_flag"
17868
 
                         || test ! -s conftest.err'
17869
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870
 
  (eval $ac_try) 2>&5
17871
 
  ac_status=$?
17872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873
 
  (exit $ac_status); }; } &&
17874
 
         { ac_try='test -s conftest$ac_exeext'
17875
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876
 
  (eval $ac_try) 2>&5
17877
 
  ac_status=$?
17878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879
 
  (exit $ac_status); }; }; then
17880
 
  ac_cv_lib_dl_dlopen=yes
17881
 
else
17882
 
  echo "$as_me: failed program was:" >&5
17883
 
sed 's/^/| /' conftest.$ac_ext >&5
17884
 
 
17885
 
ac_cv_lib_dl_dlopen=no
17886
 
fi
17887
 
rm -f conftest.err conftest.$ac_objext \
17888
 
      conftest$ac_exeext conftest.$ac_ext
17889
 
LIBS=$ac_check_lib_save_LIBS
17890
 
fi
17891
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17892
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17893
 
if test $ac_cv_lib_dl_dlopen = yes; then
17894
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17895
 
else
17896
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17897
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17898
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17899
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17900
 
else
17901
 
  ac_check_lib_save_LIBS=$LIBS
17902
 
LIBS="-lsvld  $LIBS"
17903
 
cat >conftest.$ac_ext <<_ACEOF
17904
 
/* confdefs.h.  */
17905
 
_ACEOF
17906
 
cat confdefs.h >>conftest.$ac_ext
17907
 
cat >>conftest.$ac_ext <<_ACEOF
17908
 
/* end confdefs.h.  */
17909
 
 
17910
 
/* Override any gcc2 internal prototype to avoid an error.  */
17911
 
#ifdef __cplusplus
17912
 
extern "C"
17913
 
#endif
17914
 
/* We use char because int might match the return type of a gcc2
17915
 
   builtin and then its argument prototype would still apply.  */
17916
 
char dlopen ();
17917
 
int
17918
 
main ()
17919
 
{
17920
 
dlopen ();
17921
 
  ;
17922
 
  return 0;
17923
 
}
17924
 
_ACEOF
17925
 
rm -f conftest.$ac_objext conftest$ac_exeext
17926
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927
 
  (eval $ac_link) 2>conftest.er1
17928
 
  ac_status=$?
17929
 
  grep -v '^ *+' conftest.er1 >conftest.err
17930
 
  rm -f conftest.er1
17931
 
  cat conftest.err >&5
17932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933
 
  (exit $ac_status); } &&
17934
 
         { ac_try='test -z "$ac_c_werror_flag"
17935
 
                         || test ! -s conftest.err'
17936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937
 
  (eval $ac_try) 2>&5
17938
 
  ac_status=$?
17939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940
 
  (exit $ac_status); }; } &&
17941
 
         { ac_try='test -s conftest$ac_exeext'
17942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943
 
  (eval $ac_try) 2>&5
17944
 
  ac_status=$?
17945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946
 
  (exit $ac_status); }; }; then
17947
 
  ac_cv_lib_svld_dlopen=yes
17948
 
else
17949
 
  echo "$as_me: failed program was:" >&5
17950
 
sed 's/^/| /' conftest.$ac_ext >&5
17951
 
 
17952
 
ac_cv_lib_svld_dlopen=no
17953
 
fi
17954
 
rm -f conftest.err conftest.$ac_objext \
17955
 
      conftest$ac_exeext conftest.$ac_ext
17956
 
LIBS=$ac_check_lib_save_LIBS
17957
 
fi
17958
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17959
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17960
 
if test $ac_cv_lib_svld_dlopen = yes; then
17961
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17962
 
else
17963
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17964
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17965
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17967
 
else
17968
 
  ac_check_lib_save_LIBS=$LIBS
17969
 
LIBS="-ldld  $LIBS"
17970
 
cat >conftest.$ac_ext <<_ACEOF
17971
 
/* confdefs.h.  */
17972
 
_ACEOF
17973
 
cat confdefs.h >>conftest.$ac_ext
17974
 
cat >>conftest.$ac_ext <<_ACEOF
17975
 
/* end confdefs.h.  */
17976
 
 
17977
 
/* Override any gcc2 internal prototype to avoid an error.  */
17978
 
#ifdef __cplusplus
17979
 
extern "C"
17980
 
#endif
17981
 
/* We use char because int might match the return type of a gcc2
17982
 
   builtin and then its argument prototype would still apply.  */
17983
 
char dld_link ();
17984
 
int
17985
 
main ()
17986
 
{
17987
 
dld_link ();
17988
 
  ;
17989
 
  return 0;
17990
 
}
17991
 
_ACEOF
17992
 
rm -f conftest.$ac_objext conftest$ac_exeext
17993
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994
 
  (eval $ac_link) 2>conftest.er1
17995
 
  ac_status=$?
17996
 
  grep -v '^ *+' conftest.er1 >conftest.err
17997
 
  rm -f conftest.er1
17998
 
  cat conftest.err >&5
17999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000
 
  (exit $ac_status); } &&
18001
 
         { ac_try='test -z "$ac_c_werror_flag"
18002
 
                         || test ! -s conftest.err'
18003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004
 
  (eval $ac_try) 2>&5
18005
 
  ac_status=$?
18006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007
 
  (exit $ac_status); }; } &&
18008
 
         { ac_try='test -s conftest$ac_exeext'
18009
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010
 
  (eval $ac_try) 2>&5
18011
 
  ac_status=$?
18012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013
 
  (exit $ac_status); }; }; then
18014
 
  ac_cv_lib_dld_dld_link=yes
18015
 
else
18016
 
  echo "$as_me: failed program was:" >&5
18017
 
sed 's/^/| /' conftest.$ac_ext >&5
18018
 
 
18019
 
ac_cv_lib_dld_dld_link=no
18020
 
fi
18021
 
rm -f conftest.err conftest.$ac_objext \
18022
 
      conftest$ac_exeext conftest.$ac_ext
18023
 
LIBS=$ac_check_lib_save_LIBS
18024
 
fi
18025
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18026
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18027
 
if test $ac_cv_lib_dld_dld_link = yes; then
18028
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18029
 
fi
18030
 
 
18031
 
 
18032
 
fi
18033
 
 
18034
 
 
18035
 
fi
18036
 
 
18037
 
 
18038
 
fi
18039
 
 
18040
 
 
18041
 
fi
18042
 
 
18043
 
 
18044
 
fi
18045
 
 
18046
 
    ;;
18047
 
  esac
18048
 
 
18049
 
  if test "x$lt_cv_dlopen" != xno; then
18050
 
    enable_dlopen=yes
18051
 
  else
18052
 
    enable_dlopen=no
18053
 
  fi
18054
 
 
18055
 
  case $lt_cv_dlopen in
18056
 
  dlopen)
18057
 
    save_CPPFLAGS="$CPPFLAGS"
18058
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18059
 
 
18060
 
    save_LDFLAGS="$LDFLAGS"
18061
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18062
 
 
18063
 
    save_LIBS="$LIBS"
18064
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18065
 
 
18066
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18067
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18068
 
if test "${lt_cv_dlopen_self+set}" = set; then
18069
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18070
 
else
18071
 
          if test "$cross_compiling" = yes; then :
18072
 
  lt_cv_dlopen_self=cross
18073
 
else
18074
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18075
 
  lt_status=$lt_dlunknown
18076
 
  cat > conftest.$ac_ext <<EOF
18077
 
#line 18077 "configure"
18078
 
#include "confdefs.h"
18079
 
 
18080
 
#if HAVE_DLFCN_H
18081
 
#include <dlfcn.h>
18082
 
#endif
18083
 
 
18084
 
#include <stdio.h>
18085
 
 
18086
 
#ifdef RTLD_GLOBAL
18087
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18088
 
#else
18089
 
#  ifdef DL_GLOBAL
18090
 
#    define LT_DLGLOBAL         DL_GLOBAL
18091
 
#  else
18092
 
#    define LT_DLGLOBAL         0
18093
 
#  endif
18094
 
#endif
18095
 
 
18096
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18097
 
   find out it does not work in some platform. */
18098
 
#ifndef LT_DLLAZY_OR_NOW
18099
 
#  ifdef RTLD_LAZY
18100
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18101
 
#  else
18102
 
#    ifdef DL_LAZY
18103
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18104
 
#    else
18105
 
#      ifdef RTLD_NOW
18106
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18107
 
#      else
18108
 
#        ifdef DL_NOW
18109
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18110
 
#        else
18111
 
#          define LT_DLLAZY_OR_NOW      0
18112
 
#        endif
18113
 
#      endif
18114
 
#    endif
18115
 
#  endif
18116
 
#endif
18117
 
 
18118
 
#ifdef __cplusplus
18119
 
extern "C" void exit (int);
18120
 
#endif
18121
 
 
18122
 
void fnord() { int i=42;}
18123
 
int main ()
18124
 
{
18125
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18126
 
  int status = $lt_dlunknown;
18127
 
 
18128
 
  if (self)
18129
 
    {
18130
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18131
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18132
 
      /* dlclose (self); */
18133
 
    }
18134
 
 
18135
 
    exit (status);
18136
 
}
18137
 
EOF
18138
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18139
 
  (eval $ac_link) 2>&5
18140
 
  ac_status=$?
18141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18143
 
    (./conftest; exit; ) 2>/dev/null
18144
 
    lt_status=$?
18145
 
    case x$lt_status in
18146
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18147
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18148
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18149
 
    esac
18150
 
  else :
18151
 
    # compilation failed
18152
 
    lt_cv_dlopen_self=no
18153
 
  fi
18154
 
fi
18155
 
rm -fr conftest*
18156
 
 
18157
 
 
18158
 
fi
18159
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18160
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18161
 
 
18162
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18163
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18164
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18165
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18166
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18167
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18168
 
else
18169
 
          if test "$cross_compiling" = yes; then :
18170
 
  lt_cv_dlopen_self_static=cross
18171
 
else
18172
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18173
 
  lt_status=$lt_dlunknown
18174
 
  cat > conftest.$ac_ext <<EOF
18175
 
#line 18175 "configure"
18176
 
#include "confdefs.h"
18177
 
 
18178
 
#if HAVE_DLFCN_H
18179
 
#include <dlfcn.h>
18180
 
#endif
18181
 
 
18182
 
#include <stdio.h>
18183
 
 
18184
 
#ifdef RTLD_GLOBAL
18185
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18186
 
#else
18187
 
#  ifdef DL_GLOBAL
18188
 
#    define LT_DLGLOBAL         DL_GLOBAL
18189
 
#  else
18190
 
#    define LT_DLGLOBAL         0
18191
 
#  endif
18192
 
#endif
18193
 
 
18194
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18195
 
   find out it does not work in some platform. */
18196
 
#ifndef LT_DLLAZY_OR_NOW
18197
 
#  ifdef RTLD_LAZY
18198
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18199
 
#  else
18200
 
#    ifdef DL_LAZY
18201
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18202
 
#    else
18203
 
#      ifdef RTLD_NOW
18204
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18205
 
#      else
18206
 
#        ifdef DL_NOW
18207
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18208
 
#        else
18209
 
#          define LT_DLLAZY_OR_NOW      0
18210
 
#        endif
18211
 
#      endif
18212
 
#    endif
18213
 
#  endif
18214
 
#endif
18215
 
 
18216
 
#ifdef __cplusplus
18217
 
extern "C" void exit (int);
18218
 
#endif
18219
 
 
18220
 
void fnord() { int i=42;}
18221
 
int main ()
18222
 
{
18223
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18224
 
  int status = $lt_dlunknown;
18225
 
 
18226
 
  if (self)
18227
 
    {
18228
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18229
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18230
 
      /* dlclose (self); */
18231
 
    }
18232
 
 
18233
 
    exit (status);
18234
 
}
18235
 
EOF
18236
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237
 
  (eval $ac_link) 2>&5
18238
 
  ac_status=$?
18239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18241
 
    (./conftest; exit; ) 2>/dev/null
18242
 
    lt_status=$?
18243
 
    case x$lt_status in
18244
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18245
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18246
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18247
 
    esac
18248
 
  else :
18249
 
    # compilation failed
18250
 
    lt_cv_dlopen_self_static=no
18251
 
  fi
18252
 
fi
18253
 
rm -fr conftest*
18254
 
 
18255
 
 
18256
 
fi
18257
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18258
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18259
 
    fi
18260
 
 
18261
 
    CPPFLAGS="$save_CPPFLAGS"
18262
 
    LDFLAGS="$save_LDFLAGS"
18263
 
    LIBS="$save_LIBS"
18264
 
    ;;
18265
 
  esac
18266
 
 
18267
 
  case $lt_cv_dlopen_self in
18268
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18269
 
  *) enable_dlopen_self=unknown ;;
18270
 
  esac
18271
 
 
18272
 
  case $lt_cv_dlopen_self_static in
18273
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18274
 
  *) enable_dlopen_self_static=unknown ;;
18275
 
  esac
18276
 
fi
18277
 
 
18278
27297
 
18279
27298
# The else clause should only fire when bootstrapping the
18280
27299
# libtool distribution, otherwise you forgot to ship ltmain.sh
18289
27308
  # Now quote all the things that may contain metacharacters while being
18290
27309
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18291
27310
  # variables and quote the copies for generation of the libtool script.
18292
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
27311
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18293
27312
    SED SHELL STRIP \
18294
27313
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18295
27314
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18390
27409
# The host system.
18391
27410
host_alias=$host_alias
18392
27411
host=$host
 
27412
host_os=$host_os
 
27413
 
 
27414
# The build system.
 
27415
build_alias=$build_alias
 
27416
build=$build
 
27417
build_os=$build_os
18393
27418
 
18394
27419
# An echo program that does not interpret backslashes.
18395
27420
echo=$lt_echo
18401
27426
# A C compiler.
18402
27427
LTCC=$lt_LTCC
18403
27428
 
 
27429
# LTCC compiler flags.
 
27430
LTCFLAGS=$lt_LTCFLAGS
 
27431
 
18404
27432
# A language-specific compiler.
18405
27433
CC=$lt_compiler_GCJ
18406
27434
 
18466
27494
# Does compiler simultaneously support -c and -o options?
18467
27495
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18468
27496
 
18469
 
# Must we lock files when doing compilation ?
 
27497
# Must we lock files when doing compilation?
18470
27498
need_locks=$lt_need_locks
18471
27499
 
18472
27500
# Do we need the lib prefix for modules?
18691
27719
      RC)
18692
27720
 
18693
27721
 
18694
 
 
18695
27722
# Source file extension for RC test sources.
18696
27723
ac_ext=rc
18697
27724
 
18710
27737
# If no C compiler was specified, use CC.
18711
27738
LTCC=${LTCC-"$CC"}
18712
27739
 
 
27740
# If no C compiler flags were specified, use CFLAGS.
 
27741
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
27742
 
18713
27743
# Allow CC to be a program name with arguments.
18714
27744
compiler=$CC
18715
27745
 
18716
27746
 
 
27747
# save warnings/boilerplate of simple test code
 
27748
ac_outfile=conftest.$ac_objext
 
27749
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
27750
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
27751
_lt_compiler_boilerplate=`cat conftest.err`
 
27752
$rm conftest*
 
27753
 
 
27754
ac_outfile=conftest.$ac_objext
 
27755
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
27756
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
27757
_lt_linker_boilerplate=`cat conftest.err`
 
27758
$rm conftest*
 
27759
 
 
27760
 
18717
27761
# Allow CC to be a program name with arguments.
18718
27762
lt_save_CC="$CC"
18719
27763
CC=${RC-"windres"}
18720
27764
compiler=$CC
18721
27765
compiler_RC=$CC
 
27766
for cc_temp in $compiler""; do
 
27767
  case $cc_temp in
 
27768
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
27769
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
27770
    \-*) ;;
 
27771
    *) break;;
 
27772
  esac
 
27773
done
 
27774
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
27775
 
18722
27776
lt_cv_prog_compiler_c_o_RC=yes
18723
27777
 
18724
27778
# The else clause should only fire when bootstrapping the
18734
27788
  # Now quote all the things that may contain metacharacters while being
18735
27789
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18736
27790
  # variables and quote the copies for generation of the libtool script.
18737
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
27791
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18738
27792
    SED SHELL STRIP \
18739
27793
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18740
27794
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18835
27889
# The host system.
18836
27890
host_alias=$host_alias
18837
27891
host=$host
 
27892
host_os=$host_os
 
27893
 
 
27894
# The build system.
 
27895
build_alias=$build_alias
 
27896
build=$build
 
27897
build_os=$build_os
18838
27898
 
18839
27899
# An echo program that does not interpret backslashes.
18840
27900
echo=$lt_echo
18846
27906
# A C compiler.
18847
27907
LTCC=$lt_LTCC
18848
27908
 
 
27909
# LTCC compiler flags.
 
27910
LTCFLAGS=$lt_LTCFLAGS
 
27911
 
18849
27912
# A language-specific compiler.
18850
27913
CC=$lt_compiler_RC
18851
27914
 
18911
27974
# Does compiler simultaneously support -c and -o options?
18912
27975
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18913
27976
 
18914
 
# Must we lock files when doing compilation ?
 
27977
# Must we lock files when doing compilation?
18915
27978
need_locks=$lt_need_locks
18916
27979
 
18917
27980
# Do we need the lib prefix for modules?
19187
28250
 
19188
28251
 
19189
28252
 
19190
 
echo "$as_me:$LINENO: checking for X" >&5
19191
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
19192
 
 
19193
 
 
19194
 
# Check whether --with-x or --without-x was given.
 
28253
{ echo "$as_me:$LINENO: checking for X" >&5
 
28254
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
28255
 
 
28256
 
 
28257
# Check whether --with-x was given.
19195
28258
if test "${with_x+set}" = set; then
19196
 
  withval="$with_x"
 
28259
  withval=$with_x;
 
28260
fi
19197
28261
 
19198
 
fi;
19199
28262
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19200
28263
if test "x$with_x" = xno; then
19201
28264
  # The user explicitly disabled X.
19202
28265
  have_x=disabled
19203
28266
else
19204
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19205
 
    # Both variables are already set.
19206
 
    have_x=yes
19207
 
  else
19208
 
    if test "${ac_cv_have_x+set}" = set; then
 
28267
  case $x_includes,$x_libraries in #(
 
28268
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
28269
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
28270
   { (exit 1); exit 1; }; };; #(
 
28271
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19209
28272
  echo $ECHO_N "(cached) $ECHO_C" >&6
19210
28273
else
19211
28274
  # One or both of the vars are not set, and there is no cached value.
19212
28275
ac_x_includes=no ac_x_libraries=no
19213
 
rm -fr conftest.dir
 
28276
rm -f -r conftest.dir
19214
28277
if mkdir conftest.dir; then
19215
28278
  cd conftest.dir
19216
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19217
28279
  cat >Imakefile <<'_ACEOF'
19218
 
acfindx:
19219
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
28280
incroot:
 
28281
        @echo incroot='${INCROOT}'
 
28282
usrlibdir:
 
28283
        @echo usrlibdir='${USRLIBDIR}'
 
28284
libdir:
 
28285
        @echo libdir='${LIBDIR}'
19220
28286
_ACEOF
19221
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
28287
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19222
28288
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19223
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
28289
    for ac_var in incroot usrlibdir libdir; do
 
28290
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
28291
    done
19224
28292
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19225
28293
    for ac_extension in a so sl; do
19226
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19227
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
28294
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
28295
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
19228
28296
        ac_im_usrlibdir=$ac_im_libdir; break
19229
28297
      fi
19230
28298
    done
19232
28300
    # bogus both because they are the default anyway, and because
19233
28301
    # using them would break gcc on systems where it needs fixed includes.
19234
28302
    case $ac_im_incroot in
19235
 
        /usr/include) ;;
 
28303
        /usr/include) ac_x_includes= ;;
19236
28304
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19237
28305
    esac
19238
28306
    case $ac_im_usrlibdir in
19241
28309
    esac
19242
28310
  fi
19243
28311
  cd ..
19244
 
  rm -fr conftest.dir
 
28312
  rm -f -r conftest.dir
19245
28313
fi
19246
28314
 
19247
28315
# Standard set of common directories for X headers.
19282
28350
/usr/openwin/share/include'
19283
28351
 
19284
28352
if test "$ac_x_includes" = no; then
19285
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
28353
  # Guess where to find include files, by looking for Xlib.h.
19286
28354
  # First, try using that file with no special directory specified.
19287
28355
  cat >conftest.$ac_ext <<_ACEOF
19288
28356
/* confdefs.h.  */
19290
28358
cat confdefs.h >>conftest.$ac_ext
19291
28359
cat >>conftest.$ac_ext <<_ACEOF
19292
28360
/* end confdefs.h.  */
19293
 
#include <X11/Intrinsic.h>
 
28361
#include <X11/Xlib.h>
19294
28362
_ACEOF
19295
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19296
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
28363
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28364
case "(($ac_try" in
 
28365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28366
  *) ac_try_echo=$ac_try;;
 
28367
esac
 
28368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28369
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19297
28370
  ac_status=$?
19298
28371
  grep -v '^ *+' conftest.er1 >conftest.err
19299
28372
  rm -f conftest.er1
19317
28390
sed 's/^/| /' conftest.$ac_ext >&5
19318
28391
 
19319
28392
  for ac_dir in $ac_x_header_dirs; do
19320
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
28393
  if test -r "$ac_dir/X11/Xlib.h"; then
19321
28394
    ac_x_includes=$ac_dir
19322
28395
    break
19323
28396
  fi
19324
28397
done
19325
28398
fi
 
28399
 
19326
28400
rm -f conftest.err conftest.$ac_ext
19327
28401
fi # $ac_x_includes = no
19328
28402
 
19331
28405
  # See if we find them without any special options.
19332
28406
  # Don't add to $LIBS permanently.
19333
28407
  ac_save_LIBS=$LIBS
19334
 
  LIBS="-lXt $LIBS"
 
28408
  LIBS="-lX11 $LIBS"
19335
28409
  cat >conftest.$ac_ext <<_ACEOF
19336
28410
/* confdefs.h.  */
19337
28411
_ACEOF
19338
28412
cat confdefs.h >>conftest.$ac_ext
19339
28413
cat >>conftest.$ac_ext <<_ACEOF
19340
28414
/* end confdefs.h.  */
19341
 
#include <X11/Intrinsic.h>
 
28415
#include <X11/Xlib.h>
19342
28416
int
19343
28417
main ()
19344
28418
{
19345
 
XtMalloc (0)
 
28419
XrmInitialize ()
19346
28420
  ;
19347
28421
  return 0;
19348
28422
}
19349
28423
_ACEOF
19350
28424
rm -f conftest.$ac_objext conftest$ac_exeext
19351
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352
 
  (eval $ac_link) 2>conftest.er1
 
28425
if { (ac_try="$ac_link"
 
28426
case "(($ac_try" in
 
28427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28428
  *) ac_try_echo=$ac_try;;
 
28429
esac
 
28430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28431
  (eval "$ac_link") 2>conftest.er1
19353
28432
  ac_status=$?
19354
28433
  grep -v '^ *+' conftest.er1 >conftest.err
19355
28434
  rm -f conftest.er1
19356
28435
  cat conftest.err >&5
19357
28436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358
28437
  (exit $ac_status); } &&
19359
 
         { ac_try='test -z "$ac_c_werror_flag"
19360
 
                         || test ! -s conftest.err'
19361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362
 
  (eval $ac_try) 2>&5
 
28438
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28439
  { (case "(($ac_try" in
 
28440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28441
  *) ac_try_echo=$ac_try;;
 
28442
esac
 
28443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28444
  (eval "$ac_try") 2>&5
19363
28445
  ac_status=$?
19364
28446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365
28447
  (exit $ac_status); }; } &&
19366
28448
         { ac_try='test -s conftest$ac_exeext'
19367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368
 
  (eval $ac_try) 2>&5
 
28449
  { (case "(($ac_try" in
 
28450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28451
  *) ac_try_echo=$ac_try;;
 
28452
esac
 
28453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28454
  (eval "$ac_try") 2>&5
19369
28455
  ac_status=$?
19370
28456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371
28457
  (exit $ac_status); }; }; then
19376
28462
  echo "$as_me: failed program was:" >&5
19377
28463
sed 's/^/| /' conftest.$ac_ext >&5
19378
28464
 
19379
 
LIBS=$ac_save_LIBS
 
28465
        LIBS=$ac_save_LIBS
19380
28466
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19381
28467
do
19382
28468
  # Don't even attempt the hair of trying to link an X program!
19383
28469
  for ac_extension in a so sl; do
19384
 
    if test -r $ac_dir/libXt.$ac_extension; then
 
28470
    if test -r "$ac_dir/libX11.$ac_extension"; then
19385
28471
      ac_x_libraries=$ac_dir
19386
28472
      break 2
19387
28473
    fi
19388
28474
  done
19389
28475
done
19390
28476
fi
19391
 
rm -f conftest.err conftest.$ac_objext \
 
28477
 
 
28478
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392
28479
      conftest$ac_exeext conftest.$ac_ext
19393
28480
fi # $ac_x_libraries = no
19394
28481
 
19395
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19396
 
  # Didn't find X anywhere.  Cache the known absence of X.
19397
 
  ac_cv_have_x="have_x=no"
19398
 
else
19399
 
  # Record where we found X for the cache.
19400
 
  ac_cv_have_x="have_x=yes \
19401
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19402
 
fi
19403
 
fi
19404
 
 
19405
 
  fi
 
28482
case $ac_x_includes,$ac_x_libraries in #(
 
28483
  no,* | *,no | *\'*)
 
28484
    # Didn't find X, or a directory has "'" in its name.
 
28485
    ac_cv_have_x="have_x=no";; #(
 
28486
  *)
 
28487
    # Record where we found X for the cache.
 
28488
    ac_cv_have_x="have_x=yes\
 
28489
        ac_x_includes='$ac_x_includes'\
 
28490
        ac_x_libraries='$ac_x_libraries'"
 
28491
esac
 
28492
fi
 
28493
;; #(
 
28494
    *) have_x=yes;;
 
28495
  esac
19406
28496
  eval "$ac_cv_have_x"
19407
28497
fi # $with_x != no
19408
28498
 
19409
28499
if test "$have_x" != yes; then
19410
 
  echo "$as_me:$LINENO: result: $have_x" >&5
19411
 
echo "${ECHO_T}$have_x" >&6
 
28500
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
28501
echo "${ECHO_T}$have_x" >&6; }
19412
28502
  no_x=yes
19413
28503
else
19414
28504
  # If each of the values was on the command line, it overrides each guess.
19415
28505
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19416
28506
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19417
28507
  # Update the cache value to reflect the command line values.
19418
 
  ac_cv_have_x="have_x=yes \
19419
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19420
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19421
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
28508
  ac_cv_have_x="have_x=yes\
 
28509
        ac_x_includes='$x_includes'\
 
28510
        ac_x_libraries='$x_libraries'"
 
28511
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
28512
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19422
28513
fi
19423
28514
 
19424
28515
if test "$no_x" = yes; then
19439
28530
    X_LIBS="$X_LIBS -L$x_libraries"
19440
28531
    # For Solaris; some versions of Sun CC require a space after -R and
19441
28532
    # others require no space.  Words are not sufficient . . . .
19442
 
    case `(uname -sr) 2>/dev/null` in
19443
 
    "SunOS 5"*)
19444
 
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19445
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19446
 
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19447
 
      cat >conftest.$ac_ext <<_ACEOF
 
28533
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
28534
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
28535
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
28536
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
28537
    ac_c_werror_flag=yes
 
28538
    cat >conftest.$ac_ext <<_ACEOF
19448
28539
/* confdefs.h.  */
19449
28540
_ACEOF
19450
28541
cat confdefs.h >>conftest.$ac_ext
19460
28551
}
19461
28552
_ACEOF
19462
28553
rm -f conftest.$ac_objext conftest$ac_exeext
19463
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464
 
  (eval $ac_link) 2>conftest.er1
 
28554
if { (ac_try="$ac_link"
 
28555
case "(($ac_try" in
 
28556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28557
  *) ac_try_echo=$ac_try;;
 
28558
esac
 
28559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28560
  (eval "$ac_link") 2>conftest.er1
19465
28561
  ac_status=$?
19466
28562
  grep -v '^ *+' conftest.er1 >conftest.err
19467
28563
  rm -f conftest.er1
19468
28564
  cat conftest.err >&5
19469
28565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470
28566
  (exit $ac_status); } &&
19471
 
         { ac_try='test -z "$ac_c_werror_flag"
19472
 
                         || test ! -s conftest.err'
19473
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474
 
  (eval $ac_try) 2>&5
 
28567
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28568
  { (case "(($ac_try" in
 
28569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28570
  *) ac_try_echo=$ac_try;;
 
28571
esac
 
28572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28573
  (eval "$ac_try") 2>&5
19475
28574
  ac_status=$?
19476
28575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477
28576
  (exit $ac_status); }; } &&
19478
28577
         { ac_try='test -s conftest$ac_exeext'
19479
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480
 
  (eval $ac_try) 2>&5
 
28578
  { (case "(($ac_try" in
 
28579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28580
  *) ac_try_echo=$ac_try;;
 
28581
esac
 
28582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28583
  (eval "$ac_try") 2>&5
19481
28584
  ac_status=$?
19482
28585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483
28586
  (exit $ac_status); }; }; then
19484
 
  ac_R_nospace=yes
 
28587
  { echo "$as_me:$LINENO: result: no" >&5
 
28588
echo "${ECHO_T}no" >&6; }
 
28589
       X_LIBS="$X_LIBS -R$x_libraries"
19485
28590
else
19486
28591
  echo "$as_me: failed program was:" >&5
19487
28592
sed 's/^/| /' conftest.$ac_ext >&5
19488
28593
 
19489
 
ac_R_nospace=no
19490
 
fi
19491
 
rm -f conftest.err conftest.$ac_objext \
19492
 
      conftest$ac_exeext conftest.$ac_ext
19493
 
      if test $ac_R_nospace = yes; then
19494
 
        echo "$as_me:$LINENO: result: no" >&5
19495
 
echo "${ECHO_T}no" >&6
19496
 
        X_LIBS="$X_LIBS -R$x_libraries"
19497
 
      else
19498
28594
        LIBS="$ac_xsave_LIBS -R $x_libraries"
19499
 
        cat >conftest.$ac_ext <<_ACEOF
 
28595
       cat >conftest.$ac_ext <<_ACEOF
19500
28596
/* confdefs.h.  */
19501
28597
_ACEOF
19502
28598
cat confdefs.h >>conftest.$ac_ext
19512
28608
}
19513
28609
_ACEOF
19514
28610
rm -f conftest.$ac_objext conftest$ac_exeext
19515
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19516
 
  (eval $ac_link) 2>conftest.er1
 
28611
if { (ac_try="$ac_link"
 
28612
case "(($ac_try" in
 
28613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28614
  *) ac_try_echo=$ac_try;;
 
28615
esac
 
28616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28617
  (eval "$ac_link") 2>conftest.er1
19517
28618
  ac_status=$?
19518
28619
  grep -v '^ *+' conftest.er1 >conftest.err
19519
28620
  rm -f conftest.er1
19520
28621
  cat conftest.err >&5
19521
28622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522
28623
  (exit $ac_status); } &&
19523
 
         { ac_try='test -z "$ac_c_werror_flag"
19524
 
                         || test ! -s conftest.err'
19525
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526
 
  (eval $ac_try) 2>&5
 
28624
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28625
  { (case "(($ac_try" in
 
28626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28627
  *) ac_try_echo=$ac_try;;
 
28628
esac
 
28629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28630
  (eval "$ac_try") 2>&5
19527
28631
  ac_status=$?
19528
28632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529
28633
  (exit $ac_status); }; } &&
19530
28634
         { ac_try='test -s conftest$ac_exeext'
19531
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532
 
  (eval $ac_try) 2>&5
 
28635
  { (case "(($ac_try" in
 
28636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28637
  *) ac_try_echo=$ac_try;;
 
28638
esac
 
28639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28640
  (eval "$ac_try") 2>&5
19533
28641
  ac_status=$?
19534
28642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535
28643
  (exit $ac_status); }; }; then
19536
 
  ac_R_space=yes
19537
 
else
19538
 
  echo "$as_me: failed program was:" >&5
19539
 
sed 's/^/| /' conftest.$ac_ext >&5
19540
 
 
19541
 
ac_R_space=no
19542
 
fi
19543
 
rm -f conftest.err conftest.$ac_objext \
19544
 
      conftest$ac_exeext conftest.$ac_ext
19545
 
        if test $ac_R_space = yes; then
19546
 
          echo "$as_me:$LINENO: result: yes" >&5
19547
 
echo "${ECHO_T}yes" >&6
 
28644
  { echo "$as_me:$LINENO: result: yes" >&5
 
28645
echo "${ECHO_T}yes" >&6; }
19548
28646
          X_LIBS="$X_LIBS -R $x_libraries"
19549
 
        else
19550
 
          echo "$as_me:$LINENO: result: neither works" >&5
19551
 
echo "${ECHO_T}neither works" >&6
19552
 
        fi
19553
 
      fi
19554
 
      LIBS=$ac_xsave_LIBS
19555
 
    esac
 
28647
else
 
28648
  echo "$as_me: failed program was:" >&5
 
28649
sed 's/^/| /' conftest.$ac_ext >&5
 
28650
 
 
28651
        { echo "$as_me:$LINENO: result: neither works" >&5
 
28652
echo "${ECHO_T}neither works" >&6; }
 
28653
fi
 
28654
 
 
28655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28656
      conftest$ac_exeext conftest.$ac_ext
 
28657
fi
 
28658
 
 
28659
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28660
      conftest$ac_exeext conftest.$ac_ext
 
28661
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
28662
    LIBS=$ac_xsave_LIBS
19556
28663
  fi
19557
28664
 
19558
28665
  # Check for system-dependent libraries X programs must link with.
19573
28680
cat >>conftest.$ac_ext <<_ACEOF
19574
28681
/* end confdefs.h.  */
19575
28682
 
19576
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
28683
/* Override any GCC internal prototype to avoid an error.
 
28684
   Use char because int might match the return type of a GCC
 
28685
   builtin and then its argument prototype would still apply.  */
19577
28686
#ifdef __cplusplus
19578
28687
extern "C"
19579
28688
#endif
19580
 
/* We use char because int might match the return type of a gcc2
19581
 
   builtin and then its argument prototype would still apply.  */
19582
28689
char XOpenDisplay ();
19583
28690
int
19584
28691
main ()
19585
28692
{
19586
 
XOpenDisplay ();
 
28693
return XOpenDisplay ();
19587
28694
  ;
19588
28695
  return 0;
19589
28696
}
19590
28697
_ACEOF
19591
28698
rm -f conftest.$ac_objext conftest$ac_exeext
19592
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19593
 
  (eval $ac_link) 2>conftest.er1
 
28699
if { (ac_try="$ac_link"
 
28700
case "(($ac_try" in
 
28701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28702
  *) ac_try_echo=$ac_try;;
 
28703
esac
 
28704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28705
  (eval "$ac_link") 2>conftest.er1
19594
28706
  ac_status=$?
19595
28707
  grep -v '^ *+' conftest.er1 >conftest.err
19596
28708
  rm -f conftest.er1
19597
28709
  cat conftest.err >&5
19598
28710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599
28711
  (exit $ac_status); } &&
19600
 
         { ac_try='test -z "$ac_c_werror_flag"
19601
 
                         || test ! -s conftest.err'
19602
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603
 
  (eval $ac_try) 2>&5
 
28712
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28713
  { (case "(($ac_try" in
 
28714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28715
  *) ac_try_echo=$ac_try;;
 
28716
esac
 
28717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28718
  (eval "$ac_try") 2>&5
19604
28719
  ac_status=$?
19605
28720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606
28721
  (exit $ac_status); }; } &&
19607
28722
         { ac_try='test -s conftest$ac_exeext'
19608
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609
 
  (eval $ac_try) 2>&5
 
28723
  { (case "(($ac_try" in
 
28724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28725
  *) ac_try_echo=$ac_try;;
 
28726
esac
 
28727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28728
  (eval "$ac_try") 2>&5
19610
28729
  ac_status=$?
19611
28730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612
28731
  (exit $ac_status); }; }; then
19615
28734
  echo "$as_me: failed program was:" >&5
19616
28735
sed 's/^/| /' conftest.$ac_ext >&5
19617
28736
 
19618
 
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19619
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
28737
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
28738
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19620
28739
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19621
28740
  echo $ECHO_N "(cached) $ECHO_C" >&6
19622
28741
else
19629
28748
cat >>conftest.$ac_ext <<_ACEOF
19630
28749
/* end confdefs.h.  */
19631
28750
 
19632
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
28751
/* Override any GCC internal prototype to avoid an error.
 
28752
   Use char because int might match the return type of a GCC
 
28753
   builtin and then its argument prototype would still apply.  */
19633
28754
#ifdef __cplusplus
19634
28755
extern "C"
19635
28756
#endif
19636
 
/* We use char because int might match the return type of a gcc2
19637
 
   builtin and then its argument prototype would still apply.  */
19638
28757
char dnet_ntoa ();
19639
28758
int
19640
28759
main ()
19641
28760
{
19642
 
dnet_ntoa ();
 
28761
return dnet_ntoa ();
19643
28762
  ;
19644
28763
  return 0;
19645
28764
}
19646
28765
_ACEOF
19647
28766
rm -f conftest.$ac_objext conftest$ac_exeext
19648
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649
 
  (eval $ac_link) 2>conftest.er1
 
28767
if { (ac_try="$ac_link"
 
28768
case "(($ac_try" in
 
28769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28770
  *) ac_try_echo=$ac_try;;
 
28771
esac
 
28772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28773
  (eval "$ac_link") 2>conftest.er1
19650
28774
  ac_status=$?
19651
28775
  grep -v '^ *+' conftest.er1 >conftest.err
19652
28776
  rm -f conftest.er1
19653
28777
  cat conftest.err >&5
19654
28778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655
28779
  (exit $ac_status); } &&
19656
 
         { ac_try='test -z "$ac_c_werror_flag"
19657
 
                         || test ! -s conftest.err'
19658
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659
 
  (eval $ac_try) 2>&5
 
28780
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28781
  { (case "(($ac_try" in
 
28782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28783
  *) ac_try_echo=$ac_try;;
 
28784
esac
 
28785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28786
  (eval "$ac_try") 2>&5
19660
28787
  ac_status=$?
19661
28788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662
28789
  (exit $ac_status); }; } &&
19663
28790
         { ac_try='test -s conftest$ac_exeext'
19664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665
 
  (eval $ac_try) 2>&5
 
28791
  { (case "(($ac_try" in
 
28792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28793
  *) ac_try_echo=$ac_try;;
 
28794
esac
 
28795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28796
  (eval "$ac_try") 2>&5
19666
28797
  ac_status=$?
19667
28798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668
28799
  (exit $ac_status); }; }; then
19671
28802
  echo "$as_me: failed program was:" >&5
19672
28803
sed 's/^/| /' conftest.$ac_ext >&5
19673
28804
 
19674
 
ac_cv_lib_dnet_dnet_ntoa=no
 
28805
        ac_cv_lib_dnet_dnet_ntoa=no
19675
28806
fi
19676
 
rm -f conftest.err conftest.$ac_objext \
 
28807
 
 
28808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677
28809
      conftest$ac_exeext conftest.$ac_ext
19678
28810
LIBS=$ac_check_lib_save_LIBS
19679
28811
fi
19680
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19681
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
28812
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
28813
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19682
28814
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19683
28815
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19684
28816
fi
19685
28817
 
19686
28818
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19687
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19688
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
28819
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
28820
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19689
28821
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19690
28822
  echo $ECHO_N "(cached) $ECHO_C" >&6
19691
28823
else
19698
28830
cat >>conftest.$ac_ext <<_ACEOF
19699
28831
/* end confdefs.h.  */
19700
28832
 
19701
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
28833
/* Override any GCC internal prototype to avoid an error.
 
28834
   Use char because int might match the return type of a GCC
 
28835
   builtin and then its argument prototype would still apply.  */
19702
28836
#ifdef __cplusplus
19703
28837
extern "C"
19704
28838
#endif
19705
 
/* We use char because int might match the return type of a gcc2
19706
 
   builtin and then its argument prototype would still apply.  */
19707
28839
char dnet_ntoa ();
19708
28840
int
19709
28841
main ()
19710
28842
{
19711
 
dnet_ntoa ();
 
28843
return dnet_ntoa ();
19712
28844
  ;
19713
28845
  return 0;
19714
28846
}
19715
28847
_ACEOF
19716
28848
rm -f conftest.$ac_objext conftest$ac_exeext
19717
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19718
 
  (eval $ac_link) 2>conftest.er1
 
28849
if { (ac_try="$ac_link"
 
28850
case "(($ac_try" in
 
28851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28852
  *) ac_try_echo=$ac_try;;
 
28853
esac
 
28854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28855
  (eval "$ac_link") 2>conftest.er1
19719
28856
  ac_status=$?
19720
28857
  grep -v '^ *+' conftest.er1 >conftest.err
19721
28858
  rm -f conftest.er1
19722
28859
  cat conftest.err >&5
19723
28860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724
28861
  (exit $ac_status); } &&
19725
 
         { ac_try='test -z "$ac_c_werror_flag"
19726
 
                         || test ! -s conftest.err'
19727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728
 
  (eval $ac_try) 2>&5
 
28862
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28863
  { (case "(($ac_try" in
 
28864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28865
  *) ac_try_echo=$ac_try;;
 
28866
esac
 
28867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28868
  (eval "$ac_try") 2>&5
19729
28869
  ac_status=$?
19730
28870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731
28871
  (exit $ac_status); }; } &&
19732
28872
         { ac_try='test -s conftest$ac_exeext'
19733
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734
 
  (eval $ac_try) 2>&5
 
28873
  { (case "(($ac_try" in
 
28874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28875
  *) ac_try_echo=$ac_try;;
 
28876
esac
 
28877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28878
  (eval "$ac_try") 2>&5
19735
28879
  ac_status=$?
19736
28880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737
28881
  (exit $ac_status); }; }; then
19740
28884
  echo "$as_me: failed program was:" >&5
19741
28885
sed 's/^/| /' conftest.$ac_ext >&5
19742
28886
 
19743
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
28887
        ac_cv_lib_dnet_stub_dnet_ntoa=no
19744
28888
fi
19745
 
rm -f conftest.err conftest.$ac_objext \
 
28889
 
 
28890
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19746
28891
      conftest$ac_exeext conftest.$ac_ext
19747
28892
LIBS=$ac_check_lib_save_LIBS
19748
28893
fi
19749
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19750
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
28894
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
28895
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19751
28896
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19752
28897
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19753
28898
fi
19754
28899
 
19755
28900
    fi
19756
28901
fi
19757
 
rm -f conftest.err conftest.$ac_objext \
 
28902
 
 
28903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758
28904
      conftest$ac_exeext conftest.$ac_ext
19759
28905
    LIBS="$ac_xsave_LIBS"
19760
28906
 
19766
28912
    # on Irix 5.2, according to T.E. Dickey.
19767
28913
    # The functions gethostbyname, getservbyname, and inet_addr are
19768
28914
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19769
 
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
19770
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
28915
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
28916
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19771
28917
if test "${ac_cv_func_gethostbyname+set}" = set; then
19772
28918
  echo $ECHO_N "(cached) $ECHO_C" >&6
19773
28919
else
19794
28940
 
19795
28941
#undef gethostbyname
19796
28942
 
19797
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
28943
/* Override any GCC internal prototype to avoid an error.
 
28944
   Use char because int might match the return type of a GCC
 
28945
   builtin and then its argument prototype would still apply.  */
19798
28946
#ifdef __cplusplus
19799
28947
extern "C"
19800
 
{
19801
28948
#endif
19802
 
/* We use char because int might match the return type of a gcc2
19803
 
   builtin and then its argument prototype would still apply.  */
19804
28949
char gethostbyname ();
19805
28950
/* The GNU C library defines this for functions which it implements
19806
28951
    to always fail with ENOSYS.  Some functions are actually named
19807
28952
    something starting with __ and the normal name is an alias.  */
19808
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
28953
#if defined __stub_gethostbyname || defined __stub___gethostbyname
19809
28954
choke me
19810
 
#else
19811
 
char (*f) () = gethostbyname;
19812
 
#endif
19813
 
#ifdef __cplusplus
19814
 
}
19815
28955
#endif
19816
28956
 
19817
28957
int
19818
28958
main ()
19819
28959
{
19820
 
return f != gethostbyname;
 
28960
return gethostbyname ();
19821
28961
  ;
19822
28962
  return 0;
19823
28963
}
19824
28964
_ACEOF
19825
28965
rm -f conftest.$ac_objext conftest$ac_exeext
19826
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827
 
  (eval $ac_link) 2>conftest.er1
 
28966
if { (ac_try="$ac_link"
 
28967
case "(($ac_try" in
 
28968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28969
  *) ac_try_echo=$ac_try;;
 
28970
esac
 
28971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28972
  (eval "$ac_link") 2>conftest.er1
19828
28973
  ac_status=$?
19829
28974
  grep -v '^ *+' conftest.er1 >conftest.err
19830
28975
  rm -f conftest.er1
19831
28976
  cat conftest.err >&5
19832
28977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833
28978
  (exit $ac_status); } &&
19834
 
         { ac_try='test -z "$ac_c_werror_flag"
19835
 
                         || test ! -s conftest.err'
19836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837
 
  (eval $ac_try) 2>&5
 
28979
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
28980
  { (case "(($ac_try" in
 
28981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28982
  *) ac_try_echo=$ac_try;;
 
28983
esac
 
28984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28985
  (eval "$ac_try") 2>&5
19838
28986
  ac_status=$?
19839
28987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840
28988
  (exit $ac_status); }; } &&
19841
28989
         { ac_try='test -s conftest$ac_exeext'
19842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843
 
  (eval $ac_try) 2>&5
 
28990
  { (case "(($ac_try" in
 
28991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28992
  *) ac_try_echo=$ac_try;;
 
28993
esac
 
28994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28995
  (eval "$ac_try") 2>&5
19844
28996
  ac_status=$?
19845
28997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846
28998
  (exit $ac_status); }; }; then
19849
29001
  echo "$as_me: failed program was:" >&5
19850
29002
sed 's/^/| /' conftest.$ac_ext >&5
19851
29003
 
19852
 
ac_cv_func_gethostbyname=no
 
29004
        ac_cv_func_gethostbyname=no
19853
29005
fi
19854
 
rm -f conftest.err conftest.$ac_objext \
 
29006
 
 
29007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855
29008
      conftest$ac_exeext conftest.$ac_ext
19856
29009
fi
19857
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19858
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
29010
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
29011
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19859
29012
 
19860
29013
    if test $ac_cv_func_gethostbyname = no; then
19861
 
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19862
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
29014
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
29015
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19863
29016
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19864
29017
  echo $ECHO_N "(cached) $ECHO_C" >&6
19865
29018
else
19872
29025
cat >>conftest.$ac_ext <<_ACEOF
19873
29026
/* end confdefs.h.  */
19874
29027
 
19875
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29028
/* Override any GCC internal prototype to avoid an error.
 
29029
   Use char because int might match the return type of a GCC
 
29030
   builtin and then its argument prototype would still apply.  */
19876
29031
#ifdef __cplusplus
19877
29032
extern "C"
19878
29033
#endif
19879
 
/* We use char because int might match the return type of a gcc2
19880
 
   builtin and then its argument prototype would still apply.  */
19881
29034
char gethostbyname ();
19882
29035
int
19883
29036
main ()
19884
29037
{
19885
 
gethostbyname ();
 
29038
return gethostbyname ();
19886
29039
  ;
19887
29040
  return 0;
19888
29041
}
19889
29042
_ACEOF
19890
29043
rm -f conftest.$ac_objext conftest$ac_exeext
19891
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19892
 
  (eval $ac_link) 2>conftest.er1
 
29044
if { (ac_try="$ac_link"
 
29045
case "(($ac_try" in
 
29046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29047
  *) ac_try_echo=$ac_try;;
 
29048
esac
 
29049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29050
  (eval "$ac_link") 2>conftest.er1
19893
29051
  ac_status=$?
19894
29052
  grep -v '^ *+' conftest.er1 >conftest.err
19895
29053
  rm -f conftest.er1
19896
29054
  cat conftest.err >&5
19897
29055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898
29056
  (exit $ac_status); } &&
19899
 
         { ac_try='test -z "$ac_c_werror_flag"
19900
 
                         || test ! -s conftest.err'
19901
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902
 
  (eval $ac_try) 2>&5
 
29057
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29058
  { (case "(($ac_try" in
 
29059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29060
  *) ac_try_echo=$ac_try;;
 
29061
esac
 
29062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29063
  (eval "$ac_try") 2>&5
19903
29064
  ac_status=$?
19904
29065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905
29066
  (exit $ac_status); }; } &&
19906
29067
         { ac_try='test -s conftest$ac_exeext'
19907
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908
 
  (eval $ac_try) 2>&5
 
29068
  { (case "(($ac_try" in
 
29069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29070
  *) ac_try_echo=$ac_try;;
 
29071
esac
 
29072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29073
  (eval "$ac_try") 2>&5
19909
29074
  ac_status=$?
19910
29075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911
29076
  (exit $ac_status); }; }; then
19914
29079
  echo "$as_me: failed program was:" >&5
19915
29080
sed 's/^/| /' conftest.$ac_ext >&5
19916
29081
 
19917
 
ac_cv_lib_nsl_gethostbyname=no
 
29082
        ac_cv_lib_nsl_gethostbyname=no
19918
29083
fi
19919
 
rm -f conftest.err conftest.$ac_objext \
 
29084
 
 
29085
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19920
29086
      conftest$ac_exeext conftest.$ac_ext
19921
29087
LIBS=$ac_check_lib_save_LIBS
19922
29088
fi
19923
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19924
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
29089
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
29090
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19925
29091
if test $ac_cv_lib_nsl_gethostbyname = yes; then
19926
29092
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19927
29093
fi
19928
29094
 
19929
29095
      if test $ac_cv_lib_nsl_gethostbyname = no; then
19930
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19931
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
29096
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
29097
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19932
29098
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19933
29099
  echo $ECHO_N "(cached) $ECHO_C" >&6
19934
29100
else
19941
29107
cat >>conftest.$ac_ext <<_ACEOF
19942
29108
/* end confdefs.h.  */
19943
29109
 
19944
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29110
/* Override any GCC internal prototype to avoid an error.
 
29111
   Use char because int might match the return type of a GCC
 
29112
   builtin and then its argument prototype would still apply.  */
19945
29113
#ifdef __cplusplus
19946
29114
extern "C"
19947
29115
#endif
19948
 
/* We use char because int might match the return type of a gcc2
19949
 
   builtin and then its argument prototype would still apply.  */
19950
29116
char gethostbyname ();
19951
29117
int
19952
29118
main ()
19953
29119
{
19954
 
gethostbyname ();
 
29120
return gethostbyname ();
19955
29121
  ;
19956
29122
  return 0;
19957
29123
}
19958
29124
_ACEOF
19959
29125
rm -f conftest.$ac_objext conftest$ac_exeext
19960
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961
 
  (eval $ac_link) 2>conftest.er1
 
29126
if { (ac_try="$ac_link"
 
29127
case "(($ac_try" in
 
29128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29129
  *) ac_try_echo=$ac_try;;
 
29130
esac
 
29131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29132
  (eval "$ac_link") 2>conftest.er1
19962
29133
  ac_status=$?
19963
29134
  grep -v '^ *+' conftest.er1 >conftest.err
19964
29135
  rm -f conftest.er1
19965
29136
  cat conftest.err >&5
19966
29137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967
29138
  (exit $ac_status); } &&
19968
 
         { ac_try='test -z "$ac_c_werror_flag"
19969
 
                         || test ! -s conftest.err'
19970
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971
 
  (eval $ac_try) 2>&5
 
29139
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29140
  { (case "(($ac_try" in
 
29141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29142
  *) ac_try_echo=$ac_try;;
 
29143
esac
 
29144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29145
  (eval "$ac_try") 2>&5
19972
29146
  ac_status=$?
19973
29147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974
29148
  (exit $ac_status); }; } &&
19975
29149
         { ac_try='test -s conftest$ac_exeext'
19976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977
 
  (eval $ac_try) 2>&5
 
29150
  { (case "(($ac_try" in
 
29151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29152
  *) ac_try_echo=$ac_try;;
 
29153
esac
 
29154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29155
  (eval "$ac_try") 2>&5
19978
29156
  ac_status=$?
19979
29157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980
29158
  (exit $ac_status); }; }; then
19983
29161
  echo "$as_me: failed program was:" >&5
19984
29162
sed 's/^/| /' conftest.$ac_ext >&5
19985
29163
 
19986
 
ac_cv_lib_bsd_gethostbyname=no
 
29164
        ac_cv_lib_bsd_gethostbyname=no
19987
29165
fi
19988
 
rm -f conftest.err conftest.$ac_objext \
 
29166
 
 
29167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19989
29168
      conftest$ac_exeext conftest.$ac_ext
19990
29169
LIBS=$ac_check_lib_save_LIBS
19991
29170
fi
19992
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19993
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
29171
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
29172
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19994
29173
if test $ac_cv_lib_bsd_gethostbyname = yes; then
19995
29174
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19996
29175
fi
20005
29184
    # variants that don't use the name server (or something).  -lsocket
20006
29185
    # must be given before -lnsl if both are needed.  We assume that
20007
29186
    # if connect needs -lnsl, so does gethostbyname.
20008
 
    echo "$as_me:$LINENO: checking for connect" >&5
20009
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
29187
    { echo "$as_me:$LINENO: checking for connect" >&5
 
29188
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20010
29189
if test "${ac_cv_func_connect+set}" = set; then
20011
29190
  echo $ECHO_N "(cached) $ECHO_C" >&6
20012
29191
else
20033
29212
 
20034
29213
#undef connect
20035
29214
 
20036
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29215
/* Override any GCC internal prototype to avoid an error.
 
29216
   Use char because int might match the return type of a GCC
 
29217
   builtin and then its argument prototype would still apply.  */
20037
29218
#ifdef __cplusplus
20038
29219
extern "C"
20039
 
{
20040
29220
#endif
20041
 
/* We use char because int might match the return type of a gcc2
20042
 
   builtin and then its argument prototype would still apply.  */
20043
29221
char connect ();
20044
29222
/* The GNU C library defines this for functions which it implements
20045
29223
    to always fail with ENOSYS.  Some functions are actually named
20046
29224
    something starting with __ and the normal name is an alias.  */
20047
 
#if defined (__stub_connect) || defined (__stub___connect)
 
29225
#if defined __stub_connect || defined __stub___connect
20048
29226
choke me
20049
 
#else
20050
 
char (*f) () = connect;
20051
 
#endif
20052
 
#ifdef __cplusplus
20053
 
}
20054
29227
#endif
20055
29228
 
20056
29229
int
20057
29230
main ()
20058
29231
{
20059
 
return f != connect;
 
29232
return connect ();
20060
29233
  ;
20061
29234
  return 0;
20062
29235
}
20063
29236
_ACEOF
20064
29237
rm -f conftest.$ac_objext conftest$ac_exeext
20065
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20066
 
  (eval $ac_link) 2>conftest.er1
 
29238
if { (ac_try="$ac_link"
 
29239
case "(($ac_try" in
 
29240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29241
  *) ac_try_echo=$ac_try;;
 
29242
esac
 
29243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29244
  (eval "$ac_link") 2>conftest.er1
20067
29245
  ac_status=$?
20068
29246
  grep -v '^ *+' conftest.er1 >conftest.err
20069
29247
  rm -f conftest.er1
20070
29248
  cat conftest.err >&5
20071
29249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072
29250
  (exit $ac_status); } &&
20073
 
         { ac_try='test -z "$ac_c_werror_flag"
20074
 
                         || test ! -s conftest.err'
20075
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076
 
  (eval $ac_try) 2>&5
 
29251
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29252
  { (case "(($ac_try" in
 
29253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29254
  *) ac_try_echo=$ac_try;;
 
29255
esac
 
29256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29257
  (eval "$ac_try") 2>&5
20077
29258
  ac_status=$?
20078
29259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079
29260
  (exit $ac_status); }; } &&
20080
29261
         { ac_try='test -s conftest$ac_exeext'
20081
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082
 
  (eval $ac_try) 2>&5
 
29262
  { (case "(($ac_try" in
 
29263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29264
  *) ac_try_echo=$ac_try;;
 
29265
esac
 
29266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29267
  (eval "$ac_try") 2>&5
20083
29268
  ac_status=$?
20084
29269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085
29270
  (exit $ac_status); }; }; then
20088
29273
  echo "$as_me: failed program was:" >&5
20089
29274
sed 's/^/| /' conftest.$ac_ext >&5
20090
29275
 
20091
 
ac_cv_func_connect=no
 
29276
        ac_cv_func_connect=no
20092
29277
fi
20093
 
rm -f conftest.err conftest.$ac_objext \
 
29278
 
 
29279
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094
29280
      conftest$ac_exeext conftest.$ac_ext
20095
29281
fi
20096
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20097
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
29282
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
29283
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20098
29284
 
20099
29285
    if test $ac_cv_func_connect = no; then
20100
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20101
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
29286
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
29287
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20102
29288
if test "${ac_cv_lib_socket_connect+set}" = set; then
20103
29289
  echo $ECHO_N "(cached) $ECHO_C" >&6
20104
29290
else
20111
29297
cat >>conftest.$ac_ext <<_ACEOF
20112
29298
/* end confdefs.h.  */
20113
29299
 
20114
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29300
/* Override any GCC internal prototype to avoid an error.
 
29301
   Use char because int might match the return type of a GCC
 
29302
   builtin and then its argument prototype would still apply.  */
20115
29303
#ifdef __cplusplus
20116
29304
extern "C"
20117
29305
#endif
20118
 
/* We use char because int might match the return type of a gcc2
20119
 
   builtin and then its argument prototype would still apply.  */
20120
29306
char connect ();
20121
29307
int
20122
29308
main ()
20123
29309
{
20124
 
connect ();
 
29310
return connect ();
20125
29311
  ;
20126
29312
  return 0;
20127
29313
}
20128
29314
_ACEOF
20129
29315
rm -f conftest.$ac_objext conftest$ac_exeext
20130
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20131
 
  (eval $ac_link) 2>conftest.er1
 
29316
if { (ac_try="$ac_link"
 
29317
case "(($ac_try" in
 
29318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29319
  *) ac_try_echo=$ac_try;;
 
29320
esac
 
29321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29322
  (eval "$ac_link") 2>conftest.er1
20132
29323
  ac_status=$?
20133
29324
  grep -v '^ *+' conftest.er1 >conftest.err
20134
29325
  rm -f conftest.er1
20135
29326
  cat conftest.err >&5
20136
29327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137
29328
  (exit $ac_status); } &&
20138
 
         { ac_try='test -z "$ac_c_werror_flag"
20139
 
                         || test ! -s conftest.err'
20140
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141
 
  (eval $ac_try) 2>&5
 
29329
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29330
  { (case "(($ac_try" in
 
29331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29332
  *) ac_try_echo=$ac_try;;
 
29333
esac
 
29334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29335
  (eval "$ac_try") 2>&5
20142
29336
  ac_status=$?
20143
29337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144
29338
  (exit $ac_status); }; } &&
20145
29339
         { ac_try='test -s conftest$ac_exeext'
20146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147
 
  (eval $ac_try) 2>&5
 
29340
  { (case "(($ac_try" in
 
29341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29342
  *) ac_try_echo=$ac_try;;
 
29343
esac
 
29344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29345
  (eval "$ac_try") 2>&5
20148
29346
  ac_status=$?
20149
29347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150
29348
  (exit $ac_status); }; }; then
20153
29351
  echo "$as_me: failed program was:" >&5
20154
29352
sed 's/^/| /' conftest.$ac_ext >&5
20155
29353
 
20156
 
ac_cv_lib_socket_connect=no
 
29354
        ac_cv_lib_socket_connect=no
20157
29355
fi
20158
 
rm -f conftest.err conftest.$ac_objext \
 
29356
 
 
29357
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159
29358
      conftest$ac_exeext conftest.$ac_ext
20160
29359
LIBS=$ac_check_lib_save_LIBS
20161
29360
fi
20162
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20163
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
29361
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
29362
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20164
29363
if test $ac_cv_lib_socket_connect = yes; then
20165
29364
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20166
29365
fi
20168
29367
    fi
20169
29368
 
20170
29369
    # Guillermo Gomez says -lposix is necessary on A/UX.
20171
 
    echo "$as_me:$LINENO: checking for remove" >&5
20172
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
29370
    { echo "$as_me:$LINENO: checking for remove" >&5
 
29371
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20173
29372
if test "${ac_cv_func_remove+set}" = set; then
20174
29373
  echo $ECHO_N "(cached) $ECHO_C" >&6
20175
29374
else
20196
29395
 
20197
29396
#undef remove
20198
29397
 
20199
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29398
/* Override any GCC internal prototype to avoid an error.
 
29399
   Use char because int might match the return type of a GCC
 
29400
   builtin and then its argument prototype would still apply.  */
20200
29401
#ifdef __cplusplus
20201
29402
extern "C"
20202
 
{
20203
29403
#endif
20204
 
/* We use char because int might match the return type of a gcc2
20205
 
   builtin and then its argument prototype would still apply.  */
20206
29404
char remove ();
20207
29405
/* The GNU C library defines this for functions which it implements
20208
29406
    to always fail with ENOSYS.  Some functions are actually named
20209
29407
    something starting with __ and the normal name is an alias.  */
20210
 
#if defined (__stub_remove) || defined (__stub___remove)
 
29408
#if defined __stub_remove || defined __stub___remove
20211
29409
choke me
20212
 
#else
20213
 
char (*f) () = remove;
20214
 
#endif
20215
 
#ifdef __cplusplus
20216
 
}
20217
29410
#endif
20218
29411
 
20219
29412
int
20220
29413
main ()
20221
29414
{
20222
 
return f != remove;
 
29415
return remove ();
20223
29416
  ;
20224
29417
  return 0;
20225
29418
}
20226
29419
_ACEOF
20227
29420
rm -f conftest.$ac_objext conftest$ac_exeext
20228
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20229
 
  (eval $ac_link) 2>conftest.er1
 
29421
if { (ac_try="$ac_link"
 
29422
case "(($ac_try" in
 
29423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29424
  *) ac_try_echo=$ac_try;;
 
29425
esac
 
29426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29427
  (eval "$ac_link") 2>conftest.er1
20230
29428
  ac_status=$?
20231
29429
  grep -v '^ *+' conftest.er1 >conftest.err
20232
29430
  rm -f conftest.er1
20233
29431
  cat conftest.err >&5
20234
29432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235
29433
  (exit $ac_status); } &&
20236
 
         { ac_try='test -z "$ac_c_werror_flag"
20237
 
                         || test ! -s conftest.err'
20238
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239
 
  (eval $ac_try) 2>&5
 
29434
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29435
  { (case "(($ac_try" in
 
29436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29437
  *) ac_try_echo=$ac_try;;
 
29438
esac
 
29439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29440
  (eval "$ac_try") 2>&5
20240
29441
  ac_status=$?
20241
29442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242
29443
  (exit $ac_status); }; } &&
20243
29444
         { ac_try='test -s conftest$ac_exeext'
20244
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245
 
  (eval $ac_try) 2>&5
 
29445
  { (case "(($ac_try" in
 
29446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29447
  *) ac_try_echo=$ac_try;;
 
29448
esac
 
29449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29450
  (eval "$ac_try") 2>&5
20246
29451
  ac_status=$?
20247
29452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248
29453
  (exit $ac_status); }; }; then
20251
29456
  echo "$as_me: failed program was:" >&5
20252
29457
sed 's/^/| /' conftest.$ac_ext >&5
20253
29458
 
20254
 
ac_cv_func_remove=no
 
29459
        ac_cv_func_remove=no
20255
29460
fi
20256
 
rm -f conftest.err conftest.$ac_objext \
 
29461
 
 
29462
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257
29463
      conftest$ac_exeext conftest.$ac_ext
20258
29464
fi
20259
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20260
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
29465
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
29466
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20261
29467
 
20262
29468
    if test $ac_cv_func_remove = no; then
20263
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20264
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
29469
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
29470
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20265
29471
if test "${ac_cv_lib_posix_remove+set}" = set; then
20266
29472
  echo $ECHO_N "(cached) $ECHO_C" >&6
20267
29473
else
20274
29480
cat >>conftest.$ac_ext <<_ACEOF
20275
29481
/* end confdefs.h.  */
20276
29482
 
20277
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29483
/* Override any GCC internal prototype to avoid an error.
 
29484
   Use char because int might match the return type of a GCC
 
29485
   builtin and then its argument prototype would still apply.  */
20278
29486
#ifdef __cplusplus
20279
29487
extern "C"
20280
29488
#endif
20281
 
/* We use char because int might match the return type of a gcc2
20282
 
   builtin and then its argument prototype would still apply.  */
20283
29489
char remove ();
20284
29490
int
20285
29491
main ()
20286
29492
{
20287
 
remove ();
 
29493
return remove ();
20288
29494
  ;
20289
29495
  return 0;
20290
29496
}
20291
29497
_ACEOF
20292
29498
rm -f conftest.$ac_objext conftest$ac_exeext
20293
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294
 
  (eval $ac_link) 2>conftest.er1
 
29499
if { (ac_try="$ac_link"
 
29500
case "(($ac_try" in
 
29501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29502
  *) ac_try_echo=$ac_try;;
 
29503
esac
 
29504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29505
  (eval "$ac_link") 2>conftest.er1
20295
29506
  ac_status=$?
20296
29507
  grep -v '^ *+' conftest.er1 >conftest.err
20297
29508
  rm -f conftest.er1
20298
29509
  cat conftest.err >&5
20299
29510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300
29511
  (exit $ac_status); } &&
20301
 
         { ac_try='test -z "$ac_c_werror_flag"
20302
 
                         || test ! -s conftest.err'
20303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304
 
  (eval $ac_try) 2>&5
 
29512
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29513
  { (case "(($ac_try" in
 
29514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29515
  *) ac_try_echo=$ac_try;;
 
29516
esac
 
29517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29518
  (eval "$ac_try") 2>&5
20305
29519
  ac_status=$?
20306
29520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307
29521
  (exit $ac_status); }; } &&
20308
29522
         { ac_try='test -s conftest$ac_exeext'
20309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310
 
  (eval $ac_try) 2>&5
 
29523
  { (case "(($ac_try" in
 
29524
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29525
  *) ac_try_echo=$ac_try;;
 
29526
esac
 
29527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29528
  (eval "$ac_try") 2>&5
20311
29529
  ac_status=$?
20312
29530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313
29531
  (exit $ac_status); }; }; then
20316
29534
  echo "$as_me: failed program was:" >&5
20317
29535
sed 's/^/| /' conftest.$ac_ext >&5
20318
29536
 
20319
 
ac_cv_lib_posix_remove=no
 
29537
        ac_cv_lib_posix_remove=no
20320
29538
fi
20321
 
rm -f conftest.err conftest.$ac_objext \
 
29539
 
 
29540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20322
29541
      conftest$ac_exeext conftest.$ac_ext
20323
29542
LIBS=$ac_check_lib_save_LIBS
20324
29543
fi
20325
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20326
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
29544
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
29545
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20327
29546
if test $ac_cv_lib_posix_remove = yes; then
20328
29547
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20329
29548
fi
20331
29550
    fi
20332
29551
 
20333
29552
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20334
 
    echo "$as_me:$LINENO: checking for shmat" >&5
20335
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
29553
    { echo "$as_me:$LINENO: checking for shmat" >&5
 
29554
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20336
29555
if test "${ac_cv_func_shmat+set}" = set; then
20337
29556
  echo $ECHO_N "(cached) $ECHO_C" >&6
20338
29557
else
20359
29578
 
20360
29579
#undef shmat
20361
29580
 
20362
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29581
/* Override any GCC internal prototype to avoid an error.
 
29582
   Use char because int might match the return type of a GCC
 
29583
   builtin and then its argument prototype would still apply.  */
20363
29584
#ifdef __cplusplus
20364
29585
extern "C"
20365
 
{
20366
29586
#endif
20367
 
/* We use char because int might match the return type of a gcc2
20368
 
   builtin and then its argument prototype would still apply.  */
20369
29587
char shmat ();
20370
29588
/* The GNU C library defines this for functions which it implements
20371
29589
    to always fail with ENOSYS.  Some functions are actually named
20372
29590
    something starting with __ and the normal name is an alias.  */
20373
 
#if defined (__stub_shmat) || defined (__stub___shmat)
 
29591
#if defined __stub_shmat || defined __stub___shmat
20374
29592
choke me
20375
 
#else
20376
 
char (*f) () = shmat;
20377
 
#endif
20378
 
#ifdef __cplusplus
20379
 
}
20380
29593
#endif
20381
29594
 
20382
29595
int
20383
29596
main ()
20384
29597
{
20385
 
return f != shmat;
 
29598
return shmat ();
20386
29599
  ;
20387
29600
  return 0;
20388
29601
}
20389
29602
_ACEOF
20390
29603
rm -f conftest.$ac_objext conftest$ac_exeext
20391
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392
 
  (eval $ac_link) 2>conftest.er1
 
29604
if { (ac_try="$ac_link"
 
29605
case "(($ac_try" in
 
29606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29607
  *) ac_try_echo=$ac_try;;
 
29608
esac
 
29609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29610
  (eval "$ac_link") 2>conftest.er1
20393
29611
  ac_status=$?
20394
29612
  grep -v '^ *+' conftest.er1 >conftest.err
20395
29613
  rm -f conftest.er1
20396
29614
  cat conftest.err >&5
20397
29615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398
29616
  (exit $ac_status); } &&
20399
 
         { ac_try='test -z "$ac_c_werror_flag"
20400
 
                         || test ! -s conftest.err'
20401
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402
 
  (eval $ac_try) 2>&5
 
29617
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29618
  { (case "(($ac_try" in
 
29619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29620
  *) ac_try_echo=$ac_try;;
 
29621
esac
 
29622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29623
  (eval "$ac_try") 2>&5
20403
29624
  ac_status=$?
20404
29625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405
29626
  (exit $ac_status); }; } &&
20406
29627
         { ac_try='test -s conftest$ac_exeext'
20407
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408
 
  (eval $ac_try) 2>&5
 
29628
  { (case "(($ac_try" in
 
29629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29630
  *) ac_try_echo=$ac_try;;
 
29631
esac
 
29632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29633
  (eval "$ac_try") 2>&5
20409
29634
  ac_status=$?
20410
29635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411
29636
  (exit $ac_status); }; }; then
20414
29639
  echo "$as_me: failed program was:" >&5
20415
29640
sed 's/^/| /' conftest.$ac_ext >&5
20416
29641
 
20417
 
ac_cv_func_shmat=no
 
29642
        ac_cv_func_shmat=no
20418
29643
fi
20419
 
rm -f conftest.err conftest.$ac_objext \
 
29644
 
 
29645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20420
29646
      conftest$ac_exeext conftest.$ac_ext
20421
29647
fi
20422
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20423
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
29648
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
29649
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20424
29650
 
20425
29651
    if test $ac_cv_func_shmat = no; then
20426
 
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20427
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
29652
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
29653
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20428
29654
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20429
29655
  echo $ECHO_N "(cached) $ECHO_C" >&6
20430
29656
else
20437
29663
cat >>conftest.$ac_ext <<_ACEOF
20438
29664
/* end confdefs.h.  */
20439
29665
 
20440
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29666
/* Override any GCC internal prototype to avoid an error.
 
29667
   Use char because int might match the return type of a GCC
 
29668
   builtin and then its argument prototype would still apply.  */
20441
29669
#ifdef __cplusplus
20442
29670
extern "C"
20443
29671
#endif
20444
 
/* We use char because int might match the return type of a gcc2
20445
 
   builtin and then its argument prototype would still apply.  */
20446
29672
char shmat ();
20447
29673
int
20448
29674
main ()
20449
29675
{
20450
 
shmat ();
 
29676
return shmat ();
20451
29677
  ;
20452
29678
  return 0;
20453
29679
}
20454
29680
_ACEOF
20455
29681
rm -f conftest.$ac_objext conftest$ac_exeext
20456
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20457
 
  (eval $ac_link) 2>conftest.er1
 
29682
if { (ac_try="$ac_link"
 
29683
case "(($ac_try" in
 
29684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29685
  *) ac_try_echo=$ac_try;;
 
29686
esac
 
29687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29688
  (eval "$ac_link") 2>conftest.er1
20458
29689
  ac_status=$?
20459
29690
  grep -v '^ *+' conftest.er1 >conftest.err
20460
29691
  rm -f conftest.er1
20461
29692
  cat conftest.err >&5
20462
29693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463
29694
  (exit $ac_status); } &&
20464
 
         { ac_try='test -z "$ac_c_werror_flag"
20465
 
                         || test ! -s conftest.err'
20466
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467
 
  (eval $ac_try) 2>&5
 
29695
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29696
  { (case "(($ac_try" in
 
29697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29698
  *) ac_try_echo=$ac_try;;
 
29699
esac
 
29700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29701
  (eval "$ac_try") 2>&5
20468
29702
  ac_status=$?
20469
29703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470
29704
  (exit $ac_status); }; } &&
20471
29705
         { ac_try='test -s conftest$ac_exeext'
20472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473
 
  (eval $ac_try) 2>&5
 
29706
  { (case "(($ac_try" in
 
29707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29708
  *) ac_try_echo=$ac_try;;
 
29709
esac
 
29710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29711
  (eval "$ac_try") 2>&5
20474
29712
  ac_status=$?
20475
29713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476
29714
  (exit $ac_status); }; }; then
20479
29717
  echo "$as_me: failed program was:" >&5
20480
29718
sed 's/^/| /' conftest.$ac_ext >&5
20481
29719
 
20482
 
ac_cv_lib_ipc_shmat=no
 
29720
        ac_cv_lib_ipc_shmat=no
20483
29721
fi
20484
 
rm -f conftest.err conftest.$ac_objext \
 
29722
 
 
29723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485
29724
      conftest$ac_exeext conftest.$ac_ext
20486
29725
LIBS=$ac_check_lib_save_LIBS
20487
29726
fi
20488
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20489
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
29727
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
29728
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20490
29729
if test $ac_cv_lib_ipc_shmat = yes; then
20491
29730
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20492
29731
fi
20503
29742
  # These have to be linked with before -lX11, unlike the other
20504
29743
  # libraries we check for below, so use a different variable.
20505
29744
  # John Interrante, Karl Berry
20506
 
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20507
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
29745
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
29746
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20508
29747
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20509
29748
  echo $ECHO_N "(cached) $ECHO_C" >&6
20510
29749
else
20517
29756
cat >>conftest.$ac_ext <<_ACEOF
20518
29757
/* end confdefs.h.  */
20519
29758
 
20520
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
29759
/* Override any GCC internal prototype to avoid an error.
 
29760
   Use char because int might match the return type of a GCC
 
29761
   builtin and then its argument prototype would still apply.  */
20521
29762
#ifdef __cplusplus
20522
29763
extern "C"
20523
29764
#endif
20524
 
/* We use char because int might match the return type of a gcc2
20525
 
   builtin and then its argument prototype would still apply.  */
20526
29765
char IceConnectionNumber ();
20527
29766
int
20528
29767
main ()
20529
29768
{
20530
 
IceConnectionNumber ();
 
29769
return IceConnectionNumber ();
20531
29770
  ;
20532
29771
  return 0;
20533
29772
}
20534
29773
_ACEOF
20535
29774
rm -f conftest.$ac_objext conftest$ac_exeext
20536
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20537
 
  (eval $ac_link) 2>conftest.er1
 
29775
if { (ac_try="$ac_link"
 
29776
case "(($ac_try" in
 
29777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29778
  *) ac_try_echo=$ac_try;;
 
29779
esac
 
29780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29781
  (eval "$ac_link") 2>conftest.er1
20538
29782
  ac_status=$?
20539
29783
  grep -v '^ *+' conftest.er1 >conftest.err
20540
29784
  rm -f conftest.er1
20541
29785
  cat conftest.err >&5
20542
29786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543
29787
  (exit $ac_status); } &&
20544
 
         { ac_try='test -z "$ac_c_werror_flag"
20545
 
                         || test ! -s conftest.err'
20546
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547
 
  (eval $ac_try) 2>&5
 
29788
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29789
  { (case "(($ac_try" in
 
29790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29791
  *) ac_try_echo=$ac_try;;
 
29792
esac
 
29793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29794
  (eval "$ac_try") 2>&5
20548
29795
  ac_status=$?
20549
29796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550
29797
  (exit $ac_status); }; } &&
20551
29798
         { ac_try='test -s conftest$ac_exeext'
20552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553
 
  (eval $ac_try) 2>&5
 
29799
  { (case "(($ac_try" in
 
29800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29801
  *) ac_try_echo=$ac_try;;
 
29802
esac
 
29803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29804
  (eval "$ac_try") 2>&5
20554
29805
  ac_status=$?
20555
29806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556
29807
  (exit $ac_status); }; }; then
20559
29810
  echo "$as_me: failed program was:" >&5
20560
29811
sed 's/^/| /' conftest.$ac_ext >&5
20561
29812
 
20562
 
ac_cv_lib_ICE_IceConnectionNumber=no
 
29813
        ac_cv_lib_ICE_IceConnectionNumber=no
20563
29814
fi
20564
 
rm -f conftest.err conftest.$ac_objext \
 
29815
 
 
29816
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565
29817
      conftest$ac_exeext conftest.$ac_ext
20566
29818
LIBS=$ac_check_lib_save_LIBS
20567
29819
fi
20568
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20569
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
29820
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
29821
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20570
29822
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20571
29823
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20572
29824
fi
20576
29828
fi
20577
29829
 
20578
29830
 
20579
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20580
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
29831
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
29832
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20581
29833
if test "${ac_cv_header_stdc+set}" = set; then
20582
29834
  echo $ECHO_N "(cached) $ECHO_C" >&6
20583
29835
else
20601
29853
}
20602
29854
_ACEOF
20603
29855
rm -f conftest.$ac_objext
20604
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605
 
  (eval $ac_compile) 2>conftest.er1
 
29856
if { (ac_try="$ac_compile"
 
29857
case "(($ac_try" in
 
29858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29859
  *) ac_try_echo=$ac_try;;
 
29860
esac
 
29861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29862
  (eval "$ac_compile") 2>conftest.er1
20606
29863
  ac_status=$?
20607
29864
  grep -v '^ *+' conftest.er1 >conftest.err
20608
29865
  rm -f conftest.er1
20609
29866
  cat conftest.err >&5
20610
29867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611
29868
  (exit $ac_status); } &&
20612
 
         { ac_try='test -z "$ac_c_werror_flag"
20613
 
                         || test ! -s conftest.err'
20614
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615
 
  (eval $ac_try) 2>&5
 
29869
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
29870
  { (case "(($ac_try" in
 
29871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29872
  *) ac_try_echo=$ac_try;;
 
29873
esac
 
29874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29875
  (eval "$ac_try") 2>&5
20616
29876
  ac_status=$?
20617
29877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618
29878
  (exit $ac_status); }; } &&
20619
29879
         { ac_try='test -s conftest.$ac_objext'
20620
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621
 
  (eval $ac_try) 2>&5
 
29880
  { (case "(($ac_try" in
 
29881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29882
  *) ac_try_echo=$ac_try;;
 
29883
esac
 
29884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29885
  (eval "$ac_try") 2>&5
20622
29886
  ac_status=$?
20623
29887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624
29888
  (exit $ac_status); }; }; then
20627
29891
  echo "$as_me: failed program was:" >&5
20628
29892
sed 's/^/| /' conftest.$ac_ext >&5
20629
29893
 
20630
 
ac_cv_header_stdc=no
 
29894
        ac_cv_header_stdc=no
20631
29895
fi
20632
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29896
 
 
29897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633
29898
 
20634
29899
if test $ac_cv_header_stdc = yes; then
20635
29900
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20685
29950
cat >>conftest.$ac_ext <<_ACEOF
20686
29951
/* end confdefs.h.  */
20687
29952
#include <ctype.h>
 
29953
#include <stdlib.h>
20688
29954
#if ((' ' & 0x0FF) == 0x020)
20689
29955
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20690
29956
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20704
29970
  for (i = 0; i < 256; i++)
20705
29971
    if (XOR (islower (i), ISLOWER (i))
20706
29972
        || toupper (i) != TOUPPER (i))
20707
 
      exit(2);
20708
 
  exit (0);
 
29973
      return 2;
 
29974
  return 0;
20709
29975
}
20710
29976
_ACEOF
20711
29977
rm -f conftest$ac_exeext
20712
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713
 
  (eval $ac_link) 2>&5
 
29978
if { (ac_try="$ac_link"
 
29979
case "(($ac_try" in
 
29980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29981
  *) ac_try_echo=$ac_try;;
 
29982
esac
 
29983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29984
  (eval "$ac_link") 2>&5
20714
29985
  ac_status=$?
20715
29986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716
29987
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718
 
  (eval $ac_try) 2>&5
 
29988
  { (case "(($ac_try" in
 
29989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29990
  *) ac_try_echo=$ac_try;;
 
29991
esac
 
29992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29993
  (eval "$ac_try") 2>&5
20719
29994
  ac_status=$?
20720
29995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721
29996
  (exit $ac_status); }; }; then
20728
30003
( exit $ac_status )
20729
30004
ac_cv_header_stdc=no
20730
30005
fi
20731
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20732
 
fi
20733
 
fi
20734
 
fi
20735
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20736
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
30006
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30007
fi
 
30008
 
 
30009
 
 
30010
fi
 
30011
fi
 
30012
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
30013
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20737
30014
if test $ac_cv_header_stdc = yes; then
20738
30015
 
20739
30016
cat >>confdefs.h <<\_ACEOF
20750
30027
ac_header_dirent=no
20751
30028
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20752
30029
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20753
 
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20754
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20755
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30030
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
30031
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
30032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20756
30033
  echo $ECHO_N "(cached) $ECHO_C" >&6
20757
30034
else
20758
30035
  cat >conftest.$ac_ext <<_ACEOF
20774
30051
}
20775
30052
_ACEOF
20776
30053
rm -f conftest.$ac_objext
20777
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20778
 
  (eval $ac_compile) 2>conftest.er1
 
30054
if { (ac_try="$ac_compile"
 
30055
case "(($ac_try" in
 
30056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30057
  *) ac_try_echo=$ac_try;;
 
30058
esac
 
30059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30060
  (eval "$ac_compile") 2>conftest.er1
20779
30061
  ac_status=$?
20780
30062
  grep -v '^ *+' conftest.er1 >conftest.err
20781
30063
  rm -f conftest.er1
20782
30064
  cat conftest.err >&5
20783
30065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784
30066
  (exit $ac_status); } &&
20785
 
         { ac_try='test -z "$ac_c_werror_flag"
20786
 
                         || test ! -s conftest.err'
20787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788
 
  (eval $ac_try) 2>&5
 
30067
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30068
  { (case "(($ac_try" in
 
30069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30070
  *) ac_try_echo=$ac_try;;
 
30071
esac
 
30072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30073
  (eval "$ac_try") 2>&5
20789
30074
  ac_status=$?
20790
30075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791
30076
  (exit $ac_status); }; } &&
20792
30077
         { ac_try='test -s conftest.$ac_objext'
20793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794
 
  (eval $ac_try) 2>&5
 
30078
  { (case "(($ac_try" in
 
30079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30080
  *) ac_try_echo=$ac_try;;
 
30081
esac
 
30082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30083
  (eval "$ac_try") 2>&5
20795
30084
  ac_status=$?
20796
30085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797
30086
  (exit $ac_status); }; }; then
20800
30089
  echo "$as_me: failed program was:" >&5
20801
30090
sed 's/^/| /' conftest.$ac_ext >&5
20802
30091
 
20803
 
eval "$as_ac_Header=no"
20804
 
fi
20805
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20806
 
fi
20807
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20808
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
30092
        eval "$as_ac_Header=no"
 
30093
fi
 
30094
 
 
30095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30096
fi
 
30097
ac_res=`eval echo '${'$as_ac_Header'}'`
 
30098
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
30099
echo "${ECHO_T}$ac_res" >&6; }
20809
30100
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810
30101
  cat >>confdefs.h <<_ACEOF
20811
30102
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20817
30108
done
20818
30109
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20819
30110
if test $ac_header_dirent = dirent.h; then
20820
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
20821
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20822
 
if test "${ac_cv_search_opendir+set}" = set; then
20823
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20824
 
else
20825
 
  ac_func_search_save_LIBS=$LIBS
20826
 
ac_cv_search_opendir=no
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
 
 
20834
 
/* Override any gcc2 internal prototype to avoid an error.  */
20835
 
#ifdef __cplusplus
20836
 
extern "C"
20837
 
#endif
20838
 
/* We use char because int might match the return type of a gcc2
20839
 
   builtin and then its argument prototype would still apply.  */
20840
 
char opendir ();
20841
 
int
20842
 
main ()
20843
 
{
20844
 
opendir ();
20845
 
  ;
20846
 
  return 0;
20847
 
}
20848
 
_ACEOF
20849
 
rm -f conftest.$ac_objext conftest$ac_exeext
20850
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20851
 
  (eval $ac_link) 2>conftest.er1
20852
 
  ac_status=$?
20853
 
  grep -v '^ *+' conftest.er1 >conftest.err
20854
 
  rm -f conftest.er1
20855
 
  cat conftest.err >&5
20856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857
 
  (exit $ac_status); } &&
20858
 
         { ac_try='test -z "$ac_c_werror_flag"
20859
 
                         || test ! -s conftest.err'
20860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861
 
  (eval $ac_try) 2>&5
20862
 
  ac_status=$?
20863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864
 
  (exit $ac_status); }; } &&
20865
 
         { ac_try='test -s conftest$ac_exeext'
20866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867
 
  (eval $ac_try) 2>&5
20868
 
  ac_status=$?
20869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870
 
  (exit $ac_status); }; }; then
20871
 
  ac_cv_search_opendir="none required"
20872
 
else
20873
 
  echo "$as_me: failed program was:" >&5
20874
 
sed 's/^/| /' conftest.$ac_ext >&5
20875
 
 
20876
 
fi
20877
 
rm -f conftest.err conftest.$ac_objext \
20878
 
      conftest$ac_exeext conftest.$ac_ext
20879
 
if test "$ac_cv_search_opendir" = no; then
20880
 
  for ac_lib in dir; do
20881
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20882
 
    cat >conftest.$ac_ext <<_ACEOF
20883
 
/* confdefs.h.  */
20884
 
_ACEOF
20885
 
cat confdefs.h >>conftest.$ac_ext
20886
 
cat >>conftest.$ac_ext <<_ACEOF
20887
 
/* end confdefs.h.  */
20888
 
 
20889
 
/* Override any gcc2 internal prototype to avoid an error.  */
20890
 
#ifdef __cplusplus
20891
 
extern "C"
20892
 
#endif
20893
 
/* We use char because int might match the return type of a gcc2
20894
 
   builtin and then its argument prototype would still apply.  */
20895
 
char opendir ();
20896
 
int
20897
 
main ()
20898
 
{
20899
 
opendir ();
20900
 
  ;
20901
 
  return 0;
20902
 
}
20903
 
_ACEOF
20904
 
rm -f conftest.$ac_objext conftest$ac_exeext
20905
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20906
 
  (eval $ac_link) 2>conftest.er1
20907
 
  ac_status=$?
20908
 
  grep -v '^ *+' conftest.er1 >conftest.err
20909
 
  rm -f conftest.er1
20910
 
  cat conftest.err >&5
20911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912
 
  (exit $ac_status); } &&
20913
 
         { ac_try='test -z "$ac_c_werror_flag"
20914
 
                         || test ! -s conftest.err'
20915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916
 
  (eval $ac_try) 2>&5
20917
 
  ac_status=$?
20918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919
 
  (exit $ac_status); }; } &&
20920
 
         { ac_try='test -s conftest$ac_exeext'
20921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922
 
  (eval $ac_try) 2>&5
20923
 
  ac_status=$?
20924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925
 
  (exit $ac_status); }; }; then
20926
 
  ac_cv_search_opendir="-l$ac_lib"
20927
 
break
20928
 
else
20929
 
  echo "$as_me: failed program was:" >&5
20930
 
sed 's/^/| /' conftest.$ac_ext >&5
20931
 
 
20932
 
fi
20933
 
rm -f conftest.err conftest.$ac_objext \
20934
 
      conftest$ac_exeext conftest.$ac_ext
20935
 
  done
20936
 
fi
20937
 
LIBS=$ac_func_search_save_LIBS
20938
 
fi
20939
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20940
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
20941
 
if test "$ac_cv_search_opendir" != no; then
20942
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20943
 
 
20944
 
fi
20945
 
 
20946
 
else
20947
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
20948
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20949
 
if test "${ac_cv_search_opendir+set}" = set; then
20950
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20951
 
else
20952
 
  ac_func_search_save_LIBS=$LIBS
20953
 
ac_cv_search_opendir=no
20954
 
cat >conftest.$ac_ext <<_ACEOF
20955
 
/* confdefs.h.  */
20956
 
_ACEOF
20957
 
cat confdefs.h >>conftest.$ac_ext
20958
 
cat >>conftest.$ac_ext <<_ACEOF
20959
 
/* end confdefs.h.  */
20960
 
 
20961
 
/* Override any gcc2 internal prototype to avoid an error.  */
20962
 
#ifdef __cplusplus
20963
 
extern "C"
20964
 
#endif
20965
 
/* We use char because int might match the return type of a gcc2
20966
 
   builtin and then its argument prototype would still apply.  */
20967
 
char opendir ();
20968
 
int
20969
 
main ()
20970
 
{
20971
 
opendir ();
20972
 
  ;
20973
 
  return 0;
20974
 
}
20975
 
_ACEOF
20976
 
rm -f conftest.$ac_objext conftest$ac_exeext
20977
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20978
 
  (eval $ac_link) 2>conftest.er1
20979
 
  ac_status=$?
20980
 
  grep -v '^ *+' conftest.er1 >conftest.err
20981
 
  rm -f conftest.er1
20982
 
  cat conftest.err >&5
20983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984
 
  (exit $ac_status); } &&
20985
 
         { ac_try='test -z "$ac_c_werror_flag"
20986
 
                         || test ! -s conftest.err'
20987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988
 
  (eval $ac_try) 2>&5
20989
 
  ac_status=$?
20990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991
 
  (exit $ac_status); }; } &&
20992
 
         { ac_try='test -s conftest$ac_exeext'
20993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994
 
  (eval $ac_try) 2>&5
20995
 
  ac_status=$?
20996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997
 
  (exit $ac_status); }; }; then
20998
 
  ac_cv_search_opendir="none required"
20999
 
else
21000
 
  echo "$as_me: failed program was:" >&5
21001
 
sed 's/^/| /' conftest.$ac_ext >&5
21002
 
 
21003
 
fi
21004
 
rm -f conftest.err conftest.$ac_objext \
21005
 
      conftest$ac_exeext conftest.$ac_ext
21006
 
if test "$ac_cv_search_opendir" = no; then
21007
 
  for ac_lib in x; do
21008
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21009
 
    cat >conftest.$ac_ext <<_ACEOF
21010
 
/* confdefs.h.  */
21011
 
_ACEOF
21012
 
cat confdefs.h >>conftest.$ac_ext
21013
 
cat >>conftest.$ac_ext <<_ACEOF
21014
 
/* end confdefs.h.  */
21015
 
 
21016
 
/* Override any gcc2 internal prototype to avoid an error.  */
21017
 
#ifdef __cplusplus
21018
 
extern "C"
21019
 
#endif
21020
 
/* We use char because int might match the return type of a gcc2
21021
 
   builtin and then its argument prototype would still apply.  */
21022
 
char opendir ();
21023
 
int
21024
 
main ()
21025
 
{
21026
 
opendir ();
21027
 
  ;
21028
 
  return 0;
21029
 
}
21030
 
_ACEOF
21031
 
rm -f conftest.$ac_objext conftest$ac_exeext
21032
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21033
 
  (eval $ac_link) 2>conftest.er1
21034
 
  ac_status=$?
21035
 
  grep -v '^ *+' conftest.er1 >conftest.err
21036
 
  rm -f conftest.er1
21037
 
  cat conftest.err >&5
21038
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039
 
  (exit $ac_status); } &&
21040
 
         { ac_try='test -z "$ac_c_werror_flag"
21041
 
                         || test ! -s conftest.err'
21042
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043
 
  (eval $ac_try) 2>&5
21044
 
  ac_status=$?
21045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046
 
  (exit $ac_status); }; } &&
21047
 
         { ac_try='test -s conftest$ac_exeext'
21048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049
 
  (eval $ac_try) 2>&5
21050
 
  ac_status=$?
21051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052
 
  (exit $ac_status); }; }; then
21053
 
  ac_cv_search_opendir="-l$ac_lib"
21054
 
break
21055
 
else
21056
 
  echo "$as_me: failed program was:" >&5
21057
 
sed 's/^/| /' conftest.$ac_ext >&5
21058
 
 
21059
 
fi
21060
 
rm -f conftest.err conftest.$ac_objext \
21061
 
      conftest$ac_exeext conftest.$ac_ext
21062
 
  done
21063
 
fi
21064
 
LIBS=$ac_func_search_save_LIBS
21065
 
fi
21066
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21067
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
21068
 
if test "$ac_cv_search_opendir" != no; then
21069
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21070
 
 
21071
 
fi
21072
 
 
21073
 
fi
21074
 
 
21075
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21076
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
30111
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
30112
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
30113
if test "${ac_cv_search_opendir+set}" = set; then
 
30114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30115
else
 
30116
  ac_func_search_save_LIBS=$LIBS
 
30117
cat >conftest.$ac_ext <<_ACEOF
 
30118
/* confdefs.h.  */
 
30119
_ACEOF
 
30120
cat confdefs.h >>conftest.$ac_ext
 
30121
cat >>conftest.$ac_ext <<_ACEOF
 
30122
/* end confdefs.h.  */
 
30123
 
 
30124
/* Override any GCC internal prototype to avoid an error.
 
30125
   Use char because int might match the return type of a GCC
 
30126
   builtin and then its argument prototype would still apply.  */
 
30127
#ifdef __cplusplus
 
30128
extern "C"
 
30129
#endif
 
30130
char opendir ();
 
30131
int
 
30132
main ()
 
30133
{
 
30134
return opendir ();
 
30135
  ;
 
30136
  return 0;
 
30137
}
 
30138
_ACEOF
 
30139
for ac_lib in '' dir; do
 
30140
  if test -z "$ac_lib"; then
 
30141
    ac_res="none required"
 
30142
  else
 
30143
    ac_res=-l$ac_lib
 
30144
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
30145
  fi
 
30146
  rm -f conftest.$ac_objext conftest$ac_exeext
 
30147
if { (ac_try="$ac_link"
 
30148
case "(($ac_try" in
 
30149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30150
  *) ac_try_echo=$ac_try;;
 
30151
esac
 
30152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30153
  (eval "$ac_link") 2>conftest.er1
 
30154
  ac_status=$?
 
30155
  grep -v '^ *+' conftest.er1 >conftest.err
 
30156
  rm -f conftest.er1
 
30157
  cat conftest.err >&5
 
30158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30159
  (exit $ac_status); } &&
 
30160
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30161
  { (case "(($ac_try" in
 
30162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30163
  *) ac_try_echo=$ac_try;;
 
30164
esac
 
30165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30166
  (eval "$ac_try") 2>&5
 
30167
  ac_status=$?
 
30168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30169
  (exit $ac_status); }; } &&
 
30170
         { ac_try='test -s conftest$ac_exeext'
 
30171
  { (case "(($ac_try" in
 
30172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30173
  *) ac_try_echo=$ac_try;;
 
30174
esac
 
30175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30176
  (eval "$ac_try") 2>&5
 
30177
  ac_status=$?
 
30178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30179
  (exit $ac_status); }; }; then
 
30180
  ac_cv_search_opendir=$ac_res
 
30181
else
 
30182
  echo "$as_me: failed program was:" >&5
 
30183
sed 's/^/| /' conftest.$ac_ext >&5
 
30184
 
 
30185
 
 
30186
fi
 
30187
 
 
30188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30189
      conftest$ac_exeext
 
30190
  if test "${ac_cv_search_opendir+set}" = set; then
 
30191
  break
 
30192
fi
 
30193
done
 
30194
if test "${ac_cv_search_opendir+set}" = set; then
 
30195
  :
 
30196
else
 
30197
  ac_cv_search_opendir=no
 
30198
fi
 
30199
rm conftest.$ac_ext
 
30200
LIBS=$ac_func_search_save_LIBS
 
30201
fi
 
30202
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
30203
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
30204
ac_res=$ac_cv_search_opendir
 
30205
if test "$ac_res" != no; then
 
30206
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
30207
 
 
30208
fi
 
30209
 
 
30210
else
 
30211
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
30212
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
30213
if test "${ac_cv_search_opendir+set}" = set; then
 
30214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30215
else
 
30216
  ac_func_search_save_LIBS=$LIBS
 
30217
cat >conftest.$ac_ext <<_ACEOF
 
30218
/* confdefs.h.  */
 
30219
_ACEOF
 
30220
cat confdefs.h >>conftest.$ac_ext
 
30221
cat >>conftest.$ac_ext <<_ACEOF
 
30222
/* end confdefs.h.  */
 
30223
 
 
30224
/* Override any GCC internal prototype to avoid an error.
 
30225
   Use char because int might match the return type of a GCC
 
30226
   builtin and then its argument prototype would still apply.  */
 
30227
#ifdef __cplusplus
 
30228
extern "C"
 
30229
#endif
 
30230
char opendir ();
 
30231
int
 
30232
main ()
 
30233
{
 
30234
return opendir ();
 
30235
  ;
 
30236
  return 0;
 
30237
}
 
30238
_ACEOF
 
30239
for ac_lib in '' x; do
 
30240
  if test -z "$ac_lib"; then
 
30241
    ac_res="none required"
 
30242
  else
 
30243
    ac_res=-l$ac_lib
 
30244
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
30245
  fi
 
30246
  rm -f conftest.$ac_objext conftest$ac_exeext
 
30247
if { (ac_try="$ac_link"
 
30248
case "(($ac_try" in
 
30249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30250
  *) ac_try_echo=$ac_try;;
 
30251
esac
 
30252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30253
  (eval "$ac_link") 2>conftest.er1
 
30254
  ac_status=$?
 
30255
  grep -v '^ *+' conftest.er1 >conftest.err
 
30256
  rm -f conftest.er1
 
30257
  cat conftest.err >&5
 
30258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30259
  (exit $ac_status); } &&
 
30260
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30261
  { (case "(($ac_try" in
 
30262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30263
  *) ac_try_echo=$ac_try;;
 
30264
esac
 
30265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30266
  (eval "$ac_try") 2>&5
 
30267
  ac_status=$?
 
30268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30269
  (exit $ac_status); }; } &&
 
30270
         { ac_try='test -s conftest$ac_exeext'
 
30271
  { (case "(($ac_try" in
 
30272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30273
  *) ac_try_echo=$ac_try;;
 
30274
esac
 
30275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30276
  (eval "$ac_try") 2>&5
 
30277
  ac_status=$?
 
30278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30279
  (exit $ac_status); }; }; then
 
30280
  ac_cv_search_opendir=$ac_res
 
30281
else
 
30282
  echo "$as_me: failed program was:" >&5
 
30283
sed 's/^/| /' conftest.$ac_ext >&5
 
30284
 
 
30285
 
 
30286
fi
 
30287
 
 
30288
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30289
      conftest$ac_exeext
 
30290
  if test "${ac_cv_search_opendir+set}" = set; then
 
30291
  break
 
30292
fi
 
30293
done
 
30294
if test "${ac_cv_search_opendir+set}" = set; then
 
30295
  :
 
30296
else
 
30297
  ac_cv_search_opendir=no
 
30298
fi
 
30299
rm conftest.$ac_ext
 
30300
LIBS=$ac_func_search_save_LIBS
 
30301
fi
 
30302
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
30303
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
30304
ac_res=$ac_cv_search_opendir
 
30305
if test "$ac_res" != no; then
 
30306
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
30307
 
 
30308
fi
 
30309
 
 
30310
fi
 
30311
 
 
30312
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
30313
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21077
30314
if test "${ac_cv_header_time+set}" = set; then
21078
30315
  echo $ECHO_N "(cached) $ECHO_C" >&6
21079
30316
else
21097
30334
}
21098
30335
_ACEOF
21099
30336
rm -f conftest.$ac_objext
21100
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101
 
  (eval $ac_compile) 2>conftest.er1
 
30337
if { (ac_try="$ac_compile"
 
30338
case "(($ac_try" in
 
30339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30340
  *) ac_try_echo=$ac_try;;
 
30341
esac
 
30342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30343
  (eval "$ac_compile") 2>conftest.er1
21102
30344
  ac_status=$?
21103
30345
  grep -v '^ *+' conftest.er1 >conftest.err
21104
30346
  rm -f conftest.er1
21105
30347
  cat conftest.err >&5
21106
30348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107
30349
  (exit $ac_status); } &&
21108
 
         { ac_try='test -z "$ac_c_werror_flag"
21109
 
                         || test ! -s conftest.err'
21110
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111
 
  (eval $ac_try) 2>&5
 
30350
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30351
  { (case "(($ac_try" in
 
30352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30353
  *) ac_try_echo=$ac_try;;
 
30354
esac
 
30355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30356
  (eval "$ac_try") 2>&5
21112
30357
  ac_status=$?
21113
30358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114
30359
  (exit $ac_status); }; } &&
21115
30360
         { ac_try='test -s conftest.$ac_objext'
21116
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117
 
  (eval $ac_try) 2>&5
 
30361
  { (case "(($ac_try" in
 
30362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30363
  *) ac_try_echo=$ac_try;;
 
30364
esac
 
30365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30366
  (eval "$ac_try") 2>&5
21118
30367
  ac_status=$?
21119
30368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120
30369
  (exit $ac_status); }; }; then
21123
30372
  echo "$as_me: failed program was:" >&5
21124
30373
sed 's/^/| /' conftest.$ac_ext >&5
21125
30374
 
21126
 
ac_cv_header_time=no
21127
 
fi
21128
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21129
 
fi
21130
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21131
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
30375
        ac_cv_header_time=no
 
30376
fi
 
30377
 
 
30378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30379
fi
 
30380
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
30381
echo "${ECHO_T}$ac_cv_header_time" >&6; }
21132
30382
if test $ac_cv_header_time = yes; then
21133
30383
 
21134
30384
cat >>confdefs.h <<\_ACEOF
21150
30400
                          string.h strings.h sys/time.h unistd.h
21151
30401
do
21152
30402
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21153
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21154
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21155
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21156
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30403
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
30404
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
30405
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
30406
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157
30407
  echo $ECHO_N "(cached) $ECHO_C" >&6
21158
30408
fi
21159
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21160
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
30409
ac_res=`eval echo '${'$as_ac_Header'}'`
 
30410
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
30411
echo "${ECHO_T}$ac_res" >&6; }
21161
30412
else
21162
30413
  # Is the header compilable?
21163
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21164
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
30414
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
30415
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21165
30416
cat >conftest.$ac_ext <<_ACEOF
21166
30417
/* confdefs.h.  */
21167
30418
_ACEOF
21172
30423
#include <$ac_header>
21173
30424
_ACEOF
21174
30425
rm -f conftest.$ac_objext
21175
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176
 
  (eval $ac_compile) 2>conftest.er1
 
30426
if { (ac_try="$ac_compile"
 
30427
case "(($ac_try" in
 
30428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30429
  *) ac_try_echo=$ac_try;;
 
30430
esac
 
30431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30432
  (eval "$ac_compile") 2>conftest.er1
21177
30433
  ac_status=$?
21178
30434
  grep -v '^ *+' conftest.er1 >conftest.err
21179
30435
  rm -f conftest.er1
21180
30436
  cat conftest.err >&5
21181
30437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182
30438
  (exit $ac_status); } &&
21183
 
         { ac_try='test -z "$ac_c_werror_flag"
21184
 
                         || test ! -s conftest.err'
21185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186
 
  (eval $ac_try) 2>&5
 
30439
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30440
  { (case "(($ac_try" in
 
30441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30442
  *) ac_try_echo=$ac_try;;
 
30443
esac
 
30444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30445
  (eval "$ac_try") 2>&5
21187
30446
  ac_status=$?
21188
30447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189
30448
  (exit $ac_status); }; } &&
21190
30449
         { ac_try='test -s conftest.$ac_objext'
21191
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192
 
  (eval $ac_try) 2>&5
 
30450
  { (case "(($ac_try" in
 
30451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30452
  *) ac_try_echo=$ac_try;;
 
30453
esac
 
30454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30455
  (eval "$ac_try") 2>&5
21193
30456
  ac_status=$?
21194
30457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195
30458
  (exit $ac_status); }; }; then
21198
30461
  echo "$as_me: failed program was:" >&5
21199
30462
sed 's/^/| /' conftest.$ac_ext >&5
21200
30463
 
21201
 
ac_header_compiler=no
 
30464
        ac_header_compiler=no
21202
30465
fi
21203
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21205
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
30466
 
 
30467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30468
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30469
echo "${ECHO_T}$ac_header_compiler" >&6; }
21206
30470
 
21207
30471
# Is the header present?
21208
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21209
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
30472
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
30473
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21210
30474
cat >conftest.$ac_ext <<_ACEOF
21211
30475
/* confdefs.h.  */
21212
30476
_ACEOF
21215
30479
/* end confdefs.h.  */
21216
30480
#include <$ac_header>
21217
30481
_ACEOF
21218
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21219
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
30482
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
30483
case "(($ac_try" in
 
30484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30485
  *) ac_try_echo=$ac_try;;
 
30486
esac
 
30487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30488
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21220
30489
  ac_status=$?
21221
30490
  grep -v '^ *+' conftest.er1 >conftest.err
21222
30491
  rm -f conftest.er1
21240
30509
 
21241
30510
  ac_header_preproc=no
21242
30511
fi
 
30512
 
21243
30513
rm -f conftest.err conftest.$ac_ext
21244
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21245
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
30514
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30515
echo "${ECHO_T}$ac_header_preproc" >&6; }
21246
30516
 
21247
30517
# So?  What about this header?
21248
30518
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21266
30536
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21267
30537
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21268
30538
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21269
 
    (
21270
 
      cat <<\_ASBOX
 
30539
    ( cat <<\_ASBOX
21271
30540
## ------------------------------------ ##
21272
30541
## Report this to m17n-lib-bug@m17n.org ##
21273
30542
## ------------------------------------ ##
21274
30543
_ASBOX
21275
 
    ) |
21276
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
30544
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21277
30545
    ;;
21278
30546
esac
21279
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21280
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
30547
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
30548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
30549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21282
30550
  echo $ECHO_N "(cached) $ECHO_C" >&6
21283
30551
else
21284
30552
  eval "$as_ac_Header=\$ac_header_preproc"
21285
30553
fi
21286
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21287
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
30554
ac_res=`eval echo '${'$as_ac_Header'}'`
 
30555
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
30556
echo "${ECHO_T}$ac_res" >&6; }
21288
30557
 
21289
30558
fi
21290
30559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21297
30566
done
21298
30567
 
21299
30568
if test "${ac_cv_header_X11_Xaw_Command_h+set}" = set; then
21300
 
  echo "$as_me:$LINENO: checking for X11/Xaw/Command.h" >&5
21301
 
echo $ECHO_N "checking for X11/Xaw/Command.h... $ECHO_C" >&6
 
30569
  { echo "$as_me:$LINENO: checking for X11/Xaw/Command.h" >&5
 
30570
echo $ECHO_N "checking for X11/Xaw/Command.h... $ECHO_C" >&6; }
21302
30571
if test "${ac_cv_header_X11_Xaw_Command_h+set}" = set; then
21303
30572
  echo $ECHO_N "(cached) $ECHO_C" >&6
21304
30573
fi
21305
 
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Command_h" >&5
21306
 
echo "${ECHO_T}$ac_cv_header_X11_Xaw_Command_h" >&6
 
30574
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Command_h" >&5
 
30575
echo "${ECHO_T}$ac_cv_header_X11_Xaw_Command_h" >&6; }
21307
30576
else
21308
30577
  # Is the header compilable?
21309
 
echo "$as_me:$LINENO: checking X11/Xaw/Command.h usability" >&5
21310
 
echo $ECHO_N "checking X11/Xaw/Command.h usability... $ECHO_C" >&6
 
30578
{ echo "$as_me:$LINENO: checking X11/Xaw/Command.h usability" >&5
 
30579
echo $ECHO_N "checking X11/Xaw/Command.h usability... $ECHO_C" >&6; }
21311
30580
cat >conftest.$ac_ext <<_ACEOF
21312
30581
/* confdefs.h.  */
21313
30582
_ACEOF
21318
30587
#include <X11/Xaw/Command.h>
21319
30588
_ACEOF
21320
30589
rm -f conftest.$ac_objext
21321
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21322
 
  (eval $ac_compile) 2>conftest.er1
 
30590
if { (ac_try="$ac_compile"
 
30591
case "(($ac_try" in
 
30592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30593
  *) ac_try_echo=$ac_try;;
 
30594
esac
 
30595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30596
  (eval "$ac_compile") 2>conftest.er1
21323
30597
  ac_status=$?
21324
30598
  grep -v '^ *+' conftest.er1 >conftest.err
21325
30599
  rm -f conftest.er1
21326
30600
  cat conftest.err >&5
21327
30601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328
30602
  (exit $ac_status); } &&
21329
 
         { ac_try='test -z "$ac_c_werror_flag"
21330
 
                         || test ! -s conftest.err'
21331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332
 
  (eval $ac_try) 2>&5
 
30603
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30604
  { (case "(($ac_try" in
 
30605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30606
  *) ac_try_echo=$ac_try;;
 
30607
esac
 
30608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30609
  (eval "$ac_try") 2>&5
21333
30610
  ac_status=$?
21334
30611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335
30612
  (exit $ac_status); }; } &&
21336
30613
         { ac_try='test -s conftest.$ac_objext'
21337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338
 
  (eval $ac_try) 2>&5
 
30614
  { (case "(($ac_try" in
 
30615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30616
  *) ac_try_echo=$ac_try;;
 
30617
esac
 
30618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30619
  (eval "$ac_try") 2>&5
21339
30620
  ac_status=$?
21340
30621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341
30622
  (exit $ac_status); }; }; then
21344
30625
  echo "$as_me: failed program was:" >&5
21345
30626
sed 's/^/| /' conftest.$ac_ext >&5
21346
30627
 
21347
 
ac_header_compiler=no
 
30628
        ac_header_compiler=no
21348
30629
fi
21349
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21350
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21351
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
30630
 
 
30631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30632
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30633
echo "${ECHO_T}$ac_header_compiler" >&6; }
21352
30634
 
21353
30635
# Is the header present?
21354
 
echo "$as_me:$LINENO: checking X11/Xaw/Command.h presence" >&5
21355
 
echo $ECHO_N "checking X11/Xaw/Command.h presence... $ECHO_C" >&6
 
30636
{ echo "$as_me:$LINENO: checking X11/Xaw/Command.h presence" >&5
 
30637
echo $ECHO_N "checking X11/Xaw/Command.h presence... $ECHO_C" >&6; }
21356
30638
cat >conftest.$ac_ext <<_ACEOF
21357
30639
/* confdefs.h.  */
21358
30640
_ACEOF
21361
30643
/* end confdefs.h.  */
21362
30644
#include <X11/Xaw/Command.h>
21363
30645
_ACEOF
21364
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21365
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
30646
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
30647
case "(($ac_try" in
 
30648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30649
  *) ac_try_echo=$ac_try;;
 
30650
esac
 
30651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30652
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21366
30653
  ac_status=$?
21367
30654
  grep -v '^ *+' conftest.er1 >conftest.err
21368
30655
  rm -f conftest.er1
21386
30673
 
21387
30674
  ac_header_preproc=no
21388
30675
fi
 
30676
 
21389
30677
rm -f conftest.err conftest.$ac_ext
21390
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21391
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
30678
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30679
echo "${ECHO_T}$ac_header_preproc" >&6; }
21392
30680
 
21393
30681
# So?  What about this header?
21394
30682
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21412
30700
echo "$as_me: WARNING: X11/Xaw/Command.h: proceeding with the preprocessor's result" >&2;}
21413
30701
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/Command.h: in the future, the compiler will take precedence" >&5
21414
30702
echo "$as_me: WARNING: X11/Xaw/Command.h: in the future, the compiler will take precedence" >&2;}
21415
 
    (
21416
 
      cat <<\_ASBOX
 
30703
    ( cat <<\_ASBOX
21417
30704
## ------------------------------------ ##
21418
30705
## Report this to m17n-lib-bug@m17n.org ##
21419
30706
## ------------------------------------ ##
21420
30707
_ASBOX
21421
 
    ) |
21422
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
30708
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21423
30709
    ;;
21424
30710
esac
21425
 
echo "$as_me:$LINENO: checking for X11/Xaw/Command.h" >&5
21426
 
echo $ECHO_N "checking for X11/Xaw/Command.h... $ECHO_C" >&6
 
30711
{ echo "$as_me:$LINENO: checking for X11/Xaw/Command.h" >&5
 
30712
echo $ECHO_N "checking for X11/Xaw/Command.h... $ECHO_C" >&6; }
21427
30713
if test "${ac_cv_header_X11_Xaw_Command_h+set}" = set; then
21428
30714
  echo $ECHO_N "(cached) $ECHO_C" >&6
21429
30715
else
21430
30716
  ac_cv_header_X11_Xaw_Command_h=$ac_header_preproc
21431
30717
fi
21432
 
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Command_h" >&5
21433
 
echo "${ECHO_T}$ac_cv_header_X11_Xaw_Command_h" >&6
 
30718
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Command_h" >&5
 
30719
echo "${ECHO_T}$ac_cv_header_X11_Xaw_Command_h" >&6; }
21434
30720
 
21435
30721
fi
21436
30722
if test $ac_cv_header_X11_Xaw_Command_h = yes; then
21439
30725
 
21440
30726
 
21441
30727
 
21442
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21443
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
30728
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
30729
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21444
30730
if test "${ac_cv_c_const+set}" = set; then
21445
30731
  echo $ECHO_N "(cached) $ECHO_C" >&6
21446
30732
else
21458
30744
#ifndef __cplusplus
21459
30745
  /* Ultrix mips cc rejects this.  */
21460
30746
  typedef int charset[2];
21461
 
  const charset x;
 
30747
  const charset cs;
21462
30748
  /* SunOS 4.1.1 cc rejects this.  */
21463
 
  char const *const *ccp;
21464
 
  char **p;
 
30749
  char const *const *pcpcc;
 
30750
  char **ppc;
21465
30751
  /* NEC SVR4.0.2 mips cc rejects this.  */
21466
30752
  struct point {int x, y;};
21467
30753
  static struct point const zero = {0,0};
21470
30756
     an arm of an if-expression whose if-part is not a constant
21471
30757
     expression */
21472
30758
  const char *g = "string";
21473
 
  ccp = &g + (g ? g-g : 0);
 
30759
  pcpcc = &g + (g ? g-g : 0);
21474
30760
  /* HPUX 7.0 cc rejects these. */
21475
 
  ++ccp;
21476
 
  p = (char**) ccp;
21477
 
  ccp = (char const *const *) p;
 
30761
  ++pcpcc;
 
30762
  ppc = (char**) pcpcc;
 
30763
  pcpcc = (char const *const *) ppc;
21478
30764
  { /* SCO 3.2v4 cc rejects this.  */
21479
30765
    char *t;
21480
30766
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21481
30767
 
21482
30768
    *t++ = 0;
 
30769
    if (s) return 0;
21483
30770
  }
21484
30771
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21485
30772
    int x[] = {25, 17};
21498
30785
  }
21499
30786
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21500
30787
    const int foo = 10;
 
30788
    if (!foo) return 0;
21501
30789
  }
 
30790
  return !cs[0] && !zero.x;
21502
30791
#endif
21503
30792
 
21504
30793
  ;
21506
30795
}
21507
30796
_ACEOF
21508
30797
rm -f conftest.$ac_objext
21509
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510
 
  (eval $ac_compile) 2>conftest.er1
 
30798
if { (ac_try="$ac_compile"
 
30799
case "(($ac_try" in
 
30800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30801
  *) ac_try_echo=$ac_try;;
 
30802
esac
 
30803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30804
  (eval "$ac_compile") 2>conftest.er1
21511
30805
  ac_status=$?
21512
30806
  grep -v '^ *+' conftest.er1 >conftest.err
21513
30807
  rm -f conftest.er1
21514
30808
  cat conftest.err >&5
21515
30809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516
30810
  (exit $ac_status); } &&
21517
 
         { ac_try='test -z "$ac_c_werror_flag"
21518
 
                         || test ! -s conftest.err'
21519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520
 
  (eval $ac_try) 2>&5
 
30811
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30812
  { (case "(($ac_try" in
 
30813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30814
  *) ac_try_echo=$ac_try;;
 
30815
esac
 
30816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30817
  (eval "$ac_try") 2>&5
21521
30818
  ac_status=$?
21522
30819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523
30820
  (exit $ac_status); }; } &&
21524
30821
         { ac_try='test -s conftest.$ac_objext'
21525
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526
 
  (eval $ac_try) 2>&5
 
30822
  { (case "(($ac_try" in
 
30823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30824
  *) ac_try_echo=$ac_try;;
 
30825
esac
 
30826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30827
  (eval "$ac_try") 2>&5
21527
30828
  ac_status=$?
21528
30829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529
30830
  (exit $ac_status); }; }; then
21532
30833
  echo "$as_me: failed program was:" >&5
21533
30834
sed 's/^/| /' conftest.$ac_ext >&5
21534
30835
 
21535
 
ac_cv_c_const=no
21536
 
fi
21537
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538
 
fi
21539
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21540
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
30836
        ac_cv_c_const=no
 
30837
fi
 
30838
 
 
30839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30840
fi
 
30841
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
30842
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21541
30843
if test $ac_cv_c_const = no; then
21542
30844
 
21543
30845
cat >>confdefs.h <<\_ACEOF
21546
30848
 
21547
30849
fi
21548
30850
 
21549
 
echo "$as_me:$LINENO: checking for inline" >&5
21550
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
30851
{ echo "$as_me:$LINENO: checking for inline" >&5
 
30852
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21551
30853
if test "${ac_cv_c_inline+set}" = set; then
21552
30854
  echo $ECHO_N "(cached) $ECHO_C" >&6
21553
30855
else
21567
30869
 
21568
30870
_ACEOF
21569
30871
rm -f conftest.$ac_objext
21570
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571
 
  (eval $ac_compile) 2>conftest.er1
 
30872
if { (ac_try="$ac_compile"
 
30873
case "(($ac_try" in
 
30874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30875
  *) ac_try_echo=$ac_try;;
 
30876
esac
 
30877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30878
  (eval "$ac_compile") 2>conftest.er1
21572
30879
  ac_status=$?
21573
30880
  grep -v '^ *+' conftest.er1 >conftest.err
21574
30881
  rm -f conftest.er1
21575
30882
  cat conftest.err >&5
21576
30883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577
30884
  (exit $ac_status); } &&
21578
 
         { ac_try='test -z "$ac_c_werror_flag"
21579
 
                         || test ! -s conftest.err'
21580
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581
 
  (eval $ac_try) 2>&5
 
30885
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30886
  { (case "(($ac_try" in
 
30887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30888
  *) ac_try_echo=$ac_try;;
 
30889
esac
 
30890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30891
  (eval "$ac_try") 2>&5
21582
30892
  ac_status=$?
21583
30893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584
30894
  (exit $ac_status); }; } &&
21585
30895
         { ac_try='test -s conftest.$ac_objext'
21586
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587
 
  (eval $ac_try) 2>&5
 
30896
  { (case "(($ac_try" in
 
30897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30898
  *) ac_try_echo=$ac_try;;
 
30899
esac
 
30900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30901
  (eval "$ac_try") 2>&5
21588
30902
  ac_status=$?
21589
30903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590
30904
  (exit $ac_status); }; }; then
21591
 
  ac_cv_c_inline=$ac_kw; break
 
30905
  ac_cv_c_inline=$ac_kw
21592
30906
else
21593
30907
  echo "$as_me: failed program was:" >&5
21594
30908
sed 's/^/| /' conftest.$ac_ext >&5
21595
30909
 
 
30910
 
21596
30911
fi
21597
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30912
 
 
30913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30914
  test "$ac_cv_c_inline" != no && break
21598
30915
done
21599
30916
 
21600
30917
fi
21601
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21602
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
30918
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
30919
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21603
30920
 
21604
30921
 
21605
30922
case $ac_cv_c_inline in
21617
30934
    ;;
21618
30935
esac
21619
30936
 
21620
 
echo "$as_me:$LINENO: checking for size_t" >&5
21621
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
30937
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
30938
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21622
30939
if test "${ac_cv_type_size_t+set}" = set; then
21623
30940
  echo $ECHO_N "(cached) $ECHO_C" >&6
21624
30941
else
21629
30946
cat >>conftest.$ac_ext <<_ACEOF
21630
30947
/* end confdefs.h.  */
21631
30948
$ac_includes_default
 
30949
typedef size_t ac__type_new_;
21632
30950
int
21633
30951
main ()
21634
30952
{
21635
 
if ((size_t *) 0)
 
30953
if ((ac__type_new_ *) 0)
21636
30954
  return 0;
21637
 
if (sizeof (size_t))
 
30955
if (sizeof (ac__type_new_))
21638
30956
  return 0;
21639
30957
  ;
21640
30958
  return 0;
21641
30959
}
21642
30960
_ACEOF
21643
30961
rm -f conftest.$ac_objext
21644
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645
 
  (eval $ac_compile) 2>conftest.er1
 
30962
if { (ac_try="$ac_compile"
 
30963
case "(($ac_try" in
 
30964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30965
  *) ac_try_echo=$ac_try;;
 
30966
esac
 
30967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30968
  (eval "$ac_compile") 2>conftest.er1
21646
30969
  ac_status=$?
21647
30970
  grep -v '^ *+' conftest.er1 >conftest.err
21648
30971
  rm -f conftest.er1
21649
30972
  cat conftest.err >&5
21650
30973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651
30974
  (exit $ac_status); } &&
21652
 
         { ac_try='test -z "$ac_c_werror_flag"
21653
 
                         || test ! -s conftest.err'
21654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655
 
  (eval $ac_try) 2>&5
 
30975
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
30976
  { (case "(($ac_try" in
 
30977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30978
  *) ac_try_echo=$ac_try;;
 
30979
esac
 
30980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30981
  (eval "$ac_try") 2>&5
21656
30982
  ac_status=$?
21657
30983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658
30984
  (exit $ac_status); }; } &&
21659
30985
         { ac_try='test -s conftest.$ac_objext'
21660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661
 
  (eval $ac_try) 2>&5
 
30986
  { (case "(($ac_try" in
 
30987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30988
  *) ac_try_echo=$ac_try;;
 
30989
esac
 
30990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30991
  (eval "$ac_try") 2>&5
21662
30992
  ac_status=$?
21663
30993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664
30994
  (exit $ac_status); }; }; then
21667
30997
  echo "$as_me: failed program was:" >&5
21668
30998
sed 's/^/| /' conftest.$ac_ext >&5
21669
30999
 
21670
 
ac_cv_type_size_t=no
21671
 
fi
21672
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21673
 
fi
21674
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21675
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
31000
        ac_cv_type_size_t=no
 
31001
fi
 
31002
 
 
31003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31004
fi
 
31005
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
31006
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21676
31007
if test $ac_cv_type_size_t = yes; then
21677
31008
  :
21678
31009
else
21679
31010
 
21680
31011
cat >>confdefs.h <<_ACEOF
21681
 
#define size_t unsigned
 
31012
#define size_t unsigned int
21682
31013
_ACEOF
21683
31014
 
21684
31015
fi
21685
31016
 
21686
 
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21687
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
31017
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
31018
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21688
31019
if test "${ac_cv_struct_tm+set}" = set; then
21689
31020
  echo $ECHO_N "(cached) $ECHO_C" >&6
21690
31021
else
21706
31037
}
21707
31038
_ACEOF
21708
31039
rm -f conftest.$ac_objext
21709
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21710
 
  (eval $ac_compile) 2>conftest.er1
 
31040
if { (ac_try="$ac_compile"
 
31041
case "(($ac_try" in
 
31042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31043
  *) ac_try_echo=$ac_try;;
 
31044
esac
 
31045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31046
  (eval "$ac_compile") 2>conftest.er1
21711
31047
  ac_status=$?
21712
31048
  grep -v '^ *+' conftest.er1 >conftest.err
21713
31049
  rm -f conftest.er1
21714
31050
  cat conftest.err >&5
21715
31051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716
31052
  (exit $ac_status); } &&
21717
 
         { ac_try='test -z "$ac_c_werror_flag"
21718
 
                         || test ! -s conftest.err'
21719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720
 
  (eval $ac_try) 2>&5
 
31053
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31054
  { (case "(($ac_try" in
 
31055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31056
  *) ac_try_echo=$ac_try;;
 
31057
esac
 
31058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31059
  (eval "$ac_try") 2>&5
21721
31060
  ac_status=$?
21722
31061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723
31062
  (exit $ac_status); }; } &&
21724
31063
         { ac_try='test -s conftest.$ac_objext'
21725
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726
 
  (eval $ac_try) 2>&5
 
31064
  { (case "(($ac_try" in
 
31065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31066
  *) ac_try_echo=$ac_try;;
 
31067
esac
 
31068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31069
  (eval "$ac_try") 2>&5
21727
31070
  ac_status=$?
21728
31071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729
31072
  (exit $ac_status); }; }; then
21732
31075
  echo "$as_me: failed program was:" >&5
21733
31076
sed 's/^/| /' conftest.$ac_ext >&5
21734
31077
 
21735
 
ac_cv_struct_tm=sys/time.h
21736
 
fi
21737
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21738
 
fi
21739
 
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21740
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
31078
        ac_cv_struct_tm=sys/time.h
 
31079
fi
 
31080
 
 
31081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31082
fi
 
31083
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
31084
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21741
31085
if test $ac_cv_struct_tm = sys/time.h; then
21742
31086
 
21743
31087
cat >>confdefs.h <<\_ACEOF
21747
31091
fi
21748
31092
 
21749
31093
 
21750
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21751
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
31094
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
31095
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21752
31096
if test "${ac_cv_c_bigendian+set}" = set; then
21753
31097
  echo $ECHO_N "(cached) $ECHO_C" >&6
21754
31098
else
21765
31109
int
21766
31110
main ()
21767
31111
{
21768
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
31112
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
31113
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21769
31114
 bogus endian macros
21770
31115
#endif
21771
31116
 
21774
31119
}
21775
31120
_ACEOF
21776
31121
rm -f conftest.$ac_objext
21777
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778
 
  (eval $ac_compile) 2>conftest.er1
 
31122
if { (ac_try="$ac_compile"
 
31123
case "(($ac_try" in
 
31124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31125
  *) ac_try_echo=$ac_try;;
 
31126
esac
 
31127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31128
  (eval "$ac_compile") 2>conftest.er1
21779
31129
  ac_status=$?
21780
31130
  grep -v '^ *+' conftest.er1 >conftest.err
21781
31131
  rm -f conftest.er1
21782
31132
  cat conftest.err >&5
21783
31133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784
31134
  (exit $ac_status); } &&
21785
 
         { ac_try='test -z "$ac_c_werror_flag"
21786
 
                         || test ! -s conftest.err'
21787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788
 
  (eval $ac_try) 2>&5
 
31135
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31136
  { (case "(($ac_try" in
 
31137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31138
  *) ac_try_echo=$ac_try;;
 
31139
esac
 
31140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31141
  (eval "$ac_try") 2>&5
21789
31142
  ac_status=$?
21790
31143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791
31144
  (exit $ac_status); }; } &&
21792
31145
         { ac_try='test -s conftest.$ac_objext'
21793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794
 
  (eval $ac_try) 2>&5
 
31146
  { (case "(($ac_try" in
 
31147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31148
  *) ac_try_echo=$ac_try;;
 
31149
esac
 
31150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31151
  (eval "$ac_try") 2>&5
21795
31152
  ac_status=$?
21796
31153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797
31154
  (exit $ac_status); }; }; then
21817
31174
}
21818
31175
_ACEOF
21819
31176
rm -f conftest.$ac_objext
21820
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21821
 
  (eval $ac_compile) 2>conftest.er1
 
31177
if { (ac_try="$ac_compile"
 
31178
case "(($ac_try" in
 
31179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31180
  *) ac_try_echo=$ac_try;;
 
31181
esac
 
31182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31183
  (eval "$ac_compile") 2>conftest.er1
21822
31184
  ac_status=$?
21823
31185
  grep -v '^ *+' conftest.er1 >conftest.err
21824
31186
  rm -f conftest.er1
21825
31187
  cat conftest.err >&5
21826
31188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827
31189
  (exit $ac_status); } &&
21828
 
         { ac_try='test -z "$ac_c_werror_flag"
21829
 
                         || test ! -s conftest.err'
21830
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831
 
  (eval $ac_try) 2>&5
 
31190
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31191
  { (case "(($ac_try" in
 
31192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31193
  *) ac_try_echo=$ac_try;;
 
31194
esac
 
31195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31196
  (eval "$ac_try") 2>&5
21832
31197
  ac_status=$?
21833
31198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834
31199
  (exit $ac_status); }; } &&
21835
31200
         { ac_try='test -s conftest.$ac_objext'
21836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837
 
  (eval $ac_try) 2>&5
 
31201
  { (case "(($ac_try" in
 
31202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31203
  *) ac_try_echo=$ac_try;;
 
31204
esac
 
31205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31206
  (eval "$ac_try") 2>&5
21838
31207
  ac_status=$?
21839
31208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840
31209
  (exit $ac_status); }; }; then
21843
31212
  echo "$as_me: failed program was:" >&5
21844
31213
sed 's/^/| /' conftest.$ac_ext >&5
21845
31214
 
21846
 
ac_cv_c_bigendian=no
 
31215
        ac_cv_c_bigendian=no
21847
31216
fi
21848
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31217
 
 
31218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849
31219
else
21850
31220
  echo "$as_me: failed program was:" >&5
21851
31221
sed 's/^/| /' conftest.$ac_ext >&5
21852
31222
 
21853
 
# It does not; compile a test program.
 
31223
        # It does not; compile a test program.
21854
31224
if test "$cross_compiling" = yes; then
21855
31225
  # try to guess the endianness by grepping values into an object file
21856
31226
  ac_cv_c_bigendian=unknown
21860
31230
cat confdefs.h >>conftest.$ac_ext
21861
31231
cat >>conftest.$ac_ext <<_ACEOF
21862
31232
/* end confdefs.h.  */
21863
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21864
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
31233
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
31234
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21865
31235
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21866
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21867
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
31236
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
31237
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21868
31238
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21869
31239
int
21870
31240
main ()
21875
31245
}
21876
31246
_ACEOF
21877
31247
rm -f conftest.$ac_objext
21878
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879
 
  (eval $ac_compile) 2>conftest.er1
 
31248
if { (ac_try="$ac_compile"
 
31249
case "(($ac_try" in
 
31250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31251
  *) ac_try_echo=$ac_try;;
 
31252
esac
 
31253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31254
  (eval "$ac_compile") 2>conftest.er1
21880
31255
  ac_status=$?
21881
31256
  grep -v '^ *+' conftest.er1 >conftest.err
21882
31257
  rm -f conftest.er1
21883
31258
  cat conftest.err >&5
21884
31259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885
31260
  (exit $ac_status); } &&
21886
 
         { ac_try='test -z "$ac_c_werror_flag"
21887
 
                         || test ! -s conftest.err'
21888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889
 
  (eval $ac_try) 2>&5
 
31261
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31262
  { (case "(($ac_try" in
 
31263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31264
  *) ac_try_echo=$ac_try;;
 
31265
esac
 
31266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31267
  (eval "$ac_try") 2>&5
21890
31268
  ac_status=$?
21891
31269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892
31270
  (exit $ac_status); }; } &&
21893
31271
         { ac_try='test -s conftest.$ac_objext'
21894
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895
 
  (eval $ac_try) 2>&5
 
31272
  { (case "(($ac_try" in
 
31273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31274
  *) ac_try_echo=$ac_try;;
 
31275
esac
 
31276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31277
  (eval "$ac_try") 2>&5
21896
31278
  ac_status=$?
21897
31279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898
31280
  (exit $ac_status); }; }; then
21911
31293
  echo "$as_me: failed program was:" >&5
21912
31294
sed 's/^/| /' conftest.$ac_ext >&5
21913
31295
 
 
31296
 
21914
31297
fi
21915
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31298
 
 
31299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916
31300
else
21917
31301
  cat >conftest.$ac_ext <<_ACEOF
21918
31302
/* confdefs.h.  */
21920
31304
cat confdefs.h >>conftest.$ac_ext
21921
31305
cat >>conftest.$ac_ext <<_ACEOF
21922
31306
/* end confdefs.h.  */
 
31307
$ac_includes_default
21923
31308
int
21924
31309
main ()
21925
31310
{
 
31311
 
21926
31312
  /* Are we little or big endian?  From Harbison&Steele.  */
21927
31313
  union
21928
31314
  {
21929
 
    long l;
21930
 
    char c[sizeof (long)];
 
31315
    long int l;
 
31316
    char c[sizeof (long int)];
21931
31317
  } u;
21932
31318
  u.l = 1;
21933
 
  exit (u.c[sizeof (long) - 1] == 1);
 
31319
  return u.c[sizeof (long int) - 1] == 1;
 
31320
 
 
31321
  ;
 
31322
  return 0;
21934
31323
}
21935
31324
_ACEOF
21936
31325
rm -f conftest$ac_exeext
21937
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21938
 
  (eval $ac_link) 2>&5
 
31326
if { (ac_try="$ac_link"
 
31327
case "(($ac_try" in
 
31328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31329
  *) ac_try_echo=$ac_try;;
 
31330
esac
 
31331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31332
  (eval "$ac_link") 2>&5
21939
31333
  ac_status=$?
21940
31334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941
31335
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943
 
  (eval $ac_try) 2>&5
 
31336
  { (case "(($ac_try" in
 
31337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31338
  *) ac_try_echo=$ac_try;;
 
31339
esac
 
31340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31341
  (eval "$ac_try") 2>&5
21944
31342
  ac_status=$?
21945
31343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946
31344
  (exit $ac_status); }; }; then
21953
31351
( exit $ac_status )
21954
31352
ac_cv_c_bigendian=yes
21955
31353
fi
21956
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21957
 
fi
21958
 
fi
21959
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21960
 
fi
21961
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21962
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
31354
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31355
fi
 
31356
 
 
31357
 
 
31358
fi
 
31359
 
 
31360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31361
fi
 
31362
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
31363
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21963
31364
case $ac_cv_c_bigendian in
21964
31365
  yes)
21965
31366
 
21980
31381
 
21981
31382
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21982
31383
# for constant arguments.  Useless!
21983
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
21984
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
31384
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
31385
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21985
31386
if test "${ac_cv_working_alloca_h+set}" = set; then
21986
31387
  echo $ECHO_N "(cached) $ECHO_C" >&6
21987
31388
else
21996
31397
main ()
21997
31398
{
21998
31399
char *p = (char *) alloca (2 * sizeof (int));
 
31400
                          if (p) return 0;
21999
31401
  ;
22000
31402
  return 0;
22001
31403
}
22002
31404
_ACEOF
22003
31405
rm -f conftest.$ac_objext conftest$ac_exeext
22004
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22005
 
  (eval $ac_link) 2>conftest.er1
 
31406
if { (ac_try="$ac_link"
 
31407
case "(($ac_try" in
 
31408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31409
  *) ac_try_echo=$ac_try;;
 
31410
esac
 
31411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31412
  (eval "$ac_link") 2>conftest.er1
22006
31413
  ac_status=$?
22007
31414
  grep -v '^ *+' conftest.er1 >conftest.err
22008
31415
  rm -f conftest.er1
22009
31416
  cat conftest.err >&5
22010
31417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011
31418
  (exit $ac_status); } &&
22012
 
         { ac_try='test -z "$ac_c_werror_flag"
22013
 
                         || test ! -s conftest.err'
22014
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015
 
  (eval $ac_try) 2>&5
 
31419
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31420
  { (case "(($ac_try" in
 
31421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31422
  *) ac_try_echo=$ac_try;;
 
31423
esac
 
31424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31425
  (eval "$ac_try") 2>&5
22016
31426
  ac_status=$?
22017
31427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018
31428
  (exit $ac_status); }; } &&
22019
31429
         { ac_try='test -s conftest$ac_exeext'
22020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021
 
  (eval $ac_try) 2>&5
 
31430
  { (case "(($ac_try" in
 
31431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31432
  *) ac_try_echo=$ac_try;;
 
31433
esac
 
31434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31435
  (eval "$ac_try") 2>&5
22022
31436
  ac_status=$?
22023
31437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024
31438
  (exit $ac_status); }; }; then
22027
31441
  echo "$as_me: failed program was:" >&5
22028
31442
sed 's/^/| /' conftest.$ac_ext >&5
22029
31443
 
22030
 
ac_cv_working_alloca_h=no
 
31444
        ac_cv_working_alloca_h=no
22031
31445
fi
22032
 
rm -f conftest.err conftest.$ac_objext \
 
31446
 
 
31447
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22033
31448
      conftest$ac_exeext conftest.$ac_ext
22034
31449
fi
22035
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22036
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
31450
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
31451
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
22037
31452
if test $ac_cv_working_alloca_h = yes; then
22038
31453
 
22039
31454
cat >>confdefs.h <<\_ACEOF
22042
31457
 
22043
31458
fi
22044
31459
 
22045
 
echo "$as_me:$LINENO: checking for alloca" >&5
22046
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
31460
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
31461
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
22047
31462
if test "${ac_cv_func_alloca_works+set}" = set; then
22048
31463
  echo $ECHO_N "(cached) $ECHO_C" >&6
22049
31464
else
22060
31475
#  include <malloc.h>
22061
31476
#  define alloca _alloca
22062
31477
# else
22063
 
#  if HAVE_ALLOCA_H
 
31478
#  ifdef HAVE_ALLOCA_H
22064
31479
#   include <alloca.h>
22065
31480
#  else
22066
31481
#   ifdef _AIX
22078
31493
main ()
22079
31494
{
22080
31495
char *p = (char *) alloca (1);
 
31496
                                    if (p) return 0;
22081
31497
  ;
22082
31498
  return 0;
22083
31499
}
22084
31500
_ACEOF
22085
31501
rm -f conftest.$ac_objext conftest$ac_exeext
22086
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087
 
  (eval $ac_link) 2>conftest.er1
 
31502
if { (ac_try="$ac_link"
 
31503
case "(($ac_try" in
 
31504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31505
  *) ac_try_echo=$ac_try;;
 
31506
esac
 
31507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31508
  (eval "$ac_link") 2>conftest.er1
22088
31509
  ac_status=$?
22089
31510
  grep -v '^ *+' conftest.er1 >conftest.err
22090
31511
  rm -f conftest.er1
22091
31512
  cat conftest.err >&5
22092
31513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093
31514
  (exit $ac_status); } &&
22094
 
         { ac_try='test -z "$ac_c_werror_flag"
22095
 
                         || test ! -s conftest.err'
22096
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097
 
  (eval $ac_try) 2>&5
 
31515
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31516
  { (case "(($ac_try" in
 
31517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31518
  *) ac_try_echo=$ac_try;;
 
31519
esac
 
31520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31521
  (eval "$ac_try") 2>&5
22098
31522
  ac_status=$?
22099
31523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100
31524
  (exit $ac_status); }; } &&
22101
31525
         { ac_try='test -s conftest$ac_exeext'
22102
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103
 
  (eval $ac_try) 2>&5
 
31526
  { (case "(($ac_try" in
 
31527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31528
  *) ac_try_echo=$ac_try;;
 
31529
esac
 
31530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31531
  (eval "$ac_try") 2>&5
22104
31532
  ac_status=$?
22105
31533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106
31534
  (exit $ac_status); }; }; then
22109
31537
  echo "$as_me: failed program was:" >&5
22110
31538
sed 's/^/| /' conftest.$ac_ext >&5
22111
31539
 
22112
 
ac_cv_func_alloca_works=no
 
31540
        ac_cv_func_alloca_works=no
22113
31541
fi
22114
 
rm -f conftest.err conftest.$ac_objext \
 
31542
 
 
31543
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22115
31544
      conftest$ac_exeext conftest.$ac_ext
22116
31545
fi
22117
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22118
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
31546
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
31547
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22119
31548
 
22120
31549
if test $ac_cv_func_alloca_works = yes; then
22121
31550
 
22129
31558
# contain a buggy version.  If you still want to use their alloca,
22130
31559
# use ar to extract alloca.o from them instead of compiling alloca.c.
22131
31560
 
22132
 
ALLOCA=alloca.$ac_objext
 
31561
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22133
31562
 
22134
31563
cat >>confdefs.h <<\_ACEOF
22135
31564
#define C_ALLOCA 1
22136
31565
_ACEOF
22137
31566
 
22138
31567
 
22139
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22140
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
31568
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
31569
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22141
31570
if test "${ac_cv_os_cray+set}" = set; then
22142
31571
  echo $ECHO_N "(cached) $ECHO_C" >&6
22143
31572
else
22147
31576
cat confdefs.h >>conftest.$ac_ext
22148
31577
cat >>conftest.$ac_ext <<_ACEOF
22149
31578
/* end confdefs.h.  */
22150
 
#if defined(CRAY) && ! defined(CRAY2)
 
31579
#if defined CRAY && ! defined CRAY2
22151
31580
webecray
22152
31581
#else
22153
31582
wenotbecray
22163
31592
rm -f conftest*
22164
31593
 
22165
31594
fi
22166
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22167
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
31595
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
31596
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22168
31597
if test $ac_cv_os_cray = yes; then
22169
31598
  for ac_func in _getb67 GETB67 getb67; do
22170
31599
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22171
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22172
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22173
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31600
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31601
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
31602
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22174
31603
  echo $ECHO_N "(cached) $ECHO_C" >&6
22175
31604
else
22176
31605
  cat >conftest.$ac_ext <<_ACEOF
22196
31625
 
22197
31626
#undef $ac_func
22198
31627
 
22199
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
31628
/* Override any GCC internal prototype to avoid an error.
 
31629
   Use char because int might match the return type of a GCC
 
31630
   builtin and then its argument prototype would still apply.  */
22200
31631
#ifdef __cplusplus
22201
31632
extern "C"
22202
 
{
22203
31633
#endif
22204
 
/* We use char because int might match the return type of a gcc2
22205
 
   builtin and then its argument prototype would still apply.  */
22206
31634
char $ac_func ();
22207
31635
/* The GNU C library defines this for functions which it implements
22208
31636
    to always fail with ENOSYS.  Some functions are actually named
22209
31637
    something starting with __ and the normal name is an alias.  */
22210
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31638
#if defined __stub_$ac_func || defined __stub___$ac_func
22211
31639
choke me
22212
 
#else
22213
 
char (*f) () = $ac_func;
22214
 
#endif
22215
 
#ifdef __cplusplus
22216
 
}
22217
31640
#endif
22218
31641
 
22219
31642
int
22220
31643
main ()
22221
31644
{
22222
 
return f != $ac_func;
 
31645
return $ac_func ();
22223
31646
  ;
22224
31647
  return 0;
22225
31648
}
22226
31649
_ACEOF
22227
31650
rm -f conftest.$ac_objext conftest$ac_exeext
22228
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229
 
  (eval $ac_link) 2>conftest.er1
 
31651
if { (ac_try="$ac_link"
 
31652
case "(($ac_try" in
 
31653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31654
  *) ac_try_echo=$ac_try;;
 
31655
esac
 
31656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31657
  (eval "$ac_link") 2>conftest.er1
22230
31658
  ac_status=$?
22231
31659
  grep -v '^ *+' conftest.er1 >conftest.err
22232
31660
  rm -f conftest.er1
22233
31661
  cat conftest.err >&5
22234
31662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235
31663
  (exit $ac_status); } &&
22236
 
         { ac_try='test -z "$ac_c_werror_flag"
22237
 
                         || test ! -s conftest.err'
22238
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239
 
  (eval $ac_try) 2>&5
 
31664
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31665
  { (case "(($ac_try" in
 
31666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31667
  *) ac_try_echo=$ac_try;;
 
31668
esac
 
31669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31670
  (eval "$ac_try") 2>&5
22240
31671
  ac_status=$?
22241
31672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242
31673
  (exit $ac_status); }; } &&
22243
31674
         { ac_try='test -s conftest$ac_exeext'
22244
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245
 
  (eval $ac_try) 2>&5
 
31675
  { (case "(($ac_try" in
 
31676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31677
  *) ac_try_echo=$ac_try;;
 
31678
esac
 
31679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31680
  (eval "$ac_try") 2>&5
22246
31681
  ac_status=$?
22247
31682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248
31683
  (exit $ac_status); }; }; then
22251
31686
  echo "$as_me: failed program was:" >&5
22252
31687
sed 's/^/| /' conftest.$ac_ext >&5
22253
31688
 
22254
 
eval "$as_ac_var=no"
 
31689
        eval "$as_ac_var=no"
22255
31690
fi
22256
 
rm -f conftest.err conftest.$ac_objext \
 
31691
 
 
31692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22257
31693
      conftest$ac_exeext conftest.$ac_ext
22258
31694
fi
22259
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22260
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31695
ac_res=`eval echo '${'$as_ac_var'}'`
 
31696
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
31697
echo "${ECHO_T}$ac_res" >&6; }
22261
31698
if test `eval echo '${'$as_ac_var'}'` = yes; then
22262
31699
 
22263
31700
cat >>confdefs.h <<_ACEOF
22270
31707
  done
22271
31708
fi
22272
31709
 
22273
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22274
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
31710
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
31711
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22275
31712
if test "${ac_cv_c_stack_direction+set}" = set; then
22276
31713
  echo $ECHO_N "(cached) $ECHO_C" >&6
22277
31714
else
22284
31721
cat confdefs.h >>conftest.$ac_ext
22285
31722
cat >>conftest.$ac_ext <<_ACEOF
22286
31723
/* end confdefs.h.  */
 
31724
$ac_includes_default
22287
31725
int
22288
31726
find_stack_direction ()
22289
31727
{
22301
31739
int
22302
31740
main ()
22303
31741
{
22304
 
  exit (find_stack_direction () < 0);
 
31742
  return find_stack_direction () < 0;
22305
31743
}
22306
31744
_ACEOF
22307
31745
rm -f conftest$ac_exeext
22308
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22309
 
  (eval $ac_link) 2>&5
 
31746
if { (ac_try="$ac_link"
 
31747
case "(($ac_try" in
 
31748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31749
  *) ac_try_echo=$ac_try;;
 
31750
esac
 
31751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31752
  (eval "$ac_link") 2>&5
22310
31753
  ac_status=$?
22311
31754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312
31755
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314
 
  (eval $ac_try) 2>&5
 
31756
  { (case "(($ac_try" in
 
31757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31758
  *) ac_try_echo=$ac_try;;
 
31759
esac
 
31760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31761
  (eval "$ac_try") 2>&5
22315
31762
  ac_status=$?
22316
31763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317
31764
  (exit $ac_status); }; }; then
22324
31771
( exit $ac_status )
22325
31772
ac_cv_c_stack_direction=-1
22326
31773
fi
22327
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22328
 
fi
22329
 
fi
22330
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22331
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
31774
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31775
fi
 
31776
 
 
31777
 
 
31778
fi
 
31779
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
31780
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22332
31781
 
22333
31782
cat >>confdefs.h <<_ACEOF
22334
31783
#define STACK_DIRECTION $ac_cv_c_stack_direction
22341
31790
for ac_header in stdlib.h
22342
31791
do
22343
31792
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22344
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22345
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
22346
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22347
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
31793
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
31794
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31795
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
31796
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22348
31797
  echo $ECHO_N "(cached) $ECHO_C" >&6
22349
31798
fi
22350
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22351
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
31799
ac_res=`eval echo '${'$as_ac_Header'}'`
 
31800
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
31801
echo "${ECHO_T}$ac_res" >&6; }
22352
31802
else
22353
31803
  # Is the header compilable?
22354
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22355
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
31804
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
31805
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22356
31806
cat >conftest.$ac_ext <<_ACEOF
22357
31807
/* confdefs.h.  */
22358
31808
_ACEOF
22363
31813
#include <$ac_header>
22364
31814
_ACEOF
22365
31815
rm -f conftest.$ac_objext
22366
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22367
 
  (eval $ac_compile) 2>conftest.er1
 
31816
if { (ac_try="$ac_compile"
 
31817
case "(($ac_try" in
 
31818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31819
  *) ac_try_echo=$ac_try;;
 
31820
esac
 
31821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31822
  (eval "$ac_compile") 2>conftest.er1
22368
31823
  ac_status=$?
22369
31824
  grep -v '^ *+' conftest.er1 >conftest.err
22370
31825
  rm -f conftest.er1
22371
31826
  cat conftest.err >&5
22372
31827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373
31828
  (exit $ac_status); } &&
22374
 
         { ac_try='test -z "$ac_c_werror_flag"
22375
 
                         || test ! -s conftest.err'
22376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377
 
  (eval $ac_try) 2>&5
 
31829
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31830
  { (case "(($ac_try" in
 
31831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31832
  *) ac_try_echo=$ac_try;;
 
31833
esac
 
31834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31835
  (eval "$ac_try") 2>&5
22378
31836
  ac_status=$?
22379
31837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380
31838
  (exit $ac_status); }; } &&
22381
31839
         { ac_try='test -s conftest.$ac_objext'
22382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383
 
  (eval $ac_try) 2>&5
 
31840
  { (case "(($ac_try" in
 
31841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31842
  *) ac_try_echo=$ac_try;;
 
31843
esac
 
31844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31845
  (eval "$ac_try") 2>&5
22384
31846
  ac_status=$?
22385
31847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386
31848
  (exit $ac_status); }; }; then
22389
31851
  echo "$as_me: failed program was:" >&5
22390
31852
sed 's/^/| /' conftest.$ac_ext >&5
22391
31853
 
22392
 
ac_header_compiler=no
 
31854
        ac_header_compiler=no
22393
31855
fi
22394
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22395
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22396
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
31856
 
 
31857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31859
echo "${ECHO_T}$ac_header_compiler" >&6; }
22397
31860
 
22398
31861
# Is the header present?
22399
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22400
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
31862
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
31863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22401
31864
cat >conftest.$ac_ext <<_ACEOF
22402
31865
/* confdefs.h.  */
22403
31866
_ACEOF
22406
31869
/* end confdefs.h.  */
22407
31870
#include <$ac_header>
22408
31871
_ACEOF
22409
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22410
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
31872
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
31873
case "(($ac_try" in
 
31874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31875
  *) ac_try_echo=$ac_try;;
 
31876
esac
 
31877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31878
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22411
31879
  ac_status=$?
22412
31880
  grep -v '^ *+' conftest.er1 >conftest.err
22413
31881
  rm -f conftest.er1
22431
31899
 
22432
31900
  ac_header_preproc=no
22433
31901
fi
 
31902
 
22434
31903
rm -f conftest.err conftest.$ac_ext
22435
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22436
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
31904
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31905
echo "${ECHO_T}$ac_header_preproc" >&6; }
22437
31906
 
22438
31907
# So?  What about this header?
22439
31908
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457
31926
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22458
31927
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22459
31928
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22460
 
    (
22461
 
      cat <<\_ASBOX
 
31929
    ( cat <<\_ASBOX
22462
31930
## ------------------------------------ ##
22463
31931
## Report this to m17n-lib-bug@m17n.org ##
22464
31932
## ------------------------------------ ##
22465
31933
_ASBOX
22466
 
    ) |
22467
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
31934
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22468
31935
    ;;
22469
31936
esac
22470
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
22471
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22472
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
31937
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31938
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
31939
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22473
31940
  echo $ECHO_N "(cached) $ECHO_C" >&6
22474
31941
else
22475
31942
  eval "$as_ac_Header=\$ac_header_preproc"
22476
31943
fi
22477
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22478
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
31944
ac_res=`eval echo '${'$as_ac_Header'}'`
 
31945
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
31946
echo "${ECHO_T}$ac_res" >&6; }
22479
31947
 
22480
31948
fi
22481
31949
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22487
31955
 
22488
31956
done
22489
31957
 
22490
 
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22491
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
31958
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
31959
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22492
31960
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22493
31961
  echo $ECHO_N "(cached) $ECHO_C" >&6
22494
31962
else
22501
31969
cat confdefs.h >>conftest.$ac_ext
22502
31970
cat >>conftest.$ac_ext <<_ACEOF
22503
31971
/* end confdefs.h.  */
22504
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
31972
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22505
31973
# include <stdlib.h>
22506
31974
#else
22507
31975
char *malloc ();
22510
31978
int
22511
31979
main ()
22512
31980
{
22513
 
exit (malloc (0) ? 0 : 1);
 
31981
return ! malloc (0);
22514
31982
  ;
22515
31983
  return 0;
22516
31984
}
22517
31985
_ACEOF
22518
31986
rm -f conftest$ac_exeext
22519
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22520
 
  (eval $ac_link) 2>&5
 
31987
if { (ac_try="$ac_link"
 
31988
case "(($ac_try" in
 
31989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31990
  *) ac_try_echo=$ac_try;;
 
31991
esac
 
31992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31993
  (eval "$ac_link") 2>&5
22521
31994
  ac_status=$?
22522
31995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523
31996
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22524
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525
 
  (eval $ac_try) 2>&5
 
31997
  { (case "(($ac_try" in
 
31998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31999
  *) ac_try_echo=$ac_try;;
 
32000
esac
 
32001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32002
  (eval "$ac_try") 2>&5
22526
32003
  ac_status=$?
22527
32004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528
32005
  (exit $ac_status); }; }; then
22535
32012
( exit $ac_status )
22536
32013
ac_cv_func_malloc_0_nonnull=no
22537
32014
fi
22538
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22539
 
fi
22540
 
fi
22541
 
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22542
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
32015
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32016
fi
 
32017
 
 
32018
 
 
32019
fi
 
32020
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
32021
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22543
32022
if test $ac_cv_func_malloc_0_nonnull = yes; then
22544
32023
 
22545
32024
cat >>confdefs.h <<\_ACEOF
22551
32030
#define HAVE_MALLOC 0
22552
32031
_ACEOF
22553
32032
 
22554
 
   case $LIBOBJS in
22555
 
    "malloc.$ac_objext"   | \
22556
 
  *" malloc.$ac_objext"   | \
22557
 
    "malloc.$ac_objext "* | \
 
32033
   case " $LIBOBJS " in
22558
32034
  *" malloc.$ac_objext "* ) ;;
22559
 
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
32035
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
32036
 ;;
22560
32037
esac
22561
32038
 
22562
32039
 
22572
32049
for ac_header in stdlib.h
22573
32050
do
22574
32051
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22575
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22576
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
22577
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22578
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32052
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
32053
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32054
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
32055
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22579
32056
  echo $ECHO_N "(cached) $ECHO_C" >&6
22580
32057
fi
22581
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22582
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32058
ac_res=`eval echo '${'$as_ac_Header'}'`
 
32059
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
32060
echo "${ECHO_T}$ac_res" >&6; }
22583
32061
else
22584
32062
  # Is the header compilable?
22585
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22586
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
32063
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
32064
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22587
32065
cat >conftest.$ac_ext <<_ACEOF
22588
32066
/* confdefs.h.  */
22589
32067
_ACEOF
22594
32072
#include <$ac_header>
22595
32073
_ACEOF
22596
32074
rm -f conftest.$ac_objext
22597
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22598
 
  (eval $ac_compile) 2>conftest.er1
 
32075
if { (ac_try="$ac_compile"
 
32076
case "(($ac_try" in
 
32077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32078
  *) ac_try_echo=$ac_try;;
 
32079
esac
 
32080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32081
  (eval "$ac_compile") 2>conftest.er1
22599
32082
  ac_status=$?
22600
32083
  grep -v '^ *+' conftest.er1 >conftest.err
22601
32084
  rm -f conftest.er1
22602
32085
  cat conftest.err >&5
22603
32086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604
32087
  (exit $ac_status); } &&
22605
 
         { ac_try='test -z "$ac_c_werror_flag"
22606
 
                         || test ! -s conftest.err'
22607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608
 
  (eval $ac_try) 2>&5
 
32088
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
32089
  { (case "(($ac_try" in
 
32090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32091
  *) ac_try_echo=$ac_try;;
 
32092
esac
 
32093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32094
  (eval "$ac_try") 2>&5
22609
32095
  ac_status=$?
22610
32096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611
32097
  (exit $ac_status); }; } &&
22612
32098
         { ac_try='test -s conftest.$ac_objext'
22613
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614
 
  (eval $ac_try) 2>&5
 
32099
  { (case "(($ac_try" in
 
32100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32101
  *) ac_try_echo=$ac_try;;
 
32102
esac
 
32103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32104
  (eval "$ac_try") 2>&5
22615
32105
  ac_status=$?
22616
32106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
32107
  (exit $ac_status); }; }; then
22620
32110
  echo "$as_me: failed program was:" >&5
22621
32111
sed 's/^/| /' conftest.$ac_ext >&5
22622
32112
 
22623
 
ac_header_compiler=no
 
32113
        ac_header_compiler=no
22624
32114
fi
22625
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22626
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22627
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
32115
 
 
32116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32117
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32118
echo "${ECHO_T}$ac_header_compiler" >&6; }
22628
32119
 
22629
32120
# Is the header present?
22630
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22631
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
32121
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
32122
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22632
32123
cat >conftest.$ac_ext <<_ACEOF
22633
32124
/* confdefs.h.  */
22634
32125
_ACEOF
22637
32128
/* end confdefs.h.  */
22638
32129
#include <$ac_header>
22639
32130
_ACEOF
22640
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22641
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32131
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
32132
case "(($ac_try" in
 
32133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32134
  *) ac_try_echo=$ac_try;;
 
32135
esac
 
32136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32137
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22642
32138
  ac_status=$?
22643
32139
  grep -v '^ *+' conftest.er1 >conftest.err
22644
32140
  rm -f conftest.er1
22662
32158
 
22663
32159
  ac_header_preproc=no
22664
32160
fi
 
32161
 
22665
32162
rm -f conftest.err conftest.$ac_ext
22666
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22667
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
32163
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32164
echo "${ECHO_T}$ac_header_preproc" >&6; }
22668
32165
 
22669
32166
# So?  What about this header?
22670
32167
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22688
32185
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22689
32186
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22690
32187
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22691
 
    (
22692
 
      cat <<\_ASBOX
 
32188
    ( cat <<\_ASBOX
22693
32189
## ------------------------------------ ##
22694
32190
## Report this to m17n-lib-bug@m17n.org ##
22695
32191
## ------------------------------------ ##
22696
32192
_ASBOX
22697
 
    ) |
22698
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
32193
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22699
32194
    ;;
22700
32195
esac
22701
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
22702
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22703
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32196
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32197
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
32198
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22704
32199
  echo $ECHO_N "(cached) $ECHO_C" >&6
22705
32200
else
22706
32201
  eval "$as_ac_Header=\$ac_header_preproc"
22707
32202
fi
22708
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22709
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32203
ac_res=`eval echo '${'$as_ac_Header'}'`
 
32204
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
32205
echo "${ECHO_T}$ac_res" >&6; }
22710
32206
 
22711
32207
fi
22712
32208
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22718
32214
 
22719
32215
done
22720
32216
 
22721
 
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22722
 
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
 
32217
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
32218
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
22723
32219
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22724
32220
  echo $ECHO_N "(cached) $ECHO_C" >&6
22725
32221
else
22732
32228
cat confdefs.h >>conftest.$ac_ext
22733
32229
cat >>conftest.$ac_ext <<_ACEOF
22734
32230
/* end confdefs.h.  */
22735
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
32231
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22736
32232
# include <stdlib.h>
22737
32233
#else
22738
32234
char *realloc ();
22741
32237
int
22742
32238
main ()
22743
32239
{
22744
 
exit (realloc (0, 0) ? 0 : 1);
 
32240
return ! realloc (0, 0);
22745
32241
  ;
22746
32242
  return 0;
22747
32243
}
22748
32244
_ACEOF
22749
32245
rm -f conftest$ac_exeext
22750
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22751
 
  (eval $ac_link) 2>&5
 
32246
if { (ac_try="$ac_link"
 
32247
case "(($ac_try" in
 
32248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32249
  *) ac_try_echo=$ac_try;;
 
32250
esac
 
32251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32252
  (eval "$ac_link") 2>&5
22752
32253
  ac_status=$?
22753
32254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754
32255
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22755
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756
 
  (eval $ac_try) 2>&5
 
32256
  { (case "(($ac_try" in
 
32257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32258
  *) ac_try_echo=$ac_try;;
 
32259
esac
 
32260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32261
  (eval "$ac_try") 2>&5
22757
32262
  ac_status=$?
22758
32263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759
32264
  (exit $ac_status); }; }; then
22766
32271
( exit $ac_status )
22767
32272
ac_cv_func_realloc_0_nonnull=no
22768
32273
fi
22769
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22770
 
fi
22771
 
fi
22772
 
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22773
 
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
 
32274
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32275
fi
 
32276
 
 
32277
 
 
32278
fi
 
32279
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
32280
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
22774
32281
if test $ac_cv_func_realloc_0_nonnull = yes; then
22775
32282
 
22776
32283
cat >>confdefs.h <<\_ACEOF
22782
32289
#define HAVE_REALLOC 0
22783
32290
_ACEOF
22784
32291
 
22785
 
   case $LIBOBJS in
22786
 
    "realloc.$ac_objext"   | \
22787
 
  *" realloc.$ac_objext"   | \
22788
 
    "realloc.$ac_objext "* | \
 
32292
   case " $LIBOBJS " in
22789
32293
  *" realloc.$ac_objext "* ) ;;
22790
 
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
 
32294
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
32295
 ;;
22791
32296
esac
22792
32297
 
22793
32298
 
22799
32304
 
22800
32305
 
22801
32306
 
22802
 
echo "$as_me:$LINENO: checking for working memcmp" >&5
22803
 
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
32307
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
 
32308
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22804
32309
if test "${ac_cv_func_memcmp_working+set}" = set; then
22805
32310
  echo $ECHO_N "(cached) $ECHO_C" >&6
22806
32311
else
22819
32324
{
22820
32325
 
22821
32326
  /* Some versions of memcmp are not 8-bit clean.  */
22822
 
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
32327
  char c0 = '\100', c1 = '\200', c2 = '\201';
22823
32328
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22824
 
    exit (1);
 
32329
    return 1;
22825
32330
 
22826
32331
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22827
32332
     or more and with at least one buffer not starting on a 4-byte boundary.
22837
32342
        strcpy (a, "--------01111111");
22838
32343
        strcpy (b, "--------10000000");
22839
32344
        if (memcmp (a, b, 16) >= 0)
22840
 
          exit (1);
 
32345
          return 1;
22841
32346
      }
22842
 
    exit (0);
 
32347
    return 0;
22843
32348
  }
22844
32349
 
22845
32350
  ;
22847
32352
}
22848
32353
_ACEOF
22849
32354
rm -f conftest$ac_exeext
22850
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22851
 
  (eval $ac_link) 2>&5
 
32355
if { (ac_try="$ac_link"
 
32356
case "(($ac_try" in
 
32357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32358
  *) ac_try_echo=$ac_try;;
 
32359
esac
 
32360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32361
  (eval "$ac_link") 2>&5
22852
32362
  ac_status=$?
22853
32363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854
32364
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856
 
  (eval $ac_try) 2>&5
 
32365
  { (case "(($ac_try" in
 
32366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32367
  *) ac_try_echo=$ac_try;;
 
32368
esac
 
32369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32370
  (eval "$ac_try") 2>&5
22857
32371
  ac_status=$?
22858
32372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859
32373
  (exit $ac_status); }; }; then
22866
32380
( exit $ac_status )
22867
32381
ac_cv_func_memcmp_working=no
22868
32382
fi
22869
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22870
 
fi
22871
 
fi
22872
 
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22873
 
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22874
 
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22875
 
    "memcmp.$ac_objext"   | \
22876
 
  *" memcmp.$ac_objext"   | \
22877
 
    "memcmp.$ac_objext "* | \
 
32383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32384
fi
 
32385
 
 
32386
 
 
32387
fi
 
32388
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
32389
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
 
32390
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22878
32391
  *" memcmp.$ac_objext "* ) ;;
22879
 
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
 
32392
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
32393
 ;;
22880
32394
esac
22881
32395
 
22882
32396
 
22883
 
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22884
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
32397
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
32398
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22885
32399
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22886
32400
  echo $ECHO_N "(cached) $ECHO_C" >&6
22887
32401
else
22905
32419
     /* Linux will dereference the symlink and fail.
22906
32420
        That is better in the sense that it means we will not
22907
32421
        have to compile and use the lstat wrapper.  */
22908
 
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
32422
     return lstat ("conftest.sym/", &sbuf) == 0;
22909
32423
  ;
22910
32424
  return 0;
22911
32425
}
22912
32426
_ACEOF
22913
32427
rm -f conftest$ac_exeext
22914
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22915
 
  (eval $ac_link) 2>&5
 
32428
if { (ac_try="$ac_link"
 
32429
case "(($ac_try" in
 
32430
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32431
  *) ac_try_echo=$ac_try;;
 
32432
esac
 
32433
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32434
  (eval "$ac_link") 2>&5
22916
32435
  ac_status=$?
22917
32436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918
32437
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22919
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920
 
  (eval $ac_try) 2>&5
 
32438
  { (case "(($ac_try" in
 
32439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32440
  *) ac_try_echo=$ac_try;;
 
32441
esac
 
32442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32443
  (eval "$ac_try") 2>&5
22921
32444
  ac_status=$?
22922
32445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923
32446
  (exit $ac_status); }; }; then
22930
32453
( exit $ac_status )
22931
32454
ac_cv_func_lstat_dereferences_slashed_symlink=no
22932
32455
fi
22933
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32456
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22934
32457
fi
 
32458
 
 
32459
 
22935
32460
else
22936
32461
  # If the `ln -s' command failed, then we probably don't even
22937
32462
  # have an lstat function.
22940
32465
rm -f conftest.sym conftest.file
22941
32466
 
22942
32467
fi
22943
 
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22944
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
32468
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
32469
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22945
32470
 
22946
32471
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22947
32472
 
22951
32476
 
22952
32477
 
22953
32478
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22954
 
  case $LIBOBJS in
22955
 
    "lstat.$ac_objext"   | \
22956
 
  *" lstat.$ac_objext"   | \
22957
 
    "lstat.$ac_objext "* | \
 
32479
  case " $LIBOBJS " in
22958
32480
  *" lstat.$ac_objext "* ) ;;
22959
 
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
 
32481
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
32482
 ;;
22960
32483
esac
22961
32484
 
22962
32485
fi
22963
32486
 
22964
 
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22965
 
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
32487
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
32488
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22966
32489
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22967
32490
  echo $ECHO_N "(cached) $ECHO_C" >&6
22968
32491
else
22980
32503
main ()
22981
32504
{
22982
32505
struct stat sbuf;
22983
 
  exit (stat ("", &sbuf) ? 1 : 0);
 
32506
  return stat ("", &sbuf) == 0;
22984
32507
  ;
22985
32508
  return 0;
22986
32509
}
22987
32510
_ACEOF
22988
32511
rm -f conftest$ac_exeext
22989
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22990
 
  (eval $ac_link) 2>&5
 
32512
if { (ac_try="$ac_link"
 
32513
case "(($ac_try" in
 
32514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32515
  *) ac_try_echo=$ac_try;;
 
32516
esac
 
32517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32518
  (eval "$ac_link") 2>&5
22991
32519
  ac_status=$?
22992
32520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993
32521
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995
 
  (eval $ac_try) 2>&5
 
32522
  { (case "(($ac_try" in
 
32523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32524
  *) ac_try_echo=$ac_try;;
 
32525
esac
 
32526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32527
  (eval "$ac_try") 2>&5
22996
32528
  ac_status=$?
22997
32529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998
32530
  (exit $ac_status); }; }; then
22999
 
  ac_cv_func_stat_empty_string_bug=yes
 
32531
  ac_cv_func_stat_empty_string_bug=no
23000
32532
else
23001
32533
  echo "$as_me: program exited with status $ac_status" >&5
23002
32534
echo "$as_me: failed program was:" >&5
23003
32535
sed 's/^/| /' conftest.$ac_ext >&5
23004
32536
 
23005
32537
( exit $ac_status )
23006
 
ac_cv_func_stat_empty_string_bug=no
23007
 
fi
23008
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23009
 
fi
23010
 
fi
23011
 
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23012
 
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
32538
ac_cv_func_stat_empty_string_bug=yes
 
32539
fi
 
32540
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32541
fi
 
32542
 
 
32543
 
 
32544
fi
 
32545
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
32546
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
23013
32547
if test $ac_cv_func_stat_empty_string_bug = yes; then
23014
 
  case $LIBOBJS in
23015
 
    "stat.$ac_objext"   | \
23016
 
  *" stat.$ac_objext"   | \
23017
 
    "stat.$ac_objext "* | \
 
32548
  case " $LIBOBJS " in
23018
32549
  *" stat.$ac_objext "* ) ;;
23019
 
  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
 
32550
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
32551
 ;;
23020
32552
esac
23021
32553
 
23022
32554
 
23026
32558
 
23027
32559
fi
23028
32560
 
23029
 
echo "$as_me:$LINENO: checking for working strcoll" >&5
23030
 
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
 
32561
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
 
32562
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
23031
32563
if test "${ac_cv_func_strcoll_works+set}" = set; then
23032
32564
  echo $ECHO_N "(cached) $ECHO_C" >&6
23033
32565
else
23044
32576
int
23045
32577
main ()
23046
32578
{
23047
 
exit (strcoll ("abc", "def") >= 0 ||
 
32579
return (strcoll ("abc", "def") >= 0 ||
23048
32580
         strcoll ("ABC", "DEF") >= 0 ||
23049
32581
         strcoll ("123", "456") >= 0)
23050
32582
  ;
23052
32584
}
23053
32585
_ACEOF
23054
32586
rm -f conftest$ac_exeext
23055
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23056
 
  (eval $ac_link) 2>&5
 
32587
if { (ac_try="$ac_link"
 
32588
case "(($ac_try" in
 
32589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32590
  *) ac_try_echo=$ac_try;;
 
32591
esac
 
32592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32593
  (eval "$ac_link") 2>&5
23057
32594
  ac_status=$?
23058
32595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059
32596
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23060
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061
 
  (eval $ac_try) 2>&5
 
32597
  { (case "(($ac_try" in
 
32598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32599
  *) ac_try_echo=$ac_try;;
 
32600
esac
 
32601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32602
  (eval "$ac_try") 2>&5
23062
32603
  ac_status=$?
23063
32604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064
32605
  (exit $ac_status); }; }; then
23071
32612
( exit $ac_status )
23072
32613
ac_cv_func_strcoll_works=no
23073
32614
fi
23074
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23075
 
fi
23076
 
fi
23077
 
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
23078
 
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
 
32615
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32616
fi
 
32617
 
 
32618
 
 
32619
fi
 
32620
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
 
32621
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
23079
32622
if test $ac_cv_func_strcoll_works = yes; then
23080
32623
 
23081
32624
cat >>confdefs.h <<\_ACEOF
23088
32631
for ac_func in strftime
23089
32632
do
23090
32633
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23091
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23092
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23093
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
32634
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
32635
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
32636
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23094
32637
  echo $ECHO_N "(cached) $ECHO_C" >&6
23095
32638
else
23096
32639
  cat >conftest.$ac_ext <<_ACEOF
23116
32659
 
23117
32660
#undef $ac_func
23118
32661
 
23119
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
32662
/* Override any GCC internal prototype to avoid an error.
 
32663
   Use char because int might match the return type of a GCC
 
32664
   builtin and then its argument prototype would still apply.  */
23120
32665
#ifdef __cplusplus
23121
32666
extern "C"
23122
 
{
23123
32667
#endif
23124
 
/* We use char because int might match the return type of a gcc2
23125
 
   builtin and then its argument prototype would still apply.  */
23126
32668
char $ac_func ();
23127
32669
/* The GNU C library defines this for functions which it implements
23128
32670
    to always fail with ENOSYS.  Some functions are actually named
23129
32671
    something starting with __ and the normal name is an alias.  */
23130
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
32672
#if defined __stub_$ac_func || defined __stub___$ac_func
23131
32673
choke me
23132
 
#else
23133
 
char (*f) () = $ac_func;
23134
 
#endif
23135
 
#ifdef __cplusplus
23136
 
}
23137
32674
#endif
23138
32675
 
23139
32676
int
23140
32677
main ()
23141
32678
{
23142
 
return f != $ac_func;
 
32679
return $ac_func ();
23143
32680
  ;
23144
32681
  return 0;
23145
32682
}
23146
32683
_ACEOF
23147
32684
rm -f conftest.$ac_objext conftest$ac_exeext
23148
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149
 
  (eval $ac_link) 2>conftest.er1
 
32685
if { (ac_try="$ac_link"
 
32686
case "(($ac_try" in
 
32687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32688
  *) ac_try_echo=$ac_try;;
 
32689
esac
 
32690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32691
  (eval "$ac_link") 2>conftest.er1
23150
32692
  ac_status=$?
23151
32693
  grep -v '^ *+' conftest.er1 >conftest.err
23152
32694
  rm -f conftest.er1
23153
32695
  cat conftest.err >&5
23154
32696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155
32697
  (exit $ac_status); } &&
23156
 
         { ac_try='test -z "$ac_c_werror_flag"
23157
 
                         || test ! -s conftest.err'
23158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159
 
  (eval $ac_try) 2>&5
 
32698
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
32699
  { (case "(($ac_try" in
 
32700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32701
  *) ac_try_echo=$ac_try;;
 
32702
esac
 
32703
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32704
  (eval "$ac_try") 2>&5
23160
32705
  ac_status=$?
23161
32706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162
32707
  (exit $ac_status); }; } &&
23163
32708
         { ac_try='test -s conftest$ac_exeext'
23164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165
 
  (eval $ac_try) 2>&5
 
32709
  { (case "(($ac_try" in
 
32710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32711
  *) ac_try_echo=$ac_try;;
 
32712
esac
 
32713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32714
  (eval "$ac_try") 2>&5
23166
32715
  ac_status=$?
23167
32716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168
32717
  (exit $ac_status); }; }; then
23171
32720
  echo "$as_me: failed program was:" >&5
23172
32721
sed 's/^/| /' conftest.$ac_ext >&5
23173
32722
 
23174
 
eval "$as_ac_var=no"
 
32723
        eval "$as_ac_var=no"
23175
32724
fi
23176
 
rm -f conftest.err conftest.$ac_objext \
 
32725
 
 
32726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23177
32727
      conftest$ac_exeext conftest.$ac_ext
23178
32728
fi
23179
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23180
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
32729
ac_res=`eval echo '${'$as_ac_var'}'`
 
32730
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
32731
echo "${ECHO_T}$ac_res" >&6; }
23181
32732
if test `eval echo '${'$as_ac_var'}'` = yes; then
23182
32733
  cat >>confdefs.h <<_ACEOF
23183
32734
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23185
32736
 
23186
32737
else
23187
32738
  # strftime is in -lintl on SCO UNIX.
23188
 
echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23189
 
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
 
32739
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
 
32740
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
23190
32741
if test "${ac_cv_lib_intl_strftime+set}" = set; then
23191
32742
  echo $ECHO_N "(cached) $ECHO_C" >&6
23192
32743
else
23199
32750
cat >>conftest.$ac_ext <<_ACEOF
23200
32751
/* end confdefs.h.  */
23201
32752
 
23202
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
32753
/* Override any GCC internal prototype to avoid an error.
 
32754
   Use char because int might match the return type of a GCC
 
32755
   builtin and then its argument prototype would still apply.  */
23203
32756
#ifdef __cplusplus
23204
32757
extern "C"
23205
32758
#endif
23206
 
/* We use char because int might match the return type of a gcc2
23207
 
   builtin and then its argument prototype would still apply.  */
23208
32759
char strftime ();
23209
32760
int
23210
32761
main ()
23211
32762
{
23212
 
strftime ();
 
32763
return strftime ();
23213
32764
  ;
23214
32765
  return 0;
23215
32766
}
23216
32767
_ACEOF
23217
32768
rm -f conftest.$ac_objext conftest$ac_exeext
23218
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23219
 
  (eval $ac_link) 2>conftest.er1
 
32769
if { (ac_try="$ac_link"
 
32770
case "(($ac_try" in
 
32771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32772
  *) ac_try_echo=$ac_try;;
 
32773
esac
 
32774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32775
  (eval "$ac_link") 2>conftest.er1
23220
32776
  ac_status=$?
23221
32777
  grep -v '^ *+' conftest.er1 >conftest.err
23222
32778
  rm -f conftest.er1
23223
32779
  cat conftest.err >&5
23224
32780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225
32781
  (exit $ac_status); } &&
23226
 
         { ac_try='test -z "$ac_c_werror_flag"
23227
 
                         || test ! -s conftest.err'
23228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229
 
  (eval $ac_try) 2>&5
 
32782
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
32783
  { (case "(($ac_try" in
 
32784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32785
  *) ac_try_echo=$ac_try;;
 
32786
esac
 
32787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32788
  (eval "$ac_try") 2>&5
23230
32789
  ac_status=$?
23231
32790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232
32791
  (exit $ac_status); }; } &&
23233
32792
         { ac_try='test -s conftest$ac_exeext'
23234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235
 
  (eval $ac_try) 2>&5
 
32793
  { (case "(($ac_try" in
 
32794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32795
  *) ac_try_echo=$ac_try;;
 
32796
esac
 
32797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32798
  (eval "$ac_try") 2>&5
23236
32799
  ac_status=$?
23237
32800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238
32801
  (exit $ac_status); }; }; then
23241
32804
  echo "$as_me: failed program was:" >&5
23242
32805
sed 's/^/| /' conftest.$ac_ext >&5
23243
32806
 
23244
 
ac_cv_lib_intl_strftime=no
 
32807
        ac_cv_lib_intl_strftime=no
23245
32808
fi
23246
 
rm -f conftest.err conftest.$ac_objext \
 
32809
 
 
32810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23247
32811
      conftest$ac_exeext conftest.$ac_ext
23248
32812
LIBS=$ac_check_lib_save_LIBS
23249
32813
fi
23250
 
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23251
 
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
 
32814
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
 
32815
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
23252
32816
if test $ac_cv_lib_intl_strftime = yes; then
23253
32817
  cat >>confdefs.h <<\_ACEOF
23254
32818
#define HAVE_STRFTIME 1
23260
32824
fi
23261
32825
done
23262
32826
 
23263
 
echo "$as_me:$LINENO: checking for working strtod" >&5
23264
 
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
 
32827
{ echo "$as_me:$LINENO: checking for working strtod" >&5
 
32828
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
23265
32829
if test "${ac_cv_func_strtod+set}" = set; then
23266
32830
  echo $ECHO_N "(cached) $ECHO_C" >&6
23267
32831
else
23275
32839
cat >>conftest.$ac_ext <<_ACEOF
23276
32840
/* end confdefs.h.  */
23277
32841
 
 
32842
$ac_includes_default
 
32843
#ifndef strtod
23278
32844
double strtod ();
 
32845
#endif
23279
32846
int
23280
32847
main()
23281
32848
{
23286
32853
    double value;
23287
32854
    value = strtod (string, &term);
23288
32855
    if (value != 69 || term != (string + 4))
23289
 
      exit (1);
 
32856
      return 1;
23290
32857
  }
23291
32858
 
23292
32859
  {
23296
32863
    char *term;
23297
32864
    strtod (string, &term);
23298
32865
    if (term != string && *(term - 1) == 0)
23299
 
      exit (1);
 
32866
      return 1;
23300
32867
  }
23301
 
  exit (0);
 
32868
  return 0;
23302
32869
}
23303
32870
 
23304
32871
_ACEOF
23305
32872
rm -f conftest$ac_exeext
23306
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23307
 
  (eval $ac_link) 2>&5
 
32873
if { (ac_try="$ac_link"
 
32874
case "(($ac_try" in
 
32875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32876
  *) ac_try_echo=$ac_try;;
 
32877
esac
 
32878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32879
  (eval "$ac_link") 2>&5
23308
32880
  ac_status=$?
23309
32881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310
32882
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312
 
  (eval $ac_try) 2>&5
 
32883
  { (case "(($ac_try" in
 
32884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32885
  *) ac_try_echo=$ac_try;;
 
32886
esac
 
32887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32888
  (eval "$ac_try") 2>&5
23313
32889
  ac_status=$?
23314
32890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315
32891
  (exit $ac_status); }; }; then
23322
32898
( exit $ac_status )
23323
32899
ac_cv_func_strtod=no
23324
32900
fi
23325
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23326
 
fi
23327
 
fi
23328
 
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
23329
 
echo "${ECHO_T}$ac_cv_func_strtod" >&6
 
32901
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32902
fi
 
32903
 
 
32904
 
 
32905
fi
 
32906
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
 
32907
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
23330
32908
if test $ac_cv_func_strtod = no; then
23331
 
  case $LIBOBJS in
23332
 
    "strtod.$ac_objext"   | \
23333
 
  *" strtod.$ac_objext"   | \
23334
 
    "strtod.$ac_objext "* | \
 
32909
  case " $LIBOBJS " in
23335
32910
  *" strtod.$ac_objext "* ) ;;
23336
 
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
 
32911
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
 
32912
 ;;
23337
32913
esac
23338
32914
 
23339
 
echo "$as_me:$LINENO: checking for pow" >&5
23340
 
echo $ECHO_N "checking for pow... $ECHO_C" >&6
 
32915
{ echo "$as_me:$LINENO: checking for pow" >&5
 
32916
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
23341
32917
if test "${ac_cv_func_pow+set}" = set; then
23342
32918
  echo $ECHO_N "(cached) $ECHO_C" >&6
23343
32919
else
23364
32940
 
23365
32941
#undef pow
23366
32942
 
23367
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
32943
/* Override any GCC internal prototype to avoid an error.
 
32944
   Use char because int might match the return type of a GCC
 
32945
   builtin and then its argument prototype would still apply.  */
23368
32946
#ifdef __cplusplus
23369
32947
extern "C"
23370
 
{
23371
32948
#endif
23372
 
/* We use char because int might match the return type of a gcc2
23373
 
   builtin and then its argument prototype would still apply.  */
23374
32949
char pow ();
23375
32950
/* The GNU C library defines this for functions which it implements
23376
32951
    to always fail with ENOSYS.  Some functions are actually named
23377
32952
    something starting with __ and the normal name is an alias.  */
23378
 
#if defined (__stub_pow) || defined (__stub___pow)
 
32953
#if defined __stub_pow || defined __stub___pow
23379
32954
choke me
23380
 
#else
23381
 
char (*f) () = pow;
23382
 
#endif
23383
 
#ifdef __cplusplus
23384
 
}
23385
32955
#endif
23386
32956
 
23387
32957
int
23388
32958
main ()
23389
32959
{
23390
 
return f != pow;
 
32960
return pow ();
23391
32961
  ;
23392
32962
  return 0;
23393
32963
}
23394
32964
_ACEOF
23395
32965
rm -f conftest.$ac_objext conftest$ac_exeext
23396
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23397
 
  (eval $ac_link) 2>conftest.er1
 
32966
if { (ac_try="$ac_link"
 
32967
case "(($ac_try" in
 
32968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32969
  *) ac_try_echo=$ac_try;;
 
32970
esac
 
32971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32972
  (eval "$ac_link") 2>conftest.er1
23398
32973
  ac_status=$?
23399
32974
  grep -v '^ *+' conftest.er1 >conftest.err
23400
32975
  rm -f conftest.er1
23401
32976
  cat conftest.err >&5
23402
32977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403
32978
  (exit $ac_status); } &&
23404
 
         { ac_try='test -z "$ac_c_werror_flag"
23405
 
                         || test ! -s conftest.err'
23406
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407
 
  (eval $ac_try) 2>&5
 
32979
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
32980
  { (case "(($ac_try" in
 
32981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32982
  *) ac_try_echo=$ac_try;;
 
32983
esac
 
32984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32985
  (eval "$ac_try") 2>&5
23408
32986
  ac_status=$?
23409
32987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410
32988
  (exit $ac_status); }; } &&
23411
32989
         { ac_try='test -s conftest$ac_exeext'
23412
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413
 
  (eval $ac_try) 2>&5
 
32990
  { (case "(($ac_try" in
 
32991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32992
  *) ac_try_echo=$ac_try;;
 
32993
esac
 
32994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32995
  (eval "$ac_try") 2>&5
23414
32996
  ac_status=$?
23415
32997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416
32998
  (exit $ac_status); }; }; then
23419
33001
  echo "$as_me: failed program was:" >&5
23420
33002
sed 's/^/| /' conftest.$ac_ext >&5
23421
33003
 
23422
 
ac_cv_func_pow=no
 
33004
        ac_cv_func_pow=no
23423
33005
fi
23424
 
rm -f conftest.err conftest.$ac_objext \
 
33006
 
 
33007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23425
33008
      conftest$ac_exeext conftest.$ac_ext
23426
33009
fi
23427
 
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
23428
 
echo "${ECHO_T}$ac_cv_func_pow" >&6
 
33010
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
 
33011
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
23429
33012
 
23430
33013
if test $ac_cv_func_pow = no; then
23431
 
  echo "$as_me:$LINENO: checking for pow in -lm" >&5
23432
 
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
 
33014
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
33015
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
23433
33016
if test "${ac_cv_lib_m_pow+set}" = set; then
23434
33017
  echo $ECHO_N "(cached) $ECHO_C" >&6
23435
33018
else
23442
33025
cat >>conftest.$ac_ext <<_ACEOF
23443
33026
/* end confdefs.h.  */
23444
33027
 
23445
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33028
/* Override any GCC internal prototype to avoid an error.
 
33029
   Use char because int might match the return type of a GCC
 
33030
   builtin and then its argument prototype would still apply.  */
23446
33031
#ifdef __cplusplus
23447
33032
extern "C"
23448
33033
#endif
23449
 
/* We use char because int might match the return type of a gcc2
23450
 
   builtin and then its argument prototype would still apply.  */
23451
33034
char pow ();
23452
33035
int
23453
33036
main ()
23454
33037
{
23455
 
pow ();
 
33038
return pow ();
23456
33039
  ;
23457
33040
  return 0;
23458
33041
}
23459
33042
_ACEOF
23460
33043
rm -f conftest.$ac_objext conftest$ac_exeext
23461
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23462
 
  (eval $ac_link) 2>conftest.er1
 
33044
if { (ac_try="$ac_link"
 
33045
case "(($ac_try" in
 
33046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33047
  *) ac_try_echo=$ac_try;;
 
33048
esac
 
33049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33050
  (eval "$ac_link") 2>conftest.er1
23463
33051
  ac_status=$?
23464
33052
  grep -v '^ *+' conftest.er1 >conftest.err
23465
33053
  rm -f conftest.er1
23466
33054
  cat conftest.err >&5
23467
33055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468
33056
  (exit $ac_status); } &&
23469
 
         { ac_try='test -z "$ac_c_werror_flag"
23470
 
                         || test ! -s conftest.err'
23471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472
 
  (eval $ac_try) 2>&5
 
33057
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33058
  { (case "(($ac_try" in
 
33059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33060
  *) ac_try_echo=$ac_try;;
 
33061
esac
 
33062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33063
  (eval "$ac_try") 2>&5
23473
33064
  ac_status=$?
23474
33065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475
33066
  (exit $ac_status); }; } &&
23476
33067
         { ac_try='test -s conftest$ac_exeext'
23477
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478
 
  (eval $ac_try) 2>&5
 
33068
  { (case "(($ac_try" in
 
33069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33070
  *) ac_try_echo=$ac_try;;
 
33071
esac
 
33072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33073
  (eval "$ac_try") 2>&5
23479
33074
  ac_status=$?
23480
33075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481
33076
  (exit $ac_status); }; }; then
23484
33079
  echo "$as_me: failed program was:" >&5
23485
33080
sed 's/^/| /' conftest.$ac_ext >&5
23486
33081
 
23487
 
ac_cv_lib_m_pow=no
 
33082
        ac_cv_lib_m_pow=no
23488
33083
fi
23489
 
rm -f conftest.err conftest.$ac_objext \
 
33084
 
 
33085
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23490
33086
      conftest$ac_exeext conftest.$ac_ext
23491
33087
LIBS=$ac_check_lib_save_LIBS
23492
33088
fi
23493
 
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
23494
 
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
 
33089
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
33090
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
23495
33091
if test $ac_cv_lib_m_pow = yes; then
23496
33092
  POW_LIB=-lm
23497
33093
else
23512
33108
for ac_func in memmove memset nl_langinfo putenv regcomp setlocale
23513
33109
do
23514
33110
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23515
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23516
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23517
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33111
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33112
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
33113
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23518
33114
  echo $ECHO_N "(cached) $ECHO_C" >&6
23519
33115
else
23520
33116
  cat >conftest.$ac_ext <<_ACEOF
23540
33136
 
23541
33137
#undef $ac_func
23542
33138
 
23543
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33139
/* Override any GCC internal prototype to avoid an error.
 
33140
   Use char because int might match the return type of a GCC
 
33141
   builtin and then its argument prototype would still apply.  */
23544
33142
#ifdef __cplusplus
23545
33143
extern "C"
23546
 
{
23547
33144
#endif
23548
 
/* We use char because int might match the return type of a gcc2
23549
 
   builtin and then its argument prototype would still apply.  */
23550
33145
char $ac_func ();
23551
33146
/* The GNU C library defines this for functions which it implements
23552
33147
    to always fail with ENOSYS.  Some functions are actually named
23553
33148
    something starting with __ and the normal name is an alias.  */
23554
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33149
#if defined __stub_$ac_func || defined __stub___$ac_func
23555
33150
choke me
23556
 
#else
23557
 
char (*f) () = $ac_func;
23558
 
#endif
23559
 
#ifdef __cplusplus
23560
 
}
23561
33151
#endif
23562
33152
 
23563
33153
int
23564
33154
main ()
23565
33155
{
23566
 
return f != $ac_func;
 
33156
return $ac_func ();
23567
33157
  ;
23568
33158
  return 0;
23569
33159
}
23570
33160
_ACEOF
23571
33161
rm -f conftest.$ac_objext conftest$ac_exeext
23572
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573
 
  (eval $ac_link) 2>conftest.er1
 
33162
if { (ac_try="$ac_link"
 
33163
case "(($ac_try" in
 
33164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33165
  *) ac_try_echo=$ac_try;;
 
33166
esac
 
33167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33168
  (eval "$ac_link") 2>conftest.er1
23574
33169
  ac_status=$?
23575
33170
  grep -v '^ *+' conftest.er1 >conftest.err
23576
33171
  rm -f conftest.er1
23577
33172
  cat conftest.err >&5
23578
33173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579
33174
  (exit $ac_status); } &&
23580
 
         { ac_try='test -z "$ac_c_werror_flag"
23581
 
                         || test ! -s conftest.err'
23582
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583
 
  (eval $ac_try) 2>&5
 
33175
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33176
  { (case "(($ac_try" in
 
33177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33178
  *) ac_try_echo=$ac_try;;
 
33179
esac
 
33180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33181
  (eval "$ac_try") 2>&5
23584
33182
  ac_status=$?
23585
33183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586
33184
  (exit $ac_status); }; } &&
23587
33185
         { ac_try='test -s conftest$ac_exeext'
23588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589
 
  (eval $ac_try) 2>&5
 
33186
  { (case "(($ac_try" in
 
33187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33188
  *) ac_try_echo=$ac_try;;
 
33189
esac
 
33190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33191
  (eval "$ac_try") 2>&5
23590
33192
  ac_status=$?
23591
33193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592
33194
  (exit $ac_status); }; }; then
23595
33197
  echo "$as_me: failed program was:" >&5
23596
33198
sed 's/^/| /' conftest.$ac_ext >&5
23597
33199
 
23598
 
eval "$as_ac_var=no"
 
33200
        eval "$as_ac_var=no"
23599
33201
fi
23600
 
rm -f conftest.err conftest.$ac_objext \
 
33202
 
 
33203
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23601
33204
      conftest$ac_exeext conftest.$ac_ext
23602
33205
fi
23603
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23604
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33206
ac_res=`eval echo '${'$as_ac_var'}'`
 
33207
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
33208
echo "${ECHO_T}$ac_res" >&6; }
23605
33209
if test `eval echo '${'$as_ac_var'}'` = yes; then
23606
33210
  cat >>confdefs.h <<_ACEOF
23607
33211
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23616
33220
for ac_func in strchr strdup gettimeofday
23617
33221
do
23618
33222
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23619
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23620
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23621
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33223
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33224
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
33225
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23622
33226
  echo $ECHO_N "(cached) $ECHO_C" >&6
23623
33227
else
23624
33228
  cat >conftest.$ac_ext <<_ACEOF
23644
33248
 
23645
33249
#undef $ac_func
23646
33250
 
23647
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33251
/* Override any GCC internal prototype to avoid an error.
 
33252
   Use char because int might match the return type of a GCC
 
33253
   builtin and then its argument prototype would still apply.  */
23648
33254
#ifdef __cplusplus
23649
33255
extern "C"
23650
 
{
23651
33256
#endif
23652
 
/* We use char because int might match the return type of a gcc2
23653
 
   builtin and then its argument prototype would still apply.  */
23654
33257
char $ac_func ();
23655
33258
/* The GNU C library defines this for functions which it implements
23656
33259
    to always fail with ENOSYS.  Some functions are actually named
23657
33260
    something starting with __ and the normal name is an alias.  */
23658
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33261
#if defined __stub_$ac_func || defined __stub___$ac_func
23659
33262
choke me
23660
 
#else
23661
 
char (*f) () = $ac_func;
23662
 
#endif
23663
 
#ifdef __cplusplus
23664
 
}
23665
33263
#endif
23666
33264
 
23667
33265
int
23668
33266
main ()
23669
33267
{
23670
 
return f != $ac_func;
 
33268
return $ac_func ();
23671
33269
  ;
23672
33270
  return 0;
23673
33271
}
23674
33272
_ACEOF
23675
33273
rm -f conftest.$ac_objext conftest$ac_exeext
23676
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23677
 
  (eval $ac_link) 2>conftest.er1
 
33274
if { (ac_try="$ac_link"
 
33275
case "(($ac_try" in
 
33276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33277
  *) ac_try_echo=$ac_try;;
 
33278
esac
 
33279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33280
  (eval "$ac_link") 2>conftest.er1
23678
33281
  ac_status=$?
23679
33282
  grep -v '^ *+' conftest.er1 >conftest.err
23680
33283
  rm -f conftest.er1
23681
33284
  cat conftest.err >&5
23682
33285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683
33286
  (exit $ac_status); } &&
23684
 
         { ac_try='test -z "$ac_c_werror_flag"
23685
 
                         || test ! -s conftest.err'
23686
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687
 
  (eval $ac_try) 2>&5
 
33287
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33288
  { (case "(($ac_try" in
 
33289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33290
  *) ac_try_echo=$ac_try;;
 
33291
esac
 
33292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33293
  (eval "$ac_try") 2>&5
23688
33294
  ac_status=$?
23689
33295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690
33296
  (exit $ac_status); }; } &&
23691
33297
         { ac_try='test -s conftest$ac_exeext'
23692
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693
 
  (eval $ac_try) 2>&5
 
33298
  { (case "(($ac_try" in
 
33299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33300
  *) ac_try_echo=$ac_try;;
 
33301
esac
 
33302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33303
  (eval "$ac_try") 2>&5
23694
33304
  ac_status=$?
23695
33305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696
33306
  (exit $ac_status); }; }; then
23699
33309
  echo "$as_me: failed program was:" >&5
23700
33310
sed 's/^/| /' conftest.$ac_ext >&5
23701
33311
 
23702
 
eval "$as_ac_var=no"
 
33312
        eval "$as_ac_var=no"
23703
33313
fi
23704
 
rm -f conftest.err conftest.$ac_objext \
 
33314
 
 
33315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705
33316
      conftest$ac_exeext conftest.$ac_ext
23706
33317
fi
23707
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23708
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33318
ac_res=`eval echo '${'$as_ac_var'}'`
 
33319
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
33320
echo "${ECHO_T}$ac_res" >&6; }
23709
33321
if test `eval echo '${'$as_ac_var'}'` = yes; then
23710
33322
  cat >>confdefs.h <<_ACEOF
23711
33323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23718
33330
 
23719
33331
# Extract the first word of "m17n-db", so it can be a program name with args.
23720
33332
set dummy m17n-db; ac_word=$2
23721
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
23722
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
33333
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
33334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23723
33335
if test "${ac_cv_prog_HAVE_M17N_DB+set}" = set; then
23724
33336
  echo $ECHO_N "(cached) $ECHO_C" >&6
23725
33337
else
23732
33344
  IFS=$as_save_IFS
23733
33345
  test -z "$as_dir" && as_dir=.
23734
33346
  for ac_exec_ext in '' $ac_executable_extensions; do
23735
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
33347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23736
33348
    ac_cv_prog_HAVE_M17N_DB="yes"
23737
33349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23738
33350
    break 2
23739
33351
  fi
23740
33352
done
23741
33353
done
 
33354
IFS=$as_save_IFS
23742
33355
 
23743
33356
fi
23744
33357
fi
23745
33358
HAVE_M17N_DB=$ac_cv_prog_HAVE_M17N_DB
23746
33359
if test -n "$HAVE_M17N_DB"; then
23747
 
  echo "$as_me:$LINENO: result: $HAVE_M17N_DB" >&5
23748
 
echo "${ECHO_T}$HAVE_M17N_DB" >&6
 
33360
  { echo "$as_me:$LINENO: result: $HAVE_M17N_DB" >&5
 
33361
echo "${ECHO_T}$HAVE_M17N_DB" >&6; }
23749
33362
else
23750
 
  echo "$as_me:$LINENO: result: no" >&5
23751
 
echo "${ECHO_T}no" >&6
 
33363
  { echo "$as_me:$LINENO: result: no" >&5
 
33364
echo "${ECHO_T}no" >&6; }
23752
33365
fi
23753
33366
 
 
33367
 
23754
33368
if test "x$HAVE_M17N_DB" = "xyes"; then
23755
33369
  M17NDIR=`m17n-db`
23756
33370
else
23759
33373
 
23760
33374
 
23761
33375
 
23762
 
# Check whether --enable-gui or --disable-gui was given.
 
33376
# Check whether --enable-gui was given.
23763
33377
if test "${enable_gui+set}" = set; then
23764
 
  enableval="$enable_gui"
 
33378
  enableval=$enable_gui;
 
33379
fi
23765
33380
 
23766
 
fi;
23767
33381
 
23768
33382
 
23769
33383
 
23779
33393
if test x$with_gui != xno; then
23780
33394
 
23781
33395
 
23782
 
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
23783
 
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
 
33396
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
33397
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
23784
33398
if test "${ac_cv_search_dlopen+set}" = set; then
23785
33399
  echo $ECHO_N "(cached) $ECHO_C" >&6
23786
33400
else
23787
33401
  ac_func_search_save_LIBS=$LIBS
23788
 
ac_cv_search_dlopen=no
23789
33402
cat >conftest.$ac_ext <<_ACEOF
23790
33403
/* confdefs.h.  */
23791
33404
_ACEOF
23793
33406
cat >>conftest.$ac_ext <<_ACEOF
23794
33407
/* end confdefs.h.  */
23795
33408
 
23796
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33409
/* Override any GCC internal prototype to avoid an error.
 
33410
   Use char because int might match the return type of a GCC
 
33411
   builtin and then its argument prototype would still apply.  */
23797
33412
#ifdef __cplusplus
23798
33413
extern "C"
23799
33414
#endif
23800
 
/* We use char because int might match the return type of a gcc2
23801
 
   builtin and then its argument prototype would still apply.  */
23802
33415
char dlopen ();
23803
33416
int
23804
33417
main ()
23805
33418
{
23806
 
dlopen ();
 
33419
return dlopen ();
23807
33420
  ;
23808
33421
  return 0;
23809
33422
}
23810
33423
_ACEOF
23811
 
rm -f conftest.$ac_objext conftest$ac_exeext
23812
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813
 
  (eval $ac_link) 2>conftest.er1
23814
 
  ac_status=$?
23815
 
  grep -v '^ *+' conftest.er1 >conftest.err
23816
 
  rm -f conftest.er1
23817
 
  cat conftest.err >&5
23818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819
 
  (exit $ac_status); } &&
23820
 
         { ac_try='test -z "$ac_c_werror_flag"
23821
 
                         || test ! -s conftest.err'
23822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823
 
  (eval $ac_try) 2>&5
23824
 
  ac_status=$?
23825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826
 
  (exit $ac_status); }; } &&
23827
 
         { ac_try='test -s conftest$ac_exeext'
23828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829
 
  (eval $ac_try) 2>&5
23830
 
  ac_status=$?
23831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832
 
  (exit $ac_status); }; }; then
23833
 
  ac_cv_search_dlopen="none required"
23834
 
else
23835
 
  echo "$as_me: failed program was:" >&5
23836
 
sed 's/^/| /' conftest.$ac_ext >&5
23837
 
 
23838
 
fi
23839
 
rm -f conftest.err conftest.$ac_objext \
23840
 
      conftest$ac_exeext conftest.$ac_ext
23841
 
if test "$ac_cv_search_dlopen" = no; then
23842
 
  for ac_lib in dl; do
 
33424
for ac_lib in '' dl; do
 
33425
  if test -z "$ac_lib"; then
 
33426
    ac_res="none required"
 
33427
  else
 
33428
    ac_res=-l$ac_lib
23843
33429
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23844
 
    cat >conftest.$ac_ext <<_ACEOF
23845
 
/* confdefs.h.  */
23846
 
_ACEOF
23847
 
cat confdefs.h >>conftest.$ac_ext
23848
 
cat >>conftest.$ac_ext <<_ACEOF
23849
 
/* end confdefs.h.  */
23850
 
 
23851
 
/* Override any gcc2 internal prototype to avoid an error.  */
23852
 
#ifdef __cplusplus
23853
 
extern "C"
23854
 
#endif
23855
 
/* We use char because int might match the return type of a gcc2
23856
 
   builtin and then its argument prototype would still apply.  */
23857
 
char dlopen ();
23858
 
int
23859
 
main ()
23860
 
{
23861
 
dlopen ();
23862
 
  ;
23863
 
  return 0;
23864
 
}
23865
 
_ACEOF
23866
 
rm -f conftest.$ac_objext conftest$ac_exeext
23867
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23868
 
  (eval $ac_link) 2>conftest.er1
 
33430
  fi
 
33431
  rm -f conftest.$ac_objext conftest$ac_exeext
 
33432
if { (ac_try="$ac_link"
 
33433
case "(($ac_try" in
 
33434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33435
  *) ac_try_echo=$ac_try;;
 
33436
esac
 
33437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33438
  (eval "$ac_link") 2>conftest.er1
23869
33439
  ac_status=$?
23870
33440
  grep -v '^ *+' conftest.er1 >conftest.err
23871
33441
  rm -f conftest.er1
23872
33442
  cat conftest.err >&5
23873
33443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874
33444
  (exit $ac_status); } &&
23875
 
         { ac_try='test -z "$ac_c_werror_flag"
23876
 
                         || test ! -s conftest.err'
23877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23878
 
  (eval $ac_try) 2>&5
 
33445
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33446
  { (case "(($ac_try" in
 
33447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33448
  *) ac_try_echo=$ac_try;;
 
33449
esac
 
33450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33451
  (eval "$ac_try") 2>&5
23879
33452
  ac_status=$?
23880
33453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881
33454
  (exit $ac_status); }; } &&
23882
33455
         { ac_try='test -s conftest$ac_exeext'
23883
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23884
 
  (eval $ac_try) 2>&5
 
33456
  { (case "(($ac_try" in
 
33457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33458
  *) ac_try_echo=$ac_try;;
 
33459
esac
 
33460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33461
  (eval "$ac_try") 2>&5
23885
33462
  ac_status=$?
23886
33463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887
33464
  (exit $ac_status); }; }; then
23888
 
  ac_cv_search_dlopen="-l$ac_lib"
23889
 
break
 
33465
  ac_cv_search_dlopen=$ac_res
23890
33466
else
23891
33467
  echo "$as_me: failed program was:" >&5
23892
33468
sed 's/^/| /' conftest.$ac_ext >&5
23893
33469
 
23894
 
fi
23895
 
rm -f conftest.err conftest.$ac_objext \
23896
 
      conftest$ac_exeext conftest.$ac_ext
23897
 
  done
23898
 
fi
 
33470
 
 
33471
fi
 
33472
 
 
33473
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33474
      conftest$ac_exeext
 
33475
  if test "${ac_cv_search_dlopen+set}" = set; then
 
33476
  break
 
33477
fi
 
33478
done
 
33479
if test "${ac_cv_search_dlopen+set}" = set; then
 
33480
  :
 
33481
else
 
33482
  ac_cv_search_dlopen=no
 
33483
fi
 
33484
rm conftest.$ac_ext
23899
33485
LIBS=$ac_func_search_save_LIBS
23900
33486
fi
23901
 
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
23902
 
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
23903
 
if test "$ac_cv_search_dlopen" != no; then
23904
 
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
 
33487
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
33488
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 
33489
ac_res=$ac_cv_search_dlopen
 
33490
if test "$ac_res" != no; then
 
33491
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23905
33492
 
23906
33493
cat >>confdefs.h <<\_ACEOF
23907
33494
#define HAVE_DLOPEN 1
23913
33500
 
23914
33501
M17N_EXT_LIBS=
23915
33502
 
 
33503
# Extract the first word of "pkg-config", so it can be a program name with args.
 
33504
set dummy pkg-config; ac_word=$2
 
33505
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
33506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
33507
if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
 
33508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33509
else
 
33510
  if test -n "$HAVE_PKG_CONFIG"; then
 
33511
  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
 
33512
else
 
33513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
33514
for as_dir in $PATH
 
33515
do
 
33516
  IFS=$as_save_IFS
 
33517
  test -z "$as_dir" && as_dir=.
 
33518
  for ac_exec_ext in '' $ac_executable_extensions; do
 
33519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
33520
    ac_cv_prog_HAVE_PKG_CONFIG="yes"
 
33521
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
33522
    break 2
 
33523
  fi
 
33524
done
 
33525
done
 
33526
IFS=$as_save_IFS
 
33527
 
 
33528
fi
 
33529
fi
 
33530
HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
 
33531
if test -n "$HAVE_PKG_CONFIG"; then
 
33532
  { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
 
33533
echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
 
33534
else
 
33535
  { echo "$as_me:$LINENO: result: no" >&5
 
33536
echo "${ECHO_T}no" >&6; }
 
33537
fi
 
33538
 
 
33539
 
 
33540
 
23916
33541
if test "x$no_x" != "xyes"; then
23917
33542
 
23918
33543
cat >>confdefs.h <<\_ACEOF
23940
33565
save_LIBS="$LIBS"
23941
33566
# Extract the first word of "fribidi-config", so it can be a program name with args.
23942
33567
set dummy fribidi-config; ac_word=$2
23943
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
23944
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
33568
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
33569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23945
33570
if test "${ac_cv_prog_HAVE_FRIBIDI_CONFIG+set}" = set; then
23946
33571
  echo $ECHO_N "(cached) $ECHO_C" >&6
23947
33572
else
23954
33579
  IFS=$as_save_IFS
23955
33580
  test -z "$as_dir" && as_dir=.
23956
33581
  for ac_exec_ext in '' $ac_executable_extensions; do
23957
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
33582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23958
33583
    ac_cv_prog_HAVE_FRIBIDI_CONFIG="yes"
23959
33584
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23960
33585
    break 2
23961
33586
  fi
23962
33587
done
23963
33588
done
 
33589
IFS=$as_save_IFS
23964
33590
 
23965
33591
fi
23966
33592
fi
23967
33593
HAVE_FRIBIDI_CONFIG=$ac_cv_prog_HAVE_FRIBIDI_CONFIG
23968
33594
if test -n "$HAVE_FRIBIDI_CONFIG"; then
23969
 
  echo "$as_me:$LINENO: result: $HAVE_FRIBIDI_CONFIG" >&5
23970
 
echo "${ECHO_T}$HAVE_FRIBIDI_CONFIG" >&6
 
33595
  { echo "$as_me:$LINENO: result: $HAVE_FRIBIDI_CONFIG" >&5
 
33596
echo "${ECHO_T}$HAVE_FRIBIDI_CONFIG" >&6; }
23971
33597
else
23972
 
  echo "$as_me:$LINENO: result: no" >&5
23973
 
echo "${ECHO_T}no" >&6
 
33598
  { echo "$as_me:$LINENO: result: no" >&5
 
33599
echo "${ECHO_T}no" >&6; }
23974
33600
fi
23975
33601
 
 
33602
 
23976
33603
if test "x$HAVE_FRIBIDI_CONFIG" = "xyes"; then
23977
33604
  CPPFLAGS="$CPPFLAGS `fribidi-config --cflags`"
23978
33605
  FRIBIDI_LD_FLAGS="`fribidi-config --libs`"
23980
33607
else
23981
33608
  FRIBIDI_LD_FLAGS=-lfribidi
23982
33609
fi
23983
 
echo "$as_me:$LINENO: checking for fribidi_set_mirroring in -lfribidi" >&5
23984
 
echo $ECHO_N "checking for fribidi_set_mirroring in -lfribidi... $ECHO_C" >&6
 
33610
{ echo "$as_me:$LINENO: checking for fribidi_set_mirroring in -lfribidi" >&5
 
33611
echo $ECHO_N "checking for fribidi_set_mirroring in -lfribidi... $ECHO_C" >&6; }
23985
33612
if test "${ac_cv_lib_fribidi_fribidi_set_mirroring+set}" = set; then
23986
33613
  echo $ECHO_N "(cached) $ECHO_C" >&6
23987
33614
else
23994
33621
cat >>conftest.$ac_ext <<_ACEOF
23995
33622
/* end confdefs.h.  */
23996
33623
 
23997
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33624
/* Override any GCC internal prototype to avoid an error.
 
33625
   Use char because int might match the return type of a GCC
 
33626
   builtin and then its argument prototype would still apply.  */
23998
33627
#ifdef __cplusplus
23999
33628
extern "C"
24000
33629
#endif
24001
 
/* We use char because int might match the return type of a gcc2
24002
 
   builtin and then its argument prototype would still apply.  */
24003
33630
char fribidi_set_mirroring ();
24004
33631
int
24005
33632
main ()
24006
33633
{
24007
 
fribidi_set_mirroring ();
 
33634
return fribidi_set_mirroring ();
24008
33635
  ;
24009
33636
  return 0;
24010
33637
}
24011
33638
_ACEOF
24012
33639
rm -f conftest.$ac_objext conftest$ac_exeext
24013
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014
 
  (eval $ac_link) 2>conftest.er1
 
33640
if { (ac_try="$ac_link"
 
33641
case "(($ac_try" in
 
33642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33643
  *) ac_try_echo=$ac_try;;
 
33644
esac
 
33645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33646
  (eval "$ac_link") 2>conftest.er1
24015
33647
  ac_status=$?
24016
33648
  grep -v '^ *+' conftest.er1 >conftest.err
24017
33649
  rm -f conftest.er1
24018
33650
  cat conftest.err >&5
24019
33651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020
33652
  (exit $ac_status); } &&
24021
 
         { ac_try='test -z "$ac_c_werror_flag"
24022
 
                         || test ! -s conftest.err'
24023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024
 
  (eval $ac_try) 2>&5
 
33653
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33654
  { (case "(($ac_try" in
 
33655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33656
  *) ac_try_echo=$ac_try;;
 
33657
esac
 
33658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33659
  (eval "$ac_try") 2>&5
24025
33660
  ac_status=$?
24026
33661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027
33662
  (exit $ac_status); }; } &&
24028
33663
         { ac_try='test -s conftest$ac_exeext'
24029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030
 
  (eval $ac_try) 2>&5
 
33664
  { (case "(($ac_try" in
 
33665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33666
  *) ac_try_echo=$ac_try;;
 
33667
esac
 
33668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33669
  (eval "$ac_try") 2>&5
24031
33670
  ac_status=$?
24032
33671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033
33672
  (exit $ac_status); }; }; then
24036
33675
  echo "$as_me: failed program was:" >&5
24037
33676
sed 's/^/| /' conftest.$ac_ext >&5
24038
33677
 
24039
 
ac_cv_lib_fribidi_fribidi_set_mirroring=no
 
33678
        ac_cv_lib_fribidi_fribidi_set_mirroring=no
24040
33679
fi
24041
 
rm -f conftest.err conftest.$ac_objext \
 
33680
 
 
33681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24042
33682
      conftest$ac_exeext conftest.$ac_ext
24043
33683
LIBS=$ac_check_lib_save_LIBS
24044
33684
fi
24045
 
echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_set_mirroring" >&5
24046
 
echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_set_mirroring" >&6
 
33685
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_set_mirroring" >&5
 
33686
echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_set_mirroring" >&6; }
24047
33687
if test $ac_cv_lib_fribidi_fribidi_set_mirroring = yes; then
24048
33688
  HAVE_FRIBIDI=yes
24049
33689
else
24051
33691
fi
24052
33692
 
24053
33693
if test "${ac_cv_header_fribidi_fribidi_h+set}" = set; then
24054
 
  echo "$as_me:$LINENO: checking for fribidi/fribidi.h" >&5
24055
 
echo $ECHO_N "checking for fribidi/fribidi.h... $ECHO_C" >&6
 
33694
  { echo "$as_me:$LINENO: checking for fribidi/fribidi.h" >&5
 
33695
echo $ECHO_N "checking for fribidi/fribidi.h... $ECHO_C" >&6; }
24056
33696
if test "${ac_cv_header_fribidi_fribidi_h+set}" = set; then
24057
33697
  echo $ECHO_N "(cached) $ECHO_C" >&6
24058
33698
fi
24059
 
echo "$as_me:$LINENO: result: $ac_cv_header_fribidi_fribidi_h" >&5
24060
 
echo "${ECHO_T}$ac_cv_header_fribidi_fribidi_h" >&6
 
33699
{ echo "$as_me:$LINENO: result: $ac_cv_header_fribidi_fribidi_h" >&5
 
33700
echo "${ECHO_T}$ac_cv_header_fribidi_fribidi_h" >&6; }
24061
33701
else
24062
33702
  # Is the header compilable?
24063
 
echo "$as_me:$LINENO: checking fribidi/fribidi.h usability" >&5
24064
 
echo $ECHO_N "checking fribidi/fribidi.h usability... $ECHO_C" >&6
 
33703
{ echo "$as_me:$LINENO: checking fribidi/fribidi.h usability" >&5
 
33704
echo $ECHO_N "checking fribidi/fribidi.h usability... $ECHO_C" >&6; }
24065
33705
cat >conftest.$ac_ext <<_ACEOF
24066
33706
/* confdefs.h.  */
24067
33707
_ACEOF
24072
33712
#include <fribidi/fribidi.h>
24073
33713
_ACEOF
24074
33714
rm -f conftest.$ac_objext
24075
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24076
 
  (eval $ac_compile) 2>conftest.er1
 
33715
if { (ac_try="$ac_compile"
 
33716
case "(($ac_try" in
 
33717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33718
  *) ac_try_echo=$ac_try;;
 
33719
esac
 
33720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33721
  (eval "$ac_compile") 2>conftest.er1
24077
33722
  ac_status=$?
24078
33723
  grep -v '^ *+' conftest.er1 >conftest.err
24079
33724
  rm -f conftest.er1
24080
33725
  cat conftest.err >&5
24081
33726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082
33727
  (exit $ac_status); } &&
24083
 
         { ac_try='test -z "$ac_c_werror_flag"
24084
 
                         || test ! -s conftest.err'
24085
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086
 
  (eval $ac_try) 2>&5
 
33728
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33729
  { (case "(($ac_try" in
 
33730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33731
  *) ac_try_echo=$ac_try;;
 
33732
esac
 
33733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33734
  (eval "$ac_try") 2>&5
24087
33735
  ac_status=$?
24088
33736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089
33737
  (exit $ac_status); }; } &&
24090
33738
         { ac_try='test -s conftest.$ac_objext'
24091
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092
 
  (eval $ac_try) 2>&5
 
33739
  { (case "(($ac_try" in
 
33740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33741
  *) ac_try_echo=$ac_try;;
 
33742
esac
 
33743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33744
  (eval "$ac_try") 2>&5
24093
33745
  ac_status=$?
24094
33746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095
33747
  (exit $ac_status); }; }; then
24098
33750
  echo "$as_me: failed program was:" >&5
24099
33751
sed 's/^/| /' conftest.$ac_ext >&5
24100
33752
 
24101
 
ac_header_compiler=no
 
33753
        ac_header_compiler=no
24102
33754
fi
24103
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24104
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24105
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
33755
 
 
33756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33757
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33758
echo "${ECHO_T}$ac_header_compiler" >&6; }
24106
33759
 
24107
33760
# Is the header present?
24108
 
echo "$as_me:$LINENO: checking fribidi/fribidi.h presence" >&5
24109
 
echo $ECHO_N "checking fribidi/fribidi.h presence... $ECHO_C" >&6
 
33761
{ echo "$as_me:$LINENO: checking fribidi/fribidi.h presence" >&5
 
33762
echo $ECHO_N "checking fribidi/fribidi.h presence... $ECHO_C" >&6; }
24110
33763
cat >conftest.$ac_ext <<_ACEOF
24111
33764
/* confdefs.h.  */
24112
33765
_ACEOF
24115
33768
/* end confdefs.h.  */
24116
33769
#include <fribidi/fribidi.h>
24117
33770
_ACEOF
24118
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24119
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
33771
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33772
case "(($ac_try" in
 
33773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33774
  *) ac_try_echo=$ac_try;;
 
33775
esac
 
33776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33777
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24120
33778
  ac_status=$?
24121
33779
  grep -v '^ *+' conftest.er1 >conftest.err
24122
33780
  rm -f conftest.er1
24140
33798
 
24141
33799
  ac_header_preproc=no
24142
33800
fi
 
33801
 
24143
33802
rm -f conftest.err conftest.$ac_ext
24144
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24145
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
33803
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33804
echo "${ECHO_T}$ac_header_preproc" >&6; }
24146
33805
 
24147
33806
# So?  What about this header?
24148
33807
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24166
33825
echo "$as_me: WARNING: fribidi/fribidi.h: proceeding with the preprocessor's result" >&2;}
24167
33826
    { echo "$as_me:$LINENO: WARNING: fribidi/fribidi.h: in the future, the compiler will take precedence" >&5
24168
33827
echo "$as_me: WARNING: fribidi/fribidi.h: in the future, the compiler will take precedence" >&2;}
24169
 
    (
24170
 
      cat <<\_ASBOX
 
33828
    ( cat <<\_ASBOX
24171
33829
## ------------------------------------ ##
24172
33830
## Report this to m17n-lib-bug@m17n.org ##
24173
33831
## ------------------------------------ ##
24174
33832
_ASBOX
24175
 
    ) |
24176
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
33833
     ) | sed "s/^/$as_me: WARNING:     /" >&2
24177
33834
    ;;
24178
33835
esac
24179
 
echo "$as_me:$LINENO: checking for fribidi/fribidi.h" >&5
24180
 
echo $ECHO_N "checking for fribidi/fribidi.h... $ECHO_C" >&6
 
33836
{ echo "$as_me:$LINENO: checking for fribidi/fribidi.h" >&5
 
33837
echo $ECHO_N "checking for fribidi/fribidi.h... $ECHO_C" >&6; }
24181
33838
if test "${ac_cv_header_fribidi_fribidi_h+set}" = set; then
24182
33839
  echo $ECHO_N "(cached) $ECHO_C" >&6
24183
33840
else
24184
33841
  ac_cv_header_fribidi_fribidi_h=$ac_header_preproc
24185
33842
fi
24186
 
echo "$as_me:$LINENO: result: $ac_cv_header_fribidi_fribidi_h" >&5
24187
 
echo "${ECHO_T}$ac_cv_header_fribidi_fribidi_h" >&6
 
33843
{ echo "$as_me:$LINENO: result: $ac_cv_header_fribidi_fribidi_h" >&5
 
33844
echo "${ECHO_T}$ac_cv_header_fribidi_fribidi_h" >&6; }
24188
33845
 
24189
33846
fi
24190
33847
if test $ac_cv_header_fribidi_fribidi_h = yes; then
24209
33866
 
24210
33867
 
24211
33868
 
24212
 
# Check whether --with-libotf or --without-libotf was given.
 
33869
# Check whether --with-libotf was given.
24213
33870
if test "${with_libotf+set}" = set; then
24214
 
  withval="$with_libotf"
 
33871
  withval=$with_libotf;
 
33872
fi
24215
33873
 
24216
 
fi;
24217
33874
 
24218
33875
if test "x$with_libotf" != "xno"; then
24219
33876
  save_CPPFLAGS="$CPPFLAGS"
24220
33877
  save_LIBS="$LIBS"
24221
33878
  # Extract the first word of "libotf-config", so it can be a program name with args.
24222
33879
set dummy libotf-config; ac_word=$2
24223
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
24224
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
33880
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
33881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24225
33882
if test "${ac_cv_prog_HAVE_OTFLIB_CONFIG+set}" = set; then
24226
33883
  echo $ECHO_N "(cached) $ECHO_C" >&6
24227
33884
else
24234
33891
  IFS=$as_save_IFS
24235
33892
  test -z "$as_dir" && as_dir=.
24236
33893
  for ac_exec_ext in '' $ac_executable_extensions; do
24237
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
33894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24238
33895
    ac_cv_prog_HAVE_OTFLIB_CONFIG="yes"
24239
33896
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24240
33897
    break 2
24241
33898
  fi
24242
33899
done
24243
33900
done
 
33901
IFS=$as_save_IFS
24244
33902
 
24245
33903
fi
24246
33904
fi
24247
33905
HAVE_OTFLIB_CONFIG=$ac_cv_prog_HAVE_OTFLIB_CONFIG
24248
33906
if test -n "$HAVE_OTFLIB_CONFIG"; then
24249
 
  echo "$as_me:$LINENO: result: $HAVE_OTFLIB_CONFIG" >&5
24250
 
echo "${ECHO_T}$HAVE_OTFLIB_CONFIG" >&6
 
33907
  { echo "$as_me:$LINENO: result: $HAVE_OTFLIB_CONFIG" >&5
 
33908
echo "${ECHO_T}$HAVE_OTFLIB_CONFIG" >&6; }
24251
33909
else
24252
 
  echo "$as_me:$LINENO: result: no" >&5
24253
 
echo "${ECHO_T}no" >&6
 
33910
  { echo "$as_me:$LINENO: result: no" >&5
 
33911
echo "${ECHO_T}no" >&6; }
24254
33912
fi
24255
33913
 
 
33914
 
24256
33915
  if test "x$HAVE_OTFLIB_CONFIG" = "xyes"; then
24257
33916
    CPPFLAGS="$CPPFLAGS `libotf-config --cflags`"
24258
 
    OTF_LD_FLAGS="`libotf-config --libs`  "
 
33917
    OTF_LD_FLAGS="`libotf-config --libs`"
24259
33918
    LIBS="$LIBS $OTF_LD_FLAGS"
24260
33919
  else
24261
33920
    OTF_LD_FLAGS=-lotf
24262
33921
  fi
24263
33922
  ## We check the availability of OTF_check_features
24264
33923
  ## because we need libotf-0.9.4 or the later.
24265
 
  echo "$as_me:$LINENO: checking for OTF_check_features in -lotf" >&5
24266
 
echo $ECHO_N "checking for OTF_check_features in -lotf... $ECHO_C" >&6
 
33924
  { echo "$as_me:$LINENO: checking for OTF_check_features in -lotf" >&5
 
33925
echo $ECHO_N "checking for OTF_check_features in -lotf... $ECHO_C" >&6; }
24267
33926
if test "${ac_cv_lib_otf_OTF_check_features+set}" = set; then
24268
33927
  echo $ECHO_N "(cached) $ECHO_C" >&6
24269
33928
else
24276
33935
cat >>conftest.$ac_ext <<_ACEOF
24277
33936
/* end confdefs.h.  */
24278
33937
 
24279
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
33938
/* Override any GCC internal prototype to avoid an error.
 
33939
   Use char because int might match the return type of a GCC
 
33940
   builtin and then its argument prototype would still apply.  */
24280
33941
#ifdef __cplusplus
24281
33942
extern "C"
24282
33943
#endif
24283
 
/* We use char because int might match the return type of a gcc2
24284
 
   builtin and then its argument prototype would still apply.  */
24285
33944
char OTF_check_features ();
24286
33945
int
24287
33946
main ()
24288
33947
{
24289
 
OTF_check_features ();
 
33948
return OTF_check_features ();
24290
33949
  ;
24291
33950
  return 0;
24292
33951
}
24293
33952
_ACEOF
24294
33953
rm -f conftest.$ac_objext conftest$ac_exeext
24295
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24296
 
  (eval $ac_link) 2>conftest.er1
 
33954
if { (ac_try="$ac_link"
 
33955
case "(($ac_try" in
 
33956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33957
  *) ac_try_echo=$ac_try;;
 
33958
esac
 
33959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33960
  (eval "$ac_link") 2>conftest.er1
24297
33961
  ac_status=$?
24298
33962
  grep -v '^ *+' conftest.er1 >conftest.err
24299
33963
  rm -f conftest.er1
24300
33964
  cat conftest.err >&5
24301
33965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302
33966
  (exit $ac_status); } &&
24303
 
         { ac_try='test -z "$ac_c_werror_flag"
24304
 
                         || test ! -s conftest.err'
24305
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24306
 
  (eval $ac_try) 2>&5
 
33967
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
33968
  { (case "(($ac_try" in
 
33969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33970
  *) ac_try_echo=$ac_try;;
 
33971
esac
 
33972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33973
  (eval "$ac_try") 2>&5
24307
33974
  ac_status=$?
24308
33975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309
33976
  (exit $ac_status); }; } &&
24310
33977
         { ac_try='test -s conftest$ac_exeext'
24311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312
 
  (eval $ac_try) 2>&5
 
33978
  { (case "(($ac_try" in
 
33979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33980
  *) ac_try_echo=$ac_try;;
 
33981
esac
 
33982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33983
  (eval "$ac_try") 2>&5
24313
33984
  ac_status=$?
24314
33985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315
33986
  (exit $ac_status); }; }; then
24318
33989
  echo "$as_me: failed program was:" >&5
24319
33990
sed 's/^/| /' conftest.$ac_ext >&5
24320
33991
 
24321
 
ac_cv_lib_otf_OTF_check_features=no
 
33992
        ac_cv_lib_otf_OTF_check_features=no
24322
33993
fi
24323
 
rm -f conftest.err conftest.$ac_objext \
 
33994
 
 
33995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24324
33996
      conftest$ac_exeext conftest.$ac_ext
24325
33997
LIBS=$ac_check_lib_save_LIBS
24326
33998
fi
24327
 
echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_check_features" >&5
24328
 
echo "${ECHO_T}$ac_cv_lib_otf_OTF_check_features" >&6
 
33999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_check_features" >&5
 
34000
echo "${ECHO_T}$ac_cv_lib_otf_OTF_check_features" >&6; }
24329
34001
if test $ac_cv_lib_otf_OTF_check_features = yes; then
24330
34002
  HAVE_OTF=yes
24331
34003
else
24333
34005
fi
24334
34006
 
24335
34007
  if test "${ac_cv_header_otf_h+set}" = set; then
24336
 
  echo "$as_me:$LINENO: checking for otf.h" >&5
24337
 
echo $ECHO_N "checking for otf.h... $ECHO_C" >&6
 
34008
  { echo "$as_me:$LINENO: checking for otf.h" >&5
 
34009
echo $ECHO_N "checking for otf.h... $ECHO_C" >&6; }
24338
34010
if test "${ac_cv_header_otf_h+set}" = set; then
24339
34011
  echo $ECHO_N "(cached) $ECHO_C" >&6
24340
34012
fi
24341
 
echo "$as_me:$LINENO: result: $ac_cv_header_otf_h" >&5
24342
 
echo "${ECHO_T}$ac_cv_header_otf_h" >&6
 
34013
{ echo "$as_me:$LINENO: result: $ac_cv_header_otf_h" >&5
 
34014
echo "${ECHO_T}$ac_cv_header_otf_h" >&6; }
24343
34015
else
24344
34016
  # Is the header compilable?
24345
 
echo "$as_me:$LINENO: checking otf.h usability" >&5
24346
 
echo $ECHO_N "checking otf.h usability... $ECHO_C" >&6
 
34017
{ echo "$as_me:$LINENO: checking otf.h usability" >&5
 
34018
echo $ECHO_N "checking otf.h usability... $ECHO_C" >&6; }
24347
34019
cat >conftest.$ac_ext <<_ACEOF
24348
34020
/* confdefs.h.  */
24349
34021
_ACEOF
24354
34026
#include <otf.h>
24355
34027
_ACEOF
24356
34028
rm -f conftest.$ac_objext
24357
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24358
 
  (eval $ac_compile) 2>conftest.er1
 
34029
if { (ac_try="$ac_compile"
 
34030
case "(($ac_try" in
 
34031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34032
  *) ac_try_echo=$ac_try;;
 
34033
esac
 
34034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34035
  (eval "$ac_compile") 2>conftest.er1
24359
34036
  ac_status=$?
24360
34037
  grep -v '^ *+' conftest.er1 >conftest.err
24361
34038
  rm -f conftest.er1
24362
34039
  cat conftest.err >&5
24363
34040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364
34041
  (exit $ac_status); } &&
24365
 
         { ac_try='test -z "$ac_c_werror_flag"
24366
 
                         || test ! -s conftest.err'
24367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368
 
  (eval $ac_try) 2>&5
 
34042
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34043
  { (case "(($ac_try" in
 
34044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34045
  *) ac_try_echo=$ac_try;;
 
34046
esac
 
34047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34048
  (eval "$ac_try") 2>&5
24369
34049
  ac_status=$?
24370
34050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371
34051
  (exit $ac_status); }; } &&
24372
34052
         { ac_try='test -s conftest.$ac_objext'
24373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374
 
  (eval $ac_try) 2>&5
 
34053
  { (case "(($ac_try" in
 
34054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34055
  *) ac_try_echo=$ac_try;;
 
34056
esac
 
34057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34058
  (eval "$ac_try") 2>&5
24375
34059
  ac_status=$?
24376
34060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377
34061
  (exit $ac_status); }; }; then
24380
34064
  echo "$as_me: failed program was:" >&5
24381
34065
sed 's/^/| /' conftest.$ac_ext >&5
24382
34066
 
24383
 
ac_header_compiler=no
 
34067
        ac_header_compiler=no
24384
34068
fi
24385
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24386
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24387
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
34069
 
 
34070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34071
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34072
echo "${ECHO_T}$ac_header_compiler" >&6; }
24388
34073
 
24389
34074
# Is the header present?
24390
 
echo "$as_me:$LINENO: checking otf.h presence" >&5
24391
 
echo $ECHO_N "checking otf.h presence... $ECHO_C" >&6
 
34075
{ echo "$as_me:$LINENO: checking otf.h presence" >&5
 
34076
echo $ECHO_N "checking otf.h presence... $ECHO_C" >&6; }
24392
34077
cat >conftest.$ac_ext <<_ACEOF
24393
34078
/* confdefs.h.  */
24394
34079
_ACEOF
24397
34082
/* end confdefs.h.  */
24398
34083
#include <otf.h>
24399
34084
_ACEOF
24400
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24401
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
34085
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34086
case "(($ac_try" in
 
34087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34088
  *) ac_try_echo=$ac_try;;
 
34089
esac
 
34090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34091
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24402
34092
  ac_status=$?
24403
34093
  grep -v '^ *+' conftest.er1 >conftest.err
24404
34094
  rm -f conftest.er1
24422
34112
 
24423
34113
  ac_header_preproc=no
24424
34114
fi
 
34115
 
24425
34116
rm -f conftest.err conftest.$ac_ext
24426
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24427
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
34117
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34118
echo "${ECHO_T}$ac_header_preproc" >&6; }
24428
34119
 
24429
34120
# So?  What about this header?
24430
34121
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24448
34139
echo "$as_me: WARNING: otf.h: proceeding with the preprocessor's result" >&2;}
24449
34140
    { echo "$as_me:$LINENO: WARNING: otf.h: in the future, the compiler will take precedence" >&5
24450
34141
echo "$as_me: WARNING: otf.h: in the future, the compiler will take precedence" >&2;}
24451
 
    (
24452
 
      cat <<\_ASBOX
 
34142
    ( cat <<\_ASBOX
24453
34143
## ------------------------------------ ##
24454
34144
## Report this to m17n-lib-bug@m17n.org ##
24455
34145
## ------------------------------------ ##
24456
34146
_ASBOX
24457
 
    ) |
24458
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
34147
     ) | sed "s/^/$as_me: WARNING:     /" >&2
24459
34148
    ;;
24460
34149
esac
24461
 
echo "$as_me:$LINENO: checking for otf.h" >&5
24462
 
echo $ECHO_N "checking for otf.h... $ECHO_C" >&6
 
34150
{ echo "$as_me:$LINENO: checking for otf.h" >&5
 
34151
echo $ECHO_N "checking for otf.h... $ECHO_C" >&6; }
24463
34152
if test "${ac_cv_header_otf_h+set}" = set; then
24464
34153
  echo $ECHO_N "(cached) $ECHO_C" >&6
24465
34154
else
24466
34155
  ac_cv_header_otf_h=$ac_header_preproc
24467
34156
fi
24468
 
echo "$as_me:$LINENO: result: $ac_cv_header_otf_h" >&5
24469
 
echo "${ECHO_T}$ac_cv_header_otf_h" >&6
 
34157
{ echo "$as_me:$LINENO: result: $ac_cv_header_otf_h" >&5
 
34158
echo "${ECHO_T}$ac_cv_header_otf_h" >&6; }
24470
34159
 
24471
34160
fi
24472
34161
if test $ac_cv_header_otf_h = yes; then
24476
34165
fi
24477
34166
 
24478
34167
 
24479
 
  CPPFLAGS="$save_CPPFLAGS"
24480
34168
  if test "x$HAVE_OTF" = "xyes"; then
24481
34169
 
24482
34170
cat >>confdefs.h <<\_ACEOF
24494
34182
 
24495
34183
# Extract the first word of "freetype-config", so it can be a program name with args.
24496
34184
set dummy freetype-config; ac_word=$2
24497
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
24498
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
34185
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
34186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24499
34187
if test "${ac_cv_prog_HAVE_FREETYPE_CONFIG+set}" = set; then
24500
34188
  echo $ECHO_N "(cached) $ECHO_C" >&6
24501
34189
else
24508
34196
  IFS=$as_save_IFS
24509
34197
  test -z "$as_dir" && as_dir=.
24510
34198
  for ac_exec_ext in '' $ac_executable_extensions; do
24511
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
34199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24512
34200
    ac_cv_prog_HAVE_FREETYPE_CONFIG="yes"
24513
34201
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24514
34202
    break 2
24515
34203
  fi
24516
34204
done
24517
34205
done
 
34206
IFS=$as_save_IFS
24518
34207
 
24519
34208
fi
24520
34209
fi
24521
34210
HAVE_FREETYPE_CONFIG=$ac_cv_prog_HAVE_FREETYPE_CONFIG
24522
34211
if test -n "$HAVE_FREETYPE_CONFIG"; then
24523
 
  echo "$as_me:$LINENO: result: $HAVE_FREETYPE_CONFIG" >&5
24524
 
echo "${ECHO_T}$HAVE_FREETYPE_CONFIG" >&6
 
34212
  { echo "$as_me:$LINENO: result: $HAVE_FREETYPE_CONFIG" >&5
 
34213
echo "${ECHO_T}$HAVE_FREETYPE_CONFIG" >&6; }
24525
34214
else
24526
 
  echo "$as_me:$LINENO: result: no" >&5
24527
 
echo "${ECHO_T}no" >&6
 
34215
  { echo "$as_me:$LINENO: result: no" >&5
 
34216
echo "${ECHO_T}no" >&6; }
24528
34217
fi
24529
34218
 
 
34219
 
24530
34220
if test "x$HAVE_FREETYPE_CONFIG" = "xyes"; then
24531
34221
  FREETYPE_INC=`freetype-config --cflags`
24532
34222
  save_CPPFLAGS="$CPPFLAGS"
24533
34223
  CPPFLAGS="$CPPFLAGS $FREETYPE_INC"
24534
34224
  if test "${ac_cv_header_ft2build_h+set}" = set; then
24535
 
  echo "$as_me:$LINENO: checking for ft2build.h" >&5
24536
 
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
 
34225
  { echo "$as_me:$LINENO: checking for ft2build.h" >&5
 
34226
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
24537
34227
if test "${ac_cv_header_ft2build_h+set}" = set; then
24538
34228
  echo $ECHO_N "(cached) $ECHO_C" >&6
24539
34229
fi
24540
 
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
24541
 
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
 
34230
{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
 
34231
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
24542
34232
else
24543
34233
  # Is the header compilable?
24544
 
echo "$as_me:$LINENO: checking ft2build.h usability" >&5
24545
 
echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
 
34234
{ echo "$as_me:$LINENO: checking ft2build.h usability" >&5
 
34235
echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
24546
34236
cat >conftest.$ac_ext <<_ACEOF
24547
34237
/* confdefs.h.  */
24548
34238
_ACEOF
24553
34243
#include <ft2build.h>
24554
34244
_ACEOF
24555
34245
rm -f conftest.$ac_objext
24556
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24557
 
  (eval $ac_compile) 2>conftest.er1
 
34246
if { (ac_try="$ac_compile"
 
34247
case "(($ac_try" in
 
34248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34249
  *) ac_try_echo=$ac_try;;
 
34250
esac
 
34251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34252
  (eval "$ac_compile") 2>conftest.er1
24558
34253
  ac_status=$?
24559
34254
  grep -v '^ *+' conftest.er1 >conftest.err
24560
34255
  rm -f conftest.er1
24561
34256
  cat conftest.err >&5
24562
34257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563
34258
  (exit $ac_status); } &&
24564
 
         { ac_try='test -z "$ac_c_werror_flag"
24565
 
                         || test ! -s conftest.err'
24566
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567
 
  (eval $ac_try) 2>&5
 
34259
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34260
  { (case "(($ac_try" in
 
34261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34262
  *) ac_try_echo=$ac_try;;
 
34263
esac
 
34264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34265
  (eval "$ac_try") 2>&5
24568
34266
  ac_status=$?
24569
34267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570
34268
  (exit $ac_status); }; } &&
24571
34269
         { ac_try='test -s conftest.$ac_objext'
24572
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573
 
  (eval $ac_try) 2>&5
 
34270
  { (case "(($ac_try" in
 
34271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34272
  *) ac_try_echo=$ac_try;;
 
34273
esac
 
34274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34275
  (eval "$ac_try") 2>&5
24574
34276
  ac_status=$?
24575
34277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576
34278
  (exit $ac_status); }; }; then
24579
34281
  echo "$as_me: failed program was:" >&5
24580
34282
sed 's/^/| /' conftest.$ac_ext >&5
24581
34283
 
24582
 
ac_header_compiler=no
 
34284
        ac_header_compiler=no
24583
34285
fi
24584
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24585
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24586
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
34286
 
 
34287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34288
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34289
echo "${ECHO_T}$ac_header_compiler" >&6; }
24587
34290
 
24588
34291
# Is the header present?
24589
 
echo "$as_me:$LINENO: checking ft2build.h presence" >&5
24590
 
echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
 
34292
{ echo "$as_me:$LINENO: checking ft2build.h presence" >&5
 
34293
echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
24591
34294
cat >conftest.$ac_ext <<_ACEOF
24592
34295
/* confdefs.h.  */
24593
34296
_ACEOF
24596
34299
/* end confdefs.h.  */
24597
34300
#include <ft2build.h>
24598
34301
_ACEOF
24599
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24600
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
34302
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34303
case "(($ac_try" in
 
34304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34305
  *) ac_try_echo=$ac_try;;
 
34306
esac
 
34307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34308
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24601
34309
  ac_status=$?
24602
34310
  grep -v '^ *+' conftest.er1 >conftest.err
24603
34311
  rm -f conftest.er1
24621
34329
 
24622
34330
  ac_header_preproc=no
24623
34331
fi
 
34332
 
24624
34333
rm -f conftest.err conftest.$ac_ext
24625
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24626
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
34334
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34335
echo "${ECHO_T}$ac_header_preproc" >&6; }
24627
34336
 
24628
34337
# So?  What about this header?
24629
34338
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24647
34356
echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
24648
34357
    { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
24649
34358
echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
24650
 
    (
24651
 
      cat <<\_ASBOX
 
34359
    ( cat <<\_ASBOX
24652
34360
## ------------------------------------ ##
24653
34361
## Report this to m17n-lib-bug@m17n.org ##
24654
34362
## ------------------------------------ ##
24655
34363
_ASBOX
24656
 
    ) |
24657
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
34364
     ) | sed "s/^/$as_me: WARNING:     /" >&2
24658
34365
    ;;
24659
34366
esac
24660
 
echo "$as_me:$LINENO: checking for ft2build.h" >&5
24661
 
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
 
34367
{ echo "$as_me:$LINENO: checking for ft2build.h" >&5
 
34368
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
24662
34369
if test "${ac_cv_header_ft2build_h+set}" = set; then
24663
34370
  echo $ECHO_N "(cached) $ECHO_C" >&6
24664
34371
else
24665
34372
  ac_cv_header_ft2build_h=$ac_header_preproc
24666
34373
fi
24667
 
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
24668
 
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
 
34374
{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
 
34375
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
24669
34376
 
24670
34377
fi
24671
34378
if test $ac_cv_header_ft2build_h = yes; then
24678
34385
  if test "x$HAVE_FREETYPE" = "xyes" ; then
24679
34386
    save_LIBS="$LIBS"
24680
34387
    LIBS="$LIBS `freetype-config --libs`"
24681
 
    echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
24682
 
echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
 
34388
    { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
 
34389
echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
24683
34390
if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
24684
34391
  echo $ECHO_N "(cached) $ECHO_C" >&6
24685
34392
else
24692
34399
cat >>conftest.$ac_ext <<_ACEOF
24693
34400
/* end confdefs.h.  */
24694
34401
 
24695
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
34402
/* Override any GCC internal prototype to avoid an error.
 
34403
   Use char because int might match the return type of a GCC
 
34404
   builtin and then its argument prototype would still apply.  */
24696
34405
#ifdef __cplusplus
24697
34406
extern "C"
24698
34407
#endif
24699
 
/* We use char because int might match the return type of a gcc2
24700
 
   builtin and then its argument prototype would still apply.  */
24701
34408
char FT_Init_FreeType ();
24702
34409
int
24703
34410
main ()
24704
34411
{
24705
 
FT_Init_FreeType ();
 
34412
return FT_Init_FreeType ();
24706
34413
  ;
24707
34414
  return 0;
24708
34415
}
24709
34416
_ACEOF
24710
34417
rm -f conftest.$ac_objext conftest$ac_exeext
24711
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24712
 
  (eval $ac_link) 2>conftest.er1
 
34418
if { (ac_try="$ac_link"
 
34419
case "(($ac_try" in
 
34420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34421
  *) ac_try_echo=$ac_try;;
 
34422
esac
 
34423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34424
  (eval "$ac_link") 2>conftest.er1
24713
34425
  ac_status=$?
24714
34426
  grep -v '^ *+' conftest.er1 >conftest.err
24715
34427
  rm -f conftest.er1
24716
34428
  cat conftest.err >&5
24717
34429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718
34430
  (exit $ac_status); } &&
24719
 
         { ac_try='test -z "$ac_c_werror_flag"
24720
 
                         || test ! -s conftest.err'
24721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722
 
  (eval $ac_try) 2>&5
 
34431
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34432
  { (case "(($ac_try" in
 
34433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34434
  *) ac_try_echo=$ac_try;;
 
34435
esac
 
34436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34437
  (eval "$ac_try") 2>&5
24723
34438
  ac_status=$?
24724
34439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725
34440
  (exit $ac_status); }; } &&
24726
34441
         { ac_try='test -s conftest$ac_exeext'
24727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728
 
  (eval $ac_try) 2>&5
 
34442
  { (case "(($ac_try" in
 
34443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34444
  *) ac_try_echo=$ac_try;;
 
34445
esac
 
34446
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34447
  (eval "$ac_try") 2>&5
24729
34448
  ac_status=$?
24730
34449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731
34450
  (exit $ac_status); }; }; then
24734
34453
  echo "$as_me: failed program was:" >&5
24735
34454
sed 's/^/| /' conftest.$ac_ext >&5
24736
34455
 
24737
 
ac_cv_lib_freetype_FT_Init_FreeType=no
 
34456
        ac_cv_lib_freetype_FT_Init_FreeType=no
24738
34457
fi
24739
 
rm -f conftest.err conftest.$ac_objext \
 
34458
 
 
34459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24740
34460
      conftest$ac_exeext conftest.$ac_ext
24741
34461
LIBS=$ac_check_lib_save_LIBS
24742
34462
fi
24743
 
echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
24744
 
echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
 
34463
{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
 
34464
echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
24745
34465
if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
24746
34466
  HAVE_FREETYPE=yes
24747
34467
else
24757
34477
_ACEOF
24758
34478
 
24759
34479
      M17N_EXT_LIBS="$M17N_EXT_LIBS freetype"
24760
 
      echo "$as_me:$LINENO: checking for freetype/ftbdf.h" >&5
24761
 
echo $ECHO_N "checking for freetype/ftbdf.h... $ECHO_C" >&6
 
34480
      { echo "$as_me:$LINENO: checking for freetype/ftbdf.h" >&5
 
34481
echo $ECHO_N "checking for freetype/ftbdf.h... $ECHO_C" >&6; }
24762
34482
if test "${ac_cv_header_freetype_ftbdf_h+set}" = set; then
24763
34483
  echo $ECHO_N "(cached) $ECHO_C" >&6
24764
34484
else
24774
34494
#include <freetype/ftbdf.h>
24775
34495
_ACEOF
24776
34496
rm -f conftest.$ac_objext
24777
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24778
 
  (eval $ac_compile) 2>conftest.er1
 
34497
if { (ac_try="$ac_compile"
 
34498
case "(($ac_try" in
 
34499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34500
  *) ac_try_echo=$ac_try;;
 
34501
esac
 
34502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34503
  (eval "$ac_compile") 2>conftest.er1
24779
34504
  ac_status=$?
24780
34505
  grep -v '^ *+' conftest.er1 >conftest.err
24781
34506
  rm -f conftest.er1
24782
34507
  cat conftest.err >&5
24783
34508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784
34509
  (exit $ac_status); } &&
24785
 
         { ac_try='test -z "$ac_c_werror_flag"
24786
 
                         || test ! -s conftest.err'
24787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788
 
  (eval $ac_try) 2>&5
 
34510
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34511
  { (case "(($ac_try" in
 
34512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34513
  *) ac_try_echo=$ac_try;;
 
34514
esac
 
34515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34516
  (eval "$ac_try") 2>&5
24789
34517
  ac_status=$?
24790
34518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791
34519
  (exit $ac_status); }; } &&
24792
34520
         { ac_try='test -s conftest.$ac_objext'
24793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794
 
  (eval $ac_try) 2>&5
 
34521
  { (case "(($ac_try" in
 
34522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34523
  *) ac_try_echo=$ac_try;;
 
34524
esac
 
34525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34526
  (eval "$ac_try") 2>&5
24795
34527
  ac_status=$?
24796
34528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797
34529
  (exit $ac_status); }; }; then
24800
34532
  echo "$as_me: failed program was:" >&5
24801
34533
sed 's/^/| /' conftest.$ac_ext >&5
24802
34534
 
24803
 
ac_cv_header_freetype_ftbdf_h=no
24804
 
fi
24805
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24806
 
fi
24807
 
echo "$as_me:$LINENO: result: $ac_cv_header_freetype_ftbdf_h" >&5
24808
 
echo "${ECHO_T}$ac_cv_header_freetype_ftbdf_h" >&6
 
34535
        ac_cv_header_freetype_ftbdf_h=no
 
34536
fi
 
34537
 
 
34538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34539
fi
 
34540
{ echo "$as_me:$LINENO: result: $ac_cv_header_freetype_ftbdf_h" >&5
 
34541
echo "${ECHO_T}$ac_cv_header_freetype_ftbdf_h" >&6; }
24809
34542
if test $ac_cv_header_freetype_ftbdf_h = yes; then
24810
34543
  HAVE_FTBDF_H=yes
24811
34544
else
24826
34559
fi
24827
34560
 
24828
34561
 
24829
 
# Extract the first word of "pkg-config", so it can be a program name with args.
24830
 
set dummy pkg-config; ac_word=$2
24831
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
24832
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24833
 
if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
24834
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24835
 
else
24836
 
  if test -n "$HAVE_PKG_CONFIG"; then
24837
 
  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
24838
 
else
24839
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24840
 
for as_dir in $PATH
24841
 
do
24842
 
  IFS=$as_save_IFS
24843
 
  test -z "$as_dir" && as_dir=.
24844
 
  for ac_exec_ext in '' $ac_executable_extensions; do
24845
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24846
 
    ac_cv_prog_HAVE_PKG_CONFIG="yes"
24847
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24848
 
    break 2
24849
 
  fi
24850
 
done
24851
 
done
24852
 
 
24853
 
fi
24854
 
fi
24855
 
HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
24856
 
if test -n "$HAVE_PKG_CONFIG"; then
24857
 
  echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
24858
 
echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6
24859
 
else
24860
 
  echo "$as_me:$LINENO: result: no" >&5
24861
 
echo "${ECHO_T}no" >&6
24862
 
fi
24863
 
 
24864
 
 
24865
34562
save_CPPFLAGS="$CPPFLAGS"
24866
34563
save_LIBS="$LIBS"
24867
34564
XFT2_LD_FLAGS="-lXft -lfreetype -lfontconfig -lXrender -lX11"
24868
34565
# Extract the first word of "xft-config", so it can be a program name with args.
24869
34566
set dummy xft-config; ac_word=$2
24870
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
24871
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
34567
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
34568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24872
34569
if test "${ac_cv_prog_HAVE_XFT_CONFIG+set}" = set; then
24873
34570
  echo $ECHO_N "(cached) $ECHO_C" >&6
24874
34571
else
24881
34578
  IFS=$as_save_IFS
24882
34579
  test -z "$as_dir" && as_dir=.
24883
34580
  for ac_exec_ext in '' $ac_executable_extensions; do
24884
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
34581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24885
34582
    ac_cv_prog_HAVE_XFT_CONFIG="yes"
24886
34583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24887
34584
    break 2
24888
34585
  fi
24889
34586
done
24890
34587
done
 
34588
IFS=$as_save_IFS
24891
34589
 
24892
34590
fi
24893
34591
fi
24894
34592
HAVE_XFT_CONFIG=$ac_cv_prog_HAVE_XFT_CONFIG
24895
34593
if test -n "$HAVE_XFT_CONFIG"; then
24896
 
  echo "$as_me:$LINENO: result: $HAVE_XFT_CONFIG" >&5
24897
 
echo "${ECHO_T}$HAVE_XFT_CONFIG" >&6
 
34594
  { echo "$as_me:$LINENO: result: $HAVE_XFT_CONFIG" >&5
 
34595
echo "${ECHO_T}$HAVE_XFT_CONFIG" >&6; }
24898
34596
else
24899
 
  echo "$as_me:$LINENO: result: no" >&5
24900
 
echo "${ECHO_T}no" >&6
 
34597
  { echo "$as_me:$LINENO: result: no" >&5
 
34598
echo "${ECHO_T}no" >&6; }
24901
34599
fi
24902
34600
 
 
34601
 
24903
34602
if test "x$HAVE_XFT_CONFIG" = "xyes"; then
24904
34603
  CPPFLAGS="$CPPFLAGS `xft-config --cflags`"
24905
34604
  XFT2_LD_FLAGS="`xft-config --libs`"
24910
34609
  fi
24911
34610
fi
24912
34611
LIBS="$LIBS $XFT2_LD_FLAGS"
24913
 
echo "$as_me:$LINENO: checking for XftDrawCreate in -lXft" >&5
24914
 
echo $ECHO_N "checking for XftDrawCreate in -lXft... $ECHO_C" >&6
 
34612
{ echo "$as_me:$LINENO: checking for XftDrawCreate in -lXft" >&5
 
34613
echo $ECHO_N "checking for XftDrawCreate in -lXft... $ECHO_C" >&6; }
24915
34614
if test "${ac_cv_lib_Xft_XftDrawCreate+set}" = set; then
24916
34615
  echo $ECHO_N "(cached) $ECHO_C" >&6
24917
34616
else
24924
34623
cat >>conftest.$ac_ext <<_ACEOF
24925
34624
/* end confdefs.h.  */
24926
34625
 
24927
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
34626
/* Override any GCC internal prototype to avoid an error.
 
34627
   Use char because int might match the return type of a GCC
 
34628
   builtin and then its argument prototype would still apply.  */
24928
34629
#ifdef __cplusplus
24929
34630
extern "C"
24930
34631
#endif
24931
 
/* We use char because int might match the return type of a gcc2
24932
 
   builtin and then its argument prototype would still apply.  */
24933
34632
char XftDrawCreate ();
24934
34633
int
24935
34634
main ()
24936
34635
{
24937
 
XftDrawCreate ();
 
34636
return XftDrawCreate ();
24938
34637
  ;
24939
34638
  return 0;
24940
34639
}
24941
34640
_ACEOF
24942
34641
rm -f conftest.$ac_objext conftest$ac_exeext
24943
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944
 
  (eval $ac_link) 2>conftest.er1
 
34642
if { (ac_try="$ac_link"
 
34643
case "(($ac_try" in
 
34644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34645
  *) ac_try_echo=$ac_try;;
 
34646
esac
 
34647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34648
  (eval "$ac_link") 2>conftest.er1
24945
34649
  ac_status=$?
24946
34650
  grep -v '^ *+' conftest.er1 >conftest.err
24947
34651
  rm -f conftest.er1
24948
34652
  cat conftest.err >&5
24949
34653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950
34654
  (exit $ac_status); } &&
24951
 
         { ac_try='test -z "$ac_c_werror_flag"
24952
 
                         || test ! -s conftest.err'
24953
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954
 
  (eval $ac_try) 2>&5
 
34655
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34656
  { (case "(($ac_try" in
 
34657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34658
  *) ac_try_echo=$ac_try;;
 
34659
esac
 
34660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34661
  (eval "$ac_try") 2>&5
24955
34662
  ac_status=$?
24956
34663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957
34664
  (exit $ac_status); }; } &&
24958
34665
         { ac_try='test -s conftest$ac_exeext'
24959
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960
 
  (eval $ac_try) 2>&5
 
34666
  { (case "(($ac_try" in
 
34667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34668
  *) ac_try_echo=$ac_try;;
 
34669
esac
 
34670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34671
  (eval "$ac_try") 2>&5
24961
34672
  ac_status=$?
24962
34673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963
34674
  (exit $ac_status); }; }; then
24966
34677
  echo "$as_me: failed program was:" >&5
24967
34678
sed 's/^/| /' conftest.$ac_ext >&5
24968
34679
 
24969
 
ac_cv_lib_Xft_XftDrawCreate=no
 
34680
        ac_cv_lib_Xft_XftDrawCreate=no
24970
34681
fi
24971
 
rm -f conftest.err conftest.$ac_objext \
 
34682
 
 
34683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24972
34684
      conftest$ac_exeext conftest.$ac_ext
24973
34685
LIBS=$ac_check_lib_save_LIBS
24974
34686
fi
24975
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
24976
 
echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawCreate" >&6
 
34687
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
 
34688
echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawCreate" >&6; }
24977
34689
if test $ac_cv_lib_Xft_XftDrawCreate = yes; then
24978
34690
  HAVE_XFT2=yes
24979
34691
else
24980
34692
  HAVE_XFT2=no
24981
34693
fi
24982
34694
 
24983
 
echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
24984
 
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
 
34695
{ echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
 
34696
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
24985
34697
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
24986
34698
  echo $ECHO_N "(cached) $ECHO_C" >&6
24987
34699
else
25000
34712
#include <X11/Xft/Xft.h>
25001
34713
_ACEOF
25002
34714
rm -f conftest.$ac_objext
25003
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25004
 
  (eval $ac_compile) 2>conftest.er1
 
34715
if { (ac_try="$ac_compile"
 
34716
case "(($ac_try" in
 
34717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34718
  *) ac_try_echo=$ac_try;;
 
34719
esac
 
34720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34721
  (eval "$ac_compile") 2>conftest.er1
25005
34722
  ac_status=$?
25006
34723
  grep -v '^ *+' conftest.er1 >conftest.err
25007
34724
  rm -f conftest.er1
25008
34725
  cat conftest.err >&5
25009
34726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010
34727
  (exit $ac_status); } &&
25011
 
         { ac_try='test -z "$ac_c_werror_flag"
25012
 
                         || test ! -s conftest.err'
25013
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014
 
  (eval $ac_try) 2>&5
 
34728
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34729
  { (case "(($ac_try" in
 
34730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34731
  *) ac_try_echo=$ac_try;;
 
34732
esac
 
34733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34734
  (eval "$ac_try") 2>&5
25015
34735
  ac_status=$?
25016
34736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017
34737
  (exit $ac_status); }; } &&
25018
34738
         { ac_try='test -s conftest.$ac_objext'
25019
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020
 
  (eval $ac_try) 2>&5
 
34739
  { (case "(($ac_try" in
 
34740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34741
  *) ac_try_echo=$ac_try;;
 
34742
esac
 
34743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34744
  (eval "$ac_try") 2>&5
25021
34745
  ac_status=$?
25022
34746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023
34747
  (exit $ac_status); }; }; then
25026
34750
  echo "$as_me: failed program was:" >&5
25027
34751
sed 's/^/| /' conftest.$ac_ext >&5
25028
34752
 
25029
 
ac_cv_header_X11_Xft_Xft_h=no
25030
 
fi
25031
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25032
 
fi
25033
 
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
25034
 
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
 
34753
        ac_cv_header_X11_Xft_Xft_h=no
 
34754
fi
 
34755
 
 
34756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34757
fi
 
34758
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
 
34759
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
25035
34760
if test $ac_cv_header_X11_Xft_Xft_h = yes; then
25036
34761
  :
25037
34762
else
25053
34778
LIBS="$save_LIBS"
25054
34779
 
25055
34780
 
25056
 
save_CPPFLAGS="$CPPFLAGS"
25057
 
save_LIBS="$LIBS"
25058
 
FONTCONFIG_LD_FLAGS=-lfontconfig
25059
 
if test "x$HAVE_PKG_CONFIG" = "xyes"; then
25060
 
  if pkg-config --exists fontconfig; then
25061
 
    CPPFLAGS="$CPPFLAGS `pkg-config --cflags fontconfig`"
25062
 
    FONTCONFIG_LD_FLAGS="`pkg-config --libs fontconfig`"
25063
 
    LIBS="$LIBS $FONTCONFIG_LD_FLAGS"
 
34781
 
 
34782
# Check whether --with-fontconfig was given.
 
34783
if test "${with_fontconfig+set}" = set; then
 
34784
  withval=$with_fontconfig;
 
34785
fi
 
34786
 
 
34787
if test "x$with_fontconfig" != "xno"; then
 
34788
  save_CPPFLAGS="$CPPFLAGS"
 
34789
  save_LIBS="$LIBS"
 
34790
  FONTCONFIG_LD_FLAGS=-lfontconfig
 
34791
  if test "x$HAVE_PKG_CONFIG" = "xyes"; then
 
34792
    if pkg-config --exists fontconfig; then
 
34793
      CPPFLAGS="$CPPFLAGS `pkg-config --cflags fontconfig`"
 
34794
      FONTCONFIG_LD_FLAGS="`pkg-config --libs fontconfig`"
 
34795
      LIBS="$LIBS $FONTCONFIG_LD_FLAGS"
 
34796
    fi
25064
34797
  fi
25065
 
fi
25066
 
echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
25067
 
echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
 
34798
  { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
 
34799
echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
25068
34800
if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
25069
34801
  echo $ECHO_N "(cached) $ECHO_C" >&6
25070
34802
else
25077
34809
cat >>conftest.$ac_ext <<_ACEOF
25078
34810
/* end confdefs.h.  */
25079
34811
 
25080
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
34812
/* Override any GCC internal prototype to avoid an error.
 
34813
   Use char because int might match the return type of a GCC
 
34814
   builtin and then its argument prototype would still apply.  */
25081
34815
#ifdef __cplusplus
25082
34816
extern "C"
25083
34817
#endif
25084
 
/* We use char because int might match the return type of a gcc2
25085
 
   builtin and then its argument prototype would still apply.  */
25086
34818
char FcInit ();
25087
34819
int
25088
34820
main ()
25089
34821
{
25090
 
FcInit ();
 
34822
return FcInit ();
25091
34823
  ;
25092
34824
  return 0;
25093
34825
}
25094
34826
_ACEOF
25095
34827
rm -f conftest.$ac_objext conftest$ac_exeext
25096
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097
 
  (eval $ac_link) 2>conftest.er1
 
34828
if { (ac_try="$ac_link"
 
34829
case "(($ac_try" in
 
34830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34831
  *) ac_try_echo=$ac_try;;
 
34832
esac
 
34833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34834
  (eval "$ac_link") 2>conftest.er1
25098
34835
  ac_status=$?
25099
34836
  grep -v '^ *+' conftest.er1 >conftest.err
25100
34837
  rm -f conftest.er1
25101
34838
  cat conftest.err >&5
25102
34839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103
34840
  (exit $ac_status); } &&
25104
 
         { ac_try='test -z "$ac_c_werror_flag"
25105
 
                         || test ! -s conftest.err'
25106
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107
 
  (eval $ac_try) 2>&5
 
34841
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34842
  { (case "(($ac_try" in
 
34843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34844
  *) ac_try_echo=$ac_try;;
 
34845
esac
 
34846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34847
  (eval "$ac_try") 2>&5
25108
34848
  ac_status=$?
25109
34849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110
34850
  (exit $ac_status); }; } &&
25111
34851
         { ac_try='test -s conftest$ac_exeext'
25112
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113
 
  (eval $ac_try) 2>&5
 
34852
  { (case "(($ac_try" in
 
34853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34854
  *) ac_try_echo=$ac_try;;
 
34855
esac
 
34856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34857
  (eval "$ac_try") 2>&5
25114
34858
  ac_status=$?
25115
34859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116
34860
  (exit $ac_status); }; }; then
25119
34863
  echo "$as_me: failed program was:" >&5
25120
34864
sed 's/^/| /' conftest.$ac_ext >&5
25121
34865
 
25122
 
ac_cv_lib_fontconfig_FcInit=no
 
34866
        ac_cv_lib_fontconfig_FcInit=no
25123
34867
fi
25124
 
rm -f conftest.err conftest.$ac_objext \
 
34868
 
 
34869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25125
34870
      conftest$ac_exeext conftest.$ac_ext
25126
34871
LIBS=$ac_check_lib_save_LIBS
25127
34872
fi
25128
 
echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
25129
 
echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
 
34873
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
 
34874
echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
25130
34875
if test $ac_cv_lib_fontconfig_FcInit = yes; then
25131
34876
  HAVE_FONTCONFIG=yes
25132
34877
else
25133
34878
  HAVE_FONTCONFIG=no
25134
34879
fi
25135
34880
 
25136
 
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
25137
 
  echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
25138
 
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6
 
34881
  if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
 
34882
  { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
 
34883
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; }
25139
34884
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
25140
34885
  echo $ECHO_N "(cached) $ECHO_C" >&6
25141
34886
fi
25142
 
echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
25143
 
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6
 
34887
{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
 
34888
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; }
25144
34889
else
25145
34890
  # Is the header compilable?
25146
 
echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5
25147
 
echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6
 
34891
{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5
 
34892
echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6; }
25148
34893
cat >conftest.$ac_ext <<_ACEOF
25149
34894
/* confdefs.h.  */
25150
34895
_ACEOF
25155
34900
#include <fontconfig/fontconfig.h>
25156
34901
_ACEOF
25157
34902
rm -f conftest.$ac_objext
25158
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25159
 
  (eval $ac_compile) 2>conftest.er1
 
34903
if { (ac_try="$ac_compile"
 
34904
case "(($ac_try" in
 
34905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34906
  *) ac_try_echo=$ac_try;;
 
34907
esac
 
34908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34909
  (eval "$ac_compile") 2>conftest.er1
25160
34910
  ac_status=$?
25161
34911
  grep -v '^ *+' conftest.er1 >conftest.err
25162
34912
  rm -f conftest.er1
25163
34913
  cat conftest.err >&5
25164
34914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165
34915
  (exit $ac_status); } &&
25166
 
         { ac_try='test -z "$ac_c_werror_flag"
25167
 
                         || test ! -s conftest.err'
25168
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169
 
  (eval $ac_try) 2>&5
 
34916
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
34917
  { (case "(($ac_try" in
 
34918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34919
  *) ac_try_echo=$ac_try;;
 
34920
esac
 
34921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34922
  (eval "$ac_try") 2>&5
25170
34923
  ac_status=$?
25171
34924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172
34925
  (exit $ac_status); }; } &&
25173
34926
         { ac_try='test -s conftest.$ac_objext'
25174
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175
 
  (eval $ac_try) 2>&5
 
34927
  { (case "(($ac_try" in
 
34928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34929
  *) ac_try_echo=$ac_try;;
 
34930
esac
 
34931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34932
  (eval "$ac_try") 2>&5
25176
34933
  ac_status=$?
25177
34934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178
34935
  (exit $ac_status); }; }; then
25181
34938
  echo "$as_me: failed program was:" >&5
25182
34939
sed 's/^/| /' conftest.$ac_ext >&5
25183
34940
 
25184
 
ac_header_compiler=no
 
34941
        ac_header_compiler=no
25185
34942
fi
25186
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25187
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25188
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
34943
 
 
34944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34945
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34946
echo "${ECHO_T}$ac_header_compiler" >&6; }
25189
34947
 
25190
34948
# Is the header present?
25191
 
echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5
25192
 
echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6
 
34949
{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5
 
34950
echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6; }
25193
34951
cat >conftest.$ac_ext <<_ACEOF
25194
34952
/* confdefs.h.  */
25195
34953
_ACEOF
25198
34956
/* end confdefs.h.  */
25199
34957
#include <fontconfig/fontconfig.h>
25200
34958
_ACEOF
25201
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25202
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
34959
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34960
case "(($ac_try" in
 
34961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34962
  *) ac_try_echo=$ac_try;;
 
34963
esac
 
34964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34965
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25203
34966
  ac_status=$?
25204
34967
  grep -v '^ *+' conftest.er1 >conftest.err
25205
34968
  rm -f conftest.er1
25223
34986
 
25224
34987
  ac_header_preproc=no
25225
34988
fi
 
34989
 
25226
34990
rm -f conftest.err conftest.$ac_ext
25227
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25228
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
34991
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34992
echo "${ECHO_T}$ac_header_preproc" >&6; }
25229
34993
 
25230
34994
# So?  What about this header?
25231
34995
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25249
35013
echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;}
25250
35014
    { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5
25251
35015
echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;}
25252
 
    (
25253
 
      cat <<\_ASBOX
 
35016
    ( cat <<\_ASBOX
25254
35017
## ------------------------------------ ##
25255
35018
## Report this to m17n-lib-bug@m17n.org ##
25256
35019
## ------------------------------------ ##
25257
35020
_ASBOX
25258
 
    ) |
25259
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
35021
     ) | sed "s/^/$as_me: WARNING:     /" >&2
25260
35022
    ;;
25261
35023
esac
25262
 
echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
25263
 
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6
 
35024
{ echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
 
35025
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; }
25264
35026
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
25265
35027
  echo $ECHO_N "(cached) $ECHO_C" >&6
25266
35028
else
25267
35029
  ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc
25268
35030
fi
25269
 
echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
25270
 
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6
 
35031
{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
 
35032
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; }
25271
35033
 
25272
35034
fi
25273
35035
if test $ac_cv_header_fontconfig_fontconfig_h = yes; then
25277
35039
fi
25278
35040
 
25279
35041
 
25280
 
if test "x$HAVE_FONTCONFIG" = "xyes"; then
 
35042
  if test "x$HAVE_FONTCONFIG" = "xyes"; then
25281
35043
 
25282
35044
cat >>confdefs.h <<\_ACEOF
25283
35045
#define HAVE_FONTCONFIG 1
25284
35046
_ACEOF
25285
35047
 
25286
 
  M17N_EXT_LIBS="$M17N_EXT_LIBS fontconfig"
25287
 
else
25288
 
  FONTCONFIG_LD_FLAGS=
25289
 
  CPPFLAGS="$save_CPPFLAGS"
 
35048
    M17N_EXT_LIBS="$M17N_EXT_LIBS fontconfig"
 
35049
  else
 
35050
    FONTCONFIG_LD_FLAGS=
 
35051
    CPPFLAGS="$save_CPPFLAGS"
 
35052
  fi
 
35053
  LIBS="$save_LIBS"
25290
35054
fi
25291
 
LIBS="$save_LIBS"
25292
 
 
25293
 
 
25294
 
 
25295
 
# Check whether --with-gd or --without-gd was given.
 
35055
 
 
35056
 
 
35057
 
 
35058
# Check whether --with-gd was given.
25296
35059
if test "${with_gd+set}" = set; then
25297
 
  withval="$with_gd"
 
35060
  withval=$with_gd;
 
35061
fi
25298
35062
 
25299
 
fi;
25300
35063
 
25301
35064
if test "x$with_gd" != "xno"; then
25302
35065
  save_LIBS="$LIBS"
25303
 
  echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
25304
 
echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6
 
35066
  { echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
 
35067
echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6; }
25305
35068
if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
25306
35069
  echo $ECHO_N "(cached) $ECHO_C" >&6
25307
35070
else
25314
35077
cat >>conftest.$ac_ext <<_ACEOF
25315
35078
/* end confdefs.h.  */
25316
35079
 
25317
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
35080
/* Override any GCC internal prototype to avoid an error.
 
35081
   Use char because int might match the return type of a GCC
 
35082
   builtin and then its argument prototype would still apply.  */
25318
35083
#ifdef __cplusplus
25319
35084
extern "C"
25320
35085
#endif
25321
 
/* We use char because int might match the return type of a gcc2
25322
 
   builtin and then its argument prototype would still apply.  */
25323
35086
char gdImageCreate ();
25324
35087
int
25325
35088
main ()
25326
35089
{
25327
 
gdImageCreate ();
 
35090
return gdImageCreate ();
25328
35091
  ;
25329
35092
  return 0;
25330
35093
}
25331
35094
_ACEOF
25332
35095
rm -f conftest.$ac_objext conftest$ac_exeext
25333
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25334
 
  (eval $ac_link) 2>conftest.er1
 
35096
if { (ac_try="$ac_link"
 
35097
case "(($ac_try" in
 
35098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35099
  *) ac_try_echo=$ac_try;;
 
35100
esac
 
35101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35102
  (eval "$ac_link") 2>conftest.er1
25335
35103
  ac_status=$?
25336
35104
  grep -v '^ *+' conftest.er1 >conftest.err
25337
35105
  rm -f conftest.er1
25338
35106
  cat conftest.err >&5
25339
35107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340
35108
  (exit $ac_status); } &&
25341
 
         { ac_try='test -z "$ac_c_werror_flag"
25342
 
                         || test ! -s conftest.err'
25343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344
 
  (eval $ac_try) 2>&5
 
35109
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35110
  { (case "(($ac_try" in
 
35111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35112
  *) ac_try_echo=$ac_try;;
 
35113
esac
 
35114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35115
  (eval "$ac_try") 2>&5
25345
35116
  ac_status=$?
25346
35117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347
35118
  (exit $ac_status); }; } &&
25348
35119
         { ac_try='test -s conftest$ac_exeext'
25349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350
 
  (eval $ac_try) 2>&5
 
35120
  { (case "(($ac_try" in
 
35121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35122
  *) ac_try_echo=$ac_try;;
 
35123
esac
 
35124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35125
  (eval "$ac_try") 2>&5
25351
35126
  ac_status=$?
25352
35127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353
35128
  (exit $ac_status); }; }; then
25356
35131
  echo "$as_me: failed program was:" >&5
25357
35132
sed 's/^/| /' conftest.$ac_ext >&5
25358
35133
 
25359
 
ac_cv_lib_gd_gdImageCreate=no
 
35134
        ac_cv_lib_gd_gdImageCreate=no
25360
35135
fi
25361
 
rm -f conftest.err conftest.$ac_objext \
 
35136
 
 
35137
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25362
35138
      conftest$ac_exeext conftest.$ac_ext
25363
35139
LIBS=$ac_check_lib_save_LIBS
25364
35140
fi
25365
 
echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
25366
 
echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6
 
35141
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
 
35142
echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6; }
25367
35143
if test $ac_cv_lib_gd_gdImageCreate = yes; then
25368
35144
  HAVE_GD=yes
25369
35145
else
25371
35147
fi
25372
35148
 
25373
35149
  if test "${ac_cv_header_gd_h+set}" = set; then
25374
 
  echo "$as_me:$LINENO: checking for gd.h" >&5
25375
 
echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
 
35150
  { echo "$as_me:$LINENO: checking for gd.h" >&5
 
35151
echo $ECHO_N "checking for gd.h... $ECHO_C" >&6; }
25376
35152
if test "${ac_cv_header_gd_h+set}" = set; then
25377
35153
  echo $ECHO_N "(cached) $ECHO_C" >&6
25378
35154
fi
25379
 
echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
25380
 
echo "${ECHO_T}$ac_cv_header_gd_h" >&6
 
35155
{ echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
 
35156
echo "${ECHO_T}$ac_cv_header_gd_h" >&6; }
25381
35157
else
25382
35158
  # Is the header compilable?
25383
 
echo "$as_me:$LINENO: checking gd.h usability" >&5
25384
 
echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
 
35159
{ echo "$as_me:$LINENO: checking gd.h usability" >&5
 
35160
echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6; }
25385
35161
cat >conftest.$ac_ext <<_ACEOF
25386
35162
/* confdefs.h.  */
25387
35163
_ACEOF
25392
35168
#include <gd.h>
25393
35169
_ACEOF
25394
35170
rm -f conftest.$ac_objext
25395
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25396
 
  (eval $ac_compile) 2>conftest.er1
 
35171
if { (ac_try="$ac_compile"
 
35172
case "(($ac_try" in
 
35173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35174
  *) ac_try_echo=$ac_try;;
 
35175
esac
 
35176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35177
  (eval "$ac_compile") 2>conftest.er1
25397
35178
  ac_status=$?
25398
35179
  grep -v '^ *+' conftest.er1 >conftest.err
25399
35180
  rm -f conftest.er1
25400
35181
  cat conftest.err >&5
25401
35182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402
35183
  (exit $ac_status); } &&
25403
 
         { ac_try='test -z "$ac_c_werror_flag"
25404
 
                         || test ! -s conftest.err'
25405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406
 
  (eval $ac_try) 2>&5
 
35184
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35185
  { (case "(($ac_try" in
 
35186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35187
  *) ac_try_echo=$ac_try;;
 
35188
esac
 
35189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35190
  (eval "$ac_try") 2>&5
25407
35191
  ac_status=$?
25408
35192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409
35193
  (exit $ac_status); }; } &&
25410
35194
         { ac_try='test -s conftest.$ac_objext'
25411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412
 
  (eval $ac_try) 2>&5
 
35195
  { (case "(($ac_try" in
 
35196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35197
  *) ac_try_echo=$ac_try;;
 
35198
esac
 
35199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35200
  (eval "$ac_try") 2>&5
25413
35201
  ac_status=$?
25414
35202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415
35203
  (exit $ac_status); }; }; then
25418
35206
  echo "$as_me: failed program was:" >&5
25419
35207
sed 's/^/| /' conftest.$ac_ext >&5
25420
35208
 
25421
 
ac_header_compiler=no
 
35209
        ac_header_compiler=no
25422
35210
fi
25423
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25424
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25425
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
35211
 
 
35212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35213
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
35214
echo "${ECHO_T}$ac_header_compiler" >&6; }
25426
35215
 
25427
35216
# Is the header present?
25428
 
echo "$as_me:$LINENO: checking gd.h presence" >&5
25429
 
echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
 
35217
{ echo "$as_me:$LINENO: checking gd.h presence" >&5
 
35218
echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6; }
25430
35219
cat >conftest.$ac_ext <<_ACEOF
25431
35220
/* confdefs.h.  */
25432
35221
_ACEOF
25435
35224
/* end confdefs.h.  */
25436
35225
#include <gd.h>
25437
35226
_ACEOF
25438
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25439
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
35227
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
35228
case "(($ac_try" in
 
35229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35230
  *) ac_try_echo=$ac_try;;
 
35231
esac
 
35232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35233
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25440
35234
  ac_status=$?
25441
35235
  grep -v '^ *+' conftest.er1 >conftest.err
25442
35236
  rm -f conftest.er1
25460
35254
 
25461
35255
  ac_header_preproc=no
25462
35256
fi
 
35257
 
25463
35258
rm -f conftest.err conftest.$ac_ext
25464
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25465
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
35259
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
35260
echo "${ECHO_T}$ac_header_preproc" >&6; }
25466
35261
 
25467
35262
# So?  What about this header?
25468
35263
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25486
35281
echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
25487
35282
    { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
25488
35283
echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
25489
 
    (
25490
 
      cat <<\_ASBOX
 
35284
    ( cat <<\_ASBOX
25491
35285
## ------------------------------------ ##
25492
35286
## Report this to m17n-lib-bug@m17n.org ##
25493
35287
## ------------------------------------ ##
25494
35288
_ASBOX
25495
 
    ) |
25496
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
35289
     ) | sed "s/^/$as_me: WARNING:     /" >&2
25497
35290
    ;;
25498
35291
esac
25499
 
echo "$as_me:$LINENO: checking for gd.h" >&5
25500
 
echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
 
35292
{ echo "$as_me:$LINENO: checking for gd.h" >&5
 
35293
echo $ECHO_N "checking for gd.h... $ECHO_C" >&6; }
25501
35294
if test "${ac_cv_header_gd_h+set}" = set; then
25502
35295
  echo $ECHO_N "(cached) $ECHO_C" >&6
25503
35296
else
25504
35297
  ac_cv_header_gd_h=$ac_header_preproc
25505
35298
fi
25506
 
echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
25507
 
echo "${ECHO_T}$ac_cv_header_gd_h" >&6
 
35299
{ echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
 
35300
echo "${ECHO_T}$ac_cv_header_gd_h" >&6; }
25508
35301
 
25509
35302
fi
25510
35303
if test $ac_cv_header_gd_h = yes; then
25515
35308
 
25516
35309
 
25517
35310
  if test "x$HAVE_GD" = "xyes"; then
25518
 
    echo "$as_me:$LINENO: checking for gdImageCreateTrueColor in -lgd" >&5
25519
 
echo $ECHO_N "checking for gdImageCreateTrueColor in -lgd... $ECHO_C" >&6
 
35311
    { echo "$as_me:$LINENO: checking for gdImageCreateTrueColor in -lgd" >&5
 
35312
echo $ECHO_N "checking for gdImageCreateTrueColor in -lgd... $ECHO_C" >&6; }
25520
35313
if test "${ac_cv_lib_gd_gdImageCreateTrueColor+set}" = set; then
25521
35314
  echo $ECHO_N "(cached) $ECHO_C" >&6
25522
35315
else
25529
35322
cat >>conftest.$ac_ext <<_ACEOF
25530
35323
/* end confdefs.h.  */
25531
35324
 
25532
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
35325
/* Override any GCC internal prototype to avoid an error.
 
35326
   Use char because int might match the return type of a GCC
 
35327
   builtin and then its argument prototype would still apply.  */
25533
35328
#ifdef __cplusplus
25534
35329
extern "C"
25535
35330
#endif
25536
 
/* We use char because int might match the return type of a gcc2
25537
 
   builtin and then its argument prototype would still apply.  */
25538
35331
char gdImageCreateTrueColor ();
25539
35332
int
25540
35333
main ()
25541
35334
{
25542
 
gdImageCreateTrueColor ();
 
35335
return gdImageCreateTrueColor ();
25543
35336
  ;
25544
35337
  return 0;
25545
35338
}
25546
35339
_ACEOF
25547
35340
rm -f conftest.$ac_objext conftest$ac_exeext
25548
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25549
 
  (eval $ac_link) 2>conftest.er1
 
35341
if { (ac_try="$ac_link"
 
35342
case "(($ac_try" in
 
35343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35344
  *) ac_try_echo=$ac_try;;
 
35345
esac
 
35346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35347
  (eval "$ac_link") 2>conftest.er1
25550
35348
  ac_status=$?
25551
35349
  grep -v '^ *+' conftest.er1 >conftest.err
25552
35350
  rm -f conftest.er1
25553
35351
  cat conftest.err >&5
25554
35352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555
35353
  (exit $ac_status); } &&
25556
 
         { ac_try='test -z "$ac_c_werror_flag"
25557
 
                         || test ! -s conftest.err'
25558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25559
 
  (eval $ac_try) 2>&5
 
35354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35355
  { (case "(($ac_try" in
 
35356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35357
  *) ac_try_echo=$ac_try;;
 
35358
esac
 
35359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35360
  (eval "$ac_try") 2>&5
25560
35361
  ac_status=$?
25561
35362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562
35363
  (exit $ac_status); }; } &&
25563
35364
         { ac_try='test -s conftest$ac_exeext'
25564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565
 
  (eval $ac_try) 2>&5
 
35365
  { (case "(($ac_try" in
 
35366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35367
  *) ac_try_echo=$ac_try;;
 
35368
esac
 
35369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35370
  (eval "$ac_try") 2>&5
25566
35371
  ac_status=$?
25567
35372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568
35373
  (exit $ac_status); }; }; then
25571
35376
  echo "$as_me: failed program was:" >&5
25572
35377
sed 's/^/| /' conftest.$ac_ext >&5
25573
35378
 
25574
 
ac_cv_lib_gd_gdImageCreateTrueColor=no
 
35379
        ac_cv_lib_gd_gdImageCreateTrueColor=no
25575
35380
fi
25576
 
rm -f conftest.err conftest.$ac_objext \
 
35381
 
 
35382
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25577
35383
      conftest$ac_exeext conftest.$ac_ext
25578
35384
LIBS=$ac_check_lib_save_LIBS
25579
35385
fi
25580
 
echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
25581
 
echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateTrueColor" >&6
 
35386
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
 
35387
echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
25582
35388
if test $ac_cv_lib_gd_gdImageCreateTrueColor = yes; then
25583
35389
  HAVE_GD=2
25584
35390
else
25592
35398
 
25593
35399
    M17N_EXT_LIBS="$M17N_EXT_LIBS gdlib"
25594
35400
    GD_LD_FLAGS=-lgd
25595
 
    CONFIG_FLAGS="$CONFIG_FLAGS -DHAVE_GD"
 
35401
    CONFIG_FLAGS="$CONFIG_FLAGS -DHAVE_GD=$HAVE_GD"
25596
35402
  fi
25597
35403
  LIBS="$save_LIBS"
25598
35404
fi
25604
35410
save_LIBS="$LIBS"
25605
35411
# Extract the first word of "xml2-config", so it can be a program name with args.
25606
35412
set dummy xml2-config; ac_word=$2
25607
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
25608
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
35413
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
35414
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25609
35415
if test "${ac_cv_prog_HAVE_XML2_CONFIG+set}" = set; then
25610
35416
  echo $ECHO_N "(cached) $ECHO_C" >&6
25611
35417
else
25618
35424
  IFS=$as_save_IFS
25619
35425
  test -z "$as_dir" && as_dir=.
25620
35426
  for ac_exec_ext in '' $ac_executable_extensions; do
25621
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
35427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25622
35428
    ac_cv_prog_HAVE_XML2_CONFIG="yes"
25623
35429
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25624
35430
    break 2
25625
35431
  fi
25626
35432
done
25627
35433
done
 
35434
IFS=$as_save_IFS
25628
35435
 
25629
35436
fi
25630
35437
fi
25631
35438
HAVE_XML2_CONFIG=$ac_cv_prog_HAVE_XML2_CONFIG
25632
35439
if test -n "$HAVE_XML2_CONFIG"; then
25633
 
  echo "$as_me:$LINENO: result: $HAVE_XML2_CONFIG" >&5
25634
 
echo "${ECHO_T}$HAVE_XML2_CONFIG" >&6
 
35440
  { echo "$as_me:$LINENO: result: $HAVE_XML2_CONFIG" >&5
 
35441
echo "${ECHO_T}$HAVE_XML2_CONFIG" >&6; }
25635
35442
else
25636
 
  echo "$as_me:$LINENO: result: no" >&5
25637
 
echo "${ECHO_T}no" >&6
 
35443
  { echo "$as_me:$LINENO: result: no" >&5
 
35444
echo "${ECHO_T}no" >&6; }
25638
35445
fi
25639
35446
 
 
35447
 
25640
35448
if test "x$HAVE_XML2_CONFIG" = "xyes"; then
25641
35449
  CPPFLAGS="$CPPFLAGS `xml2-config --cflags`"
25642
35450
  XML2_LD_FLAGS="`xml2-config --libs`"
25645
35453
  CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
25646
35454
  XML2_LD_FLAGS="-lxml2 -lz -lpthread -lm"
25647
35455
fi
25648
 
echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
25649
 
echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6
 
35456
{ echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
 
35457
echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
25650
35458
if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
25651
35459
  echo $ECHO_N "(cached) $ECHO_C" >&6
25652
35460
else
25659
35467
cat >>conftest.$ac_ext <<_ACEOF
25660
35468
/* end confdefs.h.  */
25661
35469
 
25662
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
35470
/* Override any GCC internal prototype to avoid an error.
 
35471
   Use char because int might match the return type of a GCC
 
35472
   builtin and then its argument prototype would still apply.  */
25663
35473
#ifdef __cplusplus
25664
35474
extern "C"
25665
35475
#endif
25666
 
/* We use char because int might match the return type of a gcc2
25667
 
   builtin and then its argument prototype would still apply.  */
25668
35476
char xmlParseMemory ();
25669
35477
int
25670
35478
main ()
25671
35479
{
25672
 
xmlParseMemory ();
 
35480
return xmlParseMemory ();
25673
35481
  ;
25674
35482
  return 0;
25675
35483
}
25676
35484
_ACEOF
25677
35485
rm -f conftest.$ac_objext conftest$ac_exeext
25678
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679
 
  (eval $ac_link) 2>conftest.er1
 
35486
if { (ac_try="$ac_link"
 
35487
case "(($ac_try" in
 
35488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35489
  *) ac_try_echo=$ac_try;;
 
35490
esac
 
35491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35492
  (eval "$ac_link") 2>conftest.er1
25680
35493
  ac_status=$?
25681
35494
  grep -v '^ *+' conftest.er1 >conftest.err
25682
35495
  rm -f conftest.er1
25683
35496
  cat conftest.err >&5
25684
35497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685
35498
  (exit $ac_status); } &&
25686
 
         { ac_try='test -z "$ac_c_werror_flag"
25687
 
                         || test ! -s conftest.err'
25688
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689
 
  (eval $ac_try) 2>&5
 
35499
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35500
  { (case "(($ac_try" in
 
35501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35502
  *) ac_try_echo=$ac_try;;
 
35503
esac
 
35504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35505
  (eval "$ac_try") 2>&5
25690
35506
  ac_status=$?
25691
35507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692
35508
  (exit $ac_status); }; } &&
25693
35509
         { ac_try='test -s conftest$ac_exeext'
25694
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695
 
  (eval $ac_try) 2>&5
 
35510
  { (case "(($ac_try" in
 
35511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35512
  *) ac_try_echo=$ac_try;;
 
35513
esac
 
35514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35515
  (eval "$ac_try") 2>&5
25696
35516
  ac_status=$?
25697
35517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698
35518
  (exit $ac_status); }; }; then
25701
35521
  echo "$as_me: failed program was:" >&5
25702
35522
sed 's/^/| /' conftest.$ac_ext >&5
25703
35523
 
25704
 
ac_cv_lib_xml2_xmlParseMemory=no
 
35524
        ac_cv_lib_xml2_xmlParseMemory=no
25705
35525
fi
25706
 
rm -f conftest.err conftest.$ac_objext \
 
35526
 
 
35527
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25707
35528
      conftest$ac_exeext conftest.$ac_ext
25708
35529
LIBS=$ac_check_lib_save_LIBS
25709
35530
fi
25710
 
echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
25711
 
echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6
 
35531
{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
 
35532
echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
25712
35533
if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
25713
35534
  HAVE_XML2=yes
25714
35535
else
25715
35536
  HAVE_XML2=no
25716
35537
fi
25717
35538
 
25718
 
echo "$as_me:$LINENO: checking for libxml/tree.h" >&5
25719
 
echo $ECHO_N "checking for libxml/tree.h... $ECHO_C" >&6
 
35539
{ echo "$as_me:$LINENO: checking for libxml/tree.h" >&5
 
35540
echo $ECHO_N "checking for libxml/tree.h... $ECHO_C" >&6; }
25720
35541
if test "${ac_cv_header_libxml_tree_h+set}" = set; then
25721
35542
  echo $ECHO_N "(cached) $ECHO_C" >&6
25722
35543
else
25731
35552
#include <libxml/tree.h>
25732
35553
_ACEOF
25733
35554
rm -f conftest.$ac_objext
25734
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25735
 
  (eval $ac_compile) 2>conftest.er1
 
35555
if { (ac_try="$ac_compile"
 
35556
case "(($ac_try" in
 
35557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35558
  *) ac_try_echo=$ac_try;;
 
35559
esac
 
35560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35561
  (eval "$ac_compile") 2>conftest.er1
25736
35562
  ac_status=$?
25737
35563
  grep -v '^ *+' conftest.er1 >conftest.err
25738
35564
  rm -f conftest.er1
25739
35565
  cat conftest.err >&5
25740
35566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741
35567
  (exit $ac_status); } &&
25742
 
         { ac_try='test -z "$ac_c_werror_flag"
25743
 
                         || test ! -s conftest.err'
25744
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745
 
  (eval $ac_try) 2>&5
 
35568
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35569
  { (case "(($ac_try" in
 
35570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35571
  *) ac_try_echo=$ac_try;;
 
35572
esac
 
35573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35574
  (eval "$ac_try") 2>&5
25746
35575
  ac_status=$?
25747
35576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748
35577
  (exit $ac_status); }; } &&
25749
35578
         { ac_try='test -s conftest.$ac_objext'
25750
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751
 
  (eval $ac_try) 2>&5
 
35579
  { (case "(($ac_try" in
 
35580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35581
  *) ac_try_echo=$ac_try;;
 
35582
esac
 
35583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35584
  (eval "$ac_try") 2>&5
25752
35585
  ac_status=$?
25753
35586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754
35587
  (exit $ac_status); }; }; then
25757
35590
  echo "$as_me: failed program was:" >&5
25758
35591
sed 's/^/| /' conftest.$ac_ext >&5
25759
35592
 
25760
 
ac_cv_header_libxml_tree_h=no
25761
 
fi
25762
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25763
 
fi
25764
 
echo "$as_me:$LINENO: result: $ac_cv_header_libxml_tree_h" >&5
25765
 
echo "${ECHO_T}$ac_cv_header_libxml_tree_h" >&6
 
35593
        ac_cv_header_libxml_tree_h=no
 
35594
fi
 
35595
 
 
35596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35597
fi
 
35598
{ echo "$as_me:$LINENO: result: $ac_cv_header_libxml_tree_h" >&5
 
35599
echo "${ECHO_T}$ac_cv_header_libxml_tree_h" >&6; }
25766
35600
if test $ac_cv_header_libxml_tree_h = yes; then
25767
35601
  :
25768
35602
else
25784
35618
LIBS="$save_LIBS"
25785
35619
 
25786
35620
 
25787
 
echo "$as_me:$LINENO: checking for anthy_init_sessions in -lanthydic" >&5
25788
 
echo $ECHO_N "checking for anthy_init_sessions in -lanthydic... $ECHO_C" >&6
 
35621
{ echo "$as_me:$LINENO: checking for anthy_init_sessions in -lanthydic" >&5
 
35622
echo $ECHO_N "checking for anthy_init_sessions in -lanthydic... $ECHO_C" >&6; }
25789
35623
if test "${ac_cv_lib_anthydic_anthy_init_sessions+set}" = set; then
25790
35624
  echo $ECHO_N "(cached) $ECHO_C" >&6
25791
35625
else
25798
35632
cat >>conftest.$ac_ext <<_ACEOF
25799
35633
/* end confdefs.h.  */
25800
35634
 
25801
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
35635
/* Override any GCC internal prototype to avoid an error.
 
35636
   Use char because int might match the return type of a GCC
 
35637
   builtin and then its argument prototype would still apply.  */
25802
35638
#ifdef __cplusplus
25803
35639
extern "C"
25804
35640
#endif
25805
 
/* We use char because int might match the return type of a gcc2
25806
 
   builtin and then its argument prototype would still apply.  */
25807
35641
char anthy_init_sessions ();
25808
35642
int
25809
35643
main ()
25810
35644
{
25811
 
anthy_init_sessions ();
 
35645
return anthy_init_sessions ();
25812
35646
  ;
25813
35647
  return 0;
25814
35648
}
25815
35649
_ACEOF
25816
35650
rm -f conftest.$ac_objext conftest$ac_exeext
25817
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25818
 
  (eval $ac_link) 2>conftest.er1
 
35651
if { (ac_try="$ac_link"
 
35652
case "(($ac_try" in
 
35653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35654
  *) ac_try_echo=$ac_try;;
 
35655
esac
 
35656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35657
  (eval "$ac_link") 2>conftest.er1
25819
35658
  ac_status=$?
25820
35659
  grep -v '^ *+' conftest.er1 >conftest.err
25821
35660
  rm -f conftest.er1
25822
35661
  cat conftest.err >&5
25823
35662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824
35663
  (exit $ac_status); } &&
25825
 
         { ac_try='test -z "$ac_c_werror_flag"
25826
 
                         || test ! -s conftest.err'
25827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828
 
  (eval $ac_try) 2>&5
 
35664
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35665
  { (case "(($ac_try" in
 
35666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35667
  *) ac_try_echo=$ac_try;;
 
35668
esac
 
35669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35670
  (eval "$ac_try") 2>&5
25829
35671
  ac_status=$?
25830
35672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831
35673
  (exit $ac_status); }; } &&
25832
35674
         { ac_try='test -s conftest$ac_exeext'
25833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834
 
  (eval $ac_try) 2>&5
 
35675
  { (case "(($ac_try" in
 
35676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35677
  *) ac_try_echo=$ac_try;;
 
35678
esac
 
35679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35680
  (eval "$ac_try") 2>&5
25835
35681
  ac_status=$?
25836
35682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837
35683
  (exit $ac_status); }; }; then
25840
35686
  echo "$as_me: failed program was:" >&5
25841
35687
sed 's/^/| /' conftest.$ac_ext >&5
25842
35688
 
25843
 
ac_cv_lib_anthydic_anthy_init_sessions=no
 
35689
        ac_cv_lib_anthydic_anthy_init_sessions=no
25844
35690
fi
25845
 
rm -f conftest.err conftest.$ac_objext \
 
35691
 
 
35692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25846
35693
      conftest$ac_exeext conftest.$ac_ext
25847
35694
LIBS=$ac_check_lib_save_LIBS
25848
35695
fi
25849
 
echo "$as_me:$LINENO: result: $ac_cv_lib_anthydic_anthy_init_sessions" >&5
25850
 
echo "${ECHO_T}$ac_cv_lib_anthydic_anthy_init_sessions" >&6
 
35696
{ echo "$as_me:$LINENO: result: $ac_cv_lib_anthydic_anthy_init_sessions" >&5
 
35697
echo "${ECHO_T}$ac_cv_lib_anthydic_anthy_init_sessions" >&6; }
25851
35698
if test $ac_cv_lib_anthydic_anthy_init_sessions = yes; then
25852
35699
  HAVE_ANTHY=yes
25853
35700
else
25855
35702
fi
25856
35703
 
25857
35704
if test "x$HAVE_ANTHY" = "xyes"; then
25858
 
  echo "$as_me:$LINENO: checking for anthy_init in -lanthy" >&5
25859
 
echo $ECHO_N "checking for anthy_init in -lanthy... $ECHO_C" >&6
 
35705
  { echo "$as_me:$LINENO: checking for anthy_init in -lanthy" >&5
 
35706
echo $ECHO_N "checking for anthy_init in -lanthy... $ECHO_C" >&6; }
25860
35707
if test "${ac_cv_lib_anthy_anthy_init+set}" = set; then
25861
35708
  echo $ECHO_N "(cached) $ECHO_C" >&6
25862
35709
else
25869
35716
cat >>conftest.$ac_ext <<_ACEOF
25870
35717
/* end confdefs.h.  */
25871
35718
 
25872
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
35719
/* Override any GCC internal prototype to avoid an error.
 
35720
   Use char because int might match the return type of a GCC
 
35721
   builtin and then its argument prototype would still apply.  */
25873
35722
#ifdef __cplusplus
25874
35723
extern "C"
25875
35724
#endif
25876
 
/* We use char because int might match the return type of a gcc2
25877
 
   builtin and then its argument prototype would still apply.  */
25878
35725
char anthy_init ();
25879
35726
int
25880
35727
main ()
25881
35728
{
25882
 
anthy_init ();
 
35729
return anthy_init ();
25883
35730
  ;
25884
35731
  return 0;
25885
35732
}
25886
35733
_ACEOF
25887
35734
rm -f conftest.$ac_objext conftest$ac_exeext
25888
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25889
 
  (eval $ac_link) 2>conftest.er1
 
35735
if { (ac_try="$ac_link"
 
35736
case "(($ac_try" in
 
35737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35738
  *) ac_try_echo=$ac_try;;
 
35739
esac
 
35740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35741
  (eval "$ac_link") 2>conftest.er1
25890
35742
  ac_status=$?
25891
35743
  grep -v '^ *+' conftest.er1 >conftest.err
25892
35744
  rm -f conftest.er1
25893
35745
  cat conftest.err >&5
25894
35746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895
35747
  (exit $ac_status); } &&
25896
 
         { ac_try='test -z "$ac_c_werror_flag"
25897
 
                         || test ! -s conftest.err'
25898
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899
 
  (eval $ac_try) 2>&5
 
35748
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35749
  { (case "(($ac_try" in
 
35750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35751
  *) ac_try_echo=$ac_try;;
 
35752
esac
 
35753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35754
  (eval "$ac_try") 2>&5
25900
35755
  ac_status=$?
25901
35756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902
35757
  (exit $ac_status); }; } &&
25903
35758
         { ac_try='test -s conftest$ac_exeext'
25904
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905
 
  (eval $ac_try) 2>&5
 
35759
  { (case "(($ac_try" in
 
35760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35761
  *) ac_try_echo=$ac_try;;
 
35762
esac
 
35763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35764
  (eval "$ac_try") 2>&5
25906
35765
  ac_status=$?
25907
35766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908
35767
  (exit $ac_status); }; }; then
25911
35770
  echo "$as_me: failed program was:" >&5
25912
35771
sed 's/^/| /' conftest.$ac_ext >&5
25913
35772
 
25914
 
ac_cv_lib_anthy_anthy_init=no
 
35773
        ac_cv_lib_anthy_anthy_init=no
25915
35774
fi
25916
 
rm -f conftest.err conftest.$ac_objext \
 
35775
 
 
35776
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25917
35777
      conftest$ac_exeext conftest.$ac_ext
25918
35778
LIBS=$ac_check_lib_save_LIBS
25919
35779
fi
25920
 
echo "$as_me:$LINENO: result: $ac_cv_lib_anthy_anthy_init" >&5
25921
 
echo "${ECHO_T}$ac_cv_lib_anthy_anthy_init" >&6
 
35780
{ echo "$as_me:$LINENO: result: $ac_cv_lib_anthy_anthy_init" >&5
 
35781
echo "${ECHO_T}$ac_cv_lib_anthy_anthy_init" >&6; }
25922
35782
if test $ac_cv_lib_anthy_anthy_init = yes; then
25923
35783
  HAVE_ANTHY=yes
25924
35784
else
25927
35787
 
25928
35788
  if test "x$HAVE_ANTHY" = "xyes"; then
25929
35789
    if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
25930
 
  echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
25931
 
echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6
 
35790
  { echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
 
35791
echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6; }
25932
35792
if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
25933
35793
  echo $ECHO_N "(cached) $ECHO_C" >&6
25934
35794
fi
25935
 
echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
25936
 
echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6
 
35795
{ echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
 
35796
echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6; }
25937
35797
else
25938
35798
  # Is the header compilable?
25939
 
echo "$as_me:$LINENO: checking anthy/anthy.h usability" >&5
25940
 
echo $ECHO_N "checking anthy/anthy.h usability... $ECHO_C" >&6
 
35799
{ echo "$as_me:$LINENO: checking anthy/anthy.h usability" >&5
 
35800
echo $ECHO_N "checking anthy/anthy.h usability... $ECHO_C" >&6; }
25941
35801
cat >conftest.$ac_ext <<_ACEOF
25942
35802
/* confdefs.h.  */
25943
35803
_ACEOF
25948
35808
#include <anthy/anthy.h>
25949
35809
_ACEOF
25950
35810
rm -f conftest.$ac_objext
25951
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952
 
  (eval $ac_compile) 2>conftest.er1
 
35811
if { (ac_try="$ac_compile"
 
35812
case "(($ac_try" in
 
35813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35814
  *) ac_try_echo=$ac_try;;
 
35815
esac
 
35816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35817
  (eval "$ac_compile") 2>conftest.er1
25953
35818
  ac_status=$?
25954
35819
  grep -v '^ *+' conftest.er1 >conftest.err
25955
35820
  rm -f conftest.er1
25956
35821
  cat conftest.err >&5
25957
35822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958
35823
  (exit $ac_status); } &&
25959
 
         { ac_try='test -z "$ac_c_werror_flag"
25960
 
                         || test ! -s conftest.err'
25961
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962
 
  (eval $ac_try) 2>&5
 
35824
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
35825
  { (case "(($ac_try" in
 
35826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35827
  *) ac_try_echo=$ac_try;;
 
35828
esac
 
35829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35830
  (eval "$ac_try") 2>&5
25963
35831
  ac_status=$?
25964
35832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965
35833
  (exit $ac_status); }; } &&
25966
35834
         { ac_try='test -s conftest.$ac_objext'
25967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968
 
  (eval $ac_try) 2>&5
 
35835
  { (case "(($ac_try" in
 
35836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35837
  *) ac_try_echo=$ac_try;;
 
35838
esac
 
35839
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35840
  (eval "$ac_try") 2>&5
25969
35841
  ac_status=$?
25970
35842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971
35843
  (exit $ac_status); }; }; then
25974
35846
  echo "$as_me: failed program was:" >&5
25975
35847
sed 's/^/| /' conftest.$ac_ext >&5
25976
35848
 
25977
 
ac_header_compiler=no
 
35849
        ac_header_compiler=no
25978
35850
fi
25979
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25980
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
35851
 
 
35852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35853
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
35854
echo "${ECHO_T}$ac_header_compiler" >&6; }
25982
35855
 
25983
35856
# Is the header present?
25984
 
echo "$as_me:$LINENO: checking anthy/anthy.h presence" >&5
25985
 
echo $ECHO_N "checking anthy/anthy.h presence... $ECHO_C" >&6
 
35857
{ echo "$as_me:$LINENO: checking anthy/anthy.h presence" >&5
 
35858
echo $ECHO_N "checking anthy/anthy.h presence... $ECHO_C" >&6; }
25986
35859
cat >conftest.$ac_ext <<_ACEOF
25987
35860
/* confdefs.h.  */
25988
35861
_ACEOF
25991
35864
/* end confdefs.h.  */
25992
35865
#include <anthy/anthy.h>
25993
35866
_ACEOF
25994
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
35867
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
35868
case "(($ac_try" in
 
35869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35870
  *) ac_try_echo=$ac_try;;
 
35871
esac
 
35872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35873
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25996
35874
  ac_status=$?
25997
35875
  grep -v '^ *+' conftest.er1 >conftest.err
25998
35876
  rm -f conftest.er1
26016
35894
 
26017
35895
  ac_header_preproc=no
26018
35896
fi
 
35897
 
26019
35898
rm -f conftest.err conftest.$ac_ext
26020
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
35899
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
35900
echo "${ECHO_T}$ac_header_preproc" >&6; }
26022
35901
 
26023
35902
# So?  What about this header?
26024
35903
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26042
35921
echo "$as_me: WARNING: anthy/anthy.h: proceeding with the preprocessor's result" >&2;}
26043
35922
    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: in the future, the compiler will take precedence" >&5
26044
35923
echo "$as_me: WARNING: anthy/anthy.h: in the future, the compiler will take precedence" >&2;}
26045
 
    (
26046
 
      cat <<\_ASBOX
 
35924
    ( cat <<\_ASBOX
26047
35925
## ------------------------------------ ##
26048
35926
## Report this to m17n-lib-bug@m17n.org ##
26049
35927
## ------------------------------------ ##
26050
35928
_ASBOX
26051
 
    ) |
26052
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
35929
     ) | sed "s/^/$as_me: WARNING:     /" >&2
26053
35930
    ;;
26054
35931
esac
26055
 
echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
26056
 
echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6
 
35932
{ echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
 
35933
echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6; }
26057
35934
if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
26058
35935
  echo $ECHO_N "(cached) $ECHO_C" >&6
26059
35936
else
26060
35937
  ac_cv_header_anthy_anthy_h=$ac_header_preproc
26061
35938
fi
26062
 
echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
26063
 
echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6
 
35939
{ echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
 
35940
echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6; }
26064
35941
 
26065
35942
fi
26066
35943
if test $ac_cv_header_anthy_anthy_h = yes; then
26086
35963
 
26087
35964
# Extract the first word of "ispell", so it can be a program name with args.
26088
35965
set dummy ispell; ac_word=$2
26089
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
26090
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
35966
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
35967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26091
35968
if test "${ac_cv_prog_HAVE_ISPELL+set}" = set; then
26092
35969
  echo $ECHO_N "(cached) $ECHO_C" >&6
26093
35970
else
26100
35977
  IFS=$as_save_IFS
26101
35978
  test -z "$as_dir" && as_dir=.
26102
35979
  for ac_exec_ext in '' $ac_executable_extensions; do
26103
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
35980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26104
35981
    ac_cv_prog_HAVE_ISPELL="yes"
26105
35982
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26106
35983
    break 2
26107
35984
  fi
26108
35985
done
26109
35986
done
 
35987
IFS=$as_save_IFS
26110
35988
 
26111
35989
fi
26112
35990
fi
26113
35991
HAVE_ISPELL=$ac_cv_prog_HAVE_ISPELL
26114
35992
if test -n "$HAVE_ISPELL"; then
26115
 
  echo "$as_me:$LINENO: result: $HAVE_ISPELL" >&5
26116
 
echo "${ECHO_T}$HAVE_ISPELL" >&6
 
35993
  { echo "$as_me:$LINENO: result: $HAVE_ISPELL" >&5
 
35994
echo "${ECHO_T}$HAVE_ISPELL" >&6; }
26117
35995
else
26118
 
  echo "$as_me:$LINENO: result: no" >&5
26119
 
echo "${ECHO_T}no" >&6
 
35996
  { echo "$as_me:$LINENO: result: no" >&5
 
35997
echo "${ECHO_T}no" >&6; }
26120
35998
fi
26121
35999
 
 
36000
 
26122
36001
if test "x$HAVE_ISPELL" = "xyes"; then
26123
36002
 
26124
36003
cat >>confdefs.h <<\_ACEOF
26136
36015
        if test -n "$ac_tool_prefix"; then
26137
36016
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26138
36017
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26139
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
26140
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
36018
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
36019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26141
36020
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26142
36021
  echo $ECHO_N "(cached) $ECHO_C" >&6
26143
36022
else
26152
36031
  IFS=$as_save_IFS
26153
36032
  test -z "$as_dir" && as_dir=.
26154
36033
  for ac_exec_ext in '' $ac_executable_extensions; do
26155
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
36034
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26156
36035
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26157
36036
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26158
36037
    break 2
26159
36038
  fi
26160
36039
done
26161
36040
done
 
36041
IFS=$as_save_IFS
26162
36042
 
26163
36043
  ;;
26164
36044
esac
26165
36045
fi
26166
36046
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26167
 
 
26168
36047
if test -n "$PKG_CONFIG"; then
26169
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26170
 
echo "${ECHO_T}$PKG_CONFIG" >&6
 
36048
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
36049
echo "${ECHO_T}$PKG_CONFIG" >&6; }
26171
36050
else
26172
 
  echo "$as_me:$LINENO: result: no" >&5
26173
 
echo "${ECHO_T}no" >&6
 
36051
  { echo "$as_me:$LINENO: result: no" >&5
 
36052
echo "${ECHO_T}no" >&6; }
26174
36053
fi
 
36054
 
26175
36055
 
26176
36056
fi
26177
36057
if test -z "$ac_cv_path_PKG_CONFIG"; then
26178
36058
  ac_pt_PKG_CONFIG=$PKG_CONFIG
26179
36059
  # Extract the first word of "pkg-config", so it can be a program name with args.
26180
36060
set dummy pkg-config; ac_word=$2
26181
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
26182
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
36061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
36062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26183
36063
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
26184
36064
  echo $ECHO_N "(cached) $ECHO_C" >&6
26185
36065
else
26194
36074
  IFS=$as_save_IFS
26195
36075
  test -z "$as_dir" && as_dir=.
26196
36076
  for ac_exec_ext in '' $ac_executable_extensions; do
26197
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
36077
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26198
36078
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26199
36079
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26200
36080
    break 2
26201
36081
  fi
26202
36082
done
26203
36083
done
 
36084
IFS=$as_save_IFS
26204
36085
 
26205
36086
  ;;
26206
36087
esac
26207
36088
fi
26208
36089
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
26209
 
 
26210
36090
if test -n "$ac_pt_PKG_CONFIG"; then
26211
 
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
26212
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
36091
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
36092
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
26213
36093
else
26214
 
  echo "$as_me:$LINENO: result: no" >&5
26215
 
echo "${ECHO_T}no" >&6
 
36094
  { echo "$as_me:$LINENO: result: no" >&5
 
36095
echo "${ECHO_T}no" >&6; }
26216
36096
fi
26217
36097
 
26218
 
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
36098
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
36099
    PKG_CONFIG=""
 
36100
  else
 
36101
    case $cross_compiling:$ac_tool_warned in
 
36102
yes:)
 
36103
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
36104
whose name does not start with the host triplet.  If you think this
 
36105
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
36106
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
36107
whose name does not start with the host triplet.  If you think this
 
36108
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
36109
ac_tool_warned=yes ;;
 
36110
esac
 
36111
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
36112
  fi
26219
36113
else
26220
36114
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
26221
36115
fi
26223
36117
fi
26224
36118
if test -n "$PKG_CONFIG"; then
26225
36119
        _pkg_min_version=0.9.0
26226
 
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
26227
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
36120
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
36121
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
26228
36122
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
26229
 
                echo "$as_me:$LINENO: result: yes" >&5
26230
 
echo "${ECHO_T}yes" >&6
 
36123
                { echo "$as_me:$LINENO: result: yes" >&5
 
36124
echo "${ECHO_T}yes" >&6; }
26231
36125
        else
26232
 
                echo "$as_me:$LINENO: result: no" >&5
26233
 
echo "${ECHO_T}no" >&6
 
36126
                { echo "$as_me:$LINENO: result: no" >&5
 
36127
echo "${ECHO_T}no" >&6; }
26234
36128
                PKG_CONFIG=""
26235
36129
        fi
26236
36130
 
26237
36131
fi
26238
36132
 
26239
36133
pkg_failed=no
26240
 
echo "$as_me:$LINENO: checking for LIBTHAI_CFLAGS" >&5
26241
 
echo $ECHO_N "checking for LIBTHAI_CFLAGS... $ECHO_C" >&6
26242
 
if test "${pkg_cv_LIBTHAI_CFLAGS+set}" = set; then
26243
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26244
 
else
26245
 
  if test "x$ac_cv_env_LIBTHAI_CFLAGS_set" = "xset"; then
26246
 
        pkg_cv_LIBTHAI_CFLAGS=$ac_cv_env_LIBTHAI_CFLAGS_value
26247
 
elif test -n "$PKG_CONFIG"; then
26248
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"libthai\" >/dev/null 2>&1") >&5
26249
 
  ($PKG_CONFIG --exists "libthai" >/dev/null 2>&1) 2>&5
26250
 
  ac_status=$?
26251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252
 
  (exit $ac_status); }; then
26253
 
                pkg_cv_LIBTHAI_CFLAGS=`$PKG_CONFIG --cflags "libthai" 2>/dev/null`
26254
 
        else
26255
 
                pkg_failed=yes
26256
 
        fi
26257
 
else
26258
 
        pkg_failed=untried
26259
 
fi
26260
 
fi
26261
 
echo "$as_me:$LINENO: result: $pkg_cv_LIBTHAI_CFLAGS" >&5
26262
 
echo "${ECHO_T}$pkg_cv_LIBTHAI_CFLAGS" >&6
26263
 
echo "$as_me:$LINENO: checking for LIBTHAI_LIBS" >&5
26264
 
echo $ECHO_N "checking for LIBTHAI_LIBS... $ECHO_C" >&6
26265
 
if test "${pkg_cv_LIBTHAI_LIBS+set}" = set; then
26266
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26267
 
else
26268
 
  if test "x$ac_cv_env_LIBTHAI_LIBS_set" = "xset"; then
26269
 
        pkg_cv_LIBTHAI_LIBS=$ac_cv_env_LIBTHAI_LIBS_value
26270
 
elif test -n "$PKG_CONFIG"; then
26271
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"libthai\" >/dev/null 2>&1") >&5
26272
 
  ($PKG_CONFIG --exists "libthai" >/dev/null 2>&1) 2>&5
26273
 
  ac_status=$?
26274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275
 
  (exit $ac_status); }; then
26276
 
                pkg_cv_LIBTHAI_LIBS=`$PKG_CONFIG --libs "libthai" 2>/dev/null`
26277
 
        else
26278
 
                pkg_failed=yes
26279
 
        fi
26280
 
else
26281
 
        pkg_failed=untried
26282
 
fi
26283
 
fi
26284
 
echo "$as_me:$LINENO: result: $pkg_cv_LIBTHAI_LIBS" >&5
26285
 
echo "${ECHO_T}$pkg_cv_LIBTHAI_LIBS" >&6
 
36134
{ echo "$as_me:$LINENO: checking for LIBTHAI" >&5
 
36135
echo $ECHO_N "checking for LIBTHAI... $ECHO_C" >&6; }
 
36136
 
 
36137
if test -n "$PKG_CONFIG"; then
 
36138
    if test -n "$LIBTHAI_CFLAGS"; then
 
36139
        pkg_cv_LIBTHAI_CFLAGS="$LIBTHAI_CFLAGS"
 
36140
    else
 
36141
        if test -n "$PKG_CONFIG" && \
 
36142
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libthai\"") >&5
 
36143
  ($PKG_CONFIG --exists --print-errors "libthai") 2>&5
 
36144
  ac_status=$?
 
36145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36146
  (exit $ac_status); }; then
 
36147
  pkg_cv_LIBTHAI_CFLAGS=`$PKG_CONFIG --cflags "libthai" 2>/dev/null`
 
36148
else
 
36149
  pkg_failed=yes
 
36150
fi
 
36151
    fi
 
36152
else
 
36153
        pkg_failed=untried
 
36154
fi
 
36155
if test -n "$PKG_CONFIG"; then
 
36156
    if test -n "$LIBTHAI_LIBS"; then
 
36157
        pkg_cv_LIBTHAI_LIBS="$LIBTHAI_LIBS"
 
36158
    else
 
36159
        if test -n "$PKG_CONFIG" && \
 
36160
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libthai\"") >&5
 
36161
  ($PKG_CONFIG --exists --print-errors "libthai") 2>&5
 
36162
  ac_status=$?
 
36163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36164
  (exit $ac_status); }; then
 
36165
  pkg_cv_LIBTHAI_LIBS=`$PKG_CONFIG --libs "libthai" 2>/dev/null`
 
36166
else
 
36167
  pkg_failed=yes
 
36168
fi
 
36169
    fi
 
36170
else
 
36171
        pkg_failed=untried
 
36172
fi
 
36173
 
 
36174
 
26286
36175
 
26287
36176
if test $pkg_failed = yes; then
26288
 
        LIBTHAI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libthai"`
 
36177
 
 
36178
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
36179
        _pkg_short_errors_supported=yes
 
36180
else
 
36181
        _pkg_short_errors_supported=no
 
36182
fi
 
36183
        if test $_pkg_short_errors_supported = yes; then
 
36184
                LIBTHAI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libthai"`
 
36185
        else
 
36186
                LIBTHAI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libthai"`
 
36187
        fi
26289
36188
        # Put the nasty error message in config.log where it belongs
26290
 
        echo "$LIBTHAI_PKG_ERRORS" 1>&5
 
36189
        echo "$LIBTHAI_PKG_ERRORS" >&5
26291
36190
 
26292
 
        HAVE_LIBTHAI=no
 
36191
        { echo "$as_me:$LINENO: result: no" >&5
 
36192
echo "${ECHO_T}no" >&6; }
 
36193
                HAVE_LIBTHAI=no
26293
36194
elif test $pkg_failed = untried; then
26294
36195
        HAVE_LIBTHAI=no
26295
36196
else
26296
36197
        LIBTHAI_CFLAGS=$pkg_cv_LIBTHAI_CFLAGS
26297
36198
        LIBTHAI_LIBS=$pkg_cv_LIBTHAI_LIBS
 
36199
        { echo "$as_me:$LINENO: result: yes" >&5
 
36200
echo "${ECHO_T}yes" >&6; }
26298
36201
        HAVE_LIBTHAI=yes
26299
36202
fi
26300
36203
 
26301
36204
pkg_failed=no
26302
 
echo "$as_me:$LINENO: checking for WORDCUT_CFLAGS" >&5
26303
 
echo $ECHO_N "checking for WORDCUT_CFLAGS... $ECHO_C" >&6
26304
 
if test "${pkg_cv_WORDCUT_CFLAGS+set}" = set; then
26305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26306
 
else
26307
 
  if test "x$ac_cv_env_WORDCUT_CFLAGS_set" = "xset"; then
26308
 
        pkg_cv_WORDCUT_CFLAGS=$ac_cv_env_WORDCUT_CFLAGS_value
26309
 
elif test -n "$PKG_CONFIG"; then
26310
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"wordcut\" >/dev/null 2>&1") >&5
26311
 
  ($PKG_CONFIG --exists "wordcut" >/dev/null 2>&1) 2>&5
26312
 
  ac_status=$?
26313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314
 
  (exit $ac_status); }; then
26315
 
                pkg_cv_WORDCUT_CFLAGS=`$PKG_CONFIG --cflags "wordcut" 2>/dev/null`
26316
 
        else
26317
 
                pkg_failed=yes
26318
 
        fi
26319
 
else
26320
 
        pkg_failed=untried
26321
 
fi
26322
 
fi
26323
 
echo "$as_me:$LINENO: result: $pkg_cv_WORDCUT_CFLAGS" >&5
26324
 
echo "${ECHO_T}$pkg_cv_WORDCUT_CFLAGS" >&6
26325
 
echo "$as_me:$LINENO: checking for WORDCUT_LIBS" >&5
26326
 
echo $ECHO_N "checking for WORDCUT_LIBS... $ECHO_C" >&6
26327
 
if test "${pkg_cv_WORDCUT_LIBS+set}" = set; then
26328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26329
 
else
26330
 
  if test "x$ac_cv_env_WORDCUT_LIBS_set" = "xset"; then
26331
 
        pkg_cv_WORDCUT_LIBS=$ac_cv_env_WORDCUT_LIBS_value
26332
 
elif test -n "$PKG_CONFIG"; then
26333
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"wordcut\" >/dev/null 2>&1") >&5
26334
 
  ($PKG_CONFIG --exists "wordcut" >/dev/null 2>&1) 2>&5
26335
 
  ac_status=$?
26336
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337
 
  (exit $ac_status); }; then
26338
 
                pkg_cv_WORDCUT_LIBS=`$PKG_CONFIG --libs "wordcut" 2>/dev/null`
26339
 
        else
26340
 
                pkg_failed=yes
26341
 
        fi
26342
 
else
26343
 
        pkg_failed=untried
26344
 
fi
26345
 
fi
26346
 
echo "$as_me:$LINENO: result: $pkg_cv_WORDCUT_LIBS" >&5
26347
 
echo "${ECHO_T}$pkg_cv_WORDCUT_LIBS" >&6
 
36205
{ echo "$as_me:$LINENO: checking for WORDCUT" >&5
 
36206
echo $ECHO_N "checking for WORDCUT... $ECHO_C" >&6; }
 
36207
 
 
36208
if test -n "$PKG_CONFIG"; then
 
36209
    if test -n "$WORDCUT_CFLAGS"; then
 
36210
        pkg_cv_WORDCUT_CFLAGS="$WORDCUT_CFLAGS"
 
36211
    else
 
36212
        if test -n "$PKG_CONFIG" && \
 
36213
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"wordcut\"") >&5
 
36214
  ($PKG_CONFIG --exists --print-errors "wordcut") 2>&5
 
36215
  ac_status=$?
 
36216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36217
  (exit $ac_status); }; then
 
36218
  pkg_cv_WORDCUT_CFLAGS=`$PKG_CONFIG --cflags "wordcut" 2>/dev/null`
 
36219
else
 
36220
  pkg_failed=yes
 
36221
fi
 
36222
    fi
 
36223
else
 
36224
        pkg_failed=untried
 
36225
fi
 
36226
if test -n "$PKG_CONFIG"; then
 
36227
    if test -n "$WORDCUT_LIBS"; then
 
36228
        pkg_cv_WORDCUT_LIBS="$WORDCUT_LIBS"
 
36229
    else
 
36230
        if test -n "$PKG_CONFIG" && \
 
36231
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"wordcut\"") >&5
 
36232
  ($PKG_CONFIG --exists --print-errors "wordcut") 2>&5
 
36233
  ac_status=$?
 
36234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36235
  (exit $ac_status); }; then
 
36236
  pkg_cv_WORDCUT_LIBS=`$PKG_CONFIG --libs "wordcut" 2>/dev/null`
 
36237
else
 
36238
  pkg_failed=yes
 
36239
fi
 
36240
    fi
 
36241
else
 
36242
        pkg_failed=untried
 
36243
fi
 
36244
 
 
36245
 
26348
36246
 
26349
36247
if test $pkg_failed = yes; then
26350
 
        WORDCUT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "wordcut"`
 
36248
 
 
36249
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
36250
        _pkg_short_errors_supported=yes
 
36251
else
 
36252
        _pkg_short_errors_supported=no
 
36253
fi
 
36254
        if test $_pkg_short_errors_supported = yes; then
 
36255
                WORDCUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "wordcut"`
 
36256
        else
 
36257
                WORDCUT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "wordcut"`
 
36258
        fi
26351
36259
        # Put the nasty error message in config.log where it belongs
26352
 
        echo "$WORDCUT_PKG_ERRORS" 1>&5
 
36260
        echo "$WORDCUT_PKG_ERRORS" >&5
26353
36261
 
26354
 
        HAVE_WORDCUT=no
 
36262
        { echo "$as_me:$LINENO: result: no" >&5
 
36263
echo "${ECHO_T}no" >&6; }
 
36264
                HAVE_WORDCUT=no
26355
36265
elif test $pkg_failed = untried; then
26356
36266
        HAVE_WORDCUT=no
26357
36267
else
26358
36268
        WORDCUT_CFLAGS=$pkg_cv_WORDCUT_CFLAGS
26359
36269
        WORDCUT_LIBS=$pkg_cv_WORDCUT_LIBS
 
36270
        { echo "$as_me:$LINENO: result: yes" >&5
 
36271
echo "${ECHO_T}yes" >&6; }
26360
36272
        HAVE_WORDCUT=yes
26361
36273
fi
26362
36274
 
26383
36295
/* end confdefs.h.  */
26384
36296
#include <wordcut/wcwordcut.h>
26385
36297
_ACEOF
26386
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26387
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
36298
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
36299
case "(($ac_try" in
 
36300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36301
  *) ac_try_echo=$ac_try;;
 
36302
esac
 
36303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36304
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26388
36305
  ac_status=$?
26389
36306
  grep -v '^ *+' conftest.er1 >conftest.err
26390
36307
  rm -f conftest.er1
26408
36325
 
26409
36326
  HAVE_WORDCUT=no
26410
36327
fi
 
36328
 
26411
36329
rm -f conftest.err conftest.$ac_ext
26412
36330
  if test "x$HAVE_WORDCUT" = "xno"; then
26413
36331
 
26414
36332
pkg_failed=no
26415
 
echo "$as_me:$LINENO: checking for GLIB_2_0_CFLAGS" >&5
26416
 
echo $ECHO_N "checking for GLIB_2_0_CFLAGS... $ECHO_C" >&6
26417
 
if test "${pkg_cv_GLIB_2_0_CFLAGS+set}" = set; then
26418
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26419
 
else
26420
 
  if test "x$ac_cv_env_GLIB_2_0_CFLAGS_set" = "xset"; then
26421
 
        pkg_cv_GLIB_2_0_CFLAGS=$ac_cv_env_GLIB_2_0_CFLAGS_value
26422
 
elif test -n "$PKG_CONFIG"; then
26423
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"glib-2.0\" >/dev/null 2>&1") >&5
26424
 
  ($PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1) 2>&5
26425
 
  ac_status=$?
26426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427
 
  (exit $ac_status); }; then
26428
 
                pkg_cv_GLIB_2_0_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
26429
 
        else
26430
 
                pkg_failed=yes
26431
 
        fi
26432
 
else
26433
 
        pkg_failed=untried
26434
 
fi
26435
 
fi
26436
 
echo "$as_me:$LINENO: result: $pkg_cv_GLIB_2_0_CFLAGS" >&5
26437
 
echo "${ECHO_T}$pkg_cv_GLIB_2_0_CFLAGS" >&6
26438
 
echo "$as_me:$LINENO: checking for GLIB_2_0_LIBS" >&5
26439
 
echo $ECHO_N "checking for GLIB_2_0_LIBS... $ECHO_C" >&6
26440
 
if test "${pkg_cv_GLIB_2_0_LIBS+set}" = set; then
26441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26442
 
else
26443
 
  if test "x$ac_cv_env_GLIB_2_0_LIBS_set" = "xset"; then
26444
 
        pkg_cv_GLIB_2_0_LIBS=$ac_cv_env_GLIB_2_0_LIBS_value
26445
 
elif test -n "$PKG_CONFIG"; then
26446
 
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"glib-2.0\" >/dev/null 2>&1") >&5
26447
 
  ($PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1) 2>&5
26448
 
  ac_status=$?
26449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450
 
  (exit $ac_status); }; then
26451
 
                pkg_cv_GLIB_2_0_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
26452
 
        else
26453
 
                pkg_failed=yes
26454
 
        fi
26455
 
else
26456
 
        pkg_failed=untried
26457
 
fi
26458
 
fi
26459
 
echo "$as_me:$LINENO: result: $pkg_cv_GLIB_2_0_LIBS" >&5
26460
 
echo "${ECHO_T}$pkg_cv_GLIB_2_0_LIBS" >&6
 
36333
{ echo "$as_me:$LINENO: checking for GLIB_2_0" >&5
 
36334
echo $ECHO_N "checking for GLIB_2_0... $ECHO_C" >&6; }
 
36335
 
 
36336
if test -n "$PKG_CONFIG"; then
 
36337
    if test -n "$GLIB_2_0_CFLAGS"; then
 
36338
        pkg_cv_GLIB_2_0_CFLAGS="$GLIB_2_0_CFLAGS"
 
36339
    else
 
36340
        if test -n "$PKG_CONFIG" && \
 
36341
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
36342
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
36343
  ac_status=$?
 
36344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36345
  (exit $ac_status); }; then
 
36346
  pkg_cv_GLIB_2_0_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 
36347
else
 
36348
  pkg_failed=yes
 
36349
fi
 
36350
    fi
 
36351
else
 
36352
        pkg_failed=untried
 
36353
fi
 
36354
if test -n "$PKG_CONFIG"; then
 
36355
    if test -n "$GLIB_2_0_LIBS"; then
 
36356
        pkg_cv_GLIB_2_0_LIBS="$GLIB_2_0_LIBS"
 
36357
    else
 
36358
        if test -n "$PKG_CONFIG" && \
 
36359
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
36360
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
36361
  ac_status=$?
 
36362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36363
  (exit $ac_status); }; then
 
36364
  pkg_cv_GLIB_2_0_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 
36365
else
 
36366
  pkg_failed=yes
 
36367
fi
 
36368
    fi
 
36369
else
 
36370
        pkg_failed=untried
 
36371
fi
 
36372
 
 
36373
 
26461
36374
 
26462
36375
if test $pkg_failed = yes; then
26463
 
        GLIB_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
 
36376
 
 
36377
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
36378
        _pkg_short_errors_supported=yes
 
36379
else
 
36380
        _pkg_short_errors_supported=no
 
36381
fi
 
36382
        if test $_pkg_short_errors_supported = yes; then
 
36383
                GLIB_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
 
36384
        else
 
36385
                GLIB_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
 
36386
        fi
26464
36387
        # Put the nasty error message in config.log where it belongs
26465
 
        echo "$GLIB_2_0_PKG_ERRORS" 1>&5
 
36388
        echo "$GLIB_2_0_PKG_ERRORS" >&5
26466
36389
 
26467
 
        HAVE_GLIB_2_0=no
 
36390
        { echo "$as_me:$LINENO: result: no" >&5
 
36391
echo "${ECHO_T}no" >&6; }
 
36392
                HAVE_GLIB_2_0=no
26468
36393
elif test $pkg_failed = untried; then
26469
36394
        HAVE_GLIB_2_0=no
26470
36395
else
26471
36396
        GLIB_2_0_CFLAGS=$pkg_cv_GLIB_2_0_CFLAGS
26472
36397
        GLIB_2_0_LIBS=$pkg_cv_GLIB_2_0_LIBS
 
36398
        { echo "$as_me:$LINENO: result: yes" >&5
 
36399
echo "${ECHO_T}yes" >&6; }
26473
36400
        HAVE_GLIB_2_0=yes
26474
36401
fi
26475
36402
    if test "x$HAVE_GLIB_2_0" = "xyes"; then
26482
36409
/* end confdefs.h.  */
26483
36410
#include <wordcut/wcwordcut.h>
26484
36411
_ACEOF
26485
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26486
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
36412
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
36413
case "(($ac_try" in
 
36414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36415
  *) ac_try_echo=$ac_try;;
 
36416
esac
 
36417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36418
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26487
36419
  ac_status=$?
26488
36420
  grep -v '^ *+' conftest.er1 >conftest.err
26489
36421
  rm -f conftest.er1
26507
36439
 
26508
36440
 
26509
36441
fi
 
36442
 
26510
36443
rm -f conftest.err conftest.$ac_ext
26511
36444
    fi
26512
36445
  fi
26525
36458
 
26526
36459
else
26527
36460
 
26528
 
  echo "$as_me:$LINENO: checking for wordcut_init in -lwordcut" >&5
26529
 
echo $ECHO_N "checking for wordcut_init in -lwordcut... $ECHO_C" >&6
 
36461
  { echo "$as_me:$LINENO: checking for wordcut_init in -lwordcut" >&5
 
36462
echo $ECHO_N "checking for wordcut_init in -lwordcut... $ECHO_C" >&6; }
26530
36463
if test "${ac_cv_lib_wordcut_wordcut_init+set}" = set; then
26531
36464
  echo $ECHO_N "(cached) $ECHO_C" >&6
26532
36465
else
26539
36472
cat >>conftest.$ac_ext <<_ACEOF
26540
36473
/* end confdefs.h.  */
26541
36474
 
26542
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
36475
/* Override any GCC internal prototype to avoid an error.
 
36476
   Use char because int might match the return type of a GCC
 
36477
   builtin and then its argument prototype would still apply.  */
26543
36478
#ifdef __cplusplus
26544
36479
extern "C"
26545
36480
#endif
26546
 
/* We use char because int might match the return type of a gcc2
26547
 
   builtin and then its argument prototype would still apply.  */
26548
36481
char wordcut_init ();
26549
36482
int
26550
36483
main ()
26551
36484
{
26552
 
wordcut_init ();
 
36485
return wordcut_init ();
26553
36486
  ;
26554
36487
  return 0;
26555
36488
}
26556
36489
_ACEOF
26557
36490
rm -f conftest.$ac_objext conftest$ac_exeext
26558
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26559
 
  (eval $ac_link) 2>conftest.er1
 
36491
if { (ac_try="$ac_link"
 
36492
case "(($ac_try" in
 
36493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36494
  *) ac_try_echo=$ac_try;;
 
36495
esac
 
36496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36497
  (eval "$ac_link") 2>conftest.er1
26560
36498
  ac_status=$?
26561
36499
  grep -v '^ *+' conftest.er1 >conftest.err
26562
36500
  rm -f conftest.er1
26563
36501
  cat conftest.err >&5
26564
36502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565
36503
  (exit $ac_status); } &&
26566
 
         { ac_try='test -z "$ac_c_werror_flag"
26567
 
                         || test ! -s conftest.err'
26568
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569
 
  (eval $ac_try) 2>&5
 
36504
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
36505
  { (case "(($ac_try" in
 
36506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36507
  *) ac_try_echo=$ac_try;;
 
36508
esac
 
36509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36510
  (eval "$ac_try") 2>&5
26570
36511
  ac_status=$?
26571
36512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572
36513
  (exit $ac_status); }; } &&
26573
36514
         { ac_try='test -s conftest$ac_exeext'
26574
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575
 
  (eval $ac_try) 2>&5
 
36515
  { (case "(($ac_try" in
 
36516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36517
  *) ac_try_echo=$ac_try;;
 
36518
esac
 
36519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36520
  (eval "$ac_try") 2>&5
26576
36521
  ac_status=$?
26577
36522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578
36523
  (exit $ac_status); }; }; then
26581
36526
  echo "$as_me: failed program was:" >&5
26582
36527
sed 's/^/| /' conftest.$ac_ext >&5
26583
36528
 
26584
 
ac_cv_lib_wordcut_wordcut_init=no
 
36529
        ac_cv_lib_wordcut_wordcut_init=no
26585
36530
fi
26586
 
rm -f conftest.err conftest.$ac_objext \
 
36531
 
 
36532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26587
36533
      conftest$ac_exeext conftest.$ac_ext
26588
36534
LIBS=$ac_check_lib_save_LIBS
26589
36535
fi
26590
 
echo "$as_me:$LINENO: result: $ac_cv_lib_wordcut_wordcut_init" >&5
26591
 
echo "${ECHO_T}$ac_cv_lib_wordcut_wordcut_init" >&6
 
36536
{ echo "$as_me:$LINENO: result: $ac_cv_lib_wordcut_wordcut_init" >&5
 
36537
echo "${ECHO_T}$ac_cv_lib_wordcut_wordcut_init" >&6; }
26592
36538
if test $ac_cv_lib_wordcut_wordcut_init = yes; then
26593
36539
  HAVE_WORDCUT_OLD=yes
26594
36540
fi
26646
36592
_ACEOF
26647
36593
 
26648
36594
 
26649
 
                                                                      ac_config_files="$ac_config_files Makefile src/Makefile example/Makefile m17n-config m17n-core.pc m17n-shell.pc m17n-gui.pc"
 
36595
ac_config_files="$ac_config_files Makefile po/Makefile.in intl/Makefile src/Makefile example/Makefile m17n-config m17n-core.pc m17n-shell.pc m17n-gui.pc"
26650
36596
 
26651
36597
 
26652
36598
 
26668
36614
 
26669
36615
# The following way of writing the cache mishandles newlines in values,
26670
36616
# but we know of no workaround that is simple, portable, and efficient.
26671
 
# So, don't put newlines in cache variables' values.
 
36617
# So, we kill variables containing newlines.
26672
36618
# Ultrix sh set writes to stderr and can't be redirected directly,
26673
36619
# and sets the high bit in the cache file unless we assign to the vars.
26674
 
{
 
36620
(
 
36621
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
36622
    eval ac_val=\$$ac_var
 
36623
    case $ac_val in #(
 
36624
    *${as_nl}*)
 
36625
      case $ac_var in #(
 
36626
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
36627
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
36628
      esac
 
36629
      case $ac_var in #(
 
36630
      _ | IFS | as_nl) ;; #(
 
36631
      *) $as_unset $ac_var ;;
 
36632
      esac ;;
 
36633
    esac
 
36634
  done
 
36635
 
26675
36636
  (set) 2>&1 |
26676
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
26677
 
    *ac_space=\ *)
 
36637
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
36638
    *${as_nl}ac_space=\ *)
26678
36639
      # `set' does not quote correctly, so add quotes (double-quote
26679
36640
      # substitution turns \\\\ into \\, and sed turns \\ into \).
26680
36641
      sed -n \
26681
36642
        "s/'/'\\\\''/g;
26682
36643
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26683
 
      ;;
 
36644
      ;; #(
26684
36645
    *)
26685
36646
      # `set' quotes correctly as required by POSIX, so do not add quotes.
26686
 
      sed -n \
26687
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
36647
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26688
36648
      ;;
26689
 
    esac;
26690
 
} |
 
36649
    esac |
 
36650
    sort
 
36651
) |
26691
36652
  sed '
 
36653
     /^ac_cv_env_/b end
26692
36654
     t clear
26693
 
     : clear
 
36655
     :clear
26694
36656
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26695
36657
     t end
26696
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26697
 
     : end' >>confcache
26698
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
26699
 
  if test -w $cache_file; then
26700
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
36658
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
36659
     :end' >>confcache
 
36660
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
36661
  if test -w "$cache_file"; then
 
36662
    test "x$cache_file" != "x/dev/null" &&
 
36663
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
36664
echo "$as_me: updating cache $cache_file" >&6;}
26701
36665
    cat confcache >$cache_file
26702
36666
  else
26703
 
    echo "not updating unwritable cache $cache_file"
 
36667
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
36668
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26704
36669
  fi
26705
36670
fi
26706
36671
rm -f confcache
26709
36674
# Let make expand exec_prefix.
26710
36675
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26711
36676
 
26712
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26713
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26714
 
# trailing colons and then remove the whole line if VPATH becomes empty
26715
 
# (actually we leave an empty line to preserve line numbers).
26716
 
if test "x$srcdir" = x.; then
26717
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26718
 
s/:*\$(srcdir):*/:/;
26719
 
s/:*\${srcdir}:*/:/;
26720
 
s/:*@srcdir@:*/:/;
26721
 
s/^\([^=]*=[     ]*\):*/\1/;
26722
 
s/:*$//;
26723
 
s/^[^=]*=[       ]*$//;
26724
 
}'
26725
 
fi
26726
 
 
26727
36677
DEFS=-DHAVE_CONFIG_H
26728
36678
 
26729
36679
ac_libobjs=
26730
36680
ac_ltlibobjs=
26731
36681
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26732
36682
  # 1. Remove the extension, and $U if already installed.
26733
 
  ac_i=`echo "$ac_i" |
26734
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26735
 
  # 2. Add them.
26736
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26737
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
36683
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
36684
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
36685
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
36686
  #    will be set to the directory where LIBOBJS objects are built.
 
36687
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
36688
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26738
36689
done
26739
36690
LIBOBJS=$ac_libobjs
26740
36691
 
26762
36713
Usually this means the macro was only invoked conditionally." >&2;}
26763
36714
   { (exit 1); exit 1; }; }
26764
36715
fi
 
36716
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
36717
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
36718
Usually this means the macro was only invoked conditionally." >&5
 
36719
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
36720
Usually this means the macro was only invoked conditionally." >&2;}
 
36721
   { (exit 1); exit 1; }; }
 
36722
fi
26765
36723
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26766
36724
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26767
36725
Usually this means the macro was only invoked conditionally." >&5
26807
36765
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26808
36766
  # is contrary to our usage.  Disable this feature.
26809
36767
  alias -g '${1+"$@"}'='"$@"'
26810
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26811
 
  set -o posix
 
36768
  setopt NO_GLOB_SUBST
 
36769
else
 
36770
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26812
36771
fi
 
36772
BIN_SH=xpg4; export BIN_SH # for Tru64
26813
36773
DUALCASE=1; export DUALCASE # for MKS sh
26814
36774
 
 
36775
 
 
36776
# PATH needs CR
 
36777
# Avoid depending upon Character Ranges.
 
36778
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
36779
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36780
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
36781
as_cr_digits='0123456789'
 
36782
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
36783
 
 
36784
# The user is always right.
 
36785
if test "${PATH_SEPARATOR+set}" != set; then
 
36786
  echo "#! /bin/sh" >conf$$.sh
 
36787
  echo  "exit 0"   >>conf$$.sh
 
36788
  chmod +x conf$$.sh
 
36789
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
36790
    PATH_SEPARATOR=';'
 
36791
  else
 
36792
    PATH_SEPARATOR=:
 
36793
  fi
 
36794
  rm -f conf$$.sh
 
36795
fi
 
36796
 
26815
36797
# Support unset when possible.
26816
36798
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26817
36799
  as_unset=unset
26820
36802
fi
26821
36803
 
26822
36804
 
 
36805
# IFS
 
36806
# We need space, tab and new line, in precisely that order.  Quoting is
 
36807
# there to prevent editors from complaining about space-tab.
 
36808
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
36809
# splitting by setting IFS to empty value.)
 
36810
as_nl='
 
36811
'
 
36812
IFS=" ""        $as_nl"
 
36813
 
 
36814
# Find who we are.  Look in the path if we contain no directory separator.
 
36815
case $0 in
 
36816
  *[\\/]* ) as_myself=$0 ;;
 
36817
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
36818
for as_dir in $PATH
 
36819
do
 
36820
  IFS=$as_save_IFS
 
36821
  test -z "$as_dir" && as_dir=.
 
36822
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
36823
done
 
36824
IFS=$as_save_IFS
 
36825
 
 
36826
     ;;
 
36827
esac
 
36828
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
36829
# in which case we are not to be found in the path.
 
36830
if test "x$as_myself" = x; then
 
36831
  as_myself=$0
 
36832
fi
 
36833
if test ! -f "$as_myself"; then
 
36834
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
36835
  { (exit 1); exit 1; }
 
36836
fi
 
36837
 
26823
36838
# Work around bugs in pre-3.0 UWIN ksh.
26824
 
$as_unset ENV MAIL MAILPATH
 
36839
for as_var in ENV MAIL MAILPATH
 
36840
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
36841
done
26825
36842
PS1='$ '
26826
36843
PS2='> '
26827
36844
PS4='+ '
26835
36852
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26836
36853
    eval $as_var=C; export $as_var
26837
36854
  else
26838
 
    $as_unset $as_var
 
36855
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26839
36856
  fi
26840
36857
done
26841
36858
 
26842
36859
# Required to use basename.
26843
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
36860
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
36861
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26844
36862
  as_expr=expr
26845
36863
else
26846
36864
  as_expr=false
26847
36865
fi
26848
36866
 
26849
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
36867
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26850
36868
  as_basename=basename
26851
36869
else
26852
36870
  as_basename=false
26854
36872
 
26855
36873
 
26856
36874
# Name of the executable.
26857
 
as_me=`$as_basename "$0" ||
 
36875
as_me=`$as_basename -- "$0" ||
26858
36876
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26859
36877
         X"$0" : 'X\(//\)$' \| \
26860
 
         X"$0" : 'X\(/\)$' \| \
26861
 
         .     : '\(.\)' 2>/dev/null ||
 
36878
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26862
36879
echo X/"$0" |
26863
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26864
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
26865
 
          /^X\/\(\/\).*/{ s//\1/; q; }
26866
 
          s/.*/./; q'`
26867
 
 
26868
 
 
26869
 
# PATH needs CR, and LINENO needs CR and PATH.
26870
 
# Avoid depending upon Character Ranges.
26871
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26872
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26873
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26874
 
as_cr_digits='0123456789'
26875
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
26876
 
 
26877
 
# The user is always right.
26878
 
if test "${PATH_SEPARATOR+set}" != set; then
26879
 
  echo "#! /bin/sh" >conf$$.sh
26880
 
  echo  "exit 0"   >>conf$$.sh
26881
 
  chmod +x conf$$.sh
26882
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26883
 
    PATH_SEPARATOR=';'
26884
 
  else
26885
 
    PATH_SEPARATOR=:
26886
 
  fi
26887
 
  rm -f conf$$.sh
26888
 
fi
26889
 
 
26890
 
 
26891
 
  as_lineno_1=$LINENO
26892
 
  as_lineno_2=$LINENO
26893
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26894
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
26895
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26896
 
  # Find who we are.  Look in the path if we contain no path at all
26897
 
  # relative or not.
26898
 
  case $0 in
26899
 
    *[\\/]* ) as_myself=$0 ;;
26900
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901
 
for as_dir in $PATH
26902
 
do
26903
 
  IFS=$as_save_IFS
26904
 
  test -z "$as_dir" && as_dir=.
26905
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26906
 
done
26907
 
 
26908
 
       ;;
26909
 
  esac
26910
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
26911
 
  # in which case we are not to be found in the path.
26912
 
  if test "x$as_myself" = x; then
26913
 
    as_myself=$0
26914
 
  fi
26915
 
  if test ! -f "$as_myself"; then
26916
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26917
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26918
 
   { (exit 1); exit 1; }; }
26919
 
  fi
26920
 
  case $CONFIG_SHELL in
26921
 
  '')
26922
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26923
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26924
 
do
26925
 
  IFS=$as_save_IFS
26926
 
  test -z "$as_dir" && as_dir=.
26927
 
  for as_base in sh bash ksh sh5; do
26928
 
         case $as_dir in
26929
 
         /*)
26930
 
           if ("$as_dir/$as_base" -c '
26931
 
  as_lineno_1=$LINENO
26932
 
  as_lineno_2=$LINENO
26933
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26934
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
26935
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26936
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26937
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26938
 
             CONFIG_SHELL=$as_dir/$as_base
26939
 
             export CONFIG_SHELL
26940
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26941
 
           fi;;
26942
 
         esac
26943
 
       done
26944
 
done
26945
 
;;
26946
 
  esac
 
36880
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
36881
            s//\1/
 
36882
            q
 
36883
          }
 
36884
          /^X\/\(\/\/\)$/{
 
36885
            s//\1/
 
36886
            q
 
36887
          }
 
36888
          /^X\/\(\/\).*/{
 
36889
            s//\1/
 
36890
            q
 
36891
          }
 
36892
          s/.*/./; q'`
 
36893
 
 
36894
# CDPATH.
 
36895
$as_unset CDPATH
 
36896
 
 
36897
 
 
36898
 
 
36899
  as_lineno_1=$LINENO
 
36900
  as_lineno_2=$LINENO
 
36901
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
36902
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26947
36903
 
26948
36904
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26949
36905
  # uniformly replaced by the line number.  The first 'sed' inserts a
26950
 
  # line-number line before each line; the second 'sed' does the real
26951
 
  # work.  The second script uses 'N' to pair each line-number line
26952
 
  # with the numbered line, and appends trailing '-' during
26953
 
  # substitution so that $LINENO is not a special case at line end.
 
36906
  # line-number line after each line using $LINENO; the second 'sed'
 
36907
  # does the real work.  The second script uses 'N' to pair each
 
36908
  # line-number line with the line containing $LINENO, and appends
 
36909
  # trailing '-' during substitution so that $LINENO is not a special
 
36910
  # case at line end.
26954
36911
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26955
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26956
 
  sed '=' <$as_myself |
 
36912
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
36913
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
36914
  sed -n '
 
36915
    p
 
36916
    /[$]LINENO/=
 
36917
  ' <$as_myself |
26957
36918
    sed '
 
36919
      s/[$]LINENO.*/&-/
 
36920
      t lineno
 
36921
      b
 
36922
      :lineno
26958
36923
      N
26959
 
      s,$,-,
26960
 
      : loop
26961
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
36924
      :loop
 
36925
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26962
36926
      t loop
26963
 
      s,-$,,
26964
 
      s,^['$as_cr_digits']*\n,,
 
36927
      s/-\n.*//
26965
36928
    ' >$as_me.lineno &&
26966
 
  chmod +x $as_me.lineno ||
26967
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26968
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
36929
  chmod +x "$as_me.lineno" ||
 
36930
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26969
36931
   { (exit 1); exit 1; }; }
26970
36932
 
26971
36933
  # Don't try to exec as it changes $[0], causing all sort of problems
26972
36934
  # (the dirname of $[0] is not the place where we might find the
26973
 
  # original and so on.  Autoconf is especially sensible to this).
26974
 
  . ./$as_me.lineno
 
36935
  # original and so on.  Autoconf is especially sensitive to this).
 
36936
  . "./$as_me.lineno"
26975
36937
  # Exit status is that of the last command.
26976
36938
  exit
26977
36939
}
26978
36940
 
26979
36941
 
26980
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26981
 
  *c*,-n*) ECHO_N= ECHO_C='
26982
 
' ECHO_T='      ' ;;
26983
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26984
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
36942
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
36943
  as_dirname=dirname
 
36944
else
 
36945
  as_dirname=false
 
36946
fi
 
36947
 
 
36948
ECHO_C= ECHO_N= ECHO_T=
 
36949
case `echo -n x` in
 
36950
-n*)
 
36951
  case `echo 'x\c'` in
 
36952
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
36953
  *)   ECHO_C='\c';;
 
36954
  esac;;
 
36955
*)
 
36956
  ECHO_N='-n';;
26985
36957
esac
26986
36958
 
26987
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
36959
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
36960
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26988
36961
  as_expr=expr
26989
36962
else
26990
36963
  as_expr=false
26991
36964
fi
26992
36965
 
26993
36966
rm -f conf$$ conf$$.exe conf$$.file
 
36967
if test -d conf$$.dir; then
 
36968
  rm -f conf$$.dir/conf$$.file
 
36969
else
 
36970
  rm -f conf$$.dir
 
36971
  mkdir conf$$.dir
 
36972
fi
26994
36973
echo >conf$$.file
26995
36974
if ln -s conf$$.file conf$$ 2>/dev/null; then
26996
 
  # We could just check for DJGPP; but this test a) works b) is more generic
26997
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26998
 
  if test -f conf$$.exe; then
26999
 
    # Don't use ln at all; we don't have any links
 
36975
  as_ln_s='ln -s'
 
36976
  # ... but there are two gotchas:
 
36977
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
36978
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
36979
  # In both cases, we have to default to `cp -p'.
 
36980
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27000
36981
    as_ln_s='cp -p'
27001
 
  else
27002
 
    as_ln_s='ln -s'
27003
 
  fi
27004
36982
elif ln conf$$.file conf$$ 2>/dev/null; then
27005
36983
  as_ln_s=ln
27006
36984
else
27007
36985
  as_ln_s='cp -p'
27008
36986
fi
27009
 
rm -f conf$$ conf$$.exe conf$$.file
 
36987
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
36988
rmdir conf$$.dir 2>/dev/null
27010
36989
 
27011
36990
if mkdir -p . 2>/dev/null; then
27012
36991
  as_mkdir_p=:
27015
36994
  as_mkdir_p=false
27016
36995
fi
27017
36996
 
27018
 
as_executable_p="test -f"
 
36997
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
36998
# systems may use methods other than mode bits to determine executability.
 
36999
cat >conf$$.file <<_ASEOF
 
37000
#! /bin/sh
 
37001
exit 0
 
37002
_ASEOF
 
37003
chmod +x conf$$.file
 
37004
if test -x conf$$.file >/dev/null 2>&1; then
 
37005
  as_executable_p="test -x"
 
37006
else
 
37007
  as_executable_p=:
 
37008
fi
 
37009
rm -f conf$$.file
27019
37010
 
27020
37011
# Sed expression to map a string onto a valid CPP name.
27021
37012
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27024
37015
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27025
37016
 
27026
37017
 
27027
 
# IFS
27028
 
# We need space, tab and new line, in precisely that order.
27029
 
as_nl='
27030
 
'
27031
 
IFS="   $as_nl"
27032
 
 
27033
 
# CDPATH.
27034
 
$as_unset CDPATH
27035
 
 
27036
37018
exec 6>&1
27037
37019
 
27038
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
37020
# Save the log message, to keep $[0] and so on meaningful, and to
27039
37021
# report actual input values of CONFIG_FILES etc. instead of their
27040
 
# values after options handling.  Logging --version etc. is OK.
27041
 
exec 5>>config.log
27042
 
{
27043
 
  echo
27044
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27045
 
## Running $as_me. ##
27046
 
_ASBOX
27047
 
} >&5
27048
 
cat >&5 <<_CSEOF
27049
 
 
27050
 
This file was extended by m17n-lib $as_me 1.3.1, which was
27051
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
37022
# values after options handling.
 
37023
ac_log="
 
37024
This file was extended by m17n-lib $as_me 1.3.4, which was
 
37025
generated by GNU Autoconf 2.60a.  Invocation command line was
27052
37026
 
27053
37027
  CONFIG_FILES    = $CONFIG_FILES
27054
37028
  CONFIG_HEADERS  = $CONFIG_HEADERS
27056
37030
  CONFIG_COMMANDS = $CONFIG_COMMANDS
27057
37031
  $ $0 $@
27058
37032
 
27059
 
_CSEOF
27060
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27061
 
echo >&5
 
37033
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
37034
"
 
37035
 
27062
37036
_ACEOF
27063
37037
 
 
37038
cat >>$CONFIG_STATUS <<_ACEOF
27064
37039
# Files that config.status was made for.
27065
 
if test -n "$ac_config_files"; then
27066
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27067
 
fi
27068
 
 
27069
 
if test -n "$ac_config_headers"; then
27070
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27071
 
fi
27072
 
 
27073
 
if test -n "$ac_config_links"; then
27074
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27075
 
fi
27076
 
 
27077
 
if test -n "$ac_config_commands"; then
27078
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27079
 
fi
 
37040
config_files="$ac_config_files"
 
37041
config_headers="$ac_config_headers"
 
37042
config_commands="$ac_config_commands"
 
37043
 
 
37044
_ACEOF
27080
37045
 
27081
37046
cat >>$CONFIG_STATUS <<\_ACEOF
27082
 
 
27083
37047
ac_cs_usage="\
27084
37048
\`$as_me' instantiates files from templates according to the
27085
37049
current configuration.
27087
37051
Usage: $0 [OPTIONS] [FILE]...
27088
37052
 
27089
37053
  -h, --help       print this help, then exit
27090
 
  -V, --version    print version number, then exit
 
37054
  -V, --version    print version number and configuration settings, then exit
27091
37055
  -q, --quiet      do not print progress messages
27092
37056
  -d, --debug      don't remove temporary files
27093
37057
      --recheck    update $as_me by reconfiguring in the same conditions
27106
37070
$config_commands
27107
37071
 
27108
37072
Report bugs to <bug-autoconf@gnu.org>."
 
37073
 
27109
37074
_ACEOF
27110
 
 
27111
37075
cat >>$CONFIG_STATUS <<_ACEOF
27112
37076
ac_cs_version="\\
27113
 
m17n-lib config.status 1.3.1
27114
 
configured by $0, generated by GNU Autoconf 2.59,
27115
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
37077
m17n-lib config.status 1.3.4
 
37078
configured by $0, generated by GNU Autoconf 2.60a,
 
37079
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27116
37080
 
27117
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
37081
Copyright (C) 2006 Free Software Foundation, Inc.
27118
37082
This config.status script is free software; the Free Software Foundation
27119
37083
gives unlimited permission to copy, distribute and modify it."
27120
 
srcdir=$srcdir
27121
 
INSTALL="$INSTALL"
 
37084
 
 
37085
ac_pwd='$ac_pwd'
 
37086
srcdir='$srcdir'
 
37087
INSTALL='$INSTALL'
27122
37088
_ACEOF
27123
37089
 
27124
37090
cat >>$CONFIG_STATUS <<\_ACEOF
27129
37095
do
27130
37096
  case $1 in
27131
37097
  --*=*)
27132
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
27133
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
37098
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
37099
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27134
37100
    ac_shift=:
27135
37101
    ;;
27136
 
  -*)
 
37102
  *)
27137
37103
    ac_option=$1
27138
37104
    ac_optarg=$2
27139
37105
    ac_shift=shift
27140
37106
    ;;
27141
 
  *) # This is not an option, so the user has probably given explicit
27142
 
     # arguments.
27143
 
     ac_option=$1
27144
 
     ac_need_defaults=false;;
27145
37107
  esac
27146
37108
 
27147
37109
  case $ac_option in
27148
37110
  # Handling of the options.
27149
 
_ACEOF
27150
 
cat >>$CONFIG_STATUS <<\_ACEOF
27151
37111
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27152
37112
    ac_cs_recheck=: ;;
27153
 
  --version | --vers* | -V )
27154
 
    echo "$ac_cs_version"; exit 0 ;;
27155
 
  --he | --h)
27156
 
    # Conflict between --help and --header
27157
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
27158
 
Try \`$0 --help' for more information." >&5
27159
 
echo "$as_me: error: ambiguous option: $1
27160
 
Try \`$0 --help' for more information." >&2;}
27161
 
   { (exit 1); exit 1; }; };;
27162
 
  --help | --hel | -h )
27163
 
    echo "$ac_cs_usage"; exit 0 ;;
27164
 
  --debug | --d* | -d )
 
37113
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
37114
    echo "$ac_cs_version"; exit ;;
 
37115
  --debug | --debu | --deb | --de | --d | -d )
27165
37116
    debug=: ;;
27166
37117
  --file | --fil | --fi | --f )
27167
37118
    $ac_shift
27171
37122
    $ac_shift
27172
37123
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27173
37124
    ac_need_defaults=false;;
 
37125
  --he | --h)
 
37126
    # Conflict between --help and --header
 
37127
    { echo "$as_me: error: ambiguous option: $1
 
37128
Try \`$0 --help' for more information." >&2
 
37129
   { (exit 1); exit 1; }; };;
 
37130
  --help | --hel | -h )
 
37131
    echo "$ac_cs_usage"; exit ;;
27174
37132
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27175
37133
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27176
37134
    ac_cs_silent=: ;;
27177
37135
 
27178
37136
  # This is an error.
27179
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27180
 
Try \`$0 --help' for more information." >&5
27181
 
echo "$as_me: error: unrecognized option: $1
27182
 
Try \`$0 --help' for more information." >&2;}
 
37137
  -*) { echo "$as_me: error: unrecognized option: $1
 
37138
Try \`$0 --help' for more information." >&2
27183
37139
   { (exit 1); exit 1; }; } ;;
27184
37140
 
27185
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
37141
  *) ac_config_targets="$ac_config_targets $1"
 
37142
     ac_need_defaults=false ;;
27186
37143
 
27187
37144
  esac
27188
37145
  shift
27198
37155
_ACEOF
27199
37156
cat >>$CONFIG_STATUS <<_ACEOF
27200
37157
if \$ac_cs_recheck; then
27201
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27202
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
37158
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
37159
  CONFIG_SHELL=$SHELL
 
37160
  export CONFIG_SHELL
 
37161
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27203
37162
fi
27204
37163
 
27205
37164
_ACEOF
 
37165
cat >>$CONFIG_STATUS <<\_ACEOF
 
37166
exec 5>>config.log
 
37167
{
 
37168
  echo
 
37169
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
37170
## Running $as_me. ##
 
37171
_ASBOX
 
37172
  echo "$ac_log"
 
37173
} >&5
27206
37174
 
 
37175
_ACEOF
27207
37176
cat >>$CONFIG_STATUS <<_ACEOF
27208
37177
#
27209
 
# INIT-COMMANDS section.
 
37178
# INIT-COMMANDS
27210
37179
#
 
37180
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
37181
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
37182
    # from automake.
 
37183
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
37184
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
37185
    LINGUAS="${LINGUAS-%UNSET%}"
27211
37186
 
27212
37187
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27213
37188
 
27214
37189
_ACEOF
27215
37190
 
27216
 
 
27217
 
 
27218
37191
cat >>$CONFIG_STATUS <<\_ACEOF
 
37192
 
 
37193
# Handling of arguments.
27219
37194
for ac_config_target in $ac_config_targets
27220
37195
do
27221
 
  case "$ac_config_target" in
27222
 
  # Handling of arguments.
27223
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27224
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27225
 
  "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
27226
 
  "m17n-config" ) CONFIG_FILES="$CONFIG_FILES m17n-config" ;;
27227
 
  "m17n-core.pc" ) CONFIG_FILES="$CONFIG_FILES m17n-core.pc" ;;
27228
 
  "m17n-shell.pc" ) CONFIG_FILES="$CONFIG_FILES m17n-shell.pc" ;;
27229
 
  "m17n-gui.pc" ) CONFIG_FILES="$CONFIG_FILES m17n-gui.pc" ;;
27230
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27231
 
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
37196
  case $ac_config_target in
 
37197
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
37198
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
37199
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
37200
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
37201
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
37202
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
37203
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
37204
    "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
 
37205
    "m17n-config") CONFIG_FILES="$CONFIG_FILES m17n-config" ;;
 
37206
    "m17n-core.pc") CONFIG_FILES="$CONFIG_FILES m17n-core.pc" ;;
 
37207
    "m17n-shell.pc") CONFIG_FILES="$CONFIG_FILES m17n-shell.pc" ;;
 
37208
    "m17n-gui.pc") CONFIG_FILES="$CONFIG_FILES m17n-gui.pc" ;;
 
37209
 
27232
37210
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27233
37211
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27234
37212
   { (exit 1); exit 1; }; };;
27235
37213
  esac
27236
37214
done
27237
37215
 
 
37216
 
27238
37217
# If the user did not use the arguments to specify the items to instantiate,
27239
37218
# then the envvar interface is used.  Set only those that are not.
27240
37219
# We use the long form for the default assignment because of an extremely
27246
37225
fi
27247
37226
 
27248
37227
# Have a temporary directory for convenience.  Make it in the build tree
27249
 
# simply because there is no reason to put it here, and in addition,
 
37228
# simply because there is no reason against having it here, and in addition,
27250
37229
# creating and moving files from /tmp can sometimes cause problems.
27251
 
# Create a temporary directory, and hook for its removal unless debugging.
 
37230
# Hook for its removal unless debugging.
 
37231
# Note that there is a small window in which the directory will not be cleaned:
 
37232
# after its creation but before its name has been assigned to `$tmp'.
27252
37233
$debug ||
27253
37234
{
27254
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
37235
  tmp=
 
37236
  trap 'exit_status=$?
 
37237
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
37238
' 0
27255
37239
  trap '{ (exit 1); exit 1; }' 1 2 13 15
27256
37240
}
27257
 
 
27258
37241
# Create a (secure) tmp directory for tmp files.
27259
37242
 
27260
37243
{
27261
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
37244
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27262
37245
  test -n "$tmp" && test -d "$tmp"
27263
37246
}  ||
27264
37247
{
27265
 
  tmp=./confstat$$-$RANDOM
27266
 
  (umask 077 && mkdir $tmp)
 
37248
  tmp=./conf$$-$RANDOM
 
37249
  (umask 077 && mkdir "$tmp")
27267
37250
} ||
27268
37251
{
27269
37252
   echo "$me: cannot create a temporary directory in ." >&2
27270
37253
   { (exit 1); exit 1; }
27271
37254
}
27272
37255
 
27273
 
_ACEOF
27274
 
 
27275
 
cat >>$CONFIG_STATUS <<_ACEOF
27276
 
 
27277
37256
#
27278
 
# CONFIG_FILES section.
 
37257
# Set up the sed scripts for CONFIG_FILES section.
27279
37258
#
27280
37259
 
27281
37260
# No need to generate the scripts if there are no CONFIG_FILES.
27282
37261
# This happens for instance when ./config.status config.h
27283
 
if test -n "\$CONFIG_FILES"; then
27284
 
  # Protect against being on the right side of a sed subst in config.status.
27285
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27286
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27287
 
s,@SHELL@,$SHELL,;t t
27288
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27289
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27290
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27291
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27292
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27293
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27294
 
s,@exec_prefix@,$exec_prefix,;t t
27295
 
s,@prefix@,$prefix,;t t
27296
 
s,@program_transform_name@,$program_transform_name,;t t
27297
 
s,@bindir@,$bindir,;t t
27298
 
s,@sbindir@,$sbindir,;t t
27299
 
s,@libexecdir@,$libexecdir,;t t
27300
 
s,@datadir@,$datadir,;t t
27301
 
s,@sysconfdir@,$sysconfdir,;t t
27302
 
s,@sharedstatedir@,$sharedstatedir,;t t
27303
 
s,@localstatedir@,$localstatedir,;t t
27304
 
s,@libdir@,$libdir,;t t
27305
 
s,@includedir@,$includedir,;t t
27306
 
s,@oldincludedir@,$oldincludedir,;t t
27307
 
s,@infodir@,$infodir,;t t
27308
 
s,@mandir@,$mandir,;t t
27309
 
s,@build_alias@,$build_alias,;t t
27310
 
s,@host_alias@,$host_alias,;t t
27311
 
s,@target_alias@,$target_alias,;t t
27312
 
s,@DEFS@,$DEFS,;t t
27313
 
s,@ECHO_C@,$ECHO_C,;t t
27314
 
s,@ECHO_N@,$ECHO_N,;t t
27315
 
s,@ECHO_T@,$ECHO_T,;t t
27316
 
s,@LIBS@,$LIBS,;t t
27317
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27318
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27319
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27320
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
27321
 
s,@PACKAGE@,$PACKAGE,;t t
27322
 
s,@VERSION@,$VERSION,;t t
27323
 
s,@ACLOCAL@,$ACLOCAL,;t t
27324
 
s,@AUTOCONF@,$AUTOCONF,;t t
27325
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
27326
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
27327
 
s,@MAKEINFO@,$MAKEINFO,;t t
27328
 
s,@install_sh@,$install_sh,;t t
27329
 
s,@STRIP@,$STRIP,;t t
27330
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27331
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27332
 
s,@mkdir_p@,$mkdir_p,;t t
27333
 
s,@AWK@,$AWK,;t t
27334
 
s,@SET_MAKE@,$SET_MAKE,;t t
27335
 
s,@am__leading_dot@,$am__leading_dot,;t t
27336
 
s,@AMTAR@,$AMTAR,;t t
27337
 
s,@am__tar@,$am__tar,;t t
27338
 
s,@am__untar@,$am__untar,;t t
27339
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
27340
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
27341
 
s,@MAINT@,$MAINT,;t t
27342
 
s,@API_VERSION@,$API_VERSION,;t t
27343
 
s,@CC@,$CC,;t t
27344
 
s,@CFLAGS@,$CFLAGS,;t t
27345
 
s,@LDFLAGS@,$LDFLAGS,;t t
27346
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
27347
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
27348
 
s,@EXEEXT@,$EXEEXT,;t t
27349
 
s,@OBJEXT@,$OBJEXT,;t t
27350
 
s,@DEPDIR@,$DEPDIR,;t t
27351
 
s,@am__include@,$am__include,;t t
27352
 
s,@am__quote@,$am__quote,;t t
27353
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27354
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27355
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27356
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
27357
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27358
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27359
 
s,@build@,$build,;t t
27360
 
s,@build_cpu@,$build_cpu,;t t
27361
 
s,@build_vendor@,$build_vendor,;t t
27362
 
s,@build_os@,$build_os,;t t
27363
 
s,@host@,$host,;t t
27364
 
s,@host_cpu@,$host_cpu,;t t
27365
 
s,@host_vendor@,$host_vendor,;t t
27366
 
s,@host_os@,$host_os,;t t
27367
 
s,@EGREP@,$EGREP,;t t
27368
 
s,@LN_S@,$LN_S,;t t
27369
 
s,@ECHO@,$ECHO,;t t
27370
 
s,@AR@,$AR,;t t
27371
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
27372
 
s,@RANLIB@,$RANLIB,;t t
27373
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27374
 
s,@CPP@,$CPP,;t t
27375
 
s,@CXX@,$CXX,;t t
27376
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
27377
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27378
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27379
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27380
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27381
 
s,@CXXCPP@,$CXXCPP,;t t
27382
 
s,@F77@,$F77,;t t
27383
 
s,@FFLAGS@,$FFLAGS,;t t
27384
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
27385
 
s,@LIBTOOL@,$LIBTOOL,;t t
27386
 
s,@X_CFLAGS@,$X_CFLAGS,;t t
27387
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
27388
 
s,@X_LIBS@,$X_LIBS,;t t
27389
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
27390
 
s,@ALLOCA@,$ALLOCA,;t t
27391
 
s,@LIBOBJS@,$LIBOBJS,;t t
27392
 
s,@POW_LIB@,$POW_LIB,;t t
27393
 
s,@HAVE_M17N_DB@,$HAVE_M17N_DB,;t t
27394
 
s,@M17NDIR@,$M17NDIR,;t t
27395
 
s,@WITH_GUI_TRUE@,$WITH_GUI_TRUE,;t t
27396
 
s,@WITH_GUI_FALSE@,$WITH_GUI_FALSE,;t t
27397
 
s,@X11_LD_FLAGS@,$X11_LD_FLAGS,;t t
27398
 
s,@XAW_LD_FLAGS@,$XAW_LD_FLAGS,;t t
27399
 
s,@HAVE_FRIBIDI_CONFIG@,$HAVE_FRIBIDI_CONFIG,;t t
27400
 
s,@FRIBIDI_LD_FLAGS@,$FRIBIDI_LD_FLAGS,;t t
27401
 
s,@HAVE_OTFLIB_CONFIG@,$HAVE_OTFLIB_CONFIG,;t t
27402
 
s,@OTF_LD_FLAGS@,$OTF_LD_FLAGS,;t t
27403
 
s,@HAVE_FREETYPE_CONFIG@,$HAVE_FREETYPE_CONFIG,;t t
27404
 
s,@FREETYPE_LD_FLAGS@,$FREETYPE_LD_FLAGS,;t t
27405
 
s,@HAVE_PKG_CONFIG@,$HAVE_PKG_CONFIG,;t t
27406
 
s,@HAVE_XFT_CONFIG@,$HAVE_XFT_CONFIG,;t t
27407
 
s,@XFT2_LD_FLAGS@,$XFT2_LD_FLAGS,;t t
27408
 
s,@FONTCONFIG_LD_FLAGS@,$FONTCONFIG_LD_FLAGS,;t t
27409
 
s,@GD_LD_FLAGS@,$GD_LD_FLAGS,;t t
27410
 
s,@HAVE_XML2_CONFIG@,$HAVE_XML2_CONFIG,;t t
27411
 
s,@XML2_LD_FLAGS@,$XML2_LD_FLAGS,;t t
27412
 
s,@ANTHY_LD_FLAGS@,$ANTHY_LD_FLAGS,;t t
27413
 
s,@HAVE_ISPELL@,$HAVE_ISPELL,;t t
27414
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27415
 
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
27416
 
s,@LIBTHAI_CFLAGS@,$LIBTHAI_CFLAGS,;t t
27417
 
s,@LIBTHAI_LIBS@,$LIBTHAI_LIBS,;t t
27418
 
s,@WORDCUT_CFLAGS@,$WORDCUT_CFLAGS,;t t
27419
 
s,@WORDCUT_LIBS@,$WORDCUT_LIBS,;t t
27420
 
s,@GLIB_2_0_CFLAGS@,$GLIB_2_0_CFLAGS,;t t
27421
 
s,@GLIB_2_0_LIBS@,$GLIB_2_0_LIBS,;t t
27422
 
s,@THAI_WORDSEG_LD_FLAGS@,$THAI_WORDSEG_LD_FLAGS,;t t
27423
 
s,@CONFIG_FLAGS@,$CONFIG_FLAGS,;t t
27424
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27425
 
CEOF
27426
 
 
27427
 
_ACEOF
27428
 
 
27429
 
  cat >>$CONFIG_STATUS <<\_ACEOF
27430
 
  # Split the substitutions into bite-sized pieces for seds with
27431
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
27432
 
  ac_max_sed_lines=48
27433
 
  ac_sed_frag=1 # Number of current file.
27434
 
  ac_beg=1 # First line for current file.
27435
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
27436
 
  ac_more_lines=:
27437
 
  ac_sed_cmds=
27438
 
  while $ac_more_lines; do
27439
 
    if test $ac_beg -gt 1; then
27440
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27441
 
    else
27442
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27443
 
    fi
27444
 
    if test ! -s $tmp/subs.frag; then
27445
 
      ac_more_lines=false
27446
 
    else
27447
 
      # The purpose of the label and of the branching condition is to
27448
 
      # speed up the sed processing (if there are no `@' at all, there
27449
 
      # is no need to browse any of the substitutions).
27450
 
      # These are the two extra sed commands mentioned above.
27451
 
      (echo ':t
27452
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27453
 
      if test -z "$ac_sed_cmds"; then
27454
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27455
 
      else
27456
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27457
 
      fi
27458
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
27459
 
      ac_beg=$ac_end
27460
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
27461
 
    fi
27462
 
  done
27463
 
  if test -z "$ac_sed_cmds"; then
27464
 
    ac_sed_cmds=cat
27465
 
  fi
 
37262
if test -n "$CONFIG_FILES"; then
 
37263
 
 
37264
_ACEOF
 
37265
 
 
37266
 
 
37267
 
 
37268
ac_delim='%!_!# '
 
37269
for ac_last_try in false false false false false :; do
 
37270
  cat >conf$$subs.sed <<_ACEOF
 
37271
SHELL!$SHELL$ac_delim
 
37272
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
37273
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
37274
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
37275
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
37276
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
37277
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
37278
exec_prefix!$exec_prefix$ac_delim
 
37279
prefix!$prefix$ac_delim
 
37280
program_transform_name!$program_transform_name$ac_delim
 
37281
bindir!$bindir$ac_delim
 
37282
sbindir!$sbindir$ac_delim
 
37283
libexecdir!$libexecdir$ac_delim
 
37284
datarootdir!$datarootdir$ac_delim
 
37285
datadir!$datadir$ac_delim
 
37286
sysconfdir!$sysconfdir$ac_delim
 
37287
sharedstatedir!$sharedstatedir$ac_delim
 
37288
localstatedir!$localstatedir$ac_delim
 
37289
includedir!$includedir$ac_delim
 
37290
oldincludedir!$oldincludedir$ac_delim
 
37291
docdir!$docdir$ac_delim
 
37292
infodir!$infodir$ac_delim
 
37293
htmldir!$htmldir$ac_delim
 
37294
dvidir!$dvidir$ac_delim
 
37295
pdfdir!$pdfdir$ac_delim
 
37296
psdir!$psdir$ac_delim
 
37297
libdir!$libdir$ac_delim
 
37298
localedir!$localedir$ac_delim
 
37299
mandir!$mandir$ac_delim
 
37300
DEFS!$DEFS$ac_delim
 
37301
ECHO_C!$ECHO_C$ac_delim
 
37302
ECHO_N!$ECHO_N$ac_delim
 
37303
ECHO_T!$ECHO_T$ac_delim
 
37304
LIBS!$LIBS$ac_delim
 
37305
build_alias!$build_alias$ac_delim
 
37306
host_alias!$host_alias$ac_delim
 
37307
target_alias!$target_alias$ac_delim
 
37308
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
37309
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
37310
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
37311
CYGPATH_W!$CYGPATH_W$ac_delim
 
37312
PACKAGE!$PACKAGE$ac_delim
 
37313
VERSION!$VERSION$ac_delim
 
37314
ACLOCAL!$ACLOCAL$ac_delim
 
37315
AUTOCONF!$AUTOCONF$ac_delim
 
37316
AUTOMAKE!$AUTOMAKE$ac_delim
 
37317
AUTOHEADER!$AUTOHEADER$ac_delim
 
37318
MAKEINFO!$MAKEINFO$ac_delim
 
37319
install_sh!$install_sh$ac_delim
 
37320
STRIP!$STRIP$ac_delim
 
37321
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
37322
mkdir_p!$mkdir_p$ac_delim
 
37323
AWK!$AWK$ac_delim
 
37324
SET_MAKE!$SET_MAKE$ac_delim
 
37325
am__leading_dot!$am__leading_dot$ac_delim
 
37326
AMTAR!$AMTAR$ac_delim
 
37327
am__tar!$am__tar$ac_delim
 
37328
am__untar!$am__untar$ac_delim
 
37329
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
37330
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
37331
MAINT!$MAINT$ac_delim
 
37332
API_VERSION!$API_VERSION$ac_delim
 
37333
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
37334
USE_NLS!$USE_NLS$ac_delim
 
37335
MSGFMT!$MSGFMT$ac_delim
 
37336
GMSGFMT!$GMSGFMT$ac_delim
 
37337
XGETTEXT!$XGETTEXT$ac_delim
 
37338
MSGMERGE!$MSGMERGE$ac_delim
 
37339
CC!$CC$ac_delim
 
37340
CFLAGS!$CFLAGS$ac_delim
 
37341
LDFLAGS!$LDFLAGS$ac_delim
 
37342
CPPFLAGS!$CPPFLAGS$ac_delim
 
37343
ac_ct_CC!$ac_ct_CC$ac_delim
 
37344
EXEEXT!$EXEEXT$ac_delim
 
37345
OBJEXT!$OBJEXT$ac_delim
 
37346
DEPDIR!$DEPDIR$ac_delim
 
37347
am__include!$am__include$ac_delim
 
37348
am__quote!$am__quote$ac_delim
 
37349
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
37350
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
37351
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
37352
CCDEPMODE!$CCDEPMODE$ac_delim
 
37353
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
37354
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
37355
build!$build$ac_delim
 
37356
build_cpu!$build_cpu$ac_delim
 
37357
build_vendor!$build_vendor$ac_delim
 
37358
build_os!$build_os$ac_delim
 
37359
host!$host$ac_delim
 
37360
host_cpu!$host_cpu$ac_delim
 
37361
host_vendor!$host_vendor$ac_delim
 
37362
host_os!$host_os$ac_delim
 
37363
CPP!$CPP$ac_delim
 
37364
GREP!$GREP$ac_delim
 
37365
EGREP!$EGREP$ac_delim
 
37366
GLIBC2!$GLIBC2$ac_delim
 
37367
RANLIB!$RANLIB$ac_delim
 
37368
_ACEOF
 
37369
 
 
37370
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
37371
    break
 
37372
  elif $ac_last_try; then
 
37373
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
37374
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
37375
   { (exit 1); exit 1; }; }
 
37376
  else
 
37377
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
37378
  fi
 
37379
done
 
37380
 
 
37381
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
37382
if test -n "$ac_eof"; then
 
37383
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
37384
  ac_eof=`expr $ac_eof + 1`
 
37385
fi
 
37386
 
 
37387
cat >>$CONFIG_STATUS <<_ACEOF
 
37388
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
37389
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
37390
_ACEOF
 
37391
sed '
 
37392
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
37393
s/^/s,@/; s/!/@,|#_!!_#|/
 
37394
:n
 
37395
t n
 
37396
s/'"$ac_delim"'$/,g/; t
 
37397
s/$/\\/; p
 
37398
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
37399
' >>$CONFIG_STATUS <conf$$subs.sed
 
37400
rm -f conf$$subs.sed
 
37401
cat >>$CONFIG_STATUS <<_ACEOF
 
37402
CEOF$ac_eof
 
37403
_ACEOF
 
37404
 
 
37405
 
 
37406
ac_delim='%!_!# '
 
37407
for ac_last_try in false false false false false :; do
 
37408
  cat >conf$$subs.sed <<_ACEOF
 
37409
ALLOCA!$ALLOCA$ac_delim
 
37410
GLIBC21!$GLIBC21$ac_delim
 
37411
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
37412
HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
 
37413
HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
 
37414
HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
 
37415
HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
 
37416
LIBICONV!$LIBICONV$ac_delim
 
37417
LTLIBICONV!$LTLIBICONV$ac_delim
 
37418
INTLBISON!$INTLBISON$ac_delim
 
37419
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
 
37420
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
 
37421
CATOBJEXT!$CATOBJEXT$ac_delim
 
37422
DATADIRNAME!$DATADIRNAME$ac_delim
 
37423
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
37424
GENCAT!$GENCAT$ac_delim
 
37425
INTLOBJS!$INTLOBJS$ac_delim
 
37426
INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
 
37427
INTLLIBS!$INTLLIBS$ac_delim
 
37428
LIBINTL!$LIBINTL$ac_delim
 
37429
LTLIBINTL!$LTLIBINTL$ac_delim
 
37430
POSUB!$POSUB$ac_delim
 
37431
GETTEXTDIR!$GETTEXTDIR$ac_delim
 
37432
LN_S!$LN_S$ac_delim
 
37433
ECHO!$ECHO$ac_delim
 
37434
AR!$AR$ac_delim
 
37435
CXX!$CXX$ac_delim
 
37436
CXXFLAGS!$CXXFLAGS$ac_delim
 
37437
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
37438
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
37439
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
37440
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
37441
CXXCPP!$CXXCPP$ac_delim
 
37442
F77!$F77$ac_delim
 
37443
FFLAGS!$FFLAGS$ac_delim
 
37444
ac_ct_F77!$ac_ct_F77$ac_delim
 
37445
LIBTOOL!$LIBTOOL$ac_delim
 
37446
XMKMF!$XMKMF$ac_delim
 
37447
X_CFLAGS!$X_CFLAGS$ac_delim
 
37448
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
37449
X_LIBS!$X_LIBS$ac_delim
 
37450
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
37451
LIBOBJS!$LIBOBJS$ac_delim
 
37452
POW_LIB!$POW_LIB$ac_delim
 
37453
HAVE_M17N_DB!$HAVE_M17N_DB$ac_delim
 
37454
M17NDIR!$M17NDIR$ac_delim
 
37455
WITH_GUI_TRUE!$WITH_GUI_TRUE$ac_delim
 
37456
WITH_GUI_FALSE!$WITH_GUI_FALSE$ac_delim
 
37457
HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
 
37458
X11_LD_FLAGS!$X11_LD_FLAGS$ac_delim
 
37459
XAW_LD_FLAGS!$XAW_LD_FLAGS$ac_delim
 
37460
HAVE_FRIBIDI_CONFIG!$HAVE_FRIBIDI_CONFIG$ac_delim
 
37461
FRIBIDI_LD_FLAGS!$FRIBIDI_LD_FLAGS$ac_delim
 
37462
HAVE_OTFLIB_CONFIG!$HAVE_OTFLIB_CONFIG$ac_delim
 
37463
OTF_LD_FLAGS!$OTF_LD_FLAGS$ac_delim
 
37464
HAVE_FREETYPE_CONFIG!$HAVE_FREETYPE_CONFIG$ac_delim
 
37465
FREETYPE_LD_FLAGS!$FREETYPE_LD_FLAGS$ac_delim
 
37466
HAVE_XFT_CONFIG!$HAVE_XFT_CONFIG$ac_delim
 
37467
XFT2_LD_FLAGS!$XFT2_LD_FLAGS$ac_delim
 
37468
FONTCONFIG_LD_FLAGS!$FONTCONFIG_LD_FLAGS$ac_delim
 
37469
GD_LD_FLAGS!$GD_LD_FLAGS$ac_delim
 
37470
HAVE_XML2_CONFIG!$HAVE_XML2_CONFIG$ac_delim
 
37471
XML2_LD_FLAGS!$XML2_LD_FLAGS$ac_delim
 
37472
ANTHY_LD_FLAGS!$ANTHY_LD_FLAGS$ac_delim
 
37473
HAVE_ISPELL!$HAVE_ISPELL$ac_delim
 
37474
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
37475
LIBTHAI_CFLAGS!$LIBTHAI_CFLAGS$ac_delim
 
37476
LIBTHAI_LIBS!$LIBTHAI_LIBS$ac_delim
 
37477
WORDCUT_CFLAGS!$WORDCUT_CFLAGS$ac_delim
 
37478
WORDCUT_LIBS!$WORDCUT_LIBS$ac_delim
 
37479
GLIB_2_0_CFLAGS!$GLIB_2_0_CFLAGS$ac_delim
 
37480
GLIB_2_0_LIBS!$GLIB_2_0_LIBS$ac_delim
 
37481
THAI_WORDSEG_LD_FLAGS!$THAI_WORDSEG_LD_FLAGS$ac_delim
 
37482
CONFIG_FLAGS!$CONFIG_FLAGS$ac_delim
 
37483
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
37484
_ACEOF
 
37485
 
 
37486
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
 
37487
    break
 
37488
  elif $ac_last_try; then
 
37489
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
37490
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
37491
   { (exit 1); exit 1; }; }
 
37492
  else
 
37493
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
37494
  fi
 
37495
done
 
37496
 
 
37497
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
37498
if test -n "$ac_eof"; then
 
37499
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
37500
  ac_eof=`expr $ac_eof + 1`
 
37501
fi
 
37502
 
 
37503
cat >>$CONFIG_STATUS <<_ACEOF
 
37504
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
37505
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
37506
_ACEOF
 
37507
sed '
 
37508
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
37509
s/^/s,@/; s/!/@,|#_!!_#|/
 
37510
:n
 
37511
t n
 
37512
s/'"$ac_delim"'$/,g/; t
 
37513
s/$/\\/; p
 
37514
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
37515
' >>$CONFIG_STATUS <conf$$subs.sed
 
37516
rm -f conf$$subs.sed
 
37517
cat >>$CONFIG_STATUS <<_ACEOF
 
37518
:end
 
37519
s/|#_!!_#|//g
 
37520
CEOF$ac_eof
 
37521
_ACEOF
 
37522
 
 
37523
 
 
37524
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
37525
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
37526
# trailing colons and then remove the whole line if VPATH becomes empty
 
37527
# (actually we leave an empty line to preserve line numbers).
 
37528
if test "x$srcdir" = x.; then
 
37529
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
37530
s/:*\$(srcdir):*/:/
 
37531
s/:*\${srcdir}:*/:/
 
37532
s/:*@srcdir@:*/:/
 
37533
s/^\([^=]*=[     ]*\):*/\1/
 
37534
s/:*$//
 
37535
s/^[^=]*=[       ]*$//
 
37536
}'
 
37537
fi
 
37538
 
 
37539
cat >>$CONFIG_STATUS <<\_ACEOF
27466
37540
fi # test -n "$CONFIG_FILES"
27467
37541
 
27468
 
_ACEOF
27469
 
cat >>$CONFIG_STATUS <<\_ACEOF
27470
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27471
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27472
 
  case $ac_file in
27473
 
  - | *:- | *:-:* ) # input from stdin
27474
 
        cat >$tmp/stdin
27475
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27476
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27477
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27478
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27479
 
  * )   ac_file_in=$ac_file.in ;;
27480
 
  esac
27481
 
 
27482
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27483
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
37542
 
 
37543
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
37544
do
 
37545
  case $ac_tag in
 
37546
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
37547
  esac
 
37548
  case $ac_mode$ac_tag in
 
37549
  :[FHL]*:*);;
 
37550
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
37551
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
37552
   { (exit 1); exit 1; }; };;
 
37553
  :[FH]-) ac_tag=-:-;;
 
37554
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
37555
  esac
 
37556
  ac_save_IFS=$IFS
 
37557
  IFS=:
 
37558
  set x $ac_tag
 
37559
  IFS=$ac_save_IFS
 
37560
  shift
 
37561
  ac_file=$1
 
37562
  shift
 
37563
 
 
37564
  case $ac_mode in
 
37565
  :L) ac_source=$1;;
 
37566
  :[FH])
 
37567
    ac_file_inputs=
 
37568
    for ac_f
 
37569
    do
 
37570
      case $ac_f in
 
37571
      -) ac_f="$tmp/stdin";;
 
37572
      *) # Look for the file first in the build tree, then in the source tree
 
37573
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
37574
         # because $ac_f cannot contain `:'.
 
37575
         test -f "$ac_f" ||
 
37576
           case $ac_f in
 
37577
           [\\/$]*) false;;
 
37578
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
37579
           esac ||
 
37580
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
37581
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
37582
   { (exit 1); exit 1; }; };;
 
37583
      esac
 
37584
      ac_file_inputs="$ac_file_inputs $ac_f"
 
37585
    done
 
37586
 
 
37587
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
37588
    # use $as_me), people would be surprised to read:
 
37589
    #    /* config.h.  Generated by config.status.  */
 
37590
    configure_input="Generated from "`IFS=:
 
37591
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
37592
    if test x"$ac_file" != x-; then
 
37593
      configure_input="$ac_file.  $configure_input"
 
37594
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
37595
echo "$as_me: creating $ac_file" >&6;}
 
37596
    fi
 
37597
 
 
37598
    case $ac_tag in
 
37599
    *:-:* | *:-) cat >"$tmp/stdin";;
 
37600
    esac
 
37601
    ;;
 
37602
  esac
 
37603
 
 
37604
  ac_dir=`$as_dirname -- "$ac_file" ||
27484
37605
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27485
37606
         X"$ac_file" : 'X\(//\)[^/]' \| \
27486
37607
         X"$ac_file" : 'X\(//\)$' \| \
27487
 
         X"$ac_file" : 'X\(/\)' \| \
27488
 
         .     : '\(.\)' 2>/dev/null ||
 
37608
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27489
37609
echo X"$ac_file" |
27490
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27491
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27492
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27493
 
          /^X\(\/\).*/{ s//\1/; q; }
27494
 
          s/.*/./; q'`
27495
 
  { if $as_mkdir_p; then
27496
 
    mkdir -p "$ac_dir"
27497
 
  else
27498
 
    as_dir="$ac_dir"
 
37610
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37611
            s//\1/
 
37612
            q
 
37613
          }
 
37614
          /^X\(\/\/\)[^/].*/{
 
37615
            s//\1/
 
37616
            q
 
37617
          }
 
37618
          /^X\(\/\/\)$/{
 
37619
            s//\1/
 
37620
            q
 
37621
          }
 
37622
          /^X\(\/\).*/{
 
37623
            s//\1/
 
37624
            q
 
37625
          }
 
37626
          s/.*/./; q'`
 
37627
  { as_dir="$ac_dir"
 
37628
  case $as_dir in #(
 
37629
  -*) as_dir=./$as_dir;;
 
37630
  esac
 
37631
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27499
37632
    as_dirs=
27500
 
    while test ! -d "$as_dir"; do
27501
 
      as_dirs="$as_dir $as_dirs"
27502
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
37633
    while :; do
 
37634
      case $as_dir in #(
 
37635
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
37636
      *) as_qdir=$as_dir;;
 
37637
      esac
 
37638
      as_dirs="'$as_qdir' $as_dirs"
 
37639
      as_dir=`$as_dirname -- "$as_dir" ||
27503
37640
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27504
37641
         X"$as_dir" : 'X\(//\)[^/]' \| \
27505
37642
         X"$as_dir" : 'X\(//\)$' \| \
27506
 
         X"$as_dir" : 'X\(/\)' \| \
27507
 
         .     : '\(.\)' 2>/dev/null ||
 
37643
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27508
37644
echo X"$as_dir" |
27509
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27510
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27511
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27512
 
          /^X\(\/\).*/{ s//\1/; q; }
27513
 
          s/.*/./; q'`
 
37645
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37646
            s//\1/
 
37647
            q
 
37648
          }
 
37649
          /^X\(\/\/\)[^/].*/{
 
37650
            s//\1/
 
37651
            q
 
37652
          }
 
37653
          /^X\(\/\/\)$/{
 
37654
            s//\1/
 
37655
            q
 
37656
          }
 
37657
          /^X\(\/\).*/{
 
37658
            s//\1/
 
37659
            q
 
37660
          }
 
37661
          s/.*/./; q'`
 
37662
      test -d "$as_dir" && break
27514
37663
    done
27515
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27516
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27517
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
37664
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
37665
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
37666
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27518
37667
   { (exit 1); exit 1; }; }; }
27519
 
 
27520
37668
  ac_builddir=.
27521
37669
 
27522
 
if test "$ac_dir" != .; then
 
37670
case "$ac_dir" in
 
37671
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
37672
*)
27523
37673
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27524
 
  # A "../" for each directory in $ac_dir_suffix.
27525
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27526
 
else
27527
 
  ac_dir_suffix= ac_top_builddir=
27528
 
fi
 
37674
  # A ".." for each directory in $ac_dir_suffix.
 
37675
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
37676
  case $ac_top_builddir_sub in
 
37677
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
37678
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
37679
  esac ;;
 
37680
esac
 
37681
ac_abs_top_builddir=$ac_pwd
 
37682
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
37683
# for backward compatibility:
 
37684
ac_top_builddir=$ac_top_build_prefix
27529
37685
 
27530
37686
case $srcdir in
27531
 
  .)  # No --srcdir option.  We are building in place.
 
37687
  .)  # We are building in place.
27532
37688
    ac_srcdir=.
27533
 
    if test -z "$ac_top_builddir"; then
27534
 
       ac_top_srcdir=.
27535
 
    else
27536
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27537
 
    fi ;;
27538
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
37689
    ac_top_srcdir=$ac_top_builddir_sub
 
37690
    ac_abs_top_srcdir=$ac_pwd ;;
 
37691
  [\\/]* | ?:[\\/]* )  # Absolute name.
27539
37692
    ac_srcdir=$srcdir$ac_dir_suffix;
27540
 
    ac_top_srcdir=$srcdir ;;
27541
 
  *) # Relative path.
27542
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27543
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27544
 
esac
27545
 
 
27546
 
# Do not use `cd foo && pwd` to compute absolute paths, because
27547
 
# the directories may not exist.
27548
 
case `pwd` in
27549
 
.) ac_abs_builddir="$ac_dir";;
27550
 
*)
27551
 
  case "$ac_dir" in
27552
 
  .) ac_abs_builddir=`pwd`;;
27553
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27554
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27555
 
  esac;;
27556
 
esac
27557
 
case $ac_abs_builddir in
27558
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27559
 
*)
27560
 
  case ${ac_top_builddir}. in
27561
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27562
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27563
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27564
 
  esac;;
27565
 
esac
27566
 
case $ac_abs_builddir in
27567
 
.) ac_abs_srcdir=$ac_srcdir;;
27568
 
*)
27569
 
  case $ac_srcdir in
27570
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
27571
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27572
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27573
 
  esac;;
27574
 
esac
27575
 
case $ac_abs_builddir in
27576
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27577
 
*)
27578
 
  case $ac_top_srcdir in
27579
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27580
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27581
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27582
 
  esac;;
27583
 
esac
27584
 
 
 
37693
    ac_top_srcdir=$srcdir
 
37694
    ac_abs_top_srcdir=$srcdir ;;
 
37695
  *) # Relative name.
 
37696
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
37697
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
37698
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
37699
esac
 
37700
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
37701
 
 
37702
 
 
37703
  case $ac_mode in
 
37704
  :F)
 
37705
  #
 
37706
  # CONFIG_FILE
 
37707
  #
27585
37708
 
27586
37709
  case $INSTALL in
27587
37710
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27588
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
37711
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27589
37712
  esac
27590
 
 
27591
 
  if test x"$ac_file" != x-; then
27592
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
27593
 
echo "$as_me: creating $ac_file" >&6;}
27594
 
    rm -f "$ac_file"
27595
 
  fi
27596
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
27597
 
  # use $as_me), people would be surprised to read:
27598
 
  #    /* config.h.  Generated by config.status.  */
27599
 
  if test x"$ac_file" = x-; then
27600
 
    configure_input=
27601
 
  else
27602
 
    configure_input="$ac_file.  "
27603
 
  fi
27604
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
27605
 
                                     sed 's,.*/,,'` by configure."
27606
 
 
27607
 
  # First look for the input files in the build tree, otherwise in the
27608
 
  # src tree.
27609
 
  ac_file_inputs=`IFS=:
27610
 
    for f in $ac_file_in; do
27611
 
      case $f in
27612
 
      -) echo $tmp/stdin ;;
27613
 
      [\\/$]*)
27614
 
         # Absolute (can't be DOS-style, as IFS=:)
27615
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27616
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27617
 
   { (exit 1); exit 1; }; }
27618
 
         echo "$f";;
27619
 
      *) # Relative
27620
 
         if test -f "$f"; then
27621
 
           # Build tree
27622
 
           echo "$f"
27623
 
         elif test -f "$srcdir/$f"; then
27624
 
           # Source tree
27625
 
           echo "$srcdir/$f"
27626
 
         else
27627
 
           # /dev/null tree
27628
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27629
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27630
 
   { (exit 1); exit 1; }; }
27631
 
         fi;;
27632
 
      esac
27633
 
    done` || { (exit 1); exit 1; }
27634
 
_ACEOF
 
37713
_ACEOF
 
37714
 
 
37715
cat >>$CONFIG_STATUS <<\_ACEOF
 
37716
# If the template does not know about datarootdir, expand it.
 
37717
# FIXME: This hack should be removed a few years after 2.60.
 
37718
ac_datarootdir_hack=; ac_datarootdir_seen=
 
37719
 
 
37720
case `sed -n '/datarootdir/ {
 
37721
  p
 
37722
  q
 
37723
}
 
37724
/@datadir@/p
 
37725
/@docdir@/p
 
37726
/@infodir@/p
 
37727
/@localedir@/p
 
37728
/@mandir@/p
 
37729
' $ac_file_inputs` in
 
37730
*datarootdir*) ac_datarootdir_seen=yes;;
 
37731
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
37732
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
37733
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
37734
_ACEOF
 
37735
cat >>$CONFIG_STATUS <<_ACEOF
 
37736
  ac_datarootdir_hack='
 
37737
  s&@datadir@&$datadir&g
 
37738
  s&@docdir@&$docdir&g
 
37739
  s&@infodir@&$infodir&g
 
37740
  s&@localedir@&$localedir&g
 
37741
  s&@mandir@&$mandir&g
 
37742
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
37743
esac
 
37744
_ACEOF
 
37745
 
 
37746
# Neutralize VPATH when `$srcdir' = `.'.
 
37747
# Shell code in configure.ac might set extrasub.
 
37748
# FIXME: do we really want to maintain this feature?
27635
37749
cat >>$CONFIG_STATUS <<_ACEOF
27636
37750
  sed "$ac_vpsub
27637
37751
$extrasub
27639
37753
cat >>$CONFIG_STATUS <<\_ACEOF
27640
37754
:t
27641
37755
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27642
 
s,@configure_input@,$configure_input,;t t
27643
 
s,@srcdir@,$ac_srcdir,;t t
27644
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
27645
 
s,@top_srcdir@,$ac_top_srcdir,;t t
27646
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27647
 
s,@builddir@,$ac_builddir,;t t
27648
 
s,@abs_builddir@,$ac_abs_builddir,;t t
27649
 
s,@top_builddir@,$ac_top_builddir,;t t
27650
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27651
 
s,@INSTALL@,$ac_INSTALL,;t t
27652
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27653
 
  rm -f $tmp/stdin
27654
 
  if test x"$ac_file" != x-; then
27655
 
    mv $tmp/out $ac_file
27656
 
  else
27657
 
    cat $tmp/out
27658
 
    rm -f $tmp/out
27659
 
  fi
27660
 
 
27661
 
done
 
37756
s&@configure_input@&$configure_input&;t t
 
37757
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
37758
s&@srcdir@&$ac_srcdir&;t t
 
37759
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
37760
s&@top_srcdir@&$ac_top_srcdir&;t t
 
37761
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
37762
s&@builddir@&$ac_builddir&;t t
 
37763
s&@abs_builddir@&$ac_abs_builddir&;t t
 
37764
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
37765
s&@INSTALL@&$ac_INSTALL&;t t
 
37766
$ac_datarootdir_hack
 
37767
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
37768
 
 
37769
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
37770
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
37771
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
37772
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
37773
which seems to be undefined.  Please make sure it is defined." >&5
 
37774
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
37775
which seems to be undefined.  Please make sure it is defined." >&2;}
 
37776
 
 
37777
  rm -f "$tmp/stdin"
 
37778
  case $ac_file in
 
37779
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
37780
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
37781
  esac
 
37782
 ;;
 
37783
  :H)
 
37784
  #
 
37785
  # CONFIG_HEADER
 
37786
  #
27662
37787
_ACEOF
27663
 
cat >>$CONFIG_STATUS <<\_ACEOF
27664
 
 
27665
 
#
27666
 
# CONFIG_HEADER section.
27667
 
#
27668
 
 
27669
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27670
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
27671
 
#
27672
 
# ac_d sets the value in "#define NAME VALUE" lines.
27673
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27674
 
ac_dB='[         ].*$,\1#\2'
 
37788
 
 
37789
# Transform confdefs.h into a sed script `conftest.defines', that
 
37790
# substitutes the proper values into config.h.in to produce config.h.
 
37791
rm -f conftest.defines conftest.tail
 
37792
# First, append a space to every undef/define line, to ease matching.
 
37793
echo 's/$/ /' >conftest.defines
 
37794
# Then, protect against being on the right side of a sed subst, or in
 
37795
# an unquoted here document, in config.status.  If some macros were
 
37796
# called several times there might be several #defines for the same
 
37797
# symbol, which is useless.  But do not sort them, since the last
 
37798
# AC_DEFINE must be honored.
 
37799
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
37800
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
37801
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
37802
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
37803
# just an empty string.
 
37804
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
37805
ac_dB='\\)[      (].*,\\1define\\2'
27675
37806
ac_dC=' '
27676
 
ac_dD=',;t'
27677
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27678
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27679
 
ac_uB='$,\1#\2define\3'
27680
 
ac_uC=' '
27681
 
ac_uD=',;t'
27682
 
 
27683
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27684
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27685
 
  case $ac_file in
27686
 
  - | *:- | *:-:* ) # input from stdin
27687
 
        cat >$tmp/stdin
27688
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27689
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27690
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27691
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27692
 
  * )   ac_file_in=$ac_file.in ;;
27693
 
  esac
27694
 
 
27695
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27696
 
echo "$as_me: creating $ac_file" >&6;}
27697
 
 
27698
 
  # First look for the input files in the build tree, otherwise in the
27699
 
  # src tree.
27700
 
  ac_file_inputs=`IFS=:
27701
 
    for f in $ac_file_in; do
27702
 
      case $f in
27703
 
      -) echo $tmp/stdin ;;
27704
 
      [\\/$]*)
27705
 
         # Absolute (can't be DOS-style, as IFS=:)
27706
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27707
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27708
 
   { (exit 1); exit 1; }; }
27709
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
27710
 
         echo "$f";;
27711
 
      *) # Relative
27712
 
         if test -f "$f"; then
27713
 
           # Build tree
27714
 
           echo "$f"
27715
 
         elif test -f "$srcdir/$f"; then
27716
 
           # Source tree
27717
 
           echo "$srcdir/$f"
27718
 
         else
27719
 
           # /dev/null tree
27720
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27721
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27722
 
   { (exit 1); exit 1; }; }
27723
 
         fi;;
27724
 
      esac
27725
 
    done` || { (exit 1); exit 1; }
27726
 
  # Remove the trailing spaces.
27727
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27728
 
 
27729
 
_ACEOF
27730
 
 
27731
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
27732
 
# `conftest.undefs', that substitutes the proper values into
27733
 
# config.h.in to produce config.h.  The first handles `#define'
27734
 
# templates, and the second `#undef' templates.
27735
 
# And first: Protect against being on the right side of a sed subst in
27736
 
# config.status.  Protect against being in an unquoted here document
27737
 
# in config.status.
27738
 
rm -f conftest.defines conftest.undefs
27739
 
# Using a here document instead of a string reduces the quoting nightmare.
27740
 
# Putting comments in sed scripts is not portable.
27741
 
#
27742
 
# `end' is used to avoid that the second main sed command (meant for
27743
 
# 0-ary CPP macros) applies to n-ary macro definitions.
27744
 
# See the Autoconf documentation for `clear'.
27745
 
cat >confdef2sed.sed <<\_ACEOF
27746
 
s/[\\&,]/\\&/g
27747
 
s,[\\$`],\\&,g
27748
 
t clear
27749
 
: clear
27750
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27751
 
t end
27752
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27753
 
: end
27754
 
_ACEOF
27755
 
# If some macros were called several times there might be several times
27756
 
# the same #defines, which is useless.  Nevertheless, we may not want to
27757
 
# sort them, since we want the *last* AC-DEFINE to be honored.
27758
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27759
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27760
 
rm -f confdef2sed.sed
27761
 
 
27762
 
# This sed command replaces #undef with comments.  This is necessary, for
 
37807
ac_dD=' ,'
 
37808
 
 
37809
uniq confdefs.h |
 
37810
  sed -n '
 
37811
        t rset
 
37812
        :rset
 
37813
        s/^[     ]*#[    ]*define[       ][      ]*//
 
37814
        t ok
 
37815
        d
 
37816
        :ok
 
37817
        s/[\\&,]/\\&/g
 
37818
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
37819
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
37820
  ' >>conftest.defines
 
37821
 
 
37822
# Remove the space that was appended to ease matching.
 
37823
# Then replace #undef with comments.  This is necessary, for
27763
37824
# example, in the case of _POSIX_SOURCE, which is predefined and required
27764
37825
# on some systems where configure will not decide to define it.
27765
 
cat >>conftest.undefs <<\_ACEOF
27766
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
37826
# (The regexp can be short, since the line contains either #define or #undef.)
 
37827
echo 's/ $//
 
37828
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
37829
 
 
37830
# Break up conftest.defines:
 
37831
ac_max_sed_lines=50
 
37832
 
 
37833
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
37834
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
37835
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
37836
# et cetera.
 
37837
ac_in='$ac_file_inputs'
 
37838
ac_out='"$tmp/out1"'
 
37839
ac_nxt='"$tmp/out2"'
 
37840
 
 
37841
while :
 
37842
do
 
37843
  # Write a here document:
 
37844
    cat >>$CONFIG_STATUS <<_ACEOF
 
37845
    # First, check the format of the line:
 
37846
    cat >"\$tmp/defines.sed" <<\\CEOF
 
37847
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
37848
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
37849
b
 
37850
:def
27767
37851
_ACEOF
27768
 
 
27769
 
# Break up conftest.defines because some shells have a limit on the size
27770
 
# of here documents, and old seds have small limits too (100 cmds).
27771
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27772
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27773
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27774
 
echo '  :' >>$CONFIG_STATUS
27775
 
rm -f conftest.tail
27776
 
while grep . conftest.defines >/dev/null
27777
 
do
27778
 
  # Write a limited-size here document to $tmp/defines.sed.
27779
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27780
 
  # Speed up: don't consider the non `#define' lines.
27781
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27782
 
  # Work around the forget-to-reset-the-flag bug.
27783
 
  echo 't clr' >>$CONFIG_STATUS
27784
 
  echo ': clr' >>$CONFIG_STATUS
27785
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
37852
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27786
37853
  echo 'CEOF
27787
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
27788
 
  rm -f $tmp/in
27789
 
  mv $tmp/out $tmp/in
27790
 
' >>$CONFIG_STATUS
27791
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
37854
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
37855
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
37856
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
37857
  grep . conftest.tail >/dev/null || break
27792
37858
  rm -f conftest.defines
27793
37859
  mv conftest.tail conftest.defines
27794
37860
done
27795
 
rm -f conftest.defines
27796
 
echo '  fi # grep' >>$CONFIG_STATUS
27797
 
echo >>$CONFIG_STATUS
27798
 
 
27799
 
# Break up conftest.undefs because some shells have a limit on the size
27800
 
# of here documents, and old seds have small limits too (100 cmds).
27801
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27802
 
rm -f conftest.tail
27803
 
while grep . conftest.undefs >/dev/null
27804
 
do
27805
 
  # Write a limited-size here document to $tmp/undefs.sed.
27806
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27807
 
  # Speed up: don't consider the non `#undef'
27808
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27809
 
  # Work around the forget-to-reset-the-flag bug.
27810
 
  echo 't clr' >>$CONFIG_STATUS
27811
 
  echo ': clr' >>$CONFIG_STATUS
27812
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27813
 
  echo 'CEOF
27814
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27815
 
  rm -f $tmp/in
27816
 
  mv $tmp/out $tmp/in
27817
 
' >>$CONFIG_STATUS
27818
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27819
 
  rm -f conftest.undefs
27820
 
  mv conftest.tail conftest.undefs
27821
 
done
27822
 
rm -f conftest.undefs
27823
 
 
 
37861
rm -f conftest.defines conftest.tail
 
37862
 
 
37863
echo "ac_result=$ac_in" >>$CONFIG_STATUS
27824
37864
cat >>$CONFIG_STATUS <<\_ACEOF
27825
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
27826
 
  # use $as_me), people would be surprised to read:
27827
 
  #    /* config.h.  Generated by config.status.  */
27828
 
  if test x"$ac_file" = x-; then
27829
 
    echo "/* Generated by configure.  */" >$tmp/config.h
27830
 
  else
27831
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27832
 
  fi
27833
 
  cat $tmp/in >>$tmp/config.h
27834
 
  rm -f $tmp/in
27835
37865
  if test x"$ac_file" != x-; then
27836
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
37866
    echo "/* $configure_input  */" >"$tmp/config.h"
 
37867
    cat "$ac_result" >>"$tmp/config.h"
 
37868
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27837
37869
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27838
37870
echo "$as_me: $ac_file is unchanged" >&6;}
27839
37871
    else
27840
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27841
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27842
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
27843
 
         X"$ac_file" : 'X\(//\)$' \| \
27844
 
         X"$ac_file" : 'X\(/\)' \| \
27845
 
         .     : '\(.\)' 2>/dev/null ||
27846
 
echo X"$ac_file" |
27847
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27848
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27849
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27850
 
          /^X\(\/\).*/{ s//\1/; q; }
27851
 
          s/.*/./; q'`
27852
 
      { if $as_mkdir_p; then
27853
 
    mkdir -p "$ac_dir"
27854
 
  else
27855
 
    as_dir="$ac_dir"
27856
 
    as_dirs=
27857
 
    while test ! -d "$as_dir"; do
27858
 
      as_dirs="$as_dir $as_dirs"
27859
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27860
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27861
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
27862
 
         X"$as_dir" : 'X\(//\)$' \| \
27863
 
         X"$as_dir" : 'X\(/\)' \| \
27864
 
         .     : '\(.\)' 2>/dev/null ||
27865
 
echo X"$as_dir" |
27866
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27867
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27868
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27869
 
          /^X\(\/\).*/{ s//\1/; q; }
27870
 
          s/.*/./; q'`
27871
 
    done
27872
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27873
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27874
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27875
 
   { (exit 1); exit 1; }; }; }
27876
 
 
27877
37872
      rm -f $ac_file
27878
 
      mv $tmp/config.h $ac_file
 
37873
      mv "$tmp/config.h" $ac_file
27879
37874
    fi
27880
37875
  else
27881
 
    cat $tmp/config.h
27882
 
    rm -f $tmp/config.h
 
37876
    echo "/* $configure_input  */"
 
37877
    cat "$ac_result"
27883
37878
  fi
 
37879
  rm -f "$tmp/out12"
27884
37880
# Compute $ac_file's index in $config_headers.
27885
37881
_am_stamp_count=1
27886
37882
for _am_header in $config_headers :; do
27891
37887
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27892
37888
  esac
27893
37889
done
27894
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
37890
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27895
37891
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27896
37892
         X$ac_file : 'X\(//\)[^/]' \| \
27897
37893
         X$ac_file : 'X\(//\)$' \| \
27898
 
         X$ac_file : 'X\(/\)' \| \
27899
 
         .     : '\(.\)' 2>/dev/null ||
 
37894
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27900
37895
echo X$ac_file |
27901
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27902
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27903
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27904
 
          /^X\(\/\).*/{ s//\1/; q; }
27905
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
27906
 
done
27907
 
_ACEOF
27908
 
cat >>$CONFIG_STATUS <<\_ACEOF
27909
 
 
27910
 
#
27911
 
# CONFIG_COMMANDS section.
27912
 
#
27913
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27914
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27915
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27916
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27917
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27918
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
27919
 
         X"$ac_dest" : 'X\(//\)$' \| \
27920
 
         X"$ac_dest" : 'X\(/\)' \| \
27921
 
         .     : '\(.\)' 2>/dev/null ||
27922
 
echo X"$ac_dest" |
27923
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27924
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27925
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27926
 
          /^X\(\/\).*/{ s//\1/; q; }
27927
 
          s/.*/./; q'`
27928
 
  { if $as_mkdir_p; then
27929
 
    mkdir -p "$ac_dir"
27930
 
  else
27931
 
    as_dir="$ac_dir"
27932
 
    as_dirs=
27933
 
    while test ! -d "$as_dir"; do
27934
 
      as_dirs="$as_dir $as_dirs"
27935
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27936
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27937
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
27938
 
         X"$as_dir" : 'X\(//\)$' \| \
27939
 
         X"$as_dir" : 'X\(/\)' \| \
27940
 
         .     : '\(.\)' 2>/dev/null ||
27941
 
echo X"$as_dir" |
27942
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27943
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27944
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27945
 
          /^X\(\/\).*/{ s//\1/; q; }
27946
 
          s/.*/./; q'`
27947
 
    done
27948
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27949
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27950
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27951
 
   { (exit 1); exit 1; }; }; }
27952
 
 
27953
 
  ac_builddir=.
27954
 
 
27955
 
if test "$ac_dir" != .; then
27956
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27957
 
  # A "../" for each directory in $ac_dir_suffix.
27958
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27959
 
else
27960
 
  ac_dir_suffix= ac_top_builddir=
27961
 
fi
27962
 
 
27963
 
case $srcdir in
27964
 
  .)  # No --srcdir option.  We are building in place.
27965
 
    ac_srcdir=.
27966
 
    if test -z "$ac_top_builddir"; then
27967
 
       ac_top_srcdir=.
27968
 
    else
27969
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27970
 
    fi ;;
27971
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
27972
 
    ac_srcdir=$srcdir$ac_dir_suffix;
27973
 
    ac_top_srcdir=$srcdir ;;
27974
 
  *) # Relative path.
27975
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27976
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27977
 
esac
27978
 
 
27979
 
# Do not use `cd foo && pwd` to compute absolute paths, because
27980
 
# the directories may not exist.
27981
 
case `pwd` in
27982
 
.) ac_abs_builddir="$ac_dir";;
27983
 
*)
27984
 
  case "$ac_dir" in
27985
 
  .) ac_abs_builddir=`pwd`;;
27986
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27987
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27988
 
  esac;;
27989
 
esac
27990
 
case $ac_abs_builddir in
27991
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27992
 
*)
27993
 
  case ${ac_top_builddir}. in
27994
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27995
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27996
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27997
 
  esac;;
27998
 
esac
27999
 
case $ac_abs_builddir in
28000
 
.) ac_abs_srcdir=$ac_srcdir;;
28001
 
*)
28002
 
  case $ac_srcdir in
28003
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
28004
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28005
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28006
 
  esac;;
28007
 
esac
28008
 
case $ac_abs_builddir in
28009
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
28010
 
*)
28011
 
  case $ac_top_srcdir in
28012
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
28013
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28014
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28015
 
  esac;;
28016
 
esac
28017
 
 
28018
 
 
28019
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28020
 
echo "$as_me: executing $ac_dest commands" >&6;}
28021
 
  case $ac_dest in
28022
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
37896
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37897
            s//\1/
 
37898
            q
 
37899
          }
 
37900
          /^X\(\/\/\)[^/].*/{
 
37901
            s//\1/
 
37902
            q
 
37903
          }
 
37904
          /^X\(\/\/\)$/{
 
37905
            s//\1/
 
37906
            q
 
37907
          }
 
37908
          /^X\(\/\).*/{
 
37909
            s//\1/
 
37910
            q
 
37911
          }
 
37912
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
37913
 ;;
 
37914
 
 
37915
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
37916
echo "$as_me: executing $ac_file commands" >&6;}
 
37917
 ;;
 
37918
  esac
 
37919
 
 
37920
 
 
37921
  case $ac_file$ac_mode in
 
37922
    "default-1":C)
 
37923
    for ac_file in $CONFIG_FILES; do
 
37924
      # Support "outfile[:infile[:infile...]]"
 
37925
      case "$ac_file" in
 
37926
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
37927
      esac
 
37928
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
37929
      case "$ac_file" in */Makefile.in)
 
37930
        # Adjust a relative srcdir.
 
37931
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
37932
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
37933
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
37934
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
37935
        # In autoconf-2.50 it is called $srcdir.
 
37936
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
37937
        case "$ac_given_srcdir" in
 
37938
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
37939
          /*) top_srcdir="$ac_given_srcdir" ;;
 
37940
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
37941
        esac
 
37942
        # Treat a directory as a PO directory if and only if it has a
 
37943
        # POTFILES.in file. This allows packages to have multiple PO
 
37944
        # directories under different names or in different locations.
 
37945
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
37946
          rm -f "$ac_dir/POTFILES"
 
37947
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
37948
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
37949
          POMAKEFILEDEPS="POTFILES.in"
 
37950
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
37951
          # on $ac_dir but don't depend on user-specified configuration
 
37952
          # parameters.
 
37953
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
37954
            # The LINGUAS file contains the set of available languages.
 
37955
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
37956
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
37957
            fi
 
37958
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
37959
            # Hide the ALL_LINGUAS assigment from automake.
 
37960
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
37961
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
37962
          else
 
37963
            # The set of available languages was given in configure.in.
 
37964
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
37965
          fi
 
37966
          # Compute POFILES
 
37967
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
37968
          # Compute UPDATEPOFILES
 
37969
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
37970
          # Compute DUMMYPOFILES
 
37971
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
37972
          # Compute GMOFILES
 
37973
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
37974
          case "$ac_given_srcdir" in
 
37975
            .) srcdirpre= ;;
 
37976
            *) srcdirpre='$(srcdir)/' ;;
 
37977
          esac
 
37978
          POFILES=
 
37979
          UPDATEPOFILES=
 
37980
          DUMMYPOFILES=
 
37981
          GMOFILES=
 
37982
          for lang in $ALL_LINGUAS; do
 
37983
            POFILES="$POFILES $srcdirpre$lang.po"
 
37984
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
37985
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
37986
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
37987
          done
 
37988
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
37989
          # environment variable.
 
37990
          INST_LINGUAS=
 
37991
          if test -n "$ALL_LINGUAS"; then
 
37992
            for presentlang in $ALL_LINGUAS; do
 
37993
              useit=no
 
37994
              if test "%UNSET%" != "$LINGUAS"; then
 
37995
                desiredlanguages="$LINGUAS"
 
37996
              else
 
37997
                desiredlanguages="$ALL_LINGUAS"
 
37998
              fi
 
37999
              for desiredlang in $desiredlanguages; do
 
38000
                # Use the presentlang catalog if desiredlang is
 
38001
                #   a. equal to presentlang, or
 
38002
                #   b. a variant of presentlang (because in this case,
 
38003
                #      presentlang can be used as a fallback for messages
 
38004
                #      which are not translated in the desiredlang catalog).
 
38005
                case "$desiredlang" in
 
38006
                  "$presentlang"*) useit=yes;;
 
38007
                esac
 
38008
              done
 
38009
              if test $useit = yes; then
 
38010
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
38011
              fi
 
38012
            done
 
38013
          fi
 
38014
          CATALOGS=
 
38015
          if test -n "$INST_LINGUAS"; then
 
38016
            for lang in $INST_LINGUAS; do
 
38017
              CATALOGS="$CATALOGS $lang.gmo"
 
38018
            done
 
38019
          fi
 
38020
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
38021
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
38022
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
38023
            if test -f "$f"; then
 
38024
              case "$f" in
 
38025
                *.orig | *.bak | *~) ;;
 
38026
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
38027
              esac
 
38028
            fi
 
38029
          done
 
38030
        fi
 
38031
        ;;
 
38032
      esac
 
38033
    done ;;
 
38034
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28023
38035
  # Strip MF so we end up with the name of the file.
28024
38036
  mf=`echo "$mf" | sed -e 's/:.*$//'`
28025
38037
  # Check whether this is an Automake generated Makefile or not.
28029
38041
  # each Makefile.in and add a new line on top of each file to say so.
28030
38042
  # So let's grep whole file.
28031
38043
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28032
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
38044
    dirpart=`$as_dirname -- "$mf" ||
28033
38045
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28034
38046
         X"$mf" : 'X\(//\)[^/]' \| \
28035
38047
         X"$mf" : 'X\(//\)$' \| \
28036
 
         X"$mf" : 'X\(/\)' \| \
28037
 
         .     : '\(.\)' 2>/dev/null ||
 
38048
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28038
38049
echo X"$mf" |
28039
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28040
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28041
 
          /^X\(\/\/\)$/{ s//\1/; q; }
28042
 
          /^X\(\/\).*/{ s//\1/; q; }
28043
 
          s/.*/./; q'`
 
38050
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
38051
            s//\1/
 
38052
            q
 
38053
          }
 
38054
          /^X\(\/\/\)[^/].*/{
 
38055
            s//\1/
 
38056
            q
 
38057
          }
 
38058
          /^X\(\/\/\)$/{
 
38059
            s//\1/
 
38060
            q
 
38061
          }
 
38062
          /^X\(\/\).*/{
 
38063
            s//\1/
 
38064
            q
 
38065
          }
 
38066
          s/.*/./; q'`
28044
38067
  else
28045
38068
    continue
28046
38069
  fi
28062
38085
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28063
38086
    # Make sure the directory exists.
28064
38087
    test -f "$dirpart/$file" && continue
28065
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
38088
    fdir=`$as_dirname -- "$file" ||
28066
38089
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28067
38090
         X"$file" : 'X\(//\)[^/]' \| \
28068
38091
         X"$file" : 'X\(//\)$' \| \
28069
 
         X"$file" : 'X\(/\)' \| \
28070
 
         .     : '\(.\)' 2>/dev/null ||
 
38092
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28071
38093
echo X"$file" |
28072
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28073
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28074
 
          /^X\(\/\/\)$/{ s//\1/; q; }
28075
 
          /^X\(\/\).*/{ s//\1/; q; }
28076
 
          s/.*/./; q'`
28077
 
    { if $as_mkdir_p; then
28078
 
    mkdir -p $dirpart/$fdir
28079
 
  else
28080
 
    as_dir=$dirpart/$fdir
 
38094
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
38095
            s//\1/
 
38096
            q
 
38097
          }
 
38098
          /^X\(\/\/\)[^/].*/{
 
38099
            s//\1/
 
38100
            q
 
38101
          }
 
38102
          /^X\(\/\/\)$/{
 
38103
            s//\1/
 
38104
            q
 
38105
          }
 
38106
          /^X\(\/\).*/{
 
38107
            s//\1/
 
38108
            q
 
38109
          }
 
38110
          s/.*/./; q'`
 
38111
    { as_dir=$dirpart/$fdir
 
38112
  case $as_dir in #(
 
38113
  -*) as_dir=./$as_dir;;
 
38114
  esac
 
38115
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28081
38116
    as_dirs=
28082
 
    while test ! -d "$as_dir"; do
28083
 
      as_dirs="$as_dir $as_dirs"
28084
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
38117
    while :; do
 
38118
      case $as_dir in #(
 
38119
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
38120
      *) as_qdir=$as_dir;;
 
38121
      esac
 
38122
      as_dirs="'$as_qdir' $as_dirs"
 
38123
      as_dir=`$as_dirname -- "$as_dir" ||
28085
38124
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28086
38125
         X"$as_dir" : 'X\(//\)[^/]' \| \
28087
38126
         X"$as_dir" : 'X\(//\)$' \| \
28088
 
         X"$as_dir" : 'X\(/\)' \| \
28089
 
         .     : '\(.\)' 2>/dev/null ||
 
38127
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28090
38128
echo X"$as_dir" |
28091
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28092
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28093
 
          /^X\(\/\/\)$/{ s//\1/; q; }
28094
 
          /^X\(\/\).*/{ s//\1/; q; }
28095
 
          s/.*/./; q'`
 
38129
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
38130
            s//\1/
 
38131
            q
 
38132
          }
 
38133
          /^X\(\/\/\)[^/].*/{
 
38134
            s//\1/
 
38135
            q
 
38136
          }
 
38137
          /^X\(\/\/\)$/{
 
38138
            s//\1/
 
38139
            q
 
38140
          }
 
38141
          /^X\(\/\).*/{
 
38142
            s//\1/
 
38143
            q
 
38144
          }
 
38145
          s/.*/./; q'`
 
38146
      test -d "$as_dir" && break
28096
38147
    done
28097
 
    test ! -n "$as_dirs" || mkdir $as_dirs
28098
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28099
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
38148
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
38149
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
38150
echo "$as_me: error: cannot create directory $as_dir" >&2;}
28100
38151
   { (exit 1); exit 1; }; }; }
28101
 
 
28102
38152
    # echo "creating $dirpart/$file"
28103
38153
    echo '# dummy' > "$dirpart/$file"
28104
38154
  done
28105
38155
done
28106
38156
 ;;
 
38157
 
28107
38158
  esac
28108
 
done
28109
 
_ACEOF
 
38159
done # for ac_tag
28110
38160
 
28111
 
cat >>$CONFIG_STATUS <<\_ACEOF
28112
38161
 
28113
38162
{ (exit 0); exit 0; }
28114
38163
_ACEOF