~ubuntu-branches/ubuntu/raring/exif/raring

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2008-03-31 19:39:44 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080331193944-xndxlofl9m7h7a83
Tags: 0.6.15-5
* Adopt the package within pkg-phototools:
  - Set the Maintainer to the group
  - Add Frederic Peters and myself as Uploaders.
  - Add Vcs-Browser and Vcs-Git fields accordingly.
* debian/control:
  - Add a Homepage field.
  - Update Standards-Version to 3.7.3
  - Fix build dep version for libexif-dev.
  - Add build dep on quilt for patches extracted from package diff.
  - Add build dep on gettext for swedish translation.
* debian/copyright:
  - convert file to utf-8.
  - Point to LGPL-2 rather than just LGPL, which now points to
    LGPL-3.
* debian/rules
  - Fix autotools timestamp issues which causes FTBFS (closes: #445609)
  - Fix lintian 'clean error' warning.
* debian/patches
  - Extract swedish translation patch from package diff (cf. bug 397370).
  - Extract patch related to default ifd from package diff (cf. bug 428255).
  - Extract patch related to manpage improvements from package diff (cf.
    bugs 320497 and 321855).

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.
4
 
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.61 for libexif command line interface 0.6.15.
 
4
#
 
5
# Report bugs to <libexif-devel@lists.sourceforge.net>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
9
# This configure script is free software; the Free Software Foundation
7
10
# gives unlimited permission to copy, distribute and modify it.
8
11
## --------------------- ##
9
12
## M4sh Initialization.  ##
10
13
## --------------------- ##
11
14
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
 
15
# Be more Bourne compatible
22
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
23
54
 
24
55
# Support unset when possible.
25
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
60
fi
30
61
 
31
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
32
96
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
34
100
PS1='$ '
35
101
PS2='> '
36
102
PS4='+ '
44
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
111
    eval $as_var=C; export $as_var
46
112
  else
47
 
    $as_unset $as_var
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48
114
  fi
49
115
done
50
116
 
51
117
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
120
  as_expr=expr
54
121
else
55
122
  as_expr=false
56
123
fi
57
124
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
126
  as_basename=basename
60
127
else
61
128
  as_basename=false
63
130
 
64
131
 
65
132
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
133
as_me=`$as_basename -- "$0" ||
67
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
135
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
137
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
130
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
225
do
133
226
  IFS=$as_save_IFS
134
227
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
 
228
  case $as_dir in
137
229
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
152
234
done
153
 
;;
154
 
  esac
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
429
 
156
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
162
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
165
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
166
449
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
452
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
453
      s/-\n.*//
173
454
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
 
455
  chmod +x "$as_me.lineno" ||
175
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
457
   { (exit 1); exit 1; }; }
177
458
 
178
459
  # Don't try to exec as it changes $[0], causing all sort of problems
179
460
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
182
463
  # Exit status is that of the last command.
183
464
  exit
184
465
}
185
466
 
186
467
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
192
483
esac
193
484
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
487
  as_expr=expr
196
488
else
197
489
  as_expr=false
198
490
fi
199
491
 
200
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
201
499
echo >conf$$.file
202
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207
507
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
508
elif ln conf$$.file conf$$ 2>/dev/null; then
212
509
  as_ln_s=ln
213
510
else
214
511
  as_ln_s='cp -p'
215
512
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
217
515
 
218
516
if mkdir -p . 2>/dev/null; then
219
517
  as_mkdir_p=:
222
520
  as_mkdir_p=false
223
521
fi
224
522
 
225
 
as_executable_p="test -f"
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
226
545
 
227
546
# Sed expression to map a string onto a valid CPP name.
228
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
551
 
233
552
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
553
 
244
554
 
245
555
# Check that we are running under the correct shell.
278
588
 
279
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
590
# if CDPATH is set.
281
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
592
 
283
593
if test -z "$ECHO"; then
284
594
if test "X${echo_test_string+set}" != Xset; then
285
595
# find a string as large as possible, as long as the shell can cope with it
286
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
290
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
601
    then
292
602
      break
395
705
 
396
706
tagnames=${tagnames+${tagnames},}F77
397
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
398
710
# Name of the host.
399
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
712
# so uname gets run too.
401
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
714
 
403
 
exec 6>&1
404
 
 
405
715
#
406
716
# Initializations.
407
717
#
408
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
409
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
410
722
cross_compiling=no
411
723
subdirs=
412
724
MFLAGS=
413
725
MAKEFLAGS=
414
726
SHELL=${CONFIG_SHELL-/bin/sh}
415
727
 
416
 
# Maximum number of lines to put in a shell here document.
417
 
# This variable seems obsolete.  It should probably be removed, and
418
 
# only ac_max_sed_lines should be used.
419
 
: ${ac_max_here_lines=38}
420
 
 
421
728
# Identity of this package.
422
 
PACKAGE_NAME=
423
 
PACKAGE_TARNAME=
424
 
PACKAGE_VERSION=
425
 
PACKAGE_STRING=
426
 
PACKAGE_BUGREPORT=
 
729
PACKAGE_NAME='libexif command line interface'
 
730
PACKAGE_TARNAME='exif'
 
731
PACKAGE_VERSION='0.6.15'
 
732
PACKAGE_STRING='libexif command line interface 0.6.15'
 
733
PACKAGE_BUGREPORT='libexif-devel@lists.sourceforge.net'
427
734
 
428
735
ac_unique_file="exif/main.c"
429
736
# Factoring default headers for most tests.
430
737
ac_includes_default="\
431
738
#include <stdio.h>
432
 
#if HAVE_SYS_TYPES_H
 
739
#ifdef HAVE_SYS_TYPES_H
433
740
# include <sys/types.h>
434
741
#endif
435
 
#if HAVE_SYS_STAT_H
 
742
#ifdef HAVE_SYS_STAT_H
436
743
# include <sys/stat.h>
437
744
#endif
438
 
#if STDC_HEADERS
 
745
#ifdef STDC_HEADERS
439
746
# include <stdlib.h>
440
747
# include <stddef.h>
441
748
#else
442
 
# if HAVE_STDLIB_H
 
749
# ifdef HAVE_STDLIB_H
443
750
#  include <stdlib.h>
444
751
# endif
445
752
#endif
446
 
#if HAVE_STRING_H
447
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
448
755
#  include <memory.h>
449
756
# endif
450
757
# include <string.h>
451
758
#endif
452
 
#if HAVE_STRINGS_H
 
759
#ifdef HAVE_STRINGS_H
453
760
# include <strings.h>
454
761
#endif
455
 
#if HAVE_INTTYPES_H
 
762
#ifdef HAVE_INTTYPES_H
456
763
# include <inttypes.h>
457
 
#else
458
 
# if HAVE_STDINT_H
459
 
#  include <stdint.h>
460
 
# endif
461
 
#endif
462
 
#if HAVE_UNISTD_H
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
463
769
# include <unistd.h>
464
770
#endif"
465
771
 
466
 
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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 PKG_CONFIG MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LIBEXIF_CFLAGS LIBEXIF_LIBS HAVE_POPT_TRUE HAVE_POPT_FALSE POPT_LIBS POPT_CFLAGS LIBOBJS LTLIBOBJS'
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
am__isrc
 
813
CYGPATH_W
 
814
PACKAGE
 
815
VERSION
 
816
ACLOCAL
 
817
AUTOCONF
 
818
AUTOMAKE
 
819
AUTOHEADER
 
820
MAKEINFO
 
821
install_sh
 
822
STRIP
 
823
INSTALL_STRIP_PROGRAM
 
824
mkdir_p
 
825
AWK
 
826
SET_MAKE
 
827
am__leading_dot
 
828
AMTAR
 
829
am__tar
 
830
am__untar
 
831
CC
 
832
CFLAGS
 
833
LDFLAGS
 
834
CPPFLAGS
 
835
ac_ct_CC
 
836
EXEEXT
 
837
OBJEXT
 
838
DEPDIR
 
839
am__include
 
840
am__quote
 
841
AMDEP_TRUE
 
842
AMDEP_FALSE
 
843
AMDEPBACKSLASH
 
844
CCDEPMODE
 
845
am__fastdepCC_TRUE
 
846
am__fastdepCC_FALSE
 
847
build
 
848
build_cpu
 
849
build_vendor
 
850
build_os
 
851
host
 
852
host_cpu
 
853
host_vendor
 
854
host_os
 
855
SED
 
856
GREP
 
857
EGREP
 
858
LN_S
 
859
ECHO
 
860
AR
 
861
RANLIB
 
862
CPP
 
863
CXX
 
864
CXXFLAGS
 
865
ac_ct_CXX
 
866
CXXDEPMODE
 
867
am__fastdepCXX_TRUE
 
868
am__fastdepCXX_FALSE
 
869
CXXCPP
 
870
F77
 
871
FFLAGS
 
872
ac_ct_F77
 
873
LIBTOOL
 
874
PKG_CONFIG
 
875
PKG_CONFIG_PATH
 
876
GETTEXT_PACKAGE
 
877
MKINSTALLDIRS
 
878
USE_NLS
 
879
MSGFMT
 
880
GMSGFMT
 
881
XGETTEXT
 
882
MSGMERGE
 
883
LIBICONV
 
884
LTLIBICONV
 
885
INTLLIBS
 
886
LIBINTL
 
887
LTLIBINTL
 
888
POSUB
 
889
LIBEXIF_CFLAGS
 
890
LIBEXIF_LIBS
 
891
LIBEXIF_CONFIG_PROG
 
892
HAVE_LIBEXIF_TRUE
 
893
HAVE_LIBEXIF_FALSE
 
894
POPT_CFLAGS
 
895
POPT_LIBS
 
896
HAVE_POPT_TRUE
 
897
HAVE_POPT_FALSE
 
898
AM_CPPFLAGS
 
899
AM_LDFLAGS
 
900
LIBOBJS
 
901
LTLIBOBJS'
467
902
ac_subst_files=''
 
903
      ac_precious_vars='build_alias
 
904
host_alias
 
905
target_alias
 
906
CC
 
907
CFLAGS
 
908
LDFLAGS
 
909
LIBS
 
910
CPPFLAGS
 
911
CPP
 
912
CXX
 
913
CXXFLAGS
 
914
CCC
 
915
CXXCPP
 
916
F77
 
917
FFLAGS
 
918
PKG_CONFIG
 
919
PKG_CONFIG_PATH
 
920
LIBEXIF_CFLAGS
 
921
LIBEXIF_LIBS
 
922
POPT_CFLAGS
 
923
POPT_LIBS'
 
924
 
468
925
 
469
926
# Initialize some variables set by options.
470
927
ac_init_help=
491
948
# and all the variables that are supposed to be based on exec_prefix
492
949
# by default will actually change.
493
950
# Use braces instead of parens because sh, perl, etc. also accept them.
 
951
# (The list follows the same order as the GNU Coding Standards.)
494
952
bindir='${exec_prefix}/bin'
495
953
sbindir='${exec_prefix}/sbin'
496
954
libexecdir='${exec_prefix}/libexec'
497
 
datadir='${prefix}/share'
 
955
datarootdir='${prefix}/share'
 
956
datadir='${datarootdir}'
498
957
sysconfdir='${prefix}/etc'
499
958
sharedstatedir='${prefix}/com'
500
959
localstatedir='${prefix}/var'
501
 
libdir='${exec_prefix}/lib'
502
960
includedir='${prefix}/include'
503
961
oldincludedir='/usr/include'
504
 
infodir='${prefix}/info'
505
 
mandir='${prefix}/man'
 
962
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
963
infodir='${datarootdir}/info'
 
964
htmldir='${docdir}'
 
965
dvidir='${docdir}'
 
966
pdfdir='${docdir}'
 
967
psdir='${docdir}'
 
968
libdir='${exec_prefix}/lib'
 
969
localedir='${datarootdir}/locale'
 
970
mandir='${datarootdir}/man'
506
971
 
507
972
ac_prev=
 
973
ac_dashdash=
508
974
for ac_option
509
975
do
510
976
  # If the previous option needs an argument, assign it.
511
977
  if test -n "$ac_prev"; then
512
 
    eval "$ac_prev=\$ac_option"
 
978
    eval $ac_prev=\$ac_option
513
979
    ac_prev=
514
980
    continue
515
981
  fi
516
982
 
517
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
983
  case $ac_option in
 
984
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
985
  *)    ac_optarg=yes ;;
 
986
  esac
518
987
 
519
988
  # Accept the important Cygnus configure options, so we can diagnose typos.
520
989
 
521
 
  case $ac_option in
 
990
  case $ac_dashdash$ac_option in
 
991
  --)
 
992
    ac_dashdash=yes ;;
522
993
 
523
994
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524
995
    ac_prev=bindir ;;
540
1011
  --config-cache | -C)
541
1012
    cache_file=config.cache ;;
542
1013
 
543
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
1014
  -datadir | --datadir | --datadi | --datad)
544
1015
    ac_prev=datadir ;;
545
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
 
  | --da=*)
 
1016
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
547
1017
    datadir=$ac_optarg ;;
548
1018
 
 
1019
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1020
  | --dataroo | --dataro | --datar)
 
1021
    ac_prev=datarootdir ;;
 
1022
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1023
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1024
    datarootdir=$ac_optarg ;;
 
1025
 
549
1026
  -disable-* | --disable-*)
550
1027
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
1028
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1029
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
553
1030
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
1031
   { (exit 1); exit 1; }; }
555
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
 
    eval "enable_$ac_feature=no" ;;
 
1032
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1033
    eval enable_$ac_feature=no ;;
 
1034
 
 
1035
  -docdir | --docdir | --docdi | --doc | --do)
 
1036
    ac_prev=docdir ;;
 
1037
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1038
    docdir=$ac_optarg ;;
 
1039
 
 
1040
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1041
    ac_prev=dvidir ;;
 
1042
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1043
    dvidir=$ac_optarg ;;
557
1044
 
558
1045
  -enable-* | --enable-*)
559
1046
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
1047
    # Reject names that are not valid shell variable names.
561
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1048
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
562
1049
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
1050
   { (exit 1); exit 1; }; }
564
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565
 
    case $ac_option in
566
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567
 
      *) ac_optarg=yes ;;
568
 
    esac
569
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
1051
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1052
    eval enable_$ac_feature=\$ac_optarg ;;
570
1053
 
571
1054
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
1055
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593
1076
  -host=* | --host=* | --hos=* | --ho=*)
594
1077
    host_alias=$ac_optarg ;;
595
1078
 
 
1079
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1080
    ac_prev=htmldir ;;
 
1081
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1082
  | --ht=*)
 
1083
    htmldir=$ac_optarg ;;
 
1084
 
596
1085
  -includedir | --includedir | --includedi | --included | --include \
597
1086
  | --includ | --inclu | --incl | --inc)
598
1087
    ac_prev=includedir ;;
617
1106
  | --libexe=* | --libex=* | --libe=*)
618
1107
    libexecdir=$ac_optarg ;;
619
1108
 
 
1109
  -localedir | --localedir | --localedi | --localed | --locale)
 
1110
    ac_prev=localedir ;;
 
1111
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1112
    localedir=$ac_optarg ;;
 
1113
 
620
1114
  -localstatedir | --localstatedir | --localstatedi | --localstated \
621
 
  | --localstate | --localstat | --localsta | --localst \
622
 
  | --locals | --local | --loca | --loc | --lo)
 
1115
  | --localstate | --localstat | --localsta | --localst | --locals)
623
1116
    ac_prev=localstatedir ;;
624
1117
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1118
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
627
1119
    localstatedir=$ac_optarg ;;
628
1120
 
629
1121
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
688
1180
  | --progr-tra=* | --program-tr=* | --program-t=*)
689
1181
    program_transform_name=$ac_optarg ;;
690
1182
 
 
1183
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1184
    ac_prev=pdfdir ;;
 
1185
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1186
    pdfdir=$ac_optarg ;;
 
1187
 
 
1188
  -psdir | --psdir | --psdi | --psd | --ps)
 
1189
    ac_prev=psdir ;;
 
1190
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1191
    psdir=$ac_optarg ;;
 
1192
 
691
1193
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
1194
  | -silent | --silent | --silen | --sile | --sil)
693
1195
    silent=yes ;;
740
1242
  -with-* | --with-*)
741
1243
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
1244
    # Reject names that are not valid shell variable names.
743
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1245
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
744
1246
      { echo "$as_me: error: invalid package name: $ac_package" >&2
745
1247
   { (exit 1); exit 1; }; }
746
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
747
 
    case $ac_option in
748
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749
 
      *) ac_optarg=yes ;;
750
 
    esac
751
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1248
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1249
    eval with_$ac_package=\$ac_optarg ;;
752
1250
 
753
1251
  -without-* | --without-*)
754
1252
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
1253
    # Reject names that are not valid shell variable names.
756
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1254
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
757
1255
      { echo "$as_me: error: invalid package name: $ac_package" >&2
758
1256
   { (exit 1); exit 1; }; }
759
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
760
 
    eval "with_$ac_package=no" ;;
 
1257
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1258
    eval with_$ac_package=no ;;
761
1259
 
762
1260
  --x)
763
1261
    # Obsolete; use --with-x.
788
1286
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
1287
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
1288
   { (exit 1); exit 1; }; }
791
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
 
    eval "$ac_envvar='$ac_optarg'"
 
1289
    eval $ac_envvar=\$ac_optarg
793
1290
    export $ac_envvar ;;
794
1291
 
795
1292
  *)
809
1306
   { (exit 1); exit 1; }; }
810
1307
fi
811
1308
 
812
 
# Be sure to have absolute paths.
813
 
for ac_var in exec_prefix prefix
814
 
do
815
 
  eval ac_val=$`echo $ac_var`
816
 
  case $ac_val in
817
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
 
   { (exit 1); exit 1; }; };;
820
 
  esac
821
 
done
822
 
 
823
 
# Be sure to have absolute paths.
824
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
 
              localstatedir libdir includedir oldincludedir infodir mandir
826
 
do
827
 
  eval ac_val=$`echo $ac_var`
828
 
  case $ac_val in
829
 
    [\\/$]* | ?:[\\/]* ) ;;
830
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
 
   { (exit 1); exit 1; }; };;
832
 
  esac
 
1309
# Be sure to have absolute directory names.
 
1310
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1311
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1312
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1313
                libdir localedir mandir
 
1314
do
 
1315
  eval ac_val=\$$ac_var
 
1316
  case $ac_val in
 
1317
    [\\/$]* | ?:[\\/]* )  continue;;
 
1318
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1319
  esac
 
1320
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1321
   { (exit 1); exit 1; }; }
833
1322
done
834
1323
 
835
1324
# There might be people who depend on the old broken behavior: `$host'
856
1345
test "$silent" = yes && exec 6>/dev/null
857
1346
 
858
1347
 
 
1348
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1349
ac_ls_di=`ls -di .` &&
 
1350
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1351
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1352
   { (exit 1); exit 1; }; }
 
1353
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1354
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1355
   { (exit 1); exit 1; }; }
 
1356
 
 
1357
 
859
1358
# Find the source files, if location was not specified.
860
1359
if test -z "$srcdir"; then
861
1360
  ac_srcdir_defaulted=yes
862
 
  # Try the directory containing this script, then its parent.
863
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1361
  # Try the directory containing this script, then the parent directory.
 
1362
  ac_confdir=`$as_dirname -- "$0" ||
864
1363
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
1364
         X"$0" : 'X\(//\)[^/]' \| \
866
1365
         X"$0" : 'X\(//\)$' \| \
867
 
         X"$0" : 'X\(/\)' \| \
868
 
         .     : '\(.\)' 2>/dev/null ||
 
1366
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
869
1367
echo X"$0" |
870
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
 
          /^X\(\/\/\)$/{ s//\1/; q; }
873
 
          /^X\(\/\).*/{ s//\1/; q; }
874
 
          s/.*/./; q'`
 
1368
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1369
            s//\1/
 
1370
            q
 
1371
          }
 
1372
          /^X\(\/\/\)[^/].*/{
 
1373
            s//\1/
 
1374
            q
 
1375
          }
 
1376
          /^X\(\/\/\)$/{
 
1377
            s//\1/
 
1378
            q
 
1379
          }
 
1380
          /^X\(\/\).*/{
 
1381
            s//\1/
 
1382
            q
 
1383
          }
 
1384
          s/.*/./; q'`
875
1385
  srcdir=$ac_confdir
876
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1386
  if test ! -r "$srcdir/$ac_unique_file"; then
877
1387
    srcdir=..
878
1388
  fi
879
1389
else
880
1390
  ac_srcdir_defaulted=no
881
1391
fi
882
 
if test ! -r $srcdir/$ac_unique_file; then
883
 
  if test "$ac_srcdir_defaulted" = yes; then
884
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
 
   { (exit 1); exit 1; }; }
886
 
  else
887
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
 
   { (exit 1); exit 1; }; }
889
 
  fi
890
 
fi
891
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
 
   { (exit 1); exit 1; }; }
894
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
 
ac_env_build_alias_set=${build_alias+set}
896
 
ac_env_build_alias_value=$build_alias
897
 
ac_cv_env_build_alias_set=${build_alias+set}
898
 
ac_cv_env_build_alias_value=$build_alias
899
 
ac_env_host_alias_set=${host_alias+set}
900
 
ac_env_host_alias_value=$host_alias
901
 
ac_cv_env_host_alias_set=${host_alias+set}
902
 
ac_cv_env_host_alias_value=$host_alias
903
 
ac_env_target_alias_set=${target_alias+set}
904
 
ac_env_target_alias_value=$target_alias
905
 
ac_cv_env_target_alias_set=${target_alias+set}
906
 
ac_cv_env_target_alias_value=$target_alias
907
 
ac_env_CC_set=${CC+set}
908
 
ac_env_CC_value=$CC
909
 
ac_cv_env_CC_set=${CC+set}
910
 
ac_cv_env_CC_value=$CC
911
 
ac_env_CFLAGS_set=${CFLAGS+set}
912
 
ac_env_CFLAGS_value=$CFLAGS
913
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
 
ac_cv_env_CFLAGS_value=$CFLAGS
915
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
 
ac_env_LDFLAGS_value=$LDFLAGS
917
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
 
ac_env_CPPFLAGS_value=$CPPFLAGS
921
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
 
ac_env_CPP_set=${CPP+set}
924
 
ac_env_CPP_value=$CPP
925
 
ac_cv_env_CPP_set=${CPP+set}
926
 
ac_cv_env_CPP_value=$CPP
927
 
ac_env_CXX_set=${CXX+set}
928
 
ac_env_CXX_value=$CXX
929
 
ac_cv_env_CXX_set=${CXX+set}
930
 
ac_cv_env_CXX_value=$CXX
931
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
 
ac_env_CXXFLAGS_value=$CXXFLAGS
933
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
 
ac_env_CXXCPP_set=${CXXCPP+set}
936
 
ac_env_CXXCPP_value=$CXXCPP
937
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
 
ac_cv_env_CXXCPP_value=$CXXCPP
939
 
ac_env_F77_set=${F77+set}
940
 
ac_env_F77_value=$F77
941
 
ac_cv_env_F77_set=${F77+set}
942
 
ac_cv_env_F77_value=$F77
943
 
ac_env_FFLAGS_set=${FFLAGS+set}
944
 
ac_env_FFLAGS_value=$FFLAGS
945
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_cv_env_FFLAGS_value=$FFLAGS
 
1392
if test ! -r "$srcdir/$ac_unique_file"; then
 
1393
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1394
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1395
   { (exit 1); exit 1; }; }
 
1396
fi
 
1397
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1398
ac_abs_confdir=`(
 
1399
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1400
   { (exit 1); exit 1; }; }
 
1401
        pwd)`
 
1402
# When building in place, set srcdir=.
 
1403
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1404
  srcdir=.
 
1405
fi
 
1406
# Remove unnecessary trailing slashes from srcdir.
 
1407
# Double slashes in file names in object file debugging info
 
1408
# mess up M-x gdb in Emacs.
 
1409
case $srcdir in
 
1410
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1411
esac
 
1412
for ac_var in $ac_precious_vars; do
 
1413
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1414
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1415
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1416
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1417
done
947
1418
 
948
1419
#
949
1420
# Report the --help message.
952
1423
  # Omit some internal or obsolete options to make the list less imposing.
953
1424
  # This message is too long to be a string in the A/UX 3.1 sh.
954
1425
  cat <<_ACEOF
955
 
\`configure' configures this package to adapt to many kinds of systems.
 
1426
\`configure' configures libexif command line interface 0.6.15 to adapt to many kinds of systems.
956
1427
 
957
1428
Usage: $0 [OPTION]... [VAR=VALUE]...
958
1429
 
972
1443
  -n, --no-create         do not create output files
973
1444
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
1445
 
975
 
_ACEOF
976
 
 
977
 
  cat <<_ACEOF
978
1446
Installation directories:
979
1447
  --prefix=PREFIX         install architecture-independent files in PREFIX
980
1448
                          [$ac_default_prefix]
992
1460
  --bindir=DIR           user executables [EPREFIX/bin]
993
1461
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994
1462
  --libexecdir=DIR       program executables [EPREFIX/libexec]
995
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996
1463
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997
1464
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998
1465
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999
1466
  --libdir=DIR           object code libraries [EPREFIX/lib]
1000
1467
  --includedir=DIR       C header files [PREFIX/include]
1001
1468
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002
 
  --infodir=DIR          info documentation [PREFIX/info]
1003
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1469
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1470
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1471
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1472
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1473
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1474
  --docdir=DIR           documentation root [DATAROOTDIR/doc/exif]
 
1475
  --htmldir=DIR          html documentation [DOCDIR]
 
1476
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1477
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1478
  --psdir=DIR            ps documentation [DOCDIR]
1004
1479
_ACEOF
1005
1480
 
1006
1481
  cat <<\_ACEOF
1017
1492
fi
1018
1493
 
1019
1494
if test -n "$ac_init_help"; then
1020
 
 
 
1495
  case $ac_init_help in
 
1496
     short | recursive ) echo "Configuration of libexif command line interface 0.6.15:";;
 
1497
   esac
1021
1498
  cat <<\_ACEOF
1022
1499
 
1023
1500
Optional Features:
1024
1501
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025
1502
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1027
 
                          (and sometimes confusing) to the casual installer
1028
 
  --enable-shared[=PKGS]
1029
 
                          build shared libraries [default=yes]
1030
 
  --enable-static[=PKGS]
1031
 
                          build static libraries [default=yes]
 
1503
  --disable-dependency-tracking  speeds up one-time build
 
1504
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1505
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1506
  --enable-static[=PKGS]  build static libraries [default=yes]
1032
1507
  --enable-fast-install[=PKGS]
1033
1508
                          optimize for fast installation [default=yes]
1034
 
  --disable-dependency-tracking  speeds up one-time build
1035
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1036
1509
  --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1510
  --disable-nls           do not use Native Language Support
1038
1511
  --disable-rpath         do not hardcode runtime library paths
1043
1516
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044
1517
  --with-pic              try to use only PIC/non-PIC objects [default=use
1045
1518
                          both]
1046
 
  --with-tags[=TAGS]
1047
 
                          include additional configurations [automatic]
 
1519
  --with-tags[=TAGS]      include additional configurations [automatic]
1048
1520
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1049
1521
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1050
1522
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1051
1523
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1052
1524
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1053
 
  --without-popt            Don't use popt.h
1054
 
  --with-popt-prefix=PREFIX  Location of popt
 
1525
  --with-libexif=PREFIX
 
1526
                          where to find libexif, "no" or "auto"
1055
1527
 
1056
1528
Some influential environment variables:
1057
1529
  CC          C compiler command
1058
1530
  CFLAGS      C compiler flags
1059
1531
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060
1532
              nonstandard directory <lib dir>
1061
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062
 
              headers in a nonstandard directory <include dir>
 
1533
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1534
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1535
              you have headers in a nonstandard directory <include dir>
1063
1536
  CPP         C preprocessor
1064
1537
  CXX         C++ compiler command
1065
1538
  CXXFLAGS    C++ compiler flags
1066
1539
  CXXCPP      C++ preprocessor
1067
1540
  F77         Fortran 77 compiler command
1068
1541
  FFLAGS      Fortran 77 compiler flags
 
1542
  PKG_CONFIG  pkg-config package config utility
 
1543
  PKG_CONFIG_PATH
 
1544
              directory where pkg-config looks for *.pc files
 
1545
  LIBEXIF_CFLAGS
 
1546
              CFLAGS for compiling with libexif
 
1547
  LIBEXIF_LIBS
 
1548
              LIBS to add for linking against libexif
 
1549
  POPT_CFLAGS cppflags to compile with libpopt
 
1550
  POPT_LIBS   location of libpopt to link against
1069
1551
 
1070
1552
Use these variables to override the choices made by `configure' or to help
1071
1553
it to find libraries and programs with nonstandard names/locations.
1072
1554
 
 
1555
Report bugs to <libexif-devel@lists.sourceforge.net>.
1073
1556
_ACEOF
 
1557
ac_status=$?
1074
1558
fi
1075
1559
 
1076
1560
if test "$ac_init_help" = "recursive"; then
1077
1561
  # If there are subdirs, report their specific --help.
1078
 
  ac_popdir=`pwd`
1079
1562
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080
 
    test -d $ac_dir || continue
 
1563
    test -d "$ac_dir" || continue
1081
1564
    ac_builddir=.
1082
1565
 
1083
 
if test "$ac_dir" != .; then
 
1566
case "$ac_dir" in
 
1567
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1568
*)
1084
1569
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085
 
  # A "../" for each directory in $ac_dir_suffix.
1086
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087
 
else
1088
 
  ac_dir_suffix= ac_top_builddir=
1089
 
fi
 
1570
  # A ".." for each directory in $ac_dir_suffix.
 
1571
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1572
  case $ac_top_builddir_sub in
 
1573
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1574
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1575
  esac ;;
 
1576
esac
 
1577
ac_abs_top_builddir=$ac_pwd
 
1578
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1579
# for backward compatibility:
 
1580
ac_top_builddir=$ac_top_build_prefix
1090
1581
 
1091
1582
case $srcdir in
1092
 
  .)  # No --srcdir option.  We are building in place.
 
1583
  .)  # We are building in place.
1093
1584
    ac_srcdir=.
1094
 
    if test -z "$ac_top_builddir"; then
1095
 
       ac_top_srcdir=.
1096
 
    else
1097
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098
 
    fi ;;
1099
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1585
    ac_top_srcdir=$ac_top_builddir_sub
 
1586
    ac_abs_top_srcdir=$ac_pwd ;;
 
1587
  [\\/]* | ?:[\\/]* )  # Absolute name.
1100
1588
    ac_srcdir=$srcdir$ac_dir_suffix;
1101
 
    ac_top_srcdir=$srcdir ;;
1102
 
  *) # Relative path.
1103
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105
 
esac
1106
 
 
1107
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1108
 
# the directories may not exist.
1109
 
case `pwd` in
1110
 
.) ac_abs_builddir="$ac_dir";;
1111
 
*)
1112
 
  case "$ac_dir" in
1113
 
  .) ac_abs_builddir=`pwd`;;
1114
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116
 
  esac;;
1117
 
esac
1118
 
case $ac_abs_builddir in
1119
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120
 
*)
1121
 
  case ${ac_top_builddir}. in
1122
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125
 
  esac;;
1126
 
esac
1127
 
case $ac_abs_builddir in
1128
 
.) ac_abs_srcdir=$ac_srcdir;;
1129
 
*)
1130
 
  case $ac_srcdir in
1131
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1132
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134
 
  esac;;
1135
 
esac
1136
 
case $ac_abs_builddir in
1137
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138
 
*)
1139
 
  case $ac_top_srcdir in
1140
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143
 
  esac;;
1144
 
esac
1145
 
 
1146
 
    cd $ac_dir
1147
 
    # Check for guested configure; otherwise get Cygnus style configure.
1148
 
    if test -f $ac_srcdir/configure.gnu; then
1149
 
      echo
1150
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151
 
    elif test -f $ac_srcdir/configure; then
1152
 
      echo
1153
 
      $SHELL $ac_srcdir/configure  --help=recursive
1154
 
    elif test -f $ac_srcdir/configure.ac ||
1155
 
           test -f $ac_srcdir/configure.in; then
1156
 
      echo
1157
 
      $ac_configure --help
 
1589
    ac_top_srcdir=$srcdir
 
1590
    ac_abs_top_srcdir=$srcdir ;;
 
1591
  *) # Relative name.
 
1592
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1593
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1594
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1595
esac
 
1596
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1597
 
 
1598
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1599
    # Check for guested configure.
 
1600
    if test -f "$ac_srcdir/configure.gnu"; then
 
1601
      echo &&
 
1602
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1603
    elif test -f "$ac_srcdir/configure"; then
 
1604
      echo &&
 
1605
      $SHELL "$ac_srcdir/configure" --help=recursive
1158
1606
    else
1159
1607
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160
 
    fi
1161
 
    cd "$ac_popdir"
 
1608
    fi || ac_status=$?
 
1609
    cd "$ac_pwd" || { ac_status=$?; break; }
1162
1610
  done
1163
1611
fi
1164
1612
 
1165
 
test -n "$ac_init_help" && exit 0
 
1613
test -n "$ac_init_help" && exit $ac_status
1166
1614
if $ac_init_version; then
1167
1615
  cat <<\_ACEOF
 
1616
libexif command line interface configure 0.6.15
 
1617
generated by GNU Autoconf 2.61
1168
1618
 
1169
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1619
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1620
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1170
1621
This configure script is free software; the Free Software Foundation
1171
1622
gives unlimited permission to copy, distribute and modify it.
1172
1623
_ACEOF
1173
 
  exit 0
 
1624
  exit
1174
1625
fi
1175
 
exec 5>config.log
1176
 
cat >&5 <<_ACEOF
 
1626
cat >config.log <<_ACEOF
1177
1627
This file contains any messages produced by compilers while
1178
1628
running configure, to aid debugging if configure makes a mistake.
1179
1629
 
1180
 
It was created by $as_me, which was
1181
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1630
It was created by libexif command line interface $as_me 0.6.15, which was
 
1631
generated by GNU Autoconf 2.61.  Invocation command line was
1182
1632
 
1183
1633
  $ $0 $@
1184
1634
 
1185
1635
_ACEOF
 
1636
exec 5>>config.log
1186
1637
{
1187
1638
cat <<_ASUNAME
1188
1639
## --------- ##
1201
1652
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202
1653
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203
1654
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1655
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1205
1656
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206
1657
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207
1658
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
1666
  test -z "$as_dir" && as_dir=.
1216
1667
  echo "PATH: $as_dir"
1217
1668
done
 
1669
IFS=$as_save_IFS
1218
1670
 
1219
1671
} >&5
1220
1672
 
1236
1688
ac_configure_args=
1237
1689
ac_configure_args0=
1238
1690
ac_configure_args1=
1239
 
ac_sep=
1240
1691
ac_must_keep_next=false
1241
1692
for ac_pass in 1 2
1242
1693
do
1247
1698
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248
1699
    | -silent | --silent | --silen | --sile | --sil)
1249
1700
      continue ;;
1250
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1701
    *\'*)
1251
1702
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252
1703
    esac
1253
1704
    case $ac_pass in
1269
1720
          -* ) ac_must_keep_next=true ;;
1270
1721
        esac
1271
1722
      fi
1272
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273
 
      # Get rid of the leading space.
1274
 
      ac_sep=" "
 
1723
      ac_configure_args="$ac_configure_args '$ac_arg'"
1275
1724
      ;;
1276
1725
    esac
1277
1726
  done
1282
1731
# When interrupted or exit'd, cleanup temporary files, and complete
1283
1732
# config.log.  We remove comments because anyway the quotes in there
1284
1733
# would cause problems or look ugly.
1285
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1286
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1734
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1735
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1287
1736
trap 'exit_status=$?
1288
1737
  # Save into config.log some information that might help in debugging.
1289
1738
  {
1296
1745
_ASBOX
1297
1746
    echo
1298
1747
    # The following way of writing the cache mishandles newlines in values,
1299
 
{
 
1748
(
 
1749
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1750
    eval ac_val=\$$ac_var
 
1751
    case $ac_val in #(
 
1752
    *${as_nl}*)
 
1753
      case $ac_var in #(
 
1754
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1755
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1756
      esac
 
1757
      case $ac_var in #(
 
1758
      _ | IFS | as_nl) ;; #(
 
1759
      *) $as_unset $ac_var ;;
 
1760
      esac ;;
 
1761
    esac
 
1762
  done
1300
1763
  (set) 2>&1 |
1301
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302
 
    *ac_space=\ *)
 
1764
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1765
    *${as_nl}ac_space=\ *)
1303
1766
      sed -n \
1304
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306
 
      ;;
 
1767
        "s/'\''/'\''\\\\'\'''\''/g;
 
1768
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1769
      ;; #(
1307
1770
    *)
1308
 
      sed -n \
1309
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1771
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1310
1772
      ;;
1311
 
    esac;
1312
 
}
 
1773
    esac |
 
1774
    sort
 
1775
)
1313
1776
    echo
1314
1777
 
1315
1778
    cat <<\_ASBOX
1320
1783
    echo
1321
1784
    for ac_var in $ac_subst_vars
1322
1785
    do
1323
 
      eval ac_val=$`echo $ac_var`
1324
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1786
      eval ac_val=\$$ac_var
 
1787
      case $ac_val in
 
1788
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1789
      esac
 
1790
      echo "$ac_var='\''$ac_val'\''"
1325
1791
    done | sort
1326
1792
    echo
1327
1793
 
1328
1794
    if test -n "$ac_subst_files"; then
1329
1795
      cat <<\_ASBOX
1330
 
## ------------- ##
1331
 
## Output files. ##
1332
 
## ------------- ##
 
1796
## ------------------- ##
 
1797
## File substitutions. ##
 
1798
## ------------------- ##
1333
1799
_ASBOX
1334
1800
      echo
1335
1801
      for ac_var in $ac_subst_files
1336
1802
      do
1337
 
        eval ac_val=$`echo $ac_var`
1338
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1803
        eval ac_val=\$$ac_var
 
1804
        case $ac_val in
 
1805
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1806
        esac
 
1807
        echo "$ac_var='\''$ac_val'\''"
1339
1808
      done | sort
1340
1809
      echo
1341
1810
    fi
1347
1816
## ----------- ##
1348
1817
_ASBOX
1349
1818
      echo
1350
 
      sed "/^$/d" confdefs.h | sort
 
1819
      cat confdefs.h
1351
1820
      echo
1352
1821
    fi
1353
1822
    test "$ac_signal" != 0 &&
1354
1823
      echo "$as_me: caught signal $ac_signal"
1355
1824
    echo "$as_me: exit $exit_status"
1356
1825
  } >&5
1357
 
  rm -f core *.core &&
1358
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1826
  rm -f core *.core core.conftest.* &&
 
1827
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1359
1828
    exit $exit_status
1360
 
     ' 0
 
1829
' 0
1361
1830
for ac_signal in 1 2 13 15; do
1362
1831
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363
1832
done
1364
1833
ac_signal=0
1365
1834
 
1366
1835
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367
 
rm -rf conftest* confdefs.h
1368
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369
 
echo >confdefs.h
 
1836
rm -f -r conftest* confdefs.h
1370
1837
 
1371
1838
# Predefined preprocessor variables.
1372
1839
 
1397
1864
 
1398
1865
# Let the site file select an alternate cache file if it wants to.
1399
1866
# Prefer explicitly selected file to automatically selected ones.
1400
 
if test -z "$CONFIG_SITE"; then
1401
 
  if test "x$prefix" != xNONE; then
1402
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403
 
  else
1404
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405
 
  fi
 
1867
if test -n "$CONFIG_SITE"; then
 
1868
  set x "$CONFIG_SITE"
 
1869
elif test "x$prefix" != xNONE; then
 
1870
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1871
else
 
1872
  set x "$ac_default_prefix/share/config.site" \
 
1873
        "$ac_default_prefix/etc/config.site"
1406
1874
fi
1407
 
for ac_site_file in $CONFIG_SITE; do
 
1875
shift
 
1876
for ac_site_file
 
1877
do
1408
1878
  if test -r "$ac_site_file"; then
1409
1879
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410
1880
echo "$as_me: loading site script $ac_site_file" >&6;}
1420
1890
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421
1891
echo "$as_me: loading cache $cache_file" >&6;}
1422
1892
    case $cache_file in
1423
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1424
 
      *)                      . ./$cache_file;;
 
1893
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1894
      *)                      . "./$cache_file";;
1425
1895
    esac
1426
1896
  fi
1427
1897
else
1433
1903
# Check that the precious variables saved in the cache have kept the same
1434
1904
# value.
1435
1905
ac_cache_corrupted=false
1436
 
for ac_var in `(set) 2>&1 |
1437
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1906
for ac_var in $ac_precious_vars; do
1438
1907
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439
1908
  eval ac_new_set=\$ac_env_${ac_var}_set
1440
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1909
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1910
  eval ac_new_val=\$ac_env_${ac_var}_value
1442
1911
  case $ac_old_set,$ac_new_set in
1443
1912
    set,)
1444
1913
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463
1932
  # Pass precious variables to config.status.
1464
1933
  if test "$ac_new_set" = set; then
1465
1934
    case $ac_new_val in
1466
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1935
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468
1936
    *) ac_arg=$ac_var=$ac_new_val ;;
1469
1937
    esac
1470
1938
    case " $ac_configure_args " in
1481
1949
   { (exit 1); exit 1; }; }
1482
1950
fi
1483
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
1484
1976
ac_ext=c
1485
1977
ac_cpp='$CPP $CPPFLAGS'
1486
1978
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489
1981
 
1490
1982
 
1491
1983
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
          ac_config_headers="$ac_config_headers config.h"
1509
 
 
1510
 
am__api_version="1.8"
 
1984
ac_config_headers="$ac_config_headers config.h"
 
1985
 
 
1986
 
 
1987
am__api_version='1.10'
 
1988
 
1511
1989
ac_aux_dir=
1512
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513
 
  if test -f $ac_dir/install-sh; then
 
1990
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1991
  if test -f "$ac_dir/install-sh"; then
1514
1992
    ac_aux_dir=$ac_dir
1515
1993
    ac_install_sh="$ac_aux_dir/install-sh -c"
1516
1994
    break
1517
 
  elif test -f $ac_dir/install.sh; then
 
1995
  elif test -f "$ac_dir/install.sh"; then
1518
1996
    ac_aux_dir=$ac_dir
1519
1997
    ac_install_sh="$ac_aux_dir/install.sh -c"
1520
1998
    break
1521
 
  elif test -f $ac_dir/shtool; then
 
1999
  elif test -f "$ac_dir/shtool"; then
1522
2000
    ac_aux_dir=$ac_dir
1523
2001
    ac_install_sh="$ac_aux_dir/shtool install -c"
1524
2002
    break
1525
2003
  fi
1526
2004
done
1527
2005
if test -z "$ac_aux_dir"; then
1528
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2006
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2007
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1530
2008
   { (exit 1); exit 1; }; }
1531
2009
fi
1532
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2010
 
 
2011
# These three variables are undocumented and unsupported,
 
2012
# and are intended to be withdrawn in a future Autoconf release.
 
2013
# They can cause serious problems if a builder's source tree is in a directory
 
2014
# whose full name contains unusual characters.
 
2015
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2016
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2017
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2018
 
1535
2019
 
1536
2020
# Find a good install program.  We prefer a C program (faster),
1537
2021
# so one script is as good as another.  But avoid the broken or
1546
2030
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547
2031
# OS/2's system install, which has a completely different semantic
1548
2032
# ./install, which can be erroneously created by make from ./install.sh.
1549
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2033
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2034
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1551
2035
if test -z "$INSTALL"; then
1552
2036
if test "${ac_cv_path_install+set}" = set; then
1553
2037
  echo $ECHO_N "(cached) $ECHO_C" >&6
1569
2053
    # by default.
1570
2054
    for ac_prog in ginstall scoinst install; do
1571
2055
      for ac_exec_ext in '' $ac_executable_extensions; do
1572
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2056
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1573
2057
          if test $ac_prog = install &&
1574
2058
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575
2059
            # AIX install.  It has an incompatible calling convention.
1588
2072
    ;;
1589
2073
esac
1590
2074
done
 
2075
IFS=$as_save_IFS
1591
2076
 
1592
2077
 
1593
2078
fi
1594
2079
  if test "${ac_cv_path_install+set}" = set; then
1595
2080
    INSTALL=$ac_cv_path_install
1596
2081
  else
1597
 
    # As a last resort, use the slow shell script.  We don't cache a
1598
 
    # path for INSTALL within a source directory, because that will
 
2082
    # As a last resort, use the slow shell script.  Don't cache a
 
2083
    # value for INSTALL within a source directory, because that will
1599
2084
    # break other packages using the cache if that directory is
1600
 
    # removed, or if the path is relative.
 
2085
    # removed, or if the value is a relative name.
1601
2086
    INSTALL=$ac_install_sh
1602
2087
  fi
1603
2088
fi
1604
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1605
 
echo "${ECHO_T}$INSTALL" >&6
 
2089
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2090
echo "${ECHO_T}$INSTALL" >&6; }
1606
2091
 
1607
2092
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608
2093
# It thinks the first close brace ends the variable substitution.
1612
2097
 
1613
2098
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1614
2099
 
1615
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2100
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2101
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1617
2102
# Just in case
1618
2103
sleep 1
1619
2104
echo timestamp > conftest.file
1655
2140
Check your system clock" >&2;}
1656
2141
   { (exit 1); exit 1; }; }
1657
2142
fi
1658
 
echo "$as_me:$LINENO: result: yes" >&5
1659
 
echo "${ECHO_T}yes" >&6
 
2143
{ echo "$as_me:$LINENO: result: yes" >&5
 
2144
echo "${ECHO_T}yes" >&6; }
1660
2145
test "$program_prefix" != NONE &&
1661
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2146
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1662
2147
# Use a double $ so make ignores it.
1663
2148
test "$program_suffix" != NONE &&
1664
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2149
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1665
2150
# Double any \ or $.  echo might interpret backslashes.
1666
2151
# By default was `s,x,x', remove it if useless.
1667
2152
cat <<\_ACEOF >conftest.sed
1668
2153
s/[\\$]/&&/g;s/;s,x,x,$//
1669
2154
_ACEOF
1670
2155
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1671
 
rm conftest.sed
 
2156
rm -f conftest.sed
1672
2157
 
1673
2158
# expand $ac_aux_dir to an absolute path
1674
2159
am_aux_dir=`cd $ac_aux_dir && pwd`
1683
2168
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1684
2169
fi
1685
2170
 
1686
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1687
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1688
 
  # argument.  Indeed, we sometimes output rules like
1689
 
  #   $(mkdir_p) $(somedir)
1690
 
  # where $(somedir) is conditionally defined.
1691
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1692
 
  # expensive solution, as it forces Make to start a sub-shell.)
1693
 
  mkdir_p='mkdir -p -- .'
 
2171
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2172
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2173
if test -z "$MKDIR_P"; then
 
2174
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2175
  echo $ECHO_N "(cached) $ECHO_C" >&6
1694
2176
else
1695
 
  # On NextStep and OpenStep, the `mkdir' command does not
1696
 
  # recognize any option.  It will interpret all options as
1697
 
  # directories to create, and then abort because `.' already
1698
 
  # exists.
1699
 
  for d in ./-p ./--version;
1700
 
  do
1701
 
    test -d $d && rmdir $d
1702
 
  done
1703
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1704
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1705
 
    mkdir_p='$(mkinstalldirs)'
 
2177
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2178
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2179
do
 
2180
  IFS=$as_save_IFS
 
2181
  test -z "$as_dir" && as_dir=.
 
2182
  for ac_prog in mkdir gmkdir; do
 
2183
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2184
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2185
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2186
             'mkdir (GNU coreutils) '* | \
 
2187
             'mkdir (coreutils) '* | \
 
2188
             'mkdir (fileutils) '4.1*)
 
2189
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2190
               break 3;;
 
2191
           esac
 
2192
         done
 
2193
       done
 
2194
done
 
2195
IFS=$as_save_IFS
 
2196
 
 
2197
fi
 
2198
 
 
2199
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2200
    MKDIR_P="$ac_cv_path_mkdir -p"
1706
2201
  else
1707
 
    mkdir_p='$(install_sh) -d'
 
2202
    # As a last resort, use the slow shell script.  Don't cache a
 
2203
    # value for MKDIR_P within a source directory, because that will
 
2204
    # break other packages using the cache if that directory is
 
2205
    # removed, or if the value is a relative name.
 
2206
    test -d ./--version && rmdir ./--version
 
2207
    MKDIR_P="$ac_install_sh -d"
1708
2208
  fi
1709
2209
fi
 
2210
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2211
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2212
 
 
2213
mkdir_p="$MKDIR_P"
 
2214
case $mkdir_p in
 
2215
  [\\/$]* | ?:[\\/]*) ;;
 
2216
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2217
esac
1710
2218
 
1711
2219
for ac_prog in gawk mawk nawk awk
1712
2220
do
1713
2221
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1714
2222
set dummy $ac_prog; ac_word=$2
1715
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1716
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2223
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1717
2225
if test "${ac_cv_prog_AWK+set}" = set; then
1718
2226
  echo $ECHO_N "(cached) $ECHO_C" >&6
1719
2227
else
1726
2234
  IFS=$as_save_IFS
1727
2235
  test -z "$as_dir" && as_dir=.
1728
2236
  for ac_exec_ext in '' $ac_executable_extensions; do
1729
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1730
2238
    ac_cv_prog_AWK="$ac_prog"
1731
2239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732
2240
    break 2
1733
2241
  fi
1734
2242
done
1735
2243
done
 
2244
IFS=$as_save_IFS
1736
2245
 
1737
2246
fi
1738
2247
fi
1739
2248
AWK=$ac_cv_prog_AWK
1740
2249
if test -n "$AWK"; then
1741
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1742
 
echo "${ECHO_T}$AWK" >&6
 
2250
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2251
echo "${ECHO_T}$AWK" >&6; }
1743
2252
else
1744
 
  echo "$as_me:$LINENO: result: no" >&5
1745
 
echo "${ECHO_T}no" >&6
 
2253
  { echo "$as_me:$LINENO: result: no" >&5
 
2254
echo "${ECHO_T}no" >&6; }
1746
2255
fi
1747
2256
 
 
2257
 
1748
2258
  test -n "$AWK" && break
1749
2259
done
1750
2260
 
1751
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1752
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1753
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1754
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2261
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2262
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2263
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2264
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1755
2265
  echo $ECHO_N "(cached) $ECHO_C" >&6
1756
2266
else
1757
2267
  cat >conftest.make <<\_ACEOF
 
2268
SHELL = /bin/sh
1758
2269
all:
1759
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2270
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1760
2271
_ACEOF
1761
2272
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1762
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1763
 
if test -n "$ac_maketemp"; then
1764
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1765
 
else
1766
 
  eval ac_cv_prog_make_${ac_make}_set=no
1767
 
fi
 
2273
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2274
  *@@@%%%=?*=@@@%%%*)
 
2275
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2276
  *)
 
2277
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2278
esac
1768
2279
rm -f conftest.make
1769
2280
fi
1770
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1771
 
  echo "$as_me:$LINENO: result: yes" >&5
1772
 
echo "${ECHO_T}yes" >&6
 
2281
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2282
  { echo "$as_me:$LINENO: result: yes" >&5
 
2283
echo "${ECHO_T}yes" >&6; }
1773
2284
  SET_MAKE=
1774
2285
else
1775
 
  echo "$as_me:$LINENO: result: no" >&5
1776
 
echo "${ECHO_T}no" >&6
 
2286
  { echo "$as_me:$LINENO: result: no" >&5
 
2287
echo "${ECHO_T}no" >&6; }
1777
2288
  SET_MAKE="MAKE=${MAKE-make}"
1778
2289
fi
1779
2290
 
1786
2297
fi
1787
2298
rmdir .tst 2>/dev/null
1788
2299
 
1789
 
# test to see if srcdir already configured
1790
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1791
 
   test -f $srcdir/config.status; then
1792
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2300
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2301
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2302
  # is not polluted with repeated "-I."
 
2303
  am__isrc=' -I$(srcdir)'
 
2304
  # test to see if srcdir already configured
 
2305
  if test -f $srcdir/config.status; then
 
2306
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1793
2307
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1794
2308
   { (exit 1); exit 1; }; }
 
2309
  fi
1795
2310
fi
1796
2311
 
1797
2312
# test whether we have cygpath
1805
2320
 
1806
2321
 
1807
2322
# Define the identity of the package.
1808
 
 PACKAGE=exif
1809
 
 VERSION=0.6.9
 
2323
 PACKAGE='exif'
 
2324
 VERSION='0.6.15'
1810
2325
 
1811
2326
 
1812
2327
cat >>confdefs.h <<_ACEOF
1834
2349
 
1835
2350
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1836
2351
 
1837
 
 
1838
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1839
 
 
1840
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2352
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1841
2353
 
1842
2354
# Installed binaries are usually stripped using `strip' when the user
1843
2355
# run `make install-strip'.  However `strip' might not be the right
1847
2359
  if test -n "$ac_tool_prefix"; then
1848
2360
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1849
2361
set dummy ${ac_tool_prefix}strip; ac_word=$2
1850
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1851
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2362
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1852
2364
if test "${ac_cv_prog_STRIP+set}" = set; then
1853
2365
  echo $ECHO_N "(cached) $ECHO_C" >&6
1854
2366
else
1861
2373
  IFS=$as_save_IFS
1862
2374
  test -z "$as_dir" && as_dir=.
1863
2375
  for ac_exec_ext in '' $ac_executable_extensions; do
1864
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1865
2377
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1866
2378
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867
2379
    break 2
1868
2380
  fi
1869
2381
done
1870
2382
done
 
2383
IFS=$as_save_IFS
1871
2384
 
1872
2385
fi
1873
2386
fi
1874
2387
STRIP=$ac_cv_prog_STRIP
1875
2388
if test -n "$STRIP"; then
1876
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1877
 
echo "${ECHO_T}$STRIP" >&6
 
2389
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2390
echo "${ECHO_T}$STRIP" >&6; }
1878
2391
else
1879
 
  echo "$as_me:$LINENO: result: no" >&5
1880
 
echo "${ECHO_T}no" >&6
 
2392
  { echo "$as_me:$LINENO: result: no" >&5
 
2393
echo "${ECHO_T}no" >&6; }
1881
2394
fi
 
2395
 
1882
2396
 
1883
2397
fi
1884
2398
if test -z "$ac_cv_prog_STRIP"; then
1885
2399
  ac_ct_STRIP=$STRIP
1886
2400
  # Extract the first word of "strip", so it can be a program name with args.
1887
2401
set dummy strip; ac_word=$2
1888
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1889
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2402
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890
2404
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1891
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
1892
2406
else
1899
2413
  IFS=$as_save_IFS
1900
2414
  test -z "$as_dir" && as_dir=.
1901
2415
  for ac_exec_ext in '' $ac_executable_extensions; do
1902
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903
2417
    ac_cv_prog_ac_ct_STRIP="strip"
1904
2418
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905
2419
    break 2
1906
2420
  fi
1907
2421
done
1908
2422
done
 
2423
IFS=$as_save_IFS
1909
2424
 
1910
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1911
2425
fi
1912
2426
fi
1913
2427
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1914
2428
if test -n "$ac_ct_STRIP"; then
1915
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1916
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2429
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2430
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1917
2431
else
1918
 
  echo "$as_me:$LINENO: result: no" >&5
1919
 
echo "${ECHO_T}no" >&6
 
2432
  { echo "$as_me:$LINENO: result: no" >&5
 
2433
echo "${ECHO_T}no" >&6; }
1920
2434
fi
1921
2435
 
1922
 
  STRIP=$ac_ct_STRIP
 
2436
  if test "x$ac_ct_STRIP" = x; then
 
2437
    STRIP=":"
 
2438
  else
 
2439
    case $cross_compiling:$ac_tool_warned in
 
2440
yes:)
 
2441
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2442
whose name does not start with the host triplet.  If you think this
 
2443
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2444
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2445
whose name does not start with the host triplet.  If you think this
 
2446
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2447
ac_tool_warned=yes ;;
 
2448
esac
 
2449
    STRIP=$ac_ct_STRIP
 
2450
  fi
1923
2451
else
1924
2452
  STRIP="$ac_cv_prog_STRIP"
1925
2453
fi
1926
2454
 
1927
2455
fi
1928
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2456
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1929
2457
 
1930
2458
# We need awk for the "check" target.  The system "awk" is bad on
1931
2459
# some platforms.
1932
 
 
1933
 
 
1934
 
 
1935
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1936
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1937
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1938
 
if test "${enable_maintainer_mode+set}" = set; then
1939
 
  enableval="$enable_maintainer_mode"
1940
 
  USE_MAINTAINER_MODE=$enableval
1941
 
else
1942
 
  USE_MAINTAINER_MODE=no
1943
 
fi;
1944
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1945
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1946
 
 
1947
 
 
1948
 
if test $USE_MAINTAINER_MODE = yes; then
1949
 
  MAINTAINER_MODE_TRUE=
1950
 
  MAINTAINER_MODE_FALSE='#'
1951
 
else
1952
 
  MAINTAINER_MODE_TRUE='#'
1953
 
  MAINTAINER_MODE_FALSE=
1954
 
fi
1955
 
 
1956
 
  MAINT=$MAINTAINER_MODE_TRUE
1957
 
 
1958
 
 
1959
 
 
1960
 
# Check whether --enable-shared or --disable-shared was given.
1961
 
if test "${enable_shared+set}" = set; then
1962
 
  enableval="$enable_shared"
1963
 
  p=${PACKAGE-default}
1964
 
    case $enableval in
1965
 
    yes) enable_shared=yes ;;
1966
 
    no) enable_shared=no ;;
1967
 
    *)
1968
 
      enable_shared=no
1969
 
      # Look at the argument we got.  We use all the common list separators.
1970
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1971
 
      for pkg in $enableval; do
1972
 
        IFS="$lt_save_ifs"
1973
 
        if test "X$pkg" = "X$p"; then
1974
 
          enable_shared=yes
1975
 
        fi
1976
 
      done
1977
 
      IFS="$lt_save_ifs"
1978
 
      ;;
1979
 
    esac
1980
 
else
1981
 
  enable_shared=yes
1982
 
fi;
1983
 
 
1984
 
# Check whether --enable-static or --disable-static was given.
1985
 
if test "${enable_static+set}" = set; then
1986
 
  enableval="$enable_static"
1987
 
  p=${PACKAGE-default}
1988
 
    case $enableval in
1989
 
    yes) enable_static=yes ;;
1990
 
    no) enable_static=no ;;
1991
 
    *)
1992
 
     enable_static=no
1993
 
      # Look at the argument we got.  We use all the common list separators.
1994
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1995
 
      for pkg in $enableval; do
1996
 
        IFS="$lt_save_ifs"
1997
 
        if test "X$pkg" = "X$p"; then
1998
 
          enable_static=yes
1999
 
        fi
2000
 
      done
2001
 
      IFS="$lt_save_ifs"
2002
 
      ;;
2003
 
    esac
2004
 
else
2005
 
  enable_static=yes
2006
 
fi;
2007
 
 
2008
 
# Check whether --enable-fast-install or --disable-fast-install was given.
2009
 
if test "${enable_fast_install+set}" = set; then
2010
 
  enableval="$enable_fast_install"
2011
 
  p=${PACKAGE-default}
2012
 
    case $enableval in
2013
 
    yes) enable_fast_install=yes ;;
2014
 
    no) enable_fast_install=no ;;
2015
 
    *)
2016
 
      enable_fast_install=no
2017
 
      # Look at the argument we got.  We use all the common list separators.
2018
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2019
 
      for pkg in $enableval; do
2020
 
        IFS="$lt_save_ifs"
2021
 
        if test "X$pkg" = "X$p"; then
2022
 
          enable_fast_install=yes
2023
 
        fi
2024
 
      done
2025
 
      IFS="$lt_save_ifs"
2026
 
      ;;
2027
 
    esac
2028
 
else
2029
 
  enable_fast_install=yes
2030
 
fi;
2031
 
 
2032
 
# Make sure we can run config.sub.
2033
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2034
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2035
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2036
 
   { (exit 1); exit 1; }; }
2037
 
 
2038
 
echo "$as_me:$LINENO: checking build system type" >&5
2039
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2040
 
if test "${ac_cv_build+set}" = set; then
2041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2042
 
else
2043
 
  ac_cv_build_alias=$build_alias
2044
 
test -z "$ac_cv_build_alias" &&
2045
 
  ac_cv_build_alias=`$ac_config_guess`
2046
 
test -z "$ac_cv_build_alias" &&
2047
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2048
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2049
 
   { (exit 1); exit 1; }; }
2050
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2051
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2052
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2053
 
   { (exit 1); exit 1; }; }
2054
 
 
2055
 
fi
2056
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2057
 
echo "${ECHO_T}$ac_cv_build" >&6
2058
 
build=$ac_cv_build
2059
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2060
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2061
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2062
 
 
2063
 
 
2064
 
echo "$as_me:$LINENO: checking host system type" >&5
2065
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2066
 
if test "${ac_cv_host+set}" = set; then
2067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2068
 
else
2069
 
  ac_cv_host_alias=$host_alias
2070
 
test -z "$ac_cv_host_alias" &&
2071
 
  ac_cv_host_alias=$ac_cv_build_alias
2072
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2073
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2074
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2075
 
   { (exit 1); exit 1; }; }
2076
 
 
2077
 
fi
2078
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079
 
echo "${ECHO_T}$ac_cv_host" >&6
2080
 
host=$ac_cv_host
2081
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2082
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2083
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2084
 
 
2085
 
 
2086
 
DEPDIR="${am__leading_dot}deps"
2087
 
 
2088
 
          ac_config_commands="$ac_config_commands depfiles"
2089
 
 
2090
 
 
2091
 
am_make=${MAKE-make}
2092
 
cat > confinc << 'END'
2093
 
am__doit:
2094
 
        @echo done
2095
 
.PHONY: am__doit
2096
 
END
2097
 
# If we don't find an include directive, just comment out the code.
2098
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2099
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2100
 
am__include="#"
2101
 
am__quote=
2102
 
_am_result=none
2103
 
# First try GNU make style include.
2104
 
echo "include confinc" > confmf
2105
 
# We grep out `Entering directory' and `Leaving directory'
2106
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2107
 
# In particular we don't look at `^make:' because GNU make might
2108
 
# be invoked under some other name (usually "gmake"), in which
2109
 
# case it prints its new name instead of `make'.
2110
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2111
 
   am__include=include
2112
 
   am__quote=
2113
 
   _am_result=GNU
2114
 
fi
2115
 
# Now try BSD make style include.
2116
 
if test "$am__include" = "#"; then
2117
 
   echo '.include "confinc"' > confmf
2118
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2119
 
      am__include=.include
2120
 
      am__quote="\""
2121
 
      _am_result=BSD
2122
 
   fi
2123
 
fi
2124
 
 
2125
 
 
2126
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2127
 
echo "${ECHO_T}$_am_result" >&6
2128
 
rm -f confinc confmf
2129
 
 
2130
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2131
 
if test "${enable_dependency_tracking+set}" = set; then
2132
 
  enableval="$enable_dependency_tracking"
2133
 
 
2134
 
fi;
2135
 
if test "x$enable_dependency_tracking" != xno; then
2136
 
  am_depcomp="$ac_aux_dir/depcomp"
2137
 
  AMDEPBACKSLASH='\'
2138
 
fi
2139
 
 
2140
 
 
2141
 
if test "x$enable_dependency_tracking" != xno; then
2142
 
  AMDEP_TRUE=
2143
 
  AMDEP_FALSE='#'
2144
 
else
2145
 
  AMDEP_TRUE='#'
2146
 
  AMDEP_FALSE=
2147
 
fi
2148
 
 
 
2460
# Always define AMTAR for backward compatibility.
 
2461
 
 
2462
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2463
 
 
2464
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2465
 
 
2466
 
 
2467
 
 
2468
 
 
2469
 
 
2470
 
 
2471
if test ! -d "$srcdir/m4m"; then
 
2472
{ { echo "$as_me:$LINENO: error:
 
2473
You are missing the m4m/ directory in your top
 
2474
$PACKAGE_TARNAME source directory.
 
2475
 
 
2476
You are probably using an ill-maintained CVS tree.
 
2477
Running
 
2478
 
 
2479
    cd $srcdir
 
2480
    cvs co m4m
 
2481
 
 
2482
and re-running autogen.sh might help.
 
2483
" >&5
 
2484
echo "$as_me: error:
 
2485
You are missing the m4m/ directory in your top
 
2486
$PACKAGE_TARNAME source directory.
 
2487
 
 
2488
You are probably using an ill-maintained CVS tree.
 
2489
Running
 
2490
 
 
2491
    cd $srcdir
 
2492
    cvs co m4m
 
2493
 
 
2494
and re-running autogen.sh might help.
 
2495
" >&2;}
 
2496
   { (exit 1); exit 1; }; }
 
2497
fi
 
2498
 
 
2499
 
 
2500
# make sure "cd" doesn't print anything on stdout
 
2501
if test x"${CDPATH+set}" = xset
 
2502
then
 
2503
        CDPATH=:
 
2504
        export CDPATH
 
2505
fi
 
2506
 
 
2507
# make sure $() command substitution works
 
2508
{ echo "$as_me:$LINENO: checking for POSIX sh \$() command substitution" >&5
 
2509
echo $ECHO_N "checking for POSIX sh \$() command substitution... $ECHO_C" >&6; }
 
2510
if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
 
2511
then
 
2512
        { echo "$as_me:$LINENO: result: yes" >&5
 
2513
echo "${ECHO_T}yes" >&6; }
 
2514
else
 
2515
        { echo "$as_me:$LINENO: result: no" >&5
 
2516
echo "${ECHO_T}no" >&6; }
 
2517
        uname=`uname 2>&1` # ''
 
2518
        uname_a=`uname -a 2>&1` # ''
 
2519
        { { echo "$as_me:$LINENO: error:
 
2520
 
 
2521
* POSIX sh \$() command substition does not work with this shell.
 
2522
*
 
2523
* You are running a very rare species of shell. Please report this
 
2524
* sighting to <${PACKAGE_BUGREPORT}>:
 
2525
* SHELL=${SHELL}
 
2526
* uname=${uname}
 
2527
* uname-a=${uname_a}
 
2528
* Please also include your OS and version.
 
2529
*
 
2530
* Run this configure script using a better (i.e. POSIX compliant) shell.
 
2531
" >&5
 
2532
echo "$as_me: error:
 
2533
 
 
2534
* POSIX sh \$() command substition does not work with this shell.
 
2535
*
 
2536
* You are running a very rare species of shell. Please report this
 
2537
* sighting to <${PACKAGE_BUGREPORT}>:
 
2538
* SHELL=${SHELL}
 
2539
* uname=${uname}
 
2540
* uname-a=${uname_a}
 
2541
* Please also include your OS and version.
 
2542
*
 
2543
* Run this configure script using a better (i.e. POSIX compliant) shell.
 
2544
" >&2;}
 
2545
   { (exit 1); exit 1; }; }
 
2546
fi
 
2547
 
 
2548
 
 
2549
 
 
2550
gp_config_len="30"
 
2551
gp_config_empty=""
 
2552
gp_config_len3="$(expr "$gp_config_len" - 3)"
 
2553
n="$gp_config_len"
 
2554
while test "$n" -gt 0; do
 
2555
      gp_config_empty="${gp_config_empty} "
 
2556
      n="$(expr "$n" - 1)"
 
2557
done
 
2558
gp_config_msg="
 
2559
Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
 
2560
"
 
2561
 
 
2562
 
 
2563
gp_config_msg="${gp_config_msg}
 
2564
  Build
 
2565
"
 
2566
 
 
2567
 
 
2568
gp_config_msg_len="$(expr "Source code location" : '.*')"
 
2569
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
2570
        gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
2571
else
 
2572
        gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
2573
fi
 
2574
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${srcdir}
 
2575
"
2149
2576
 
2150
2577
 
2151
2578
ac_ext=c
2156
2583
if test -n "$ac_tool_prefix"; then
2157
2584
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158
2585
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2160
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2586
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2587
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161
2588
if test "${ac_cv_prog_CC+set}" = set; then
2162
2589
  echo $ECHO_N "(cached) $ECHO_C" >&6
2163
2590
else
2170
2597
  IFS=$as_save_IFS
2171
2598
  test -z "$as_dir" && as_dir=.
2172
2599
  for ac_exec_ext in '' $ac_executable_extensions; do
2173
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2600
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174
2601
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175
2602
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176
2603
    break 2
2177
2604
  fi
2178
2605
done
2179
2606
done
 
2607
IFS=$as_save_IFS
2180
2608
 
2181
2609
fi
2182
2610
fi
2183
2611
CC=$ac_cv_prog_CC
2184
2612
if test -n "$CC"; then
2185
 
  echo "$as_me:$LINENO: result: $CC" >&5
2186
 
echo "${ECHO_T}$CC" >&6
 
2613
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2614
echo "${ECHO_T}$CC" >&6; }
2187
2615
else
2188
 
  echo "$as_me:$LINENO: result: no" >&5
2189
 
echo "${ECHO_T}no" >&6
 
2616
  { echo "$as_me:$LINENO: result: no" >&5
 
2617
echo "${ECHO_T}no" >&6; }
2190
2618
fi
 
2619
 
2191
2620
 
2192
2621
fi
2193
2622
if test -z "$ac_cv_prog_CC"; then
2194
2623
  ac_ct_CC=$CC
2195
2624
  # Extract the first word of "gcc", so it can be a program name with args.
2196
2625
set dummy gcc; ac_word=$2
2197
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2198
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2626
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199
2628
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200
2629
  echo $ECHO_N "(cached) $ECHO_C" >&6
2201
2630
else
2208
2637
  IFS=$as_save_IFS
2209
2638
  test -z "$as_dir" && as_dir=.
2210
2639
  for ac_exec_ext in '' $ac_executable_extensions; do
2211
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2640
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212
2641
    ac_cv_prog_ac_ct_CC="gcc"
2213
2642
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214
2643
    break 2
2215
2644
  fi
2216
2645
done
2217
2646
done
 
2647
IFS=$as_save_IFS
2218
2648
 
2219
2649
fi
2220
2650
fi
2221
2651
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222
2652
if test -n "$ac_ct_CC"; then
2223
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2653
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2654
echo "${ECHO_T}$ac_ct_CC" >&6; }
2225
2655
else
2226
 
  echo "$as_me:$LINENO: result: no" >&5
2227
 
echo "${ECHO_T}no" >&6
 
2656
  { echo "$as_me:$LINENO: result: no" >&5
 
2657
echo "${ECHO_T}no" >&6; }
2228
2658
fi
2229
2659
 
2230
 
  CC=$ac_ct_CC
 
2660
  if test "x$ac_ct_CC" = x; then
 
2661
    CC=""
 
2662
  else
 
2663
    case $cross_compiling:$ac_tool_warned in
 
2664
yes:)
 
2665
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2666
whose name does not start with the host triplet.  If you think this
 
2667
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2668
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2669
whose name does not start with the host triplet.  If you think this
 
2670
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2671
ac_tool_warned=yes ;;
 
2672
esac
 
2673
    CC=$ac_ct_CC
 
2674
  fi
2231
2675
else
2232
2676
  CC="$ac_cv_prog_CC"
2233
2677
fi
2234
2678
 
2235
2679
if test -z "$CC"; then
2236
 
  if test -n "$ac_tool_prefix"; then
2237
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2680
          if test -n "$ac_tool_prefix"; then
 
2681
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238
2682
set dummy ${ac_tool_prefix}cc; ac_word=$2
2239
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2240
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2683
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241
2685
if test "${ac_cv_prog_CC+set}" = set; then
2242
2686
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
2687
else
2250
2694
  IFS=$as_save_IFS
2251
2695
  test -z "$as_dir" && as_dir=.
2252
2696
  for ac_exec_ext in '' $ac_executable_extensions; do
2253
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254
2698
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2255
2699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256
2700
    break 2
2257
2701
  fi
2258
2702
done
2259
2703
done
 
2704
IFS=$as_save_IFS
2260
2705
 
2261
2706
fi
2262
2707
fi
2263
2708
CC=$ac_cv_prog_CC
2264
2709
if test -n "$CC"; then
2265
 
  echo "$as_me:$LINENO: result: $CC" >&5
2266
 
echo "${ECHO_T}$CC" >&6
2267
 
else
2268
 
  echo "$as_me:$LINENO: result: no" >&5
2269
 
echo "${ECHO_T}no" >&6
2270
 
fi
2271
 
 
2272
 
fi
2273
 
if test -z "$ac_cv_prog_CC"; then
2274
 
  ac_ct_CC=$CC
2275
 
  # Extract the first word of "cc", so it can be a program name with args.
2276
 
set dummy cc; ac_word=$2
2277
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2278
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2281
 
else
2282
 
  if test -n "$ac_ct_CC"; then
2283
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284
 
else
2285
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286
 
for as_dir in $PATH
2287
 
do
2288
 
  IFS=$as_save_IFS
2289
 
  test -z "$as_dir" && as_dir=.
2290
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2291
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292
 
    ac_cv_prog_ac_ct_CC="cc"
2293
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294
 
    break 2
 
2710
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2711
echo "${ECHO_T}$CC" >&6; }
 
2712
else
 
2713
  { echo "$as_me:$LINENO: result: no" >&5
 
2714
echo "${ECHO_T}no" >&6; }
 
2715
fi
 
2716
 
 
2717
 
2295
2718
  fi
2296
 
done
2297
 
done
2298
 
 
2299
 
fi
2300
 
fi
2301
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302
 
if test -n "$ac_ct_CC"; then
2303
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304
 
echo "${ECHO_T}$ac_ct_CC" >&6
2305
 
else
2306
 
  echo "$as_me:$LINENO: result: no" >&5
2307
 
echo "${ECHO_T}no" >&6
2308
 
fi
2309
 
 
2310
 
  CC=$ac_ct_CC
2311
 
else
2312
 
  CC="$ac_cv_prog_CC"
2313
 
fi
2314
 
 
2315
2719
fi
2316
2720
if test -z "$CC"; then
2317
2721
  # Extract the first word of "cc", so it can be a program name with args.
2318
2722
set dummy cc; ac_word=$2
2319
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2320
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2723
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2724
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321
2725
if test "${ac_cv_prog_CC+set}" = set; then
2322
2726
  echo $ECHO_N "(cached) $ECHO_C" >&6
2323
2727
else
2331
2735
  IFS=$as_save_IFS
2332
2736
  test -z "$as_dir" && as_dir=.
2333
2737
  for ac_exec_ext in '' $ac_executable_extensions; do
2334
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335
2739
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2336
2740
       ac_prog_rejected=yes
2337
2741
       continue
2342
2746
  fi
2343
2747
done
2344
2748
done
 
2749
IFS=$as_save_IFS
2345
2750
 
2346
2751
if test $ac_prog_rejected = yes; then
2347
2752
  # We found a bogon in the path, so make sure we never use it.
2359
2764
fi
2360
2765
CC=$ac_cv_prog_CC
2361
2766
if test -n "$CC"; then
2362
 
  echo "$as_me:$LINENO: result: $CC" >&5
2363
 
echo "${ECHO_T}$CC" >&6
 
2767
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2768
echo "${ECHO_T}$CC" >&6; }
2364
2769
else
2365
 
  echo "$as_me:$LINENO: result: no" >&5
2366
 
echo "${ECHO_T}no" >&6
 
2770
  { echo "$as_me:$LINENO: result: no" >&5
 
2771
echo "${ECHO_T}no" >&6; }
2367
2772
fi
 
2773
 
2368
2774
 
2369
2775
fi
2370
2776
if test -z "$CC"; then
2371
2777
  if test -n "$ac_tool_prefix"; then
2372
 
  for ac_prog in cl
 
2778
  for ac_prog in cl.exe
2373
2779
  do
2374
2780
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2375
2781
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2376
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2377
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2782
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2378
2784
if test "${ac_cv_prog_CC+set}" = set; then
2379
2785
  echo $ECHO_N "(cached) $ECHO_C" >&6
2380
2786
else
2387
2793
  IFS=$as_save_IFS
2388
2794
  test -z "$as_dir" && as_dir=.
2389
2795
  for ac_exec_ext in '' $ac_executable_extensions; do
2390
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2796
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391
2797
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2392
2798
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393
2799
    break 2
2394
2800
  fi
2395
2801
done
2396
2802
done
 
2803
IFS=$as_save_IFS
2397
2804
 
2398
2805
fi
2399
2806
fi
2400
2807
CC=$ac_cv_prog_CC
2401
2808
if test -n "$CC"; then
2402
 
  echo "$as_me:$LINENO: result: $CC" >&5
2403
 
echo "${ECHO_T}$CC" >&6
 
2809
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2810
echo "${ECHO_T}$CC" >&6; }
2404
2811
else
2405
 
  echo "$as_me:$LINENO: result: no" >&5
2406
 
echo "${ECHO_T}no" >&6
 
2812
  { echo "$as_me:$LINENO: result: no" >&5
 
2813
echo "${ECHO_T}no" >&6; }
2407
2814
fi
2408
2815
 
 
2816
 
2409
2817
    test -n "$CC" && break
2410
2818
  done
2411
2819
fi
2412
2820
if test -z "$CC"; then
2413
2821
  ac_ct_CC=$CC
2414
 
  for ac_prog in cl
 
2822
  for ac_prog in cl.exe
2415
2823
do
2416
2824
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2417
2825
set dummy $ac_prog; ac_word=$2
2418
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2419
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2826
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420
2828
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421
2829
  echo $ECHO_N "(cached) $ECHO_C" >&6
2422
2830
else
2429
2837
  IFS=$as_save_IFS
2430
2838
  test -z "$as_dir" && as_dir=.
2431
2839
  for ac_exec_ext in '' $ac_executable_extensions; do
2432
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433
2841
    ac_cv_prog_ac_ct_CC="$ac_prog"
2434
2842
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435
2843
    break 2
2436
2844
  fi
2437
2845
done
2438
2846
done
 
2847
IFS=$as_save_IFS
2439
2848
 
2440
2849
fi
2441
2850
fi
2442
2851
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2443
2852
if test -n "$ac_ct_CC"; then
2444
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2445
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2853
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2854
echo "${ECHO_T}$ac_ct_CC" >&6; }
2446
2855
else
2447
 
  echo "$as_me:$LINENO: result: no" >&5
2448
 
echo "${ECHO_T}no" >&6
 
2856
  { echo "$as_me:$LINENO: result: no" >&5
 
2857
echo "${ECHO_T}no" >&6; }
2449
2858
fi
2450
2859
 
 
2860
 
2451
2861
  test -n "$ac_ct_CC" && break
2452
2862
done
2453
2863
 
2454
 
  CC=$ac_ct_CC
 
2864
  if test "x$ac_ct_CC" = x; then
 
2865
    CC=""
 
2866
  else
 
2867
    case $cross_compiling:$ac_tool_warned in
 
2868
yes:)
 
2869
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2870
whose name does not start with the host triplet.  If you think this
 
2871
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2872
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2873
whose name does not start with the host triplet.  If you think this
 
2874
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2875
ac_tool_warned=yes ;;
 
2876
esac
 
2877
    CC=$ac_ct_CC
 
2878
  fi
2455
2879
fi
2456
2880
 
2457
2881
fi
2464
2888
   { (exit 1); exit 1; }; }
2465
2889
 
2466
2890
# Provide some information about the compiler.
2467
 
echo "$as_me:$LINENO:" \
2468
 
     "checking for C compiler version" >&5
 
2891
echo "$as_me:$LINENO: checking for C compiler version" >&5
2469
2892
ac_compiler=`set X $ac_compile; echo $2`
2470
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2471
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2472
 
  ac_status=$?
2473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474
 
  (exit $ac_status); }
2475
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2476
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2477
 
  ac_status=$?
2478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479
 
  (exit $ac_status); }
2480
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2481
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2893
{ (ac_try="$ac_compiler --version >&5"
 
2894
case "(($ac_try" in
 
2895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2896
  *) ac_try_echo=$ac_try;;
 
2897
esac
 
2898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2899
  (eval "$ac_compiler --version >&5") 2>&5
 
2900
  ac_status=$?
 
2901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2902
  (exit $ac_status); }
 
2903
{ (ac_try="$ac_compiler -v >&5"
 
2904
case "(($ac_try" in
 
2905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2906
  *) ac_try_echo=$ac_try;;
 
2907
esac
 
2908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2909
  (eval "$ac_compiler -v >&5") 2>&5
 
2910
  ac_status=$?
 
2911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2912
  (exit $ac_status); }
 
2913
{ (ac_try="$ac_compiler -V >&5"
 
2914
case "(($ac_try" in
 
2915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2916
  *) ac_try_echo=$ac_try;;
 
2917
esac
 
2918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2919
  (eval "$ac_compiler -V >&5") 2>&5
2482
2920
  ac_status=$?
2483
2921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484
2922
  (exit $ac_status); }
2503
2941
# Try to create an executable without -o first, disregard a.out.
2504
2942
# It will help us diagnose broken compilers, and finding out an intuition
2505
2943
# of exeext.
2506
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2944
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2945
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2508
2946
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2509
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2510
 
  (eval $ac_link_default) 2>&5
 
2947
#
 
2948
# List of possible output files, starting from the most likely.
 
2949
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2950
# only as a last resort.  b.out is created by i960 compilers.
 
2951
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2952
#
 
2953
# The IRIX 6 linker writes into existing files which may not be
 
2954
# executable, retaining their permissions.  Remove them first so a
 
2955
# subsequent execution test works.
 
2956
ac_rmfiles=
 
2957
for ac_file in $ac_files
 
2958
do
 
2959
  case $ac_file in
 
2960
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2961
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2962
  esac
 
2963
done
 
2964
rm -f $ac_rmfiles
 
2965
 
 
2966
if { (ac_try="$ac_link_default"
 
2967
case "(($ac_try" in
 
2968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2969
  *) ac_try_echo=$ac_try;;
 
2970
esac
 
2971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2972
  (eval "$ac_link_default") 2>&5
2511
2973
  ac_status=$?
2512
2974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
2975
  (exit $ac_status); }; then
2514
 
  # Find the output, starting from the most likely.  This scheme is
2515
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2516
 
# resort.
2517
 
 
2518
 
# Be careful to initialize this variable, since it used to be cached.
2519
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2520
 
ac_cv_exeext=
2521
 
# b.out is created by i960 compilers.
2522
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2976
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2977
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2978
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2979
# so that the user can short-circuit this test for compilers unknown to
 
2980
# Autoconf.
 
2981
for ac_file in $ac_files ''
2523
2982
do
2524
2983
  test -f "$ac_file" || continue
2525
2984
  case $ac_file in
2526
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2527
 
        ;;
2528
 
    conftest.$ac_ext )
2529
 
        # This is the source file.
 
2985
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2530
2986
        ;;
2531
2987
    [ab].out )
2532
2988
        # We found the default executable, but exeext='' is most
2533
2989
        # certainly right.
2534
2990
        break;;
2535
2991
    *.* )
2536
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2538
 
        # but it would be cool to find out if it's true.  Does anybody
2539
 
        # maintain Libtool? --akim.
2540
 
        export ac_cv_exeext
 
2992
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2993
        then :; else
 
2994
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2995
        fi
 
2996
        # We set ac_cv_exeext here because the later test for it is not
 
2997
        # safe: cross compilers may not add the suffix if given an `-o'
 
2998
        # argument, so we may need to know it at that point already.
 
2999
        # Even if this section looks crufty: it has the advantage of
 
3000
        # actually working.
2541
3001
        break;;
2542
3002
    * )
2543
3003
        break;;
2544
3004
  esac
2545
3005
done
 
3006
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3007
 
2546
3008
else
 
3009
  ac_file=''
 
3010
fi
 
3011
 
 
3012
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3013
echo "${ECHO_T}$ac_file" >&6; }
 
3014
if test -z "$ac_file"; then
2547
3015
  echo "$as_me: failed program was:" >&5
2548
3016
sed 's/^/| /' conftest.$ac_ext >&5
2549
3017
 
2555
3023
fi
2556
3024
 
2557
3025
ac_exeext=$ac_cv_exeext
2558
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2559
 
echo "${ECHO_T}$ac_file" >&6
2560
3026
 
2561
 
# Check the compiler produces executables we can run.  If not, either
 
3027
# Check that the compiler produces executables we can run.  If not, either
2562
3028
# the compiler is broken, or we cross compile.
2563
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2564
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3029
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3030
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2565
3031
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2566
3032
# If not cross compiling, check that we can run a simple program.
2567
3033
if test "$cross_compiling" != yes; then
2568
3034
  if { ac_try='./$ac_file'
2569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570
 
  (eval $ac_try) 2>&5
 
3035
  { (case "(($ac_try" in
 
3036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3037
  *) ac_try_echo=$ac_try;;
 
3038
esac
 
3039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3040
  (eval "$ac_try") 2>&5
2571
3041
  ac_status=$?
2572
3042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
3043
  (exit $ac_status); }; }; then
2586
3056
    fi
2587
3057
  fi
2588
3058
fi
2589
 
echo "$as_me:$LINENO: result: yes" >&5
2590
 
echo "${ECHO_T}yes" >&6
 
3059
{ echo "$as_me:$LINENO: result: yes" >&5
 
3060
echo "${ECHO_T}yes" >&6; }
2591
3061
 
2592
3062
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593
3063
ac_clean_files=$ac_clean_files_save
2594
 
# Check the compiler produces executables we can run.  If not, either
 
3064
# Check that the compiler produces executables we can run.  If not, either
2595
3065
# the compiler is broken, or we cross compile.
2596
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2598
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599
 
echo "${ECHO_T}$cross_compiling" >&6
 
3066
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3067
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3068
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3069
echo "${ECHO_T}$cross_compiling" >&6; }
2600
3070
 
2601
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2603
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2604
 
  (eval $ac_link) 2>&5
 
3071
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3072
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3073
if { (ac_try="$ac_link"
 
3074
case "(($ac_try" in
 
3075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3076
  *) ac_try_echo=$ac_try;;
 
3077
esac
 
3078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3079
  (eval "$ac_link") 2>&5
2605
3080
  ac_status=$?
2606
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607
3082
  (exit $ac_status); }; then
2612
3087
for ac_file in conftest.exe conftest conftest.*; do
2613
3088
  test -f "$ac_file" || continue
2614
3089
  case $ac_file in
2615
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3090
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2616
3091
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617
 
          export ac_cv_exeext
2618
3092
          break;;
2619
3093
    * ) break;;
2620
3094
  esac
2628
3102
fi
2629
3103
 
2630
3104
rm -f conftest$ac_cv_exeext
2631
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2632
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3105
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3106
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2633
3107
 
2634
3108
rm -f conftest.$ac_ext
2635
3109
EXEEXT=$ac_cv_exeext
2636
3110
ac_exeext=$EXEEXT
2637
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2638
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3111
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3112
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2639
3113
if test "${ac_cv_objext+set}" = set; then
2640
3114
  echo $ECHO_N "(cached) $ECHO_C" >&6
2641
3115
else
2655
3129
}
2656
3130
_ACEOF
2657
3131
rm -f conftest.o conftest.obj
2658
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659
 
  (eval $ac_compile) 2>&5
 
3132
if { (ac_try="$ac_compile"
 
3133
case "(($ac_try" in
 
3134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3135
  *) ac_try_echo=$ac_try;;
 
3136
esac
 
3137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3138
  (eval "$ac_compile") 2>&5
2660
3139
  ac_status=$?
2661
3140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662
3141
  (exit $ac_status); }; then
2663
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3142
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3143
  test -f "$ac_file" || continue;
2664
3144
  case $ac_file in
2665
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3145
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2666
3146
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2667
3147
       break;;
2668
3148
  esac
2680
3160
 
2681
3161
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2682
3162
fi
2683
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2684
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3163
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3164
echo "${ECHO_T}$ac_cv_objext" >&6; }
2685
3165
OBJEXT=$ac_cv_objext
2686
3166
ac_objext=$OBJEXT
2687
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2688
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3167
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3168
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2689
3169
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2690
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
2691
3171
else
2708
3188
}
2709
3189
_ACEOF
2710
3190
rm -f conftest.$ac_objext
2711
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712
 
  (eval $ac_compile) 2>conftest.er1
 
3191
if { (ac_try="$ac_compile"
 
3192
case "(($ac_try" in
 
3193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3194
  *) ac_try_echo=$ac_try;;
 
3195
esac
 
3196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3197
  (eval "$ac_compile") 2>conftest.er1
2713
3198
  ac_status=$?
2714
3199
  grep -v '^ *+' conftest.er1 >conftest.err
2715
3200
  rm -f conftest.er1
2716
3201
  cat conftest.err >&5
2717
3202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718
 
  (exit $ac_status); } &&
2719
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2720
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721
 
  (eval $ac_try) 2>&5
2722
 
  ac_status=$?
2723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724
 
  (exit $ac_status); }; } &&
2725
 
         { ac_try='test -s conftest.$ac_objext'
2726
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727
 
  (eval $ac_try) 2>&5
2728
 
  ac_status=$?
2729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730
 
  (exit $ac_status); }; }; then
 
3203
  (exit $ac_status); } && {
 
3204
         test -z "$ac_c_werror_flag" ||
 
3205
         test ! -s conftest.err
 
3206
       } && test -s conftest.$ac_objext; then
2731
3207
  ac_compiler_gnu=yes
2732
3208
else
2733
3209
  echo "$as_me: failed program was:" >&5
2734
3210
sed 's/^/| /' conftest.$ac_ext >&5
2735
3211
 
2736
 
ac_compiler_gnu=no
 
3212
        ac_compiler_gnu=no
2737
3213
fi
2738
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3214
 
 
3215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739
3216
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740
3217
 
2741
3218
fi
2742
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3219
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3220
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2744
3221
GCC=`test $ac_compiler_gnu = yes && echo yes`
2745
3222
ac_test_CFLAGS=${CFLAGS+set}
2746
3223
ac_save_CFLAGS=$CFLAGS
2747
 
CFLAGS="-g"
2748
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3224
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3225
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2750
3226
if test "${ac_cv_prog_cc_g+set}" = set; then
2751
3227
  echo $ECHO_N "(cached) $ECHO_C" >&6
2752
3228
else
2753
 
  cat >conftest.$ac_ext <<_ACEOF
2754
 
/* confdefs.h.  */
2755
 
_ACEOF
2756
 
cat confdefs.h >>conftest.$ac_ext
2757
 
cat >>conftest.$ac_ext <<_ACEOF
2758
 
/* end confdefs.h.  */
2759
 
 
2760
 
int
2761
 
main ()
2762
 
{
2763
 
 
2764
 
  ;
2765
 
  return 0;
2766
 
}
2767
 
_ACEOF
2768
 
rm -f conftest.$ac_objext
2769
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770
 
  (eval $ac_compile) 2>conftest.er1
2771
 
  ac_status=$?
2772
 
  grep -v '^ *+' conftest.er1 >conftest.err
2773
 
  rm -f conftest.er1
2774
 
  cat conftest.err >&5
2775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776
 
  (exit $ac_status); } &&
2777
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779
 
  (eval $ac_try) 2>&5
2780
 
  ac_status=$?
2781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782
 
  (exit $ac_status); }; } &&
2783
 
         { ac_try='test -s conftest.$ac_objext'
2784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785
 
  (eval $ac_try) 2>&5
2786
 
  ac_status=$?
2787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788
 
  (exit $ac_status); }; }; then
2789
 
  ac_cv_prog_cc_g=yes
2790
 
else
2791
 
  echo "$as_me: failed program was:" >&5
2792
 
sed 's/^/| /' conftest.$ac_ext >&5
2793
 
 
2794
 
ac_cv_prog_cc_g=no
2795
 
fi
2796
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797
 
fi
2798
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2799
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3229
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3230
   ac_c_werror_flag=yes
 
3231
   ac_cv_prog_cc_g=no
 
3232
   CFLAGS="-g"
 
3233
   cat >conftest.$ac_ext <<_ACEOF
 
3234
/* confdefs.h.  */
 
3235
_ACEOF
 
3236
cat confdefs.h >>conftest.$ac_ext
 
3237
cat >>conftest.$ac_ext <<_ACEOF
 
3238
/* end confdefs.h.  */
 
3239
 
 
3240
int
 
3241
main ()
 
3242
{
 
3243
 
 
3244
  ;
 
3245
  return 0;
 
3246
}
 
3247
_ACEOF
 
3248
rm -f conftest.$ac_objext
 
3249
if { (ac_try="$ac_compile"
 
3250
case "(($ac_try" in
 
3251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3252
  *) ac_try_echo=$ac_try;;
 
3253
esac
 
3254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3255
  (eval "$ac_compile") 2>conftest.er1
 
3256
  ac_status=$?
 
3257
  grep -v '^ *+' conftest.er1 >conftest.err
 
3258
  rm -f conftest.er1
 
3259
  cat conftest.err >&5
 
3260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3261
  (exit $ac_status); } && {
 
3262
         test -z "$ac_c_werror_flag" ||
 
3263
         test ! -s conftest.err
 
3264
       } && test -s conftest.$ac_objext; then
 
3265
  ac_cv_prog_cc_g=yes
 
3266
else
 
3267
  echo "$as_me: failed program was:" >&5
 
3268
sed 's/^/| /' conftest.$ac_ext >&5
 
3269
 
 
3270
        CFLAGS=""
 
3271
      cat >conftest.$ac_ext <<_ACEOF
 
3272
/* confdefs.h.  */
 
3273
_ACEOF
 
3274
cat confdefs.h >>conftest.$ac_ext
 
3275
cat >>conftest.$ac_ext <<_ACEOF
 
3276
/* end confdefs.h.  */
 
3277
 
 
3278
int
 
3279
main ()
 
3280
{
 
3281
 
 
3282
  ;
 
3283
  return 0;
 
3284
}
 
3285
_ACEOF
 
3286
rm -f conftest.$ac_objext
 
3287
if { (ac_try="$ac_compile"
 
3288
case "(($ac_try" in
 
3289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3290
  *) ac_try_echo=$ac_try;;
 
3291
esac
 
3292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3293
  (eval "$ac_compile") 2>conftest.er1
 
3294
  ac_status=$?
 
3295
  grep -v '^ *+' conftest.er1 >conftest.err
 
3296
  rm -f conftest.er1
 
3297
  cat conftest.err >&5
 
3298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3299
  (exit $ac_status); } && {
 
3300
         test -z "$ac_c_werror_flag" ||
 
3301
         test ! -s conftest.err
 
3302
       } && test -s conftest.$ac_objext; then
 
3303
  :
 
3304
else
 
3305
  echo "$as_me: failed program was:" >&5
 
3306
sed 's/^/| /' conftest.$ac_ext >&5
 
3307
 
 
3308
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3309
         CFLAGS="-g"
 
3310
         cat >conftest.$ac_ext <<_ACEOF
 
3311
/* confdefs.h.  */
 
3312
_ACEOF
 
3313
cat confdefs.h >>conftest.$ac_ext
 
3314
cat >>conftest.$ac_ext <<_ACEOF
 
3315
/* end confdefs.h.  */
 
3316
 
 
3317
int
 
3318
main ()
 
3319
{
 
3320
 
 
3321
  ;
 
3322
  return 0;
 
3323
}
 
3324
_ACEOF
 
3325
rm -f conftest.$ac_objext
 
3326
if { (ac_try="$ac_compile"
 
3327
case "(($ac_try" in
 
3328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3329
  *) ac_try_echo=$ac_try;;
 
3330
esac
 
3331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3332
  (eval "$ac_compile") 2>conftest.er1
 
3333
  ac_status=$?
 
3334
  grep -v '^ *+' conftest.er1 >conftest.err
 
3335
  rm -f conftest.er1
 
3336
  cat conftest.err >&5
 
3337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3338
  (exit $ac_status); } && {
 
3339
         test -z "$ac_c_werror_flag" ||
 
3340
         test ! -s conftest.err
 
3341
       } && test -s conftest.$ac_objext; then
 
3342
  ac_cv_prog_cc_g=yes
 
3343
else
 
3344
  echo "$as_me: failed program was:" >&5
 
3345
sed 's/^/| /' conftest.$ac_ext >&5
 
3346
 
 
3347
 
 
3348
fi
 
3349
 
 
3350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3351
fi
 
3352
 
 
3353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3354
fi
 
3355
 
 
3356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3357
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3358
fi
 
3359
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3360
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2800
3361
if test "$ac_test_CFLAGS" = set; then
2801
3362
  CFLAGS=$ac_save_CFLAGS
2802
3363
elif test $ac_cv_prog_cc_g = yes; then
2812
3373
    CFLAGS=
2813
3374
  fi
2814
3375
fi
2815
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2816
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2817
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3376
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3377
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3378
if test "${ac_cv_prog_cc_c89+set}" = set; then
2818
3379
  echo $ECHO_N "(cached) $ECHO_C" >&6
2819
3380
else
2820
 
  ac_cv_prog_cc_stdc=no
 
3381
  ac_cv_prog_cc_c89=no
2821
3382
ac_save_CC=$CC
2822
3383
cat >conftest.$ac_ext <<_ACEOF
2823
3384
/* confdefs.h.  */
2851
3412
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2852
3413
   function prototypes and stuff, but not '\xHH' hex character constants.
2853
3414
   These don't provoke an error unfortunately, instead are silently treated
2854
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3415
   as 'x'.  The following induces an error, until -std is added to get
2855
3416
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2856
3417
   array size at least.  It's necessary to write '\x00'==0 to get something
2857
 
   that's true only with -std1.  */
 
3418
   that's true only with -std.  */
2858
3419
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2859
3420
 
 
3421
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3422
   inside strings and character constants.  */
 
3423
#define FOO(x) 'x'
 
3424
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3425
 
2860
3426
int test (int i, double x);
2861
3427
struct s1 {int (*f) (int a);};
2862
3428
struct s2 {int (*f) (double a);};
2871
3437
  return 0;
2872
3438
}
2873
3439
_ACEOF
2874
 
# Don't try gcc -ansi; that turns off useful extensions and
2875
 
# breaks some systems' header files.
2876
 
# AIX                   -qlanglvl=ansi
2877
 
# Ultrix and OSF/1      -std1
2878
 
# HP-UX 10.20 and later -Ae
2879
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2880
 
# SVR4                  -Xc -D__EXTENSIONS__
2881
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3440
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3441
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2882
3442
do
2883
3443
  CC="$ac_save_CC $ac_arg"
2884
3444
  rm -f conftest.$ac_objext
2885
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886
 
  (eval $ac_compile) 2>conftest.er1
 
3445
if { (ac_try="$ac_compile"
 
3446
case "(($ac_try" in
 
3447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3448
  *) ac_try_echo=$ac_try;;
 
3449
esac
 
3450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3451
  (eval "$ac_compile") 2>conftest.er1
2887
3452
  ac_status=$?
2888
3453
  grep -v '^ *+' conftest.er1 >conftest.err
2889
3454
  rm -f conftest.er1
2890
3455
  cat conftest.err >&5
2891
3456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
 
  (exit $ac_status); } &&
2893
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2894
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895
 
  (eval $ac_try) 2>&5
2896
 
  ac_status=$?
2897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898
 
  (exit $ac_status); }; } &&
2899
 
         { ac_try='test -s conftest.$ac_objext'
2900
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901
 
  (eval $ac_try) 2>&5
2902
 
  ac_status=$?
2903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904
 
  (exit $ac_status); }; }; then
2905
 
  ac_cv_prog_cc_stdc=$ac_arg
2906
 
break
 
3457
  (exit $ac_status); } && {
 
3458
         test -z "$ac_c_werror_flag" ||
 
3459
         test ! -s conftest.err
 
3460
       } && test -s conftest.$ac_objext; then
 
3461
  ac_cv_prog_cc_c89=$ac_arg
2907
3462
else
2908
3463
  echo "$as_me: failed program was:" >&5
2909
3464
sed 's/^/| /' conftest.$ac_ext >&5
2910
3465
 
 
3466
 
2911
3467
fi
2912
 
rm -f conftest.err conftest.$ac_objext
 
3468
 
 
3469
rm -f core conftest.err conftest.$ac_objext
 
3470
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2913
3471
done
2914
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3472
rm -f conftest.$ac_ext
2915
3473
CC=$ac_save_CC
2916
3474
 
2917
3475
fi
2918
 
 
2919
 
case "x$ac_cv_prog_cc_stdc" in
2920
 
  x|xno)
2921
 
    echo "$as_me:$LINENO: result: none needed" >&5
2922
 
echo "${ECHO_T}none needed" >&6 ;;
 
3476
# AC_CACHE_VAL
 
3477
case "x$ac_cv_prog_cc_c89" in
 
3478
  x)
 
3479
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3480
echo "${ECHO_T}none needed" >&6; } ;;
 
3481
  xno)
 
3482
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3483
echo "${ECHO_T}unsupported" >&6; } ;;
2923
3484
  *)
2924
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2925
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2926
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3485
    CC="$CC $ac_cv_prog_cc_c89"
 
3486
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3487
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2927
3488
esac
2928
3489
 
2929
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2930
 
# in C++ we need to declare it.  In case someone uses the same compiler
2931
 
# for both compiling C and C++ we need to have the C++ compiler decide
2932
 
# the declaration of exit, since it's the most demanding environment.
2933
 
cat >conftest.$ac_ext <<_ACEOF
2934
 
#ifndef __cplusplus
2935
 
  choke me
2936
 
#endif
2937
 
_ACEOF
2938
 
rm -f conftest.$ac_objext
2939
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940
 
  (eval $ac_compile) 2>conftest.er1
2941
 
  ac_status=$?
2942
 
  grep -v '^ *+' conftest.er1 >conftest.err
2943
 
  rm -f conftest.er1
2944
 
  cat conftest.err >&5
2945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
 
  (exit $ac_status); } &&
2947
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949
 
  (eval $ac_try) 2>&5
2950
 
  ac_status=$?
2951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
 
  (exit $ac_status); }; } &&
2953
 
         { ac_try='test -s conftest.$ac_objext'
2954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955
 
  (eval $ac_try) 2>&5
2956
 
  ac_status=$?
2957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
 
  (exit $ac_status); }; }; then
2959
 
  for ac_declaration in \
2960
 
   '' \
2961
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2962
 
   'extern "C" void std::exit (int); using std::exit;' \
2963
 
   'extern "C" void exit (int) throw ();' \
2964
 
   'extern "C" void exit (int);' \
2965
 
   'void exit (int);'
2966
 
do
2967
 
  cat >conftest.$ac_ext <<_ACEOF
2968
 
/* confdefs.h.  */
2969
 
_ACEOF
2970
 
cat confdefs.h >>conftest.$ac_ext
2971
 
cat >>conftest.$ac_ext <<_ACEOF
2972
 
/* end confdefs.h.  */
2973
 
$ac_declaration
2974
 
#include <stdlib.h>
2975
 
int
2976
 
main ()
2977
 
{
2978
 
exit (42);
2979
 
  ;
2980
 
  return 0;
2981
 
}
2982
 
_ACEOF
2983
 
rm -f conftest.$ac_objext
2984
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985
 
  (eval $ac_compile) 2>conftest.er1
2986
 
  ac_status=$?
2987
 
  grep -v '^ *+' conftest.er1 >conftest.err
2988
 
  rm -f conftest.er1
2989
 
  cat conftest.err >&5
2990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991
 
  (exit $ac_status); } &&
2992
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994
 
  (eval $ac_try) 2>&5
2995
 
  ac_status=$?
2996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
 
  (exit $ac_status); }; } &&
2998
 
         { ac_try='test -s conftest.$ac_objext'
2999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000
 
  (eval $ac_try) 2>&5
3001
 
  ac_status=$?
3002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003
 
  (exit $ac_status); }; }; then
3004
 
  :
3005
 
else
3006
 
  echo "$as_me: failed program was:" >&5
3007
 
sed 's/^/| /' conftest.$ac_ext >&5
3008
 
 
3009
 
continue
3010
 
fi
3011
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012
 
  cat >conftest.$ac_ext <<_ACEOF
3013
 
/* confdefs.h.  */
3014
 
_ACEOF
3015
 
cat confdefs.h >>conftest.$ac_ext
3016
 
cat >>conftest.$ac_ext <<_ACEOF
3017
 
/* end confdefs.h.  */
3018
 
$ac_declaration
3019
 
int
3020
 
main ()
3021
 
{
3022
 
exit (42);
3023
 
  ;
3024
 
  return 0;
3025
 
}
3026
 
_ACEOF
3027
 
rm -f conftest.$ac_objext
3028
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029
 
  (eval $ac_compile) 2>conftest.er1
3030
 
  ac_status=$?
3031
 
  grep -v '^ *+' conftest.er1 >conftest.err
3032
 
  rm -f conftest.er1
3033
 
  cat conftest.err >&5
3034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
 
  (exit $ac_status); } &&
3036
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3037
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038
 
  (eval $ac_try) 2>&5
3039
 
  ac_status=$?
3040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041
 
  (exit $ac_status); }; } &&
3042
 
         { ac_try='test -s conftest.$ac_objext'
3043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044
 
  (eval $ac_try) 2>&5
3045
 
  ac_status=$?
3046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047
 
  (exit $ac_status); }; }; then
3048
 
  break
3049
 
else
3050
 
  echo "$as_me: failed program was:" >&5
3051
 
sed 's/^/| /' conftest.$ac_ext >&5
3052
 
 
3053
 
fi
3054
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3055
 
done
3056
 
rm -f conftest*
3057
 
if test -n "$ac_declaration"; then
3058
 
  echo '#ifdef __cplusplus' >>confdefs.h
3059
 
  echo $ac_declaration      >>confdefs.h
3060
 
  echo '#endif'             >>confdefs.h
3061
 
fi
3062
 
 
3063
 
else
3064
 
  echo "$as_me: failed program was:" >&5
3065
 
sed 's/^/| /' conftest.$ac_ext >&5
3066
 
 
3067
 
fi
3068
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3490
 
3069
3491
ac_ext=c
3070
3492
ac_cpp='$CPP $CPPFLAGS'
3071
3493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072
3494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073
3495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3496
DEPDIR="${am__leading_dot}deps"
 
3497
 
 
3498
ac_config_commands="$ac_config_commands depfiles"
 
3499
 
 
3500
 
 
3501
am_make=${MAKE-make}
 
3502
cat > confinc << 'END'
 
3503
am__doit:
 
3504
        @echo done
 
3505
.PHONY: am__doit
 
3506
END
 
3507
# If we don't find an include directive, just comment out the code.
 
3508
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3509
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3510
am__include="#"
 
3511
am__quote=
 
3512
_am_result=none
 
3513
# First try GNU make style include.
 
3514
echo "include confinc" > confmf
 
3515
# We grep out `Entering directory' and `Leaving directory'
 
3516
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3517
# In particular we don't look at `^make:' because GNU make might
 
3518
# be invoked under some other name (usually "gmake"), in which
 
3519
# case it prints its new name instead of `make'.
 
3520
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3521
   am__include=include
 
3522
   am__quote=
 
3523
   _am_result=GNU
 
3524
fi
 
3525
# Now try BSD make style include.
 
3526
if test "$am__include" = "#"; then
 
3527
   echo '.include "confinc"' > confmf
 
3528
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3529
      am__include=.include
 
3530
      am__quote="\""
 
3531
      _am_result=BSD
 
3532
   fi
 
3533
fi
 
3534
 
 
3535
 
 
3536
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3537
echo "${ECHO_T}$_am_result" >&6; }
 
3538
rm -f confinc confmf
 
3539
 
 
3540
# Check whether --enable-dependency-tracking was given.
 
3541
if test "${enable_dependency_tracking+set}" = set; then
 
3542
  enableval=$enable_dependency_tracking;
 
3543
fi
 
3544
 
 
3545
if test "x$enable_dependency_tracking" != xno; then
 
3546
  am_depcomp="$ac_aux_dir/depcomp"
 
3547
  AMDEPBACKSLASH='\'
 
3548
fi
 
3549
 if test "x$enable_dependency_tracking" != xno; then
 
3550
  AMDEP_TRUE=
 
3551
  AMDEP_FALSE='#'
 
3552
else
 
3553
  AMDEP_TRUE='#'
 
3554
  AMDEP_FALSE=
 
3555
fi
 
3556
 
 
3557
 
3074
3558
 
3075
3559
depcc="$CC"   am_compiler_list=
3076
3560
 
3077
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3561
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3562
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3079
3563
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080
3564
  echo $ECHO_N "(cached) $ECHO_C" >&6
3081
3565
else
3139
3623
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3140
3624
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3141
3625
         >/dev/null 2>conftest.err &&
 
3626
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3142
3627
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3143
3628
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3144
3629
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3164
3649
fi
3165
3650
 
3166
3651
fi
3167
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3168
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3652
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3653
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3169
3654
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3170
3655
 
3171
 
 
3172
 
 
3173
 
if
 
3656
 if
3174
3657
  test "x$enable_dependency_tracking" != xno \
3175
3658
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3176
3659
  am__fastdepCC_TRUE=
3181
3664
fi
3182
3665
 
3183
3666
 
3184
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3185
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3667
 
 
3668
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
3669
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
3670
if test "${ac_cv_c_const+set}" = set; then
 
3671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3672
else
 
3673
  cat >conftest.$ac_ext <<_ACEOF
 
3674
/* confdefs.h.  */
 
3675
_ACEOF
 
3676
cat confdefs.h >>conftest.$ac_ext
 
3677
cat >>conftest.$ac_ext <<_ACEOF
 
3678
/* end confdefs.h.  */
 
3679
 
 
3680
int
 
3681
main ()
 
3682
{
 
3683
/* FIXME: Include the comments suggested by Paul. */
 
3684
#ifndef __cplusplus
 
3685
  /* Ultrix mips cc rejects this.  */
 
3686
  typedef int charset[2];
 
3687
  const charset cs;
 
3688
  /* SunOS 4.1.1 cc rejects this.  */
 
3689
  char const *const *pcpcc;
 
3690
  char **ppc;
 
3691
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
3692
  struct point {int x, y;};
 
3693
  static struct point const zero = {0,0};
 
3694
  /* AIX XL C 1.02.0.0 rejects this.
 
3695
     It does not let you subtract one const X* pointer from another in
 
3696
     an arm of an if-expression whose if-part is not a constant
 
3697
     expression */
 
3698
  const char *g = "string";
 
3699
  pcpcc = &g + (g ? g-g : 0);
 
3700
  /* HPUX 7.0 cc rejects these. */
 
3701
  ++pcpcc;
 
3702
  ppc = (char**) pcpcc;
 
3703
  pcpcc = (char const *const *) ppc;
 
3704
  { /* SCO 3.2v4 cc rejects this.  */
 
3705
    char *t;
 
3706
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3707
 
 
3708
    *t++ = 0;
 
3709
    if (s) return 0;
 
3710
  }
 
3711
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3712
    int x[] = {25, 17};
 
3713
    const int *foo = &x[0];
 
3714
    ++foo;
 
3715
  }
 
3716
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
3717
    typedef const int *iptr;
 
3718
    iptr p = 0;
 
3719
    ++p;
 
3720
  }
 
3721
  { /* AIX XL C 1.02.0.0 rejects this saying
 
3722
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
3723
    struct s { int j; const int *ap[3]; };
 
3724
    struct s *b; b->j = 5;
 
3725
  }
 
3726
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
3727
    const int foo = 10;
 
3728
    if (!foo) return 0;
 
3729
  }
 
3730
  return !cs[0] && !zero.x;
 
3731
#endif
 
3732
 
 
3733
  ;
 
3734
  return 0;
 
3735
}
 
3736
_ACEOF
 
3737
rm -f conftest.$ac_objext
 
3738
if { (ac_try="$ac_compile"
 
3739
case "(($ac_try" in
 
3740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3741
  *) ac_try_echo=$ac_try;;
 
3742
esac
 
3743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3744
  (eval "$ac_compile") 2>conftest.er1
 
3745
  ac_status=$?
 
3746
  grep -v '^ *+' conftest.er1 >conftest.err
 
3747
  rm -f conftest.er1
 
3748
  cat conftest.err >&5
 
3749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3750
  (exit $ac_status); } && {
 
3751
         test -z "$ac_c_werror_flag" ||
 
3752
         test ! -s conftest.err
 
3753
       } && test -s conftest.$ac_objext; then
 
3754
  ac_cv_c_const=yes
 
3755
else
 
3756
  echo "$as_me: failed program was:" >&5
 
3757
sed 's/^/| /' conftest.$ac_ext >&5
 
3758
 
 
3759
        ac_cv_c_const=no
 
3760
fi
 
3761
 
 
3762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3763
fi
 
3764
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
3765
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
3766
if test $ac_cv_c_const = no; then
 
3767
 
 
3768
cat >>confdefs.h <<\_ACEOF
 
3769
#define const
 
3770
_ACEOF
 
3771
 
 
3772
fi
 
3773
 
 
3774
# Check whether --enable-shared was given.
 
3775
if test "${enable_shared+set}" = set; then
 
3776
  enableval=$enable_shared; p=${PACKAGE-default}
 
3777
    case $enableval in
 
3778
    yes) enable_shared=yes ;;
 
3779
    no) enable_shared=no ;;
 
3780
    *)
 
3781
      enable_shared=no
 
3782
      # Look at the argument we got.  We use all the common list separators.
 
3783
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3784
      for pkg in $enableval; do
 
3785
        IFS="$lt_save_ifs"
 
3786
        if test "X$pkg" = "X$p"; then
 
3787
          enable_shared=yes
 
3788
        fi
 
3789
      done
 
3790
      IFS="$lt_save_ifs"
 
3791
      ;;
 
3792
    esac
 
3793
else
 
3794
  enable_shared=yes
 
3795
fi
 
3796
 
 
3797
 
 
3798
# Check whether --enable-static was given.
 
3799
if test "${enable_static+set}" = set; then
 
3800
  enableval=$enable_static; p=${PACKAGE-default}
 
3801
    case $enableval in
 
3802
    yes) enable_static=yes ;;
 
3803
    no) enable_static=no ;;
 
3804
    *)
 
3805
     enable_static=no
 
3806
      # Look at the argument we got.  We use all the common list separators.
 
3807
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3808
      for pkg in $enableval; do
 
3809
        IFS="$lt_save_ifs"
 
3810
        if test "X$pkg" = "X$p"; then
 
3811
          enable_static=yes
 
3812
        fi
 
3813
      done
 
3814
      IFS="$lt_save_ifs"
 
3815
      ;;
 
3816
    esac
 
3817
else
 
3818
  enable_static=yes
 
3819
fi
 
3820
 
 
3821
 
 
3822
# Check whether --enable-fast-install was given.
 
3823
if test "${enable_fast_install+set}" = set; then
 
3824
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3825
    case $enableval in
 
3826
    yes) enable_fast_install=yes ;;
 
3827
    no) enable_fast_install=no ;;
 
3828
    *)
 
3829
      enable_fast_install=no
 
3830
      # Look at the argument we got.  We use all the common list separators.
 
3831
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3832
      for pkg in $enableval; do
 
3833
        IFS="$lt_save_ifs"
 
3834
        if test "X$pkg" = "X$p"; then
 
3835
          enable_fast_install=yes
 
3836
        fi
 
3837
      done
 
3838
      IFS="$lt_save_ifs"
 
3839
      ;;
 
3840
    esac
 
3841
else
 
3842
  enable_fast_install=yes
 
3843
fi
 
3844
 
 
3845
 
 
3846
# Make sure we can run config.sub.
 
3847
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3848
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3849
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3850
   { (exit 1); exit 1; }; }
 
3851
 
 
3852
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3853
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3854
if test "${ac_cv_build+set}" = set; then
 
3855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3856
else
 
3857
  ac_build_alias=$build_alias
 
3858
test "x$ac_build_alias" = x &&
 
3859
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3860
test "x$ac_build_alias" = x &&
 
3861
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3862
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3863
   { (exit 1); exit 1; }; }
 
3864
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3865
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3866
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3867
   { (exit 1); exit 1; }; }
 
3868
 
 
3869
fi
 
3870
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3871
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3872
case $ac_cv_build in
 
3873
*-*-*) ;;
 
3874
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3875
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3876
   { (exit 1); exit 1; }; };;
 
3877
esac
 
3878
build=$ac_cv_build
 
3879
ac_save_IFS=$IFS; IFS='-'
 
3880
set x $ac_cv_build
 
3881
shift
 
3882
build_cpu=$1
 
3883
build_vendor=$2
 
3884
shift; shift
 
3885
# Remember, the first character of IFS is used to create $*,
 
3886
# except with old shells:
 
3887
build_os=$*
 
3888
IFS=$ac_save_IFS
 
3889
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3890
 
 
3891
 
 
3892
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3893
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3894
if test "${ac_cv_host+set}" = set; then
 
3895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3896
else
 
3897
  if test "x$host_alias" = x; then
 
3898
  ac_cv_host=$ac_cv_build
 
3899
else
 
3900
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3901
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3902
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3903
   { (exit 1); exit 1; }; }
 
3904
fi
 
3905
 
 
3906
fi
 
3907
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3908
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3909
case $ac_cv_host in
 
3910
*-*-*) ;;
 
3911
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3912
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3913
   { (exit 1); exit 1; }; };;
 
3914
esac
 
3915
host=$ac_cv_host
 
3916
ac_save_IFS=$IFS; IFS='-'
 
3917
set x $ac_cv_host
 
3918
shift
 
3919
host_cpu=$1
 
3920
host_vendor=$2
 
3921
shift; shift
 
3922
# Remember, the first character of IFS is used to create $*,
 
3923
# except with old shells:
 
3924
host_os=$*
 
3925
IFS=$ac_save_IFS
 
3926
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3927
 
 
3928
 
 
3929
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3930
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3186
3931
if test "${lt_cv_path_SED+set}" = set; then
3187
3932
  echo $ECHO_N "(cached) $ECHO_C" >&6
3188
3933
else
3201
3946
    done
3202
3947
  done
3203
3948
done
 
3949
IFS=$as_save_IFS
3204
3950
lt_ac_max=0
3205
3951
lt_ac_count=0
3206
3952
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3207
3953
# along with /bin/sed that truncates output.
3208
3954
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3209
 
  test ! -f $lt_ac_sed && break
 
3955
  test ! -f $lt_ac_sed && continue
3210
3956
  cat /dev/null > conftest.in
3211
3957
  lt_ac_count=0
3212
3958
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3231
3977
    fi
3232
3978
  done
3233
3979
done
 
3980
 
 
3981
fi
 
3982
 
3234
3983
SED=$lt_cv_path_SED
3235
3984
 
3236
 
fi
3237
 
 
3238
 
echo "$as_me:$LINENO: result: $SED" >&5
3239
 
echo "${ECHO_T}$SED" >&6
3240
 
 
3241
 
echo "$as_me:$LINENO: checking for egrep" >&5
3242
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3243
 
if test "${ac_cv_prog_egrep+set}" = set; then
3244
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3245
 
else
3246
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3247
 
    then ac_cv_prog_egrep='grep -E'
3248
 
    else ac_cv_prog_egrep='egrep'
3249
 
    fi
3250
 
fi
3251
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3252
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3253
 
 EGREP=$ac_cv_prog_egrep
3254
 
 
3255
 
 
3256
 
 
3257
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3985
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3986
echo "${ECHO_T}$SED" >&6; }
 
3987
 
 
3988
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3989
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3990
if test "${ac_cv_path_GREP+set}" = set; then
 
3991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3992
else
 
3993
  # Extract the first word of "grep ggrep" to use in msg output
 
3994
if test -z "$GREP"; then
 
3995
set dummy grep ggrep; ac_prog_name=$2
 
3996
if test "${ac_cv_path_GREP+set}" = set; then
 
3997
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3998
else
 
3999
  ac_path_GREP_found=false
 
4000
# Loop through the user's path and test for each of PROGNAME-LIST
 
4001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4002
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4003
do
 
4004
  IFS=$as_save_IFS
 
4005
  test -z "$as_dir" && as_dir=.
 
4006
  for ac_prog in grep ggrep; do
 
4007
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4008
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4009
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4010
    # Check for GNU ac_path_GREP and select it if it is found.
 
4011
  # Check for GNU $ac_path_GREP
 
4012
case `"$ac_path_GREP" --version 2>&1` in
 
4013
*GNU*)
 
4014
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4015
*)
 
4016
  ac_count=0
 
4017
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4018
  while :
 
4019
  do
 
4020
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4021
    mv "conftest.tmp" "conftest.in"
 
4022
    cp "conftest.in" "conftest.nl"
 
4023
    echo 'GREP' >> "conftest.nl"
 
4024
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4025
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4026
    ac_count=`expr $ac_count + 1`
 
4027
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4028
      # Best one so far, save it but keep looking for a better one
 
4029
      ac_cv_path_GREP="$ac_path_GREP"
 
4030
      ac_path_GREP_max=$ac_count
 
4031
    fi
 
4032
    # 10*(2^10) chars as input seems more than enough
 
4033
    test $ac_count -gt 10 && break
 
4034
  done
 
4035
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4036
esac
 
4037
 
 
4038
 
 
4039
    $ac_path_GREP_found && break 3
 
4040
  done
 
4041
done
 
4042
 
 
4043
done
 
4044
IFS=$as_save_IFS
 
4045
 
 
4046
 
 
4047
fi
 
4048
 
 
4049
GREP="$ac_cv_path_GREP"
 
4050
if test -z "$GREP"; then
 
4051
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4052
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4053
   { (exit 1); exit 1; }; }
 
4054
fi
 
4055
 
 
4056
else
 
4057
  ac_cv_path_GREP=$GREP
 
4058
fi
 
4059
 
 
4060
 
 
4061
fi
 
4062
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4063
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4064
 GREP="$ac_cv_path_GREP"
 
4065
 
 
4066
 
 
4067
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4068
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4069
if test "${ac_cv_path_EGREP+set}" = set; then
 
4070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4071
else
 
4072
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4073
   then ac_cv_path_EGREP="$GREP -E"
 
4074
   else
 
4075
     # Extract the first word of "egrep" to use in msg output
 
4076
if test -z "$EGREP"; then
 
4077
set dummy egrep; ac_prog_name=$2
 
4078
if test "${ac_cv_path_EGREP+set}" = set; then
 
4079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4080
else
 
4081
  ac_path_EGREP_found=false
 
4082
# Loop through the user's path and test for each of PROGNAME-LIST
 
4083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4084
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4085
do
 
4086
  IFS=$as_save_IFS
 
4087
  test -z "$as_dir" && as_dir=.
 
4088
  for ac_prog in egrep; do
 
4089
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4090
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4091
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4092
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4093
  # Check for GNU $ac_path_EGREP
 
4094
case `"$ac_path_EGREP" --version 2>&1` in
 
4095
*GNU*)
 
4096
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4097
*)
 
4098
  ac_count=0
 
4099
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4100
  while :
 
4101
  do
 
4102
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4103
    mv "conftest.tmp" "conftest.in"
 
4104
    cp "conftest.in" "conftest.nl"
 
4105
    echo 'EGREP' >> "conftest.nl"
 
4106
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4107
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4108
    ac_count=`expr $ac_count + 1`
 
4109
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4110
      # Best one so far, save it but keep looking for a better one
 
4111
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4112
      ac_path_EGREP_max=$ac_count
 
4113
    fi
 
4114
    # 10*(2^10) chars as input seems more than enough
 
4115
    test $ac_count -gt 10 && break
 
4116
  done
 
4117
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4118
esac
 
4119
 
 
4120
 
 
4121
    $ac_path_EGREP_found && break 3
 
4122
  done
 
4123
done
 
4124
 
 
4125
done
 
4126
IFS=$as_save_IFS
 
4127
 
 
4128
 
 
4129
fi
 
4130
 
 
4131
EGREP="$ac_cv_path_EGREP"
 
4132
if test -z "$EGREP"; then
 
4133
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4134
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4135
   { (exit 1); exit 1; }; }
 
4136
fi
 
4137
 
 
4138
else
 
4139
  ac_cv_path_EGREP=$EGREP
 
4140
fi
 
4141
 
 
4142
 
 
4143
   fi
 
4144
fi
 
4145
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4146
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4147
 EGREP="$ac_cv_path_EGREP"
 
4148
 
 
4149
 
 
4150
 
 
4151
# Check whether --with-gnu-ld was given.
3258
4152
if test "${with_gnu_ld+set}" = set; then
3259
 
  withval="$with_gnu_ld"
3260
 
  test "$withval" = no || with_gnu_ld=yes
 
4153
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3261
4154
else
3262
4155
  with_gnu_ld=no
3263
 
fi;
 
4156
fi
 
4157
 
3264
4158
ac_prog=ld
3265
4159
if test "$GCC" = yes; then
3266
4160
  # Check if gcc -print-prog-name=ld gives a path.
3267
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3268
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4161
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4162
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3269
4163
  case $host in
3270
4164
  *-*-mingw*)
3271
4165
    # gcc leaves a trailing carriage return which upsets mingw
3294
4188
    ;;
3295
4189
  esac
3296
4190
elif test "$with_gnu_ld" = yes; then
3297
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3298
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4191
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4192
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3299
4193
else
3300
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3301
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4194
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4195
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3302
4196
fi
3303
4197
if test "${lt_cv_path_LD+set}" = set; then
3304
4198
  echo $ECHO_N "(cached) $ECHO_C" >&6
3311
4205
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3312
4206
      lt_cv_path_LD="$ac_dir/$ac_prog"
3313
4207
      # Check to see if the program is GNU ld.  I'd rather use --version,
3314
 
      # but apparently some GNU ld's only accept -v.
 
4208
      # but apparently some variants of GNU ld only accept -v.
3315
4209
      # Break only if it was the GNU/non-GNU ld that we prefer.
3316
4210
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3317
4211
      *GNU* | *'with BFD'*)
3331
4225
 
3332
4226
LD="$lt_cv_path_LD"
3333
4227
if test -n "$LD"; then
3334
 
  echo "$as_me:$LINENO: result: $LD" >&5
3335
 
echo "${ECHO_T}$LD" >&6
 
4228
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4229
echo "${ECHO_T}$LD" >&6; }
3336
4230
else
3337
 
  echo "$as_me:$LINENO: result: no" >&5
3338
 
echo "${ECHO_T}no" >&6
 
4231
  { echo "$as_me:$LINENO: result: no" >&5
 
4232
echo "${ECHO_T}no" >&6; }
3339
4233
fi
3340
4234
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3341
4235
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3342
4236
   { (exit 1); exit 1; }; }
3343
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3344
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4237
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4238
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3345
4239
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3346
4240
  echo $ECHO_N "(cached) $ECHO_C" >&6
3347
4241
else
3348
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4242
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3349
4243
case `$LD -v 2>&1 </dev/null` in
3350
4244
*GNU* | *'with BFD'*)
3351
4245
  lt_cv_prog_gnu_ld=yes
3355
4249
  ;;
3356
4250
esac
3357
4251
fi
3358
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3359
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4252
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4253
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3360
4254
with_gnu_ld=$lt_cv_prog_gnu_ld
3361
4255
 
3362
4256
 
3363
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3364
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4257
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4258
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3365
4259
if test "${lt_cv_ld_reload_flag+set}" = set; then
3366
4260
  echo $ECHO_N "(cached) $ECHO_C" >&6
3367
4261
else
3368
4262
  lt_cv_ld_reload_flag='-r'
3369
4263
fi
3370
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3371
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4264
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4265
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3372
4266
reload_flag=$lt_cv_ld_reload_flag
3373
4267
case $reload_flag in
3374
4268
"" | " "*) ;;
3375
4269
*) reload_flag=" $reload_flag" ;;
3376
4270
esac
3377
4271
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4272
case $host_os in
 
4273
  darwin*)
 
4274
    if test "$GCC" = yes; then
 
4275
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4276
    else
 
4277
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4278
    fi
 
4279
    ;;
 
4280
esac
3378
4281
 
3379
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3380
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4282
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4283
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3381
4284
if test "${lt_cv_path_NM+set}" = set; then
3382
4285
  echo $ECHO_N "(cached) $ECHO_C" >&6
3383
4286
else
3385
4288
  # Let the user override the test.
3386
4289
  lt_cv_path_NM="$NM"
3387
4290
else
3388
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3389
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3390
 
    IFS="$lt_save_ifs"
3391
 
    test -z "$ac_dir" && ac_dir=.
3392
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3393
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3394
 
      # Check to see if the nm accepts a BSD-compat flag.
3395
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3396
 
      #   nm: unknown option "B" ignored
3397
 
      # Tru64's nm complains that /dev/null is an invalid object file
3398
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3399
 
      */dev/null* | *'Invalid file or object type'*)
3400
 
        lt_cv_path_NM="$tmp_nm -B"
3401
 
        break
3402
 
        ;;
3403
 
      *)
3404
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3405
 
        */dev/null*)
3406
 
          lt_cv_path_NM="$tmp_nm -p"
 
4291
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4292
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4293
    lt_nm_to_check="$lt_nm_to_check nm"
 
4294
  fi
 
4295
  for lt_tmp_nm in $lt_nm_to_check; do
 
4296
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4297
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4298
      IFS="$lt_save_ifs"
 
4299
      test -z "$ac_dir" && ac_dir=.
 
4300
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4301
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4302
        # Check to see if the nm accepts a BSD-compat flag.
 
4303
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4304
        #   nm: unknown option "B" ignored
 
4305
        # Tru64's nm complains that /dev/null is an invalid object file
 
4306
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4307
        */dev/null* | *'Invalid file or object type'*)
 
4308
          lt_cv_path_NM="$tmp_nm -B"
3407
4309
          break
3408
4310
          ;;
3409
4311
        *)
3410
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3411
 
          continue # so that we can try to find one that supports BSD flags
 
4312
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4313
          */dev/null*)
 
4314
            lt_cv_path_NM="$tmp_nm -p"
 
4315
            break
 
4316
            ;;
 
4317
          *)
 
4318
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4319
            continue # so that we can try to find one that supports BSD flags
 
4320
            ;;
 
4321
          esac
3412
4322
          ;;
3413
4323
        esac
3414
 
      esac
3415
 
    fi
 
4324
      fi
 
4325
    done
 
4326
    IFS="$lt_save_ifs"
3416
4327
  done
3417
 
  IFS="$lt_save_ifs"
3418
4328
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3419
4329
fi
3420
4330
fi
3421
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3422
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4331
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4332
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3423
4333
NM="$lt_cv_path_NM"
3424
4334
 
3425
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3426
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4335
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4336
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3427
4337
LN_S=$as_ln_s
3428
4338
if test "$LN_S" = "ln -s"; then
3429
 
  echo "$as_me:$LINENO: result: yes" >&5
3430
 
echo "${ECHO_T}yes" >&6
 
4339
  { echo "$as_me:$LINENO: result: yes" >&5
 
4340
echo "${ECHO_T}yes" >&6; }
3431
4341
else
3432
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3433
 
echo "${ECHO_T}no, using $LN_S" >&6
 
4342
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4343
echo "${ECHO_T}no, using $LN_S" >&6; }
3434
4344
fi
3435
4345
 
3436
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3437
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4346
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4347
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3438
4348
if test "${lt_cv_deplibs_check_method+set}" = set; then
3439
4349
  echo $ECHO_N "(cached) $ECHO_C" >&6
3440
4350
else
3461
4371
  lt_cv_deplibs_check_method=pass_all
3462
4372
  ;;
3463
4373
 
3464
 
bsdi4*)
 
4374
bsdi[45]*)
3465
4375
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3466
4376
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3467
4377
  lt_cv_file_magic_test_file=/shlib/libc.so
3484
4394
  lt_cv_deplibs_check_method=pass_all
3485
4395
  ;;
3486
4396
 
3487
 
freebsd* | kfreebsd*-gnu)
 
4397
freebsd* | kfreebsd*-gnu | dragonfly*)
3488
4398
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3489
4399
    case $host_cpu in
3490
4400
    i*86 )
3491
4401
      # Not sure whether the presence of OpenBSD here was a mistake.
3492
4402
      # Let's accept both of them until this is cleared up.
3493
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4403
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3494
4404
      lt_cv_file_magic_cmd=/usr/bin/file
3495
4405
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3496
4406
      ;;
3506
4416
 
3507
4417
hpux10.20* | hpux11*)
3508
4418
  lt_cv_file_magic_cmd=/usr/bin/file
3509
 
  case "$host_cpu" in
 
4419
  case $host_cpu in
3510
4420
  ia64*)
3511
4421
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3512
4422
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3522
4432
  esac
3523
4433
  ;;
3524
4434
 
 
4435
interix3*)
 
4436
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4437
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4438
  ;;
 
4439
 
3525
4440
irix5* | irix6* | nonstopux*)
3526
4441
  case $LD in
3527
4442
  *-32|*"-32 ") libmagic=32-bit;;
3537
4452
  lt_cv_deplibs_check_method=pass_all
3538
4453
  ;;
3539
4454
 
3540
 
netbsd* | knetbsd*-gnu)
 
4455
netbsd*)
3541
4456
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3542
4457
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3543
4458
  else
3556
4471
  ;;
3557
4472
 
3558
4473
openbsd*)
3559
 
  lt_cv_file_magic_cmd=/usr/bin/file
3560
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3561
4474
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3562
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4475
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3563
4476
  else
3564
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4477
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3565
4478
  fi
3566
4479
  ;;
3567
4480
 
3569
4482
  lt_cv_deplibs_check_method=pass_all
3570
4483
  ;;
3571
4484
 
3572
 
sco3.2v5*)
3573
 
  lt_cv_deplibs_check_method=pass_all
3574
 
  ;;
3575
 
 
3576
4485
solaris*)
3577
4486
  lt_cv_deplibs_check_method=pass_all
3578
4487
  ;;
3579
4488
 
3580
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4489
sysv4 | sysv4.3*)
3581
4490
  case $host_vendor in
3582
4491
  motorola)
3583
4492
    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]'
3598
4507
  siemens)
3599
4508
    lt_cv_deplibs_check_method=pass_all
3600
4509
    ;;
 
4510
  pc)
 
4511
    lt_cv_deplibs_check_method=pass_all
 
4512
    ;;
3601
4513
  esac
3602
4514
  ;;
3603
4515
 
3604
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4516
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3605
4517
  lt_cv_deplibs_check_method=pass_all
3606
4518
  ;;
3607
4519
esac
3608
4520
 
3609
4521
fi
3610
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3611
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4522
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4523
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3612
4524
file_magic_cmd=$lt_cv_file_magic_cmd
3613
4525
deplibs_check_method=$lt_cv_deplibs_check_method
3614
4526
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3619
4531
# If no C compiler was specified, use CC.
3620
4532
LTCC=${LTCC-"$CC"}
3621
4533
 
 
4534
# If no C compiler flags were specified, use CFLAGS.
 
4535
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4536
 
3622
4537
# Allow CC to be a program name with arguments.
3623
4538
compiler=$CC
3624
4539
 
3625
 
 
3626
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4540
# Check whether --enable-libtool-lock was given.
3627
4541
if test "${enable_libtool_lock+set}" = set; then
3628
 
  enableval="$enable_libtool_lock"
 
4542
  enableval=$enable_libtool_lock;
 
4543
fi
3629
4544
 
3630
 
fi;
3631
4545
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3632
4546
 
3633
4547
# Some flags need to be propagated to the compiler or linker for good
3654
4568
  ;;
3655
4569
*-*-irix6*)
3656
4570
  # Find out which ABI we are using.
3657
 
  echo '#line 3657 "configure"' > conftest.$ac_ext
 
4571
  echo '#line 4571 "configure"' > conftest.$ac_ext
3658
4572
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659
4573
  (eval $ac_compile) 2>&5
3660
4574
  ac_status=$?
3697
4611
  ac_status=$?
3698
4612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699
4613
  (exit $ac_status); }; then
3700
 
    case "`/usr/bin/file conftest.o`" in
 
4614
    case `/usr/bin/file conftest.o` in
3701
4615
    *32-bit*)
3702
4616
      case $host in
3703
4617
        x86_64-*linux*)
3739
4653
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3740
4654
  SAVE_CFLAGS="$CFLAGS"
3741
4655
  CFLAGS="$CFLAGS -belf"
3742
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3743
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4656
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4657
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3744
4658
if test "${lt_cv_cc_needs_belf+set}" = set; then
3745
4659
  echo $ECHO_N "(cached) $ECHO_C" >&6
3746
4660
else
3766
4680
}
3767
4681
_ACEOF
3768
4682
rm -f conftest.$ac_objext conftest$ac_exeext
3769
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770
 
  (eval $ac_link) 2>conftest.er1
 
4683
if { (ac_try="$ac_link"
 
4684
case "(($ac_try" in
 
4685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4686
  *) ac_try_echo=$ac_try;;
 
4687
esac
 
4688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4689
  (eval "$ac_link") 2>conftest.er1
3771
4690
  ac_status=$?
3772
4691
  grep -v '^ *+' conftest.er1 >conftest.err
3773
4692
  rm -f conftest.er1
3774
4693
  cat conftest.err >&5
3775
4694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
 
  (exit $ac_status); } &&
3777
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779
 
  (eval $ac_try) 2>&5
3780
 
  ac_status=$?
3781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782
 
  (exit $ac_status); }; } &&
3783
 
         { ac_try='test -s conftest$ac_exeext'
3784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785
 
  (eval $ac_try) 2>&5
3786
 
  ac_status=$?
3787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
 
  (exit $ac_status); }; }; then
 
4695
  (exit $ac_status); } && {
 
4696
         test -z "$ac_c_werror_flag" ||
 
4697
         test ! -s conftest.err
 
4698
       } && test -s conftest$ac_exeext &&
 
4699
       $as_test_x conftest$ac_exeext; then
3789
4700
  lt_cv_cc_needs_belf=yes
3790
4701
else
3791
4702
  echo "$as_me: failed program was:" >&5
3792
4703
sed 's/^/| /' conftest.$ac_ext >&5
3793
4704
 
3794
 
lt_cv_cc_needs_belf=no
 
4705
        lt_cv_cc_needs_belf=no
3795
4706
fi
3796
 
rm -f conftest.err conftest.$ac_objext \
 
4707
 
 
4708
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3797
4709
      conftest$ac_exeext conftest.$ac_ext
3798
4710
     ac_ext=c
3799
4711
ac_cpp='$CPP $CPPFLAGS'
3802
4714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
4715
 
3804
4716
fi
3805
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3806
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4717
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4718
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3807
4719
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3808
4720
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3809
4721
    CFLAGS="$SAVE_CFLAGS"
3810
4722
  fi
3811
4723
  ;;
 
4724
sparc*-*solaris*)
 
4725
  # Find out which ABI we are using.
 
4726
  echo 'int i;' > conftest.$ac_ext
 
4727
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4728
  (eval $ac_compile) 2>&5
 
4729
  ac_status=$?
 
4730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; then
 
4732
    case `/usr/bin/file conftest.o` in
 
4733
    *64-bit*)
 
4734
      case $lt_cv_prog_gnu_ld in
 
4735
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4736
      *)    LD="${LD-ld} -64" ;;
 
4737
      esac
 
4738
      ;;
 
4739
    esac
 
4740
  fi
 
4741
  rm -rf conftest*
 
4742
  ;;
 
4743
 
3812
4744
 
3813
4745
esac
3814
4746
 
3820
4752
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821
4753
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822
4754
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3824
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4755
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4756
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3825
4757
# On Suns, sometimes $CPP names a directory.
3826
4758
if test -n "$CPP" && test -d "$CPP"; then
3827
4759
  CPP=
3855
4787
#endif
3856
4788
                     Syntax error
3857
4789
_ACEOF
3858
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4790
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4791
case "(($ac_try" in
 
4792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4793
  *) ac_try_echo=$ac_try;;
 
4794
esac
 
4795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4796
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3860
4797
  ac_status=$?
3861
4798
  grep -v '^ *+' conftest.er1 >conftest.err
3862
4799
  rm -f conftest.er1
3863
4800
  cat conftest.err >&5
3864
4801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865
 
  (exit $ac_status); } >/dev/null; then
3866
 
  if test -s conftest.err; then
3867
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3868
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869
 
  else
3870
 
    ac_cpp_err=
3871
 
  fi
3872
 
else
3873
 
  ac_cpp_err=yes
3874
 
fi
3875
 
if test -z "$ac_cpp_err"; then
 
4802
  (exit $ac_status); } >/dev/null && {
 
4803
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4804
         test ! -s conftest.err
 
4805
       }; then
3876
4806
  :
3877
4807
else
3878
4808
  echo "$as_me: failed program was:" >&5
3881
4811
  # Broken: fails on valid input.
3882
4812
continue
3883
4813
fi
 
4814
 
3884
4815
rm -f conftest.err conftest.$ac_ext
3885
4816
 
3886
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4817
  # OK, works on sane cases.  Now check whether nonexistent headers
3887
4818
  # can be detected and how.
3888
4819
  cat >conftest.$ac_ext <<_ACEOF
3889
4820
/* confdefs.h.  */
3893
4824
/* end confdefs.h.  */
3894
4825
#include <ac_nonexistent.h>
3895
4826
_ACEOF
3896
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3897
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4827
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4828
case "(($ac_try" in
 
4829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4830
  *) ac_try_echo=$ac_try;;
 
4831
esac
 
4832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4833
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898
4834
  ac_status=$?
3899
4835
  grep -v '^ *+' conftest.er1 >conftest.err
3900
4836
  rm -f conftest.er1
3901
4837
  cat conftest.err >&5
3902
4838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903
 
  (exit $ac_status); } >/dev/null; then
3904
 
  if test -s conftest.err; then
3905
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3906
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3907
 
  else
3908
 
    ac_cpp_err=
3909
 
  fi
3910
 
else
3911
 
  ac_cpp_err=yes
3912
 
fi
3913
 
if test -z "$ac_cpp_err"; then
 
4839
  (exit $ac_status); } >/dev/null && {
 
4840
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4841
         test ! -s conftest.err
 
4842
       }; then
3914
4843
  # Broken: success on invalid input.
3915
4844
continue
3916
4845
else
3921
4850
ac_preproc_ok=:
3922
4851
break
3923
4852
fi
 
4853
 
3924
4854
rm -f conftest.err conftest.$ac_ext
3925
4855
 
3926
4856
done
3938
4868
else
3939
4869
  ac_cv_prog_CPP=$CPP
3940
4870
fi
3941
 
echo "$as_me:$LINENO: result: $CPP" >&5
3942
 
echo "${ECHO_T}$CPP" >&6
 
4871
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4872
echo "${ECHO_T}$CPP" >&6; }
3943
4873
ac_preproc_ok=false
3944
4874
for ac_c_preproc_warn_flag in '' yes
3945
4875
do
3962
4892
#endif
3963
4893
                     Syntax error
3964
4894
_ACEOF
3965
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3966
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4895
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4896
case "(($ac_try" in
 
4897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4898
  *) ac_try_echo=$ac_try;;
 
4899
esac
 
4900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4901
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967
4902
  ac_status=$?
3968
4903
  grep -v '^ *+' conftest.er1 >conftest.err
3969
4904
  rm -f conftest.er1
3970
4905
  cat conftest.err >&5
3971
4906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972
 
  (exit $ac_status); } >/dev/null; then
3973
 
  if test -s conftest.err; then
3974
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3975
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3976
 
  else
3977
 
    ac_cpp_err=
3978
 
  fi
3979
 
else
3980
 
  ac_cpp_err=yes
3981
 
fi
3982
 
if test -z "$ac_cpp_err"; then
 
4907
  (exit $ac_status); } >/dev/null && {
 
4908
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4909
         test ! -s conftest.err
 
4910
       }; then
3983
4911
  :
3984
4912
else
3985
4913
  echo "$as_me: failed program was:" >&5
3988
4916
  # Broken: fails on valid input.
3989
4917
continue
3990
4918
fi
 
4919
 
3991
4920
rm -f conftest.err conftest.$ac_ext
3992
4921
 
3993
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4922
  # OK, works on sane cases.  Now check whether nonexistent headers
3994
4923
  # can be detected and how.
3995
4924
  cat >conftest.$ac_ext <<_ACEOF
3996
4925
/* confdefs.h.  */
4000
4929
/* end confdefs.h.  */
4001
4930
#include <ac_nonexistent.h>
4002
4931
_ACEOF
4003
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4004
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4932
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4933
case "(($ac_try" in
 
4934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4935
  *) ac_try_echo=$ac_try;;
 
4936
esac
 
4937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4938
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4005
4939
  ac_status=$?
4006
4940
  grep -v '^ *+' conftest.er1 >conftest.err
4007
4941
  rm -f conftest.er1
4008
4942
  cat conftest.err >&5
4009
4943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010
 
  (exit $ac_status); } >/dev/null; then
4011
 
  if test -s conftest.err; then
4012
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4013
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014
 
  else
4015
 
    ac_cpp_err=
4016
 
  fi
4017
 
else
4018
 
  ac_cpp_err=yes
4019
 
fi
4020
 
if test -z "$ac_cpp_err"; then
 
4944
  (exit $ac_status); } >/dev/null && {
 
4945
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4946
         test ! -s conftest.err
 
4947
       }; then
4021
4948
  # Broken: success on invalid input.
4022
4949
continue
4023
4950
else
4028
4955
ac_preproc_ok=:
4029
4956
break
4030
4957
fi
 
4958
 
4031
4959
rm -f conftest.err conftest.$ac_ext
4032
4960
 
4033
4961
done
4050
4978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4979
 
4052
4980
 
4053
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4054
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4981
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4982
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4055
4983
if test "${ac_cv_header_stdc+set}" = set; then
4056
4984
  echo $ECHO_N "(cached) $ECHO_C" >&6
4057
4985
else
4075
5003
}
4076
5004
_ACEOF
4077
5005
rm -f conftest.$ac_objext
4078
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079
 
  (eval $ac_compile) 2>conftest.er1
 
5006
if { (ac_try="$ac_compile"
 
5007
case "(($ac_try" in
 
5008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5009
  *) ac_try_echo=$ac_try;;
 
5010
esac
 
5011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5012
  (eval "$ac_compile") 2>conftest.er1
4080
5013
  ac_status=$?
4081
5014
  grep -v '^ *+' conftest.er1 >conftest.err
4082
5015
  rm -f conftest.er1
4083
5016
  cat conftest.err >&5
4084
5017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085
 
  (exit $ac_status); } &&
4086
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4087
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088
 
  (eval $ac_try) 2>&5
4089
 
  ac_status=$?
4090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
 
  (exit $ac_status); }; } &&
4092
 
         { ac_try='test -s conftest.$ac_objext'
4093
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094
 
  (eval $ac_try) 2>&5
4095
 
  ac_status=$?
4096
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097
 
  (exit $ac_status); }; }; then
 
5018
  (exit $ac_status); } && {
 
5019
         test -z "$ac_c_werror_flag" ||
 
5020
         test ! -s conftest.err
 
5021
       } && test -s conftest.$ac_objext; then
4098
5022
  ac_cv_header_stdc=yes
4099
5023
else
4100
5024
  echo "$as_me: failed program was:" >&5
4101
5025
sed 's/^/| /' conftest.$ac_ext >&5
4102
5026
 
4103
 
ac_cv_header_stdc=no
 
5027
        ac_cv_header_stdc=no
4104
5028
fi
4105
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5029
 
 
5030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106
5031
 
4107
5032
if test $ac_cv_header_stdc = yes; then
4108
5033
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4158
5083
cat >>conftest.$ac_ext <<_ACEOF
4159
5084
/* end confdefs.h.  */
4160
5085
#include <ctype.h>
 
5086
#include <stdlib.h>
4161
5087
#if ((' ' & 0x0FF) == 0x020)
4162
5088
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4163
5089
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177
5103
  for (i = 0; i < 256; i++)
4178
5104
    if (XOR (islower (i), ISLOWER (i))
4179
5105
        || toupper (i) != TOUPPER (i))
4180
 
      exit(2);
4181
 
  exit (0);
 
5106
      return 2;
 
5107
  return 0;
4182
5108
}
4183
5109
_ACEOF
4184
5110
rm -f conftest$ac_exeext
4185
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186
 
  (eval $ac_link) 2>&5
 
5111
if { (ac_try="$ac_link"
 
5112
case "(($ac_try" in
 
5113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5114
  *) ac_try_echo=$ac_try;;
 
5115
esac
 
5116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5117
  (eval "$ac_link") 2>&5
4187
5118
  ac_status=$?
4188
5119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189
5120
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4190
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191
 
  (eval $ac_try) 2>&5
 
5121
  { (case "(($ac_try" in
 
5122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5123
  *) ac_try_echo=$ac_try;;
 
5124
esac
 
5125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5126
  (eval "$ac_try") 2>&5
4192
5127
  ac_status=$?
4193
5128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
5129
  (exit $ac_status); }; }; then
4201
5136
( exit $ac_status )
4202
5137
ac_cv_header_stdc=no
4203
5138
fi
4204
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4205
 
fi
4206
 
fi
4207
 
fi
4208
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4209
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5139
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5140
fi
 
5141
 
 
5142
 
 
5143
fi
 
5144
fi
 
5145
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5146
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4210
5147
if test $ac_cv_header_stdc = yes; then
4211
5148
 
4212
5149
cat >>confdefs.h <<\_ACEOF
4229
5166
                  inttypes.h stdint.h unistd.h
4230
5167
do
4231
5168
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4232
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4233
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4234
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5169
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5171
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4235
5172
  echo $ECHO_N "(cached) $ECHO_C" >&6
4236
5173
else
4237
5174
  cat >conftest.$ac_ext <<_ACEOF
4245
5182
#include <$ac_header>
4246
5183
_ACEOF
4247
5184
rm -f conftest.$ac_objext
4248
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
 
  (eval $ac_compile) 2>conftest.er1
 
5185
if { (ac_try="$ac_compile"
 
5186
case "(($ac_try" in
 
5187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5188
  *) ac_try_echo=$ac_try;;
 
5189
esac
 
5190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5191
  (eval "$ac_compile") 2>conftest.er1
4250
5192
  ac_status=$?
4251
5193
  grep -v '^ *+' conftest.er1 >conftest.err
4252
5194
  rm -f conftest.er1
4253
5195
  cat conftest.err >&5
4254
5196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
 
  (exit $ac_status); } &&
4256
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258
 
  (eval $ac_try) 2>&5
4259
 
  ac_status=$?
4260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
 
  (exit $ac_status); }; } &&
4262
 
         { ac_try='test -s conftest.$ac_objext'
4263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264
 
  (eval $ac_try) 2>&5
4265
 
  ac_status=$?
4266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
 
  (exit $ac_status); }; }; then
 
5197
  (exit $ac_status); } && {
 
5198
         test -z "$ac_c_werror_flag" ||
 
5199
         test ! -s conftest.err
 
5200
       } && test -s conftest.$ac_objext; then
4268
5201
  eval "$as_ac_Header=yes"
4269
5202
else
4270
5203
  echo "$as_me: failed program was:" >&5
4271
5204
sed 's/^/| /' conftest.$ac_ext >&5
4272
5205
 
4273
 
eval "$as_ac_Header=no"
4274
 
fi
4275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
 
fi
4277
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4278
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5206
        eval "$as_ac_Header=no"
 
5207
fi
 
5208
 
 
5209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5210
fi
 
5211
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5212
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5213
echo "${ECHO_T}$ac_res" >&6; }
4279
5214
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4280
5215
  cat >>confdefs.h <<_ACEOF
4281
5216
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290
5225
for ac_header in dlfcn.h
4291
5226
do
4292
5227
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4295
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5228
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5229
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5230
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5231
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297
5232
  echo $ECHO_N "(cached) $ECHO_C" >&6
4298
5233
fi
4299
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5234
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5235
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5236
echo "${ECHO_T}$ac_res" >&6; }
4301
5237
else
4302
5238
  # Is the header compilable?
4303
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4304
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5239
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5240
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4305
5241
cat >conftest.$ac_ext <<_ACEOF
4306
5242
/* confdefs.h.  */
4307
5243
_ACEOF
4312
5248
#include <$ac_header>
4313
5249
_ACEOF
4314
5250
rm -f conftest.$ac_objext
4315
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316
 
  (eval $ac_compile) 2>conftest.er1
 
5251
if { (ac_try="$ac_compile"
 
5252
case "(($ac_try" in
 
5253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5254
  *) ac_try_echo=$ac_try;;
 
5255
esac
 
5256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5257
  (eval "$ac_compile") 2>conftest.er1
4317
5258
  ac_status=$?
4318
5259
  grep -v '^ *+' conftest.er1 >conftest.err
4319
5260
  rm -f conftest.er1
4320
5261
  cat conftest.err >&5
4321
5262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
 
  (exit $ac_status); } &&
4323
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325
 
  (eval $ac_try) 2>&5
4326
 
  ac_status=$?
4327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328
 
  (exit $ac_status); }; } &&
4329
 
         { ac_try='test -s conftest.$ac_objext'
4330
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331
 
  (eval $ac_try) 2>&5
4332
 
  ac_status=$?
4333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334
 
  (exit $ac_status); }; }; then
 
5263
  (exit $ac_status); } && {
 
5264
         test -z "$ac_c_werror_flag" ||
 
5265
         test ! -s conftest.err
 
5266
       } && test -s conftest.$ac_objext; then
4335
5267
  ac_header_compiler=yes
4336
5268
else
4337
5269
  echo "$as_me: failed program was:" >&5
4338
5270
sed 's/^/| /' conftest.$ac_ext >&5
4339
5271
 
4340
 
ac_header_compiler=no
 
5272
        ac_header_compiler=no
4341
5273
fi
4342
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4343
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4344
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
5274
 
 
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5276
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5277
echo "${ECHO_T}$ac_header_compiler" >&6; }
4345
5278
 
4346
5279
# Is the header present?
4347
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4348
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5280
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5281
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4349
5282
cat >conftest.$ac_ext <<_ACEOF
4350
5283
/* confdefs.h.  */
4351
5284
_ACEOF
4354
5287
/* end confdefs.h.  */
4355
5288
#include <$ac_header>
4356
5289
_ACEOF
4357
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4358
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5290
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5291
case "(($ac_try" in
 
5292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5293
  *) ac_try_echo=$ac_try;;
 
5294
esac
 
5295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5296
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4359
5297
  ac_status=$?
4360
5298
  grep -v '^ *+' conftest.er1 >conftest.err
4361
5299
  rm -f conftest.er1
4362
5300
  cat conftest.err >&5
4363
5301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364
 
  (exit $ac_status); } >/dev/null; then
4365
 
  if test -s conftest.err; then
4366
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4367
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4368
 
  else
4369
 
    ac_cpp_err=
4370
 
  fi
4371
 
else
4372
 
  ac_cpp_err=yes
4373
 
fi
4374
 
if test -z "$ac_cpp_err"; then
 
5302
  (exit $ac_status); } >/dev/null && {
 
5303
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5304
         test ! -s conftest.err
 
5305
       }; then
4375
5306
  ac_header_preproc=yes
4376
5307
else
4377
5308
  echo "$as_me: failed program was:" >&5
4379
5310
 
4380
5311
  ac_header_preproc=no
4381
5312
fi
 
5313
 
4382
5314
rm -f conftest.err conftest.$ac_ext
4383
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4384
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
5315
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5316
echo "${ECHO_T}$ac_header_preproc" >&6; }
4385
5317
 
4386
5318
# So?  What about this header?
4387
5319
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4405
5337
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4406
5338
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4407
5339
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4408
 
    (
4409
 
      cat <<\_ASBOX
4410
 
## ------------------------------------------ ##
4411
 
## Report this to the AC_PACKAGE_NAME lists.  ##
4412
 
## ------------------------------------------ ##
 
5340
    ( cat <<\_ASBOX
 
5341
## -------------------------------------------------- ##
 
5342
## Report this to libexif-devel@lists.sourceforge.net ##
 
5343
## -------------------------------------------------- ##
4413
5344
_ASBOX
4414
 
    ) |
4415
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5345
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4416
5346
    ;;
4417
5347
esac
4418
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4419
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4420
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5348
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5349
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5350
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4421
5351
  echo $ECHO_N "(cached) $ECHO_C" >&6
4422
5352
else
4423
5353
  eval "$as_ac_Header=\$ac_header_preproc"
4424
5354
fi
4425
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4426
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5355
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5356
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5357
echo "${ECHO_T}$ac_res" >&6; }
4427
5358
 
4428
5359
fi
4429
5360
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4435
5366
 
4436
5367
done
4437
5368
 
4438
 
ac_ext=cc
 
5369
ac_ext=cpp
4439
5370
ac_cpp='$CXXCPP $CPPFLAGS'
4440
5371
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441
5372
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442
5373
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4443
 
if test -n "$ac_tool_prefix"; then
4444
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5374
if test -z "$CXX"; then
 
5375
  if test -n "$CCC"; then
 
5376
    CXX=$CCC
 
5377
  else
 
5378
    if test -n "$ac_tool_prefix"; then
 
5379
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4445
5380
  do
4446
5381
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4447
5382
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4448
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4449
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5383
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450
5385
if test "${ac_cv_prog_CXX+set}" = set; then
4451
5386
  echo $ECHO_N "(cached) $ECHO_C" >&6
4452
5387
else
4459
5394
  IFS=$as_save_IFS
4460
5395
  test -z "$as_dir" && as_dir=.
4461
5396
  for ac_exec_ext in '' $ac_executable_extensions; do
4462
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463
5398
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4464
5399
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465
5400
    break 2
4466
5401
  fi
4467
5402
done
4468
5403
done
 
5404
IFS=$as_save_IFS
4469
5405
 
4470
5406
fi
4471
5407
fi
4472
5408
CXX=$ac_cv_prog_CXX
4473
5409
if test -n "$CXX"; then
4474
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4475
 
echo "${ECHO_T}$CXX" >&6
 
5410
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5411
echo "${ECHO_T}$CXX" >&6; }
4476
5412
else
4477
 
  echo "$as_me:$LINENO: result: no" >&5
4478
 
echo "${ECHO_T}no" >&6
 
5413
  { echo "$as_me:$LINENO: result: no" >&5
 
5414
echo "${ECHO_T}no" >&6; }
4479
5415
fi
4480
5416
 
 
5417
 
4481
5418
    test -n "$CXX" && break
4482
5419
  done
4483
5420
fi
4484
5421
if test -z "$CXX"; then
4485
5422
  ac_ct_CXX=$CXX
4486
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5423
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4487
5424
do
4488
5425
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4489
5426
set dummy $ac_prog; ac_word=$2
4490
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4491
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5427
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492
5429
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4493
5430
  echo $ECHO_N "(cached) $ECHO_C" >&6
4494
5431
else
4501
5438
  IFS=$as_save_IFS
4502
5439
  test -z "$as_dir" && as_dir=.
4503
5440
  for ac_exec_ext in '' $ac_executable_extensions; do
4504
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505
5442
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4506
5443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507
5444
    break 2
4508
5445
  fi
4509
5446
done
4510
5447
done
 
5448
IFS=$as_save_IFS
4511
5449
 
4512
5450
fi
4513
5451
fi
4514
5452
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4515
5453
if test -n "$ac_ct_CXX"; then
4516
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4517
 
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5454
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5455
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4518
5456
else
4519
 
  echo "$as_me:$LINENO: result: no" >&5
4520
 
echo "${ECHO_T}no" >&6
 
5457
  { echo "$as_me:$LINENO: result: no" >&5
 
5458
echo "${ECHO_T}no" >&6; }
4521
5459
fi
4522
5460
 
 
5461
 
4523
5462
  test -n "$ac_ct_CXX" && break
4524
5463
done
4525
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4526
 
 
4527
 
  CXX=$ac_ct_CXX
4528
 
fi
4529
 
 
4530
 
 
 
5464
 
 
5465
  if test "x$ac_ct_CXX" = x; then
 
5466
    CXX="g++"
 
5467
  else
 
5468
    case $cross_compiling:$ac_tool_warned in
 
5469
yes:)
 
5470
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5471
whose name does not start with the host triplet.  If you think this
 
5472
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5473
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5474
whose name does not start with the host triplet.  If you think this
 
5475
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5476
ac_tool_warned=yes ;;
 
5477
esac
 
5478
    CXX=$ac_ct_CXX
 
5479
  fi
 
5480
fi
 
5481
 
 
5482
  fi
 
5483
fi
4531
5484
# Provide some information about the compiler.
4532
 
echo "$as_me:$LINENO:" \
4533
 
     "checking for C++ compiler version" >&5
 
5485
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4534
5486
ac_compiler=`set X $ac_compile; echo $2`
4535
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4536
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4537
 
  ac_status=$?
4538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
 
  (exit $ac_status); }
4540
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4541
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4542
 
  ac_status=$?
4543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544
 
  (exit $ac_status); }
4545
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4546
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5487
{ (ac_try="$ac_compiler --version >&5"
 
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_compiler --version >&5") 2>&5
 
5494
  ac_status=$?
 
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5496
  (exit $ac_status); }
 
5497
{ (ac_try="$ac_compiler -v >&5"
 
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_compiler -v >&5") 2>&5
 
5504
  ac_status=$?
 
5505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5506
  (exit $ac_status); }
 
5507
{ (ac_try="$ac_compiler -V >&5"
 
5508
case "(($ac_try" in
 
5509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5510
  *) ac_try_echo=$ac_try;;
 
5511
esac
 
5512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5513
  (eval "$ac_compiler -V >&5") 2>&5
4547
5514
  ac_status=$?
4548
5515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
5516
  (exit $ac_status); }
4550
5517
 
4551
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4552
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5518
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5519
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4553
5520
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4554
5521
  echo $ECHO_N "(cached) $ECHO_C" >&6
4555
5522
else
4572
5539
}
4573
5540
_ACEOF
4574
5541
rm -f conftest.$ac_objext
4575
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576
 
  (eval $ac_compile) 2>conftest.er1
 
5542
if { (ac_try="$ac_compile"
 
5543
case "(($ac_try" in
 
5544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5545
  *) ac_try_echo=$ac_try;;
 
5546
esac
 
5547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5548
  (eval "$ac_compile") 2>conftest.er1
4577
5549
  ac_status=$?
4578
5550
  grep -v '^ *+' conftest.er1 >conftest.err
4579
5551
  rm -f conftest.er1
4580
5552
  cat conftest.err >&5
4581
5553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582
 
  (exit $ac_status); } &&
4583
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585
 
  (eval $ac_try) 2>&5
4586
 
  ac_status=$?
4587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588
 
  (exit $ac_status); }; } &&
4589
 
         { ac_try='test -s conftest.$ac_objext'
4590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591
 
  (eval $ac_try) 2>&5
4592
 
  ac_status=$?
4593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
 
  (exit $ac_status); }; }; then
 
5554
  (exit $ac_status); } && {
 
5555
         test -z "$ac_cxx_werror_flag" ||
 
5556
         test ! -s conftest.err
 
5557
       } && test -s conftest.$ac_objext; then
4595
5558
  ac_compiler_gnu=yes
4596
5559
else
4597
5560
  echo "$as_me: failed program was:" >&5
4598
5561
sed 's/^/| /' conftest.$ac_ext >&5
4599
5562
 
4600
 
ac_compiler_gnu=no
 
5563
        ac_compiler_gnu=no
4601
5564
fi
4602
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5565
 
 
5566
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603
5567
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4604
5568
 
4605
5569
fi
4606
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4607
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5570
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5571
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4608
5572
GXX=`test $ac_compiler_gnu = yes && echo yes`
4609
5573
ac_test_CXXFLAGS=${CXXFLAGS+set}
4610
5574
ac_save_CXXFLAGS=$CXXFLAGS
4611
 
CXXFLAGS="-g"
4612
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4613
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5575
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5576
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4614
5577
if test "${ac_cv_prog_cxx_g+set}" = set; then
4615
5578
  echo $ECHO_N "(cached) $ECHO_C" >&6
4616
5579
else
4617
 
  cat >conftest.$ac_ext <<_ACEOF
4618
 
/* confdefs.h.  */
4619
 
_ACEOF
4620
 
cat confdefs.h >>conftest.$ac_ext
4621
 
cat >>conftest.$ac_ext <<_ACEOF
4622
 
/* end confdefs.h.  */
4623
 
 
4624
 
int
4625
 
main ()
4626
 
{
4627
 
 
4628
 
  ;
4629
 
  return 0;
4630
 
}
4631
 
_ACEOF
4632
 
rm -f conftest.$ac_objext
4633
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634
 
  (eval $ac_compile) 2>conftest.er1
4635
 
  ac_status=$?
4636
 
  grep -v '^ *+' conftest.er1 >conftest.err
4637
 
  rm -f conftest.er1
4638
 
  cat conftest.err >&5
4639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640
 
  (exit $ac_status); } &&
4641
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643
 
  (eval $ac_try) 2>&5
4644
 
  ac_status=$?
4645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
 
  (exit $ac_status); }; } &&
4647
 
         { ac_try='test -s conftest.$ac_objext'
4648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649
 
  (eval $ac_try) 2>&5
4650
 
  ac_status=$?
4651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652
 
  (exit $ac_status); }; }; then
4653
 
  ac_cv_prog_cxx_g=yes
4654
 
else
4655
 
  echo "$as_me: failed program was:" >&5
4656
 
sed 's/^/| /' conftest.$ac_ext >&5
4657
 
 
4658
 
ac_cv_prog_cxx_g=no
4659
 
fi
4660
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661
 
fi
4662
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4663
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5580
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5581
   ac_cxx_werror_flag=yes
 
5582
   ac_cv_prog_cxx_g=no
 
5583
   CXXFLAGS="-g"
 
5584
   cat >conftest.$ac_ext <<_ACEOF
 
5585
/* confdefs.h.  */
 
5586
_ACEOF
 
5587
cat confdefs.h >>conftest.$ac_ext
 
5588
cat >>conftest.$ac_ext <<_ACEOF
 
5589
/* end confdefs.h.  */
 
5590
 
 
5591
int
 
5592
main ()
 
5593
{
 
5594
 
 
5595
  ;
 
5596
  return 0;
 
5597
}
 
5598
_ACEOF
 
5599
rm -f conftest.$ac_objext
 
5600
if { (ac_try="$ac_compile"
 
5601
case "(($ac_try" in
 
5602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5603
  *) ac_try_echo=$ac_try;;
 
5604
esac
 
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5606
  (eval "$ac_compile") 2>conftest.er1
 
5607
  ac_status=$?
 
5608
  grep -v '^ *+' conftest.er1 >conftest.err
 
5609
  rm -f conftest.er1
 
5610
  cat conftest.err >&5
 
5611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5612
  (exit $ac_status); } && {
 
5613
         test -z "$ac_cxx_werror_flag" ||
 
5614
         test ! -s conftest.err
 
5615
       } && test -s conftest.$ac_objext; then
 
5616
  ac_cv_prog_cxx_g=yes
 
5617
else
 
5618
  echo "$as_me: failed program was:" >&5
 
5619
sed 's/^/| /' conftest.$ac_ext >&5
 
5620
 
 
5621
        CXXFLAGS=""
 
5622
      cat >conftest.$ac_ext <<_ACEOF
 
5623
/* confdefs.h.  */
 
5624
_ACEOF
 
5625
cat confdefs.h >>conftest.$ac_ext
 
5626
cat >>conftest.$ac_ext <<_ACEOF
 
5627
/* end confdefs.h.  */
 
5628
 
 
5629
int
 
5630
main ()
 
5631
{
 
5632
 
 
5633
  ;
 
5634
  return 0;
 
5635
}
 
5636
_ACEOF
 
5637
rm -f conftest.$ac_objext
 
5638
if { (ac_try="$ac_compile"
 
5639
case "(($ac_try" in
 
5640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5641
  *) ac_try_echo=$ac_try;;
 
5642
esac
 
5643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5644
  (eval "$ac_compile") 2>conftest.er1
 
5645
  ac_status=$?
 
5646
  grep -v '^ *+' conftest.er1 >conftest.err
 
5647
  rm -f conftest.er1
 
5648
  cat conftest.err >&5
 
5649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5650
  (exit $ac_status); } && {
 
5651
         test -z "$ac_cxx_werror_flag" ||
 
5652
         test ! -s conftest.err
 
5653
       } && test -s conftest.$ac_objext; then
 
5654
  :
 
5655
else
 
5656
  echo "$as_me: failed program was:" >&5
 
5657
sed 's/^/| /' conftest.$ac_ext >&5
 
5658
 
 
5659
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5660
         CXXFLAGS="-g"
 
5661
         cat >conftest.$ac_ext <<_ACEOF
 
5662
/* confdefs.h.  */
 
5663
_ACEOF
 
5664
cat confdefs.h >>conftest.$ac_ext
 
5665
cat >>conftest.$ac_ext <<_ACEOF
 
5666
/* end confdefs.h.  */
 
5667
 
 
5668
int
 
5669
main ()
 
5670
{
 
5671
 
 
5672
  ;
 
5673
  return 0;
 
5674
}
 
5675
_ACEOF
 
5676
rm -f conftest.$ac_objext
 
5677
if { (ac_try="$ac_compile"
 
5678
case "(($ac_try" in
 
5679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5680
  *) ac_try_echo=$ac_try;;
 
5681
esac
 
5682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5683
  (eval "$ac_compile") 2>conftest.er1
 
5684
  ac_status=$?
 
5685
  grep -v '^ *+' conftest.er1 >conftest.err
 
5686
  rm -f conftest.er1
 
5687
  cat conftest.err >&5
 
5688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5689
  (exit $ac_status); } && {
 
5690
         test -z "$ac_cxx_werror_flag" ||
 
5691
         test ! -s conftest.err
 
5692
       } && test -s conftest.$ac_objext; then
 
5693
  ac_cv_prog_cxx_g=yes
 
5694
else
 
5695
  echo "$as_me: failed program was:" >&5
 
5696
sed 's/^/| /' conftest.$ac_ext >&5
 
5697
 
 
5698
 
 
5699
fi
 
5700
 
 
5701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5702
fi
 
5703
 
 
5704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5705
fi
 
5706
 
 
5707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5708
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5709
fi
 
5710
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5711
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4664
5712
if test "$ac_test_CXXFLAGS" = set; then
4665
5713
  CXXFLAGS=$ac_save_CXXFLAGS
4666
5714
elif test $ac_cv_prog_cxx_g = yes; then
4676
5724
    CXXFLAGS=
4677
5725
  fi
4678
5726
fi
4679
 
for ac_declaration in \
4680
 
   '' \
4681
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4682
 
   'extern "C" void std::exit (int); using std::exit;' \
4683
 
   'extern "C" void exit (int) throw ();' \
4684
 
   'extern "C" void exit (int);' \
4685
 
   'void exit (int);'
4686
 
do
4687
 
  cat >conftest.$ac_ext <<_ACEOF
4688
 
/* confdefs.h.  */
4689
 
_ACEOF
4690
 
cat confdefs.h >>conftest.$ac_ext
4691
 
cat >>conftest.$ac_ext <<_ACEOF
4692
 
/* end confdefs.h.  */
4693
 
$ac_declaration
4694
 
#include <stdlib.h>
4695
 
int
4696
 
main ()
4697
 
{
4698
 
exit (42);
4699
 
  ;
4700
 
  return 0;
4701
 
}
4702
 
_ACEOF
4703
 
rm -f conftest.$ac_objext
4704
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705
 
  (eval $ac_compile) 2>conftest.er1
4706
 
  ac_status=$?
4707
 
  grep -v '^ *+' conftest.er1 >conftest.err
4708
 
  rm -f conftest.er1
4709
 
  cat conftest.err >&5
4710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711
 
  (exit $ac_status); } &&
4712
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714
 
  (eval $ac_try) 2>&5
4715
 
  ac_status=$?
4716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717
 
  (exit $ac_status); }; } &&
4718
 
         { ac_try='test -s conftest.$ac_objext'
4719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720
 
  (eval $ac_try) 2>&5
4721
 
  ac_status=$?
4722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723
 
  (exit $ac_status); }; }; then
4724
 
  :
4725
 
else
4726
 
  echo "$as_me: failed program was:" >&5
4727
 
sed 's/^/| /' conftest.$ac_ext >&5
4728
 
 
4729
 
continue
4730
 
fi
4731
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732
 
  cat >conftest.$ac_ext <<_ACEOF
4733
 
/* confdefs.h.  */
4734
 
_ACEOF
4735
 
cat confdefs.h >>conftest.$ac_ext
4736
 
cat >>conftest.$ac_ext <<_ACEOF
4737
 
/* end confdefs.h.  */
4738
 
$ac_declaration
4739
 
int
4740
 
main ()
4741
 
{
4742
 
exit (42);
4743
 
  ;
4744
 
  return 0;
4745
 
}
4746
 
_ACEOF
4747
 
rm -f conftest.$ac_objext
4748
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749
 
  (eval $ac_compile) 2>conftest.er1
4750
 
  ac_status=$?
4751
 
  grep -v '^ *+' conftest.er1 >conftest.err
4752
 
  rm -f conftest.er1
4753
 
  cat conftest.err >&5
4754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755
 
  (exit $ac_status); } &&
4756
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4757
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758
 
  (eval $ac_try) 2>&5
4759
 
  ac_status=$?
4760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761
 
  (exit $ac_status); }; } &&
4762
 
         { ac_try='test -s conftest.$ac_objext'
4763
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764
 
  (eval $ac_try) 2>&5
4765
 
  ac_status=$?
4766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
 
  (exit $ac_status); }; }; then
4768
 
  break
4769
 
else
4770
 
  echo "$as_me: failed program was:" >&5
4771
 
sed 's/^/| /' conftest.$ac_ext >&5
4772
 
 
4773
 
fi
4774
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775
 
done
4776
 
rm -f conftest*
4777
 
if test -n "$ac_declaration"; then
4778
 
  echo '#ifdef __cplusplus' >>confdefs.h
4779
 
  echo $ac_declaration      >>confdefs.h
4780
 
  echo '#endif'             >>confdefs.h
4781
 
fi
4782
 
 
4783
 
ac_ext=cc
 
5727
ac_ext=cpp
4784
5728
ac_cpp='$CXXCPP $CPPFLAGS'
4785
5729
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786
5730
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788
5732
 
4789
5733
depcc="$CXX"  am_compiler_list=
4790
5734
 
4791
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4792
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5735
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5736
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4793
5737
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4794
5738
  echo $ECHO_N "(cached) $ECHO_C" >&6
4795
5739
else
4853
5797
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4854
5798
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4855
5799
         >/dev/null 2>conftest.err &&
 
5800
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4856
5801
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4857
5802
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4858
5803
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4878
5823
fi
4879
5824
 
4880
5825
fi
4881
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4882
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5826
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5827
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4883
5828
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4884
5829
 
4885
 
 
4886
 
 
4887
 
if
 
5830
 if
4888
5831
  test "x$enable_dependency_tracking" != xno \
4889
5832
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4890
5833
  am__fastdepCXX_TRUE=
4895
5838
fi
4896
5839
 
4897
5840
 
4898
 
ac_ext=cc
 
5841
 
 
5842
 
 
5843
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5844
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5845
    (test "X$CXX" != "Xg++"))) ; then
 
5846
  ac_ext=cpp
4899
5847
ac_cpp='$CXXCPP $CPPFLAGS'
4900
5848
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901
5849
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902
5850
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5851
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5852
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4905
5853
if test -z "$CXXCPP"; then
4906
5854
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4907
5855
  echo $ECHO_N "(cached) $ECHO_C" >&6
4931
5879
#endif
4932
5880
                     Syntax error
4933
5881
_ACEOF
4934
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5882
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5883
case "(($ac_try" in
 
5884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5885
  *) ac_try_echo=$ac_try;;
 
5886
esac
 
5887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5888
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936
5889
  ac_status=$?
4937
5890
  grep -v '^ *+' conftest.er1 >conftest.err
4938
5891
  rm -f conftest.er1
4939
5892
  cat conftest.err >&5
4940
5893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
 
  (exit $ac_status); } >/dev/null; then
4942
 
  if test -s conftest.err; then
4943
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4944
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4945
 
  else
4946
 
    ac_cpp_err=
4947
 
  fi
4948
 
else
4949
 
  ac_cpp_err=yes
4950
 
fi
4951
 
if test -z "$ac_cpp_err"; then
 
5894
  (exit $ac_status); } >/dev/null && {
 
5895
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5896
         test ! -s conftest.err
 
5897
       }; then
4952
5898
  :
4953
5899
else
4954
5900
  echo "$as_me: failed program was:" >&5
4957
5903
  # Broken: fails on valid input.
4958
5904
continue
4959
5905
fi
 
5906
 
4960
5907
rm -f conftest.err conftest.$ac_ext
4961
5908
 
4962
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
5909
  # OK, works on sane cases.  Now check whether nonexistent headers
4963
5910
  # can be detected and how.
4964
5911
  cat >conftest.$ac_ext <<_ACEOF
4965
5912
/* confdefs.h.  */
4969
5916
/* end confdefs.h.  */
4970
5917
#include <ac_nonexistent.h>
4971
5918
_ACEOF
4972
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5919
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5920
case "(($ac_try" in
 
5921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5922
  *) ac_try_echo=$ac_try;;
 
5923
esac
 
5924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5925
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974
5926
  ac_status=$?
4975
5927
  grep -v '^ *+' conftest.er1 >conftest.err
4976
5928
  rm -f conftest.er1
4977
5929
  cat conftest.err >&5
4978
5930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
 
  (exit $ac_status); } >/dev/null; then
4980
 
  if test -s conftest.err; then
4981
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4982
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983
 
  else
4984
 
    ac_cpp_err=
4985
 
  fi
4986
 
else
4987
 
  ac_cpp_err=yes
4988
 
fi
4989
 
if test -z "$ac_cpp_err"; then
 
5931
  (exit $ac_status); } >/dev/null && {
 
5932
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5933
         test ! -s conftest.err
 
5934
       }; then
4990
5935
  # Broken: success on invalid input.
4991
5936
continue
4992
5937
else
4997
5942
ac_preproc_ok=:
4998
5943
break
4999
5944
fi
 
5945
 
5000
5946
rm -f conftest.err conftest.$ac_ext
5001
5947
 
5002
5948
done
5014
5960
else
5015
5961
  ac_cv_prog_CXXCPP=$CXXCPP
5016
5962
fi
5017
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5018
 
echo "${ECHO_T}$CXXCPP" >&6
 
5963
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5964
echo "${ECHO_T}$CXXCPP" >&6; }
5019
5965
ac_preproc_ok=false
5020
5966
for ac_cxx_preproc_warn_flag in '' yes
5021
5967
do
5038
5984
#endif
5039
5985
                     Syntax error
5040
5986
_ACEOF
5041
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5987
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5988
case "(($ac_try" in
 
5989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5990
  *) ac_try_echo=$ac_try;;
 
5991
esac
 
5992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5993
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043
5994
  ac_status=$?
5044
5995
  grep -v '^ *+' conftest.er1 >conftest.err
5045
5996
  rm -f conftest.er1
5046
5997
  cat conftest.err >&5
5047
5998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048
 
  (exit $ac_status); } >/dev/null; then
5049
 
  if test -s conftest.err; then
5050
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5051
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052
 
  else
5053
 
    ac_cpp_err=
5054
 
  fi
5055
 
else
5056
 
  ac_cpp_err=yes
5057
 
fi
5058
 
if test -z "$ac_cpp_err"; then
 
5999
  (exit $ac_status); } >/dev/null && {
 
6000
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6001
         test ! -s conftest.err
 
6002
       }; then
5059
6003
  :
5060
6004
else
5061
6005
  echo "$as_me: failed program was:" >&5
5064
6008
  # Broken: fails on valid input.
5065
6009
continue
5066
6010
fi
 
6011
 
5067
6012
rm -f conftest.err conftest.$ac_ext
5068
6013
 
5069
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
6014
  # OK, works on sane cases.  Now check whether nonexistent headers
5070
6015
  # can be detected and how.
5071
6016
  cat >conftest.$ac_ext <<_ACEOF
5072
6017
/* confdefs.h.  */
5076
6021
/* end confdefs.h.  */
5077
6022
#include <ac_nonexistent.h>
5078
6023
_ACEOF
5079
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6024
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6025
case "(($ac_try" in
 
6026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6027
  *) ac_try_echo=$ac_try;;
 
6028
esac
 
6029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6030
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081
6031
  ac_status=$?
5082
6032
  grep -v '^ *+' conftest.er1 >conftest.err
5083
6033
  rm -f conftest.er1
5084
6034
  cat conftest.err >&5
5085
6035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086
 
  (exit $ac_status); } >/dev/null; then
5087
 
  if test -s conftest.err; then
5088
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5089
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090
 
  else
5091
 
    ac_cpp_err=
5092
 
  fi
5093
 
else
5094
 
  ac_cpp_err=yes
5095
 
fi
5096
 
if test -z "$ac_cpp_err"; then
 
6036
  (exit $ac_status); } >/dev/null && {
 
6037
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6038
         test ! -s conftest.err
 
6039
       }; then
5097
6040
  # Broken: success on invalid input.
5098
6041
continue
5099
6042
else
5104
6047
ac_preproc_ok=:
5105
6048
break
5106
6049
fi
 
6050
 
5107
6051
rm -f conftest.err conftest.$ac_ext
5108
6052
 
5109
6053
done
5119
6063
   { (exit 1); exit 1; }; }
5120
6064
fi
5121
6065
 
5122
 
ac_ext=cc
 
6066
ac_ext=cpp
5123
6067
ac_cpp='$CXXCPP $CPPFLAGS'
5124
6068
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125
6069
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126
6070
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
6071
 
 
6072
fi
 
6073
 
5128
6074
 
5129
6075
ac_ext=f
5130
6076
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5131
6077
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132
6078
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5133
6079
if test -n "$ac_tool_prefix"; then
5134
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6080
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5135
6081
  do
5136
6082
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137
6083
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5139
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6084
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6085
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140
6086
if test "${ac_cv_prog_F77+set}" = set; then
5141
6087
  echo $ECHO_N "(cached) $ECHO_C" >&6
5142
6088
else
5149
6095
  IFS=$as_save_IFS
5150
6096
  test -z "$as_dir" && as_dir=.
5151
6097
  for ac_exec_ext in '' $ac_executable_extensions; do
5152
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153
6099
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5154
6100
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155
6101
    break 2
5156
6102
  fi
5157
6103
done
5158
6104
done
 
6105
IFS=$as_save_IFS
5159
6106
 
5160
6107
fi
5161
6108
fi
5162
6109
F77=$ac_cv_prog_F77
5163
6110
if test -n "$F77"; then
5164
 
  echo "$as_me:$LINENO: result: $F77" >&5
5165
 
echo "${ECHO_T}$F77" >&6
 
6111
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6112
echo "${ECHO_T}$F77" >&6; }
5166
6113
else
5167
 
  echo "$as_me:$LINENO: result: no" >&5
5168
 
echo "${ECHO_T}no" >&6
 
6114
  { echo "$as_me:$LINENO: result: no" >&5
 
6115
echo "${ECHO_T}no" >&6; }
5169
6116
fi
5170
6117
 
 
6118
 
5171
6119
    test -n "$F77" && break
5172
6120
  done
5173
6121
fi
5174
6122
if test -z "$F77"; then
5175
6123
  ac_ct_F77=$F77
5176
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6124
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5177
6125
do
5178
6126
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5179
6127
set dummy $ac_prog; ac_word=$2
5180
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5181
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6128
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182
6130
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5183
6131
  echo $ECHO_N "(cached) $ECHO_C" >&6
5184
6132
else
5191
6139
  IFS=$as_save_IFS
5192
6140
  test -z "$as_dir" && as_dir=.
5193
6141
  for ac_exec_ext in '' $ac_executable_extensions; do
5194
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6142
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195
6143
    ac_cv_prog_ac_ct_F77="$ac_prog"
5196
6144
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197
6145
    break 2
5198
6146
  fi
5199
6147
done
5200
6148
done
 
6149
IFS=$as_save_IFS
5201
6150
 
5202
6151
fi
5203
6152
fi
5204
6153
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5205
6154
if test -n "$ac_ct_F77"; then
5206
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5207
 
echo "${ECHO_T}$ac_ct_F77" >&6
 
6155
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6156
echo "${ECHO_T}$ac_ct_F77" >&6; }
5208
6157
else
5209
 
  echo "$as_me:$LINENO: result: no" >&5
5210
 
echo "${ECHO_T}no" >&6
 
6158
  { echo "$as_me:$LINENO: result: no" >&5
 
6159
echo "${ECHO_T}no" >&6; }
5211
6160
fi
5212
6161
 
 
6162
 
5213
6163
  test -n "$ac_ct_F77" && break
5214
6164
done
5215
6165
 
5216
 
  F77=$ac_ct_F77
 
6166
  if test "x$ac_ct_F77" = x; then
 
6167
    F77=""
 
6168
  else
 
6169
    case $cross_compiling:$ac_tool_warned in
 
6170
yes:)
 
6171
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6172
whose name does not start with the host triplet.  If you think this
 
6173
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6174
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6175
whose name does not start with the host triplet.  If you think this
 
6176
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6177
ac_tool_warned=yes ;;
 
6178
esac
 
6179
    F77=$ac_ct_F77
 
6180
  fi
5217
6181
fi
5218
6182
 
5219
6183
 
5220
6184
# Provide some information about the compiler.
5221
 
echo "$as_me:5221:" \
5222
 
     "checking for Fortran 77 compiler version" >&5
 
6185
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5223
6186
ac_compiler=`set X $ac_compile; echo $2`
5224
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5225
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5226
 
  ac_status=$?
5227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228
 
  (exit $ac_status); }
5229
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5230
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5231
 
  ac_status=$?
5232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233
 
  (exit $ac_status); }
5234
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5235
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6187
{ (ac_try="$ac_compiler --version >&5"
 
6188
case "(($ac_try" in
 
6189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6190
  *) ac_try_echo=$ac_try;;
 
6191
esac
 
6192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6193
  (eval "$ac_compiler --version >&5") 2>&5
 
6194
  ac_status=$?
 
6195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6196
  (exit $ac_status); }
 
6197
{ (ac_try="$ac_compiler -v >&5"
 
6198
case "(($ac_try" in
 
6199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6200
  *) ac_try_echo=$ac_try;;
 
6201
esac
 
6202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6203
  (eval "$ac_compiler -v >&5") 2>&5
 
6204
  ac_status=$?
 
6205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6206
  (exit $ac_status); }
 
6207
{ (ac_try="$ac_compiler -V >&5"
 
6208
case "(($ac_try" in
 
6209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6210
  *) ac_try_echo=$ac_try;;
 
6211
esac
 
6212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6213
  (eval "$ac_compiler -V >&5") 2>&5
5236
6214
  ac_status=$?
5237
6215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
6216
  (exit $ac_status); }
5242
6220
# input file.  (Note that this only needs to work for GNU compilers.)
5243
6221
ac_save_ext=$ac_ext
5244
6222
ac_ext=F
5245
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5246
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6223
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6224
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5247
6225
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5248
6226
  echo $ECHO_N "(cached) $ECHO_C" >&6
5249
6227
else
5256
6234
      end
5257
6235
_ACEOF
5258
6236
rm -f conftest.$ac_objext
5259
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260
 
  (eval $ac_compile) 2>conftest.er1
 
6237
if { (ac_try="$ac_compile"
 
6238
case "(($ac_try" in
 
6239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6240
  *) ac_try_echo=$ac_try;;
 
6241
esac
 
6242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6243
  (eval "$ac_compile") 2>conftest.er1
5261
6244
  ac_status=$?
5262
6245
  grep -v '^ *+' conftest.er1 >conftest.err
5263
6246
  rm -f conftest.er1
5264
6247
  cat conftest.err >&5
5265
6248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
 
  (exit $ac_status); } &&
5267
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269
 
  (eval $ac_try) 2>&5
5270
 
  ac_status=$?
5271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
 
  (exit $ac_status); }; } &&
5273
 
         { ac_try='test -s conftest.$ac_objext'
5274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275
 
  (eval $ac_try) 2>&5
5276
 
  ac_status=$?
5277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278
 
  (exit $ac_status); }; }; then
 
6249
  (exit $ac_status); } && {
 
6250
         test -z "$ac_f77_werror_flag" ||
 
6251
         test ! -s conftest.err
 
6252
       } && test -s conftest.$ac_objext; then
5279
6253
  ac_compiler_gnu=yes
5280
6254
else
5281
6255
  echo "$as_me: failed program was:" >&5
5282
6256
sed 's/^/| /' conftest.$ac_ext >&5
5283
6257
 
5284
 
ac_compiler_gnu=no
 
6258
        ac_compiler_gnu=no
5285
6259
fi
5286
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6260
 
 
6261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287
6262
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5288
6263
 
5289
6264
fi
5290
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5291
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6265
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6266
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5292
6267
ac_ext=$ac_save_ext
5293
6268
ac_test_FFLAGS=${FFLAGS+set}
5294
6269
ac_save_FFLAGS=$FFLAGS
5295
6270
FFLAGS=
5296
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5297
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6271
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6272
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5298
6273
if test "${ac_cv_prog_f77_g+set}" = set; then
5299
6274
  echo $ECHO_N "(cached) $ECHO_C" >&6
5300
6275
else
5305
6280
      end
5306
6281
_ACEOF
5307
6282
rm -f conftest.$ac_objext
5308
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309
 
  (eval $ac_compile) 2>conftest.er1
 
6283
if { (ac_try="$ac_compile"
 
6284
case "(($ac_try" in
 
6285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6286
  *) ac_try_echo=$ac_try;;
 
6287
esac
 
6288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6289
  (eval "$ac_compile") 2>conftest.er1
5310
6290
  ac_status=$?
5311
6291
  grep -v '^ *+' conftest.er1 >conftest.err
5312
6292
  rm -f conftest.er1
5313
6293
  cat conftest.err >&5
5314
6294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
 
  (exit $ac_status); } &&
5316
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
 
  (eval $ac_try) 2>&5
5319
 
  ac_status=$?
5320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
 
  (exit $ac_status); }; } &&
5322
 
         { ac_try='test -s conftest.$ac_objext'
5323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
 
  (eval $ac_try) 2>&5
5325
 
  ac_status=$?
5326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327
 
  (exit $ac_status); }; }; then
 
6295
  (exit $ac_status); } && {
 
6296
         test -z "$ac_f77_werror_flag" ||
 
6297
         test ! -s conftest.err
 
6298
       } && test -s conftest.$ac_objext; then
5328
6299
  ac_cv_prog_f77_g=yes
5329
6300
else
5330
6301
  echo "$as_me: failed program was:" >&5
5331
6302
sed 's/^/| /' conftest.$ac_ext >&5
5332
6303
 
5333
 
ac_cv_prog_f77_g=no
5334
 
fi
5335
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5336
 
 
5337
 
fi
5338
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5339
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6304
        ac_cv_prog_f77_g=no
 
6305
fi
 
6306
 
 
6307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6308
 
 
6309
fi
 
6310
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6311
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5340
6312
if test "$ac_test_FFLAGS" = set; then
5341
6313
  FFLAGS=$ac_save_FFLAGS
5342
6314
elif test $ac_cv_prog_f77_g = yes; then
5365
6337
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5366
6338
 
5367
6339
# find the maximum length of command line arguments
5368
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5369
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6340
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6341
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5370
6342
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5371
6343
  echo $ECHO_N "(cached) $ECHO_C" >&6
5372
6344
else
5406
6378
    lt_cv_sys_max_cmd_len=8192;
5407
6379
    ;;
5408
6380
 
5409
 
 *)
 
6381
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6382
    # This has been around since 386BSD, at least.  Likely further.
 
6383
    if test -x /sbin/sysctl; then
 
6384
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6385
    elif test -x /usr/sbin/sysctl; then
 
6386
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6387
    else
 
6388
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6389
    fi
 
6390
    # And add a safety zone
 
6391
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6392
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6393
    ;;
 
6394
 
 
6395
  interix*)
 
6396
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6397
    lt_cv_sys_max_cmd_len=196608
 
6398
    ;;
 
6399
 
 
6400
  osf*)
 
6401
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6402
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6403
    # nice to cause kernel panics so lets avoid the loop below.
 
6404
    # First set a reasonable default.
 
6405
    lt_cv_sys_max_cmd_len=16384
 
6406
    #
 
6407
    if test -x /sbin/sysconfig; then
 
6408
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6409
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6410
      esac
 
6411
    fi
 
6412
    ;;
 
6413
  sco3.2v5*)
 
6414
    lt_cv_sys_max_cmd_len=102400
 
6415
    ;;
 
6416
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6417
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6418
    if test -n "$kargmax"; then
 
6419
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6420
    else
 
6421
      lt_cv_sys_max_cmd_len=32768
 
6422
    fi
 
6423
    ;;
 
6424
  *)
5410
6425
    # If test is not a shell built-in, we'll probably end up computing a
5411
6426
    # maximum length that is only half of the actual maximum length, but
5412
6427
    # we can't tell.
5413
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6428
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6429
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5414
6430
               = "XX$teststring") >/dev/null 2>&1 &&
5415
6431
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5416
6432
            lt_cv_sys_max_cmd_len=$new_result &&
5430
6446
fi
5431
6447
 
5432
6448
if test -n $lt_cv_sys_max_cmd_len ; then
5433
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5434
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6449
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6450
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5435
6451
else
5436
 
  echo "$as_me:$LINENO: result: none" >&5
5437
 
echo "${ECHO_T}none" >&6
 
6452
  { echo "$as_me:$LINENO: result: none" >&5
 
6453
echo "${ECHO_T}none" >&6; }
5438
6454
fi
5439
6455
 
5440
6456
 
5441
6457
 
5442
6458
 
5443
6459
# Check for command to grab the raw symbol name followed by C symbol from nm.
5444
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5445
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6460
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6461
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5446
6462
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5447
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
5448
6464
else
5456
6472
# Regexp to match symbols that can be accessed directly from C.
5457
6473
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5458
6474
 
5459
 
# Transform the above into a raw symbol and a C symbol.
5460
 
symxfrm='\1 \2\3 \3'
5461
 
 
5462
6475
# Transform an extracted symbol line into a proper C declaration
5463
6476
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5464
6477
 
5480
6493
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5481
6494
  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'"
5482
6495
  ;;
 
6496
linux*)
 
6497
  if test "$host_cpu" = ia64; then
 
6498
    symcode='[ABCDGIRSTW]'
 
6499
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6500
    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'"
 
6501
  fi
 
6502
  ;;
5483
6503
irix* | nonstopux*)
5484
6504
  symcode='[BCDEGRST]'
5485
6505
  ;;
5486
6506
osf*)
5487
6507
  symcode='[BCDEGQRST]'
5488
6508
  ;;
5489
 
solaris* | sysv5*)
 
6509
solaris*)
5490
6510
  symcode='[BDRT]'
5491
6511
  ;;
 
6512
sco3.2v5*)
 
6513
  symcode='[DT]'
 
6514
  ;;
 
6515
sysv4.2uw2*)
 
6516
  symcode='[DT]'
 
6517
  ;;
 
6518
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6519
  symcode='[ABDT]'
 
6520
  ;;
5492
6521
sysv4)
5493
6522
  symcode='[DFNSTU]'
5494
6523
  ;;
5511
6540
# Try without a prefix undercore, then with it.
5512
6541
for ac_symprfx in "" "_"; do
5513
6542
 
 
6543
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6544
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6545
 
5514
6546
  # Write the raw and C identifiers.
5515
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6547
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5516
6548
 
5517
6549
  # Check to see that the pipe works correctly.
5518
6550
  pipe_works=no
5630
6662
  lt_cv_sys_global_symbol_to_cdecl=
5631
6663
fi
5632
6664
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5633
 
  echo "$as_me:$LINENO: result: failed" >&5
5634
 
echo "${ECHO_T}failed" >&6
 
6665
  { echo "$as_me:$LINENO: result: failed" >&5
 
6666
echo "${ECHO_T}failed" >&6; }
5635
6667
else
5636
 
  echo "$as_me:$LINENO: result: ok" >&5
5637
 
echo "${ECHO_T}ok" >&6
 
6668
  { echo "$as_me:$LINENO: result: ok" >&5
 
6669
echo "${ECHO_T}ok" >&6; }
5638
6670
fi
5639
6671
 
5640
 
echo "$as_me:$LINENO: checking for objdir" >&5
5641
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6672
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6673
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5642
6674
if test "${lt_cv_objdir+set}" = set; then
5643
6675
  echo $ECHO_N "(cached) $ECHO_C" >&6
5644
6676
else
5652
6684
fi
5653
6685
rmdir .libs 2>/dev/null
5654
6686
fi
5655
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5656
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6687
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6688
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5657
6689
objdir=$lt_cv_objdir
5658
6690
 
5659
6691
 
5674
6706
 
5675
6707
# Sed substitution that helps us do robust quoting.  It backslashifies
5676
6708
# metacharacters that are still active within double-quoted strings.
5677
 
Xsed='sed -e s/^X//'
 
6709
Xsed='sed -e 1s/^X//'
5678
6710
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5679
6711
 
5680
6712
# Same as above, but do not quote variable references.
5694
6726
default_ofile=libtool
5695
6727
can_build_shared=yes
5696
6728
 
5697
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6729
# All known linkers require a `.a' archive for static linking (except MSVC,
5698
6730
# which needs '.lib').
5699
6731
libext=a
5700
6732
ltmain="$ac_aux_dir/ltmain.sh"
5704
6736
if test -n "$ac_tool_prefix"; then
5705
6737
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5706
6738
set dummy ${ac_tool_prefix}ar; ac_word=$2
5707
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5708
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6739
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709
6741
if test "${ac_cv_prog_AR+set}" = set; then
5710
6742
  echo $ECHO_N "(cached) $ECHO_C" >&6
5711
6743
else
5718
6750
  IFS=$as_save_IFS
5719
6751
  test -z "$as_dir" && as_dir=.
5720
6752
  for ac_exec_ext in '' $ac_executable_extensions; do
5721
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722
6754
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5723
6755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724
6756
    break 2
5725
6757
  fi
5726
6758
done
5727
6759
done
 
6760
IFS=$as_save_IFS
5728
6761
 
5729
6762
fi
5730
6763
fi
5731
6764
AR=$ac_cv_prog_AR
5732
6765
if test -n "$AR"; then
5733
 
  echo "$as_me:$LINENO: result: $AR" >&5
5734
 
echo "${ECHO_T}$AR" >&6
 
6766
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6767
echo "${ECHO_T}$AR" >&6; }
5735
6768
else
5736
 
  echo "$as_me:$LINENO: result: no" >&5
5737
 
echo "${ECHO_T}no" >&6
 
6769
  { echo "$as_me:$LINENO: result: no" >&5
 
6770
echo "${ECHO_T}no" >&6; }
5738
6771
fi
 
6772
 
5739
6773
 
5740
6774
fi
5741
6775
if test -z "$ac_cv_prog_AR"; then
5742
6776
  ac_ct_AR=$AR
5743
6777
  # Extract the first word of "ar", so it can be a program name with args.
5744
6778
set dummy ar; ac_word=$2
5745
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5746
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6779
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747
6781
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5748
6782
  echo $ECHO_N "(cached) $ECHO_C" >&6
5749
6783
else
5756
6790
  IFS=$as_save_IFS
5757
6791
  test -z "$as_dir" && as_dir=.
5758
6792
  for ac_exec_ext in '' $ac_executable_extensions; do
5759
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6793
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760
6794
    ac_cv_prog_ac_ct_AR="ar"
5761
6795
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762
6796
    break 2
5763
6797
  fi
5764
6798
done
5765
6799
done
 
6800
IFS=$as_save_IFS
5766
6801
 
5767
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5768
6802
fi
5769
6803
fi
5770
6804
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5771
6805
if test -n "$ac_ct_AR"; then
5772
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5773
 
echo "${ECHO_T}$ac_ct_AR" >&6
 
6806
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6807
echo "${ECHO_T}$ac_ct_AR" >&6; }
5774
6808
else
5775
 
  echo "$as_me:$LINENO: result: no" >&5
5776
 
echo "${ECHO_T}no" >&6
 
6809
  { echo "$as_me:$LINENO: result: no" >&5
 
6810
echo "${ECHO_T}no" >&6; }
5777
6811
fi
5778
6812
 
5779
 
  AR=$ac_ct_AR
 
6813
  if test "x$ac_ct_AR" = x; then
 
6814
    AR="false"
 
6815
  else
 
6816
    case $cross_compiling:$ac_tool_warned in
 
6817
yes:)
 
6818
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6819
whose name does not start with the host triplet.  If you think this
 
6820
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6821
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6822
whose name does not start with the host triplet.  If you think this
 
6823
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6824
ac_tool_warned=yes ;;
 
6825
esac
 
6826
    AR=$ac_ct_AR
 
6827
  fi
5780
6828
else
5781
6829
  AR="$ac_cv_prog_AR"
5782
6830
fi
5784
6832
if test -n "$ac_tool_prefix"; then
5785
6833
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5786
6834
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5787
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5788
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6835
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789
6837
if test "${ac_cv_prog_RANLIB+set}" = set; then
5790
6838
  echo $ECHO_N "(cached) $ECHO_C" >&6
5791
6839
else
5798
6846
  IFS=$as_save_IFS
5799
6847
  test -z "$as_dir" && as_dir=.
5800
6848
  for ac_exec_ext in '' $ac_executable_extensions; do
5801
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6849
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802
6850
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5803
6851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804
6852
    break 2
5805
6853
  fi
5806
6854
done
5807
6855
done
 
6856
IFS=$as_save_IFS
5808
6857
 
5809
6858
fi
5810
6859
fi
5811
6860
RANLIB=$ac_cv_prog_RANLIB
5812
6861
if test -n "$RANLIB"; then
5813
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5814
 
echo "${ECHO_T}$RANLIB" >&6
 
6862
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6863
echo "${ECHO_T}$RANLIB" >&6; }
5815
6864
else
5816
 
  echo "$as_me:$LINENO: result: no" >&5
5817
 
echo "${ECHO_T}no" >&6
 
6865
  { echo "$as_me:$LINENO: result: no" >&5
 
6866
echo "${ECHO_T}no" >&6; }
5818
6867
fi
 
6868
 
5819
6869
 
5820
6870
fi
5821
6871
if test -z "$ac_cv_prog_RANLIB"; then
5822
6872
  ac_ct_RANLIB=$RANLIB
5823
6873
  # Extract the first word of "ranlib", so it can be a program name with args.
5824
6874
set dummy ranlib; ac_word=$2
5825
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5826
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827
6877
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5828
6878
  echo $ECHO_N "(cached) $ECHO_C" >&6
5829
6879
else
5836
6886
  IFS=$as_save_IFS
5837
6887
  test -z "$as_dir" && as_dir=.
5838
6888
  for ac_exec_ext in '' $ac_executable_extensions; do
5839
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840
6890
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5841
6891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842
6892
    break 2
5843
6893
  fi
5844
6894
done
5845
6895
done
 
6896
IFS=$as_save_IFS
5846
6897
 
5847
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5848
6898
fi
5849
6899
fi
5850
6900
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851
6901
if test -n "$ac_ct_RANLIB"; then
5852
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5853
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6902
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6903
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5854
6904
else
5855
 
  echo "$as_me:$LINENO: result: no" >&5
5856
 
echo "${ECHO_T}no" >&6
 
6905
  { echo "$as_me:$LINENO: result: no" >&5
 
6906
echo "${ECHO_T}no" >&6; }
5857
6907
fi
5858
6908
 
5859
 
  RANLIB=$ac_ct_RANLIB
 
6909
  if test "x$ac_ct_RANLIB" = x; then
 
6910
    RANLIB=":"
 
6911
  else
 
6912
    case $cross_compiling:$ac_tool_warned in
 
6913
yes:)
 
6914
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6915
whose name does not start with the host triplet.  If you think this
 
6916
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6917
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6918
whose name does not start with the host triplet.  If you think this
 
6919
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6920
ac_tool_warned=yes ;;
 
6921
esac
 
6922
    RANLIB=$ac_ct_RANLIB
 
6923
  fi
5860
6924
else
5861
6925
  RANLIB="$ac_cv_prog_RANLIB"
5862
6926
fi
5864
6928
if test -n "$ac_tool_prefix"; then
5865
6929
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5866
6930
set dummy ${ac_tool_prefix}strip; ac_word=$2
5867
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5868
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6931
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5869
6933
if test "${ac_cv_prog_STRIP+set}" = set; then
5870
6934
  echo $ECHO_N "(cached) $ECHO_C" >&6
5871
6935
else
5878
6942
  IFS=$as_save_IFS
5879
6943
  test -z "$as_dir" && as_dir=.
5880
6944
  for ac_exec_ext in '' $ac_executable_extensions; do
5881
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882
6946
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5883
6947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884
6948
    break 2
5885
6949
  fi
5886
6950
done
5887
6951
done
 
6952
IFS=$as_save_IFS
5888
6953
 
5889
6954
fi
5890
6955
fi
5891
6956
STRIP=$ac_cv_prog_STRIP
5892
6957
if test -n "$STRIP"; then
5893
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5894
 
echo "${ECHO_T}$STRIP" >&6
 
6958
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6959
echo "${ECHO_T}$STRIP" >&6; }
5895
6960
else
5896
 
  echo "$as_me:$LINENO: result: no" >&5
5897
 
echo "${ECHO_T}no" >&6
 
6961
  { echo "$as_me:$LINENO: result: no" >&5
 
6962
echo "${ECHO_T}no" >&6; }
5898
6963
fi
 
6964
 
5899
6965
 
5900
6966
fi
5901
6967
if test -z "$ac_cv_prog_STRIP"; then
5902
6968
  ac_ct_STRIP=$STRIP
5903
6969
  # Extract the first word of "strip", so it can be a program name with args.
5904
6970
set dummy strip; ac_word=$2
5905
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5906
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6971
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907
6973
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5908
6974
  echo $ECHO_N "(cached) $ECHO_C" >&6
5909
6975
else
5916
6982
  IFS=$as_save_IFS
5917
6983
  test -z "$as_dir" && as_dir=.
5918
6984
  for ac_exec_ext in '' $ac_executable_extensions; do
5919
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920
6986
    ac_cv_prog_ac_ct_STRIP="strip"
5921
6987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922
6988
    break 2
5923
6989
  fi
5924
6990
done
5925
6991
done
 
6992
IFS=$as_save_IFS
5926
6993
 
5927
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5928
6994
fi
5929
6995
fi
5930
6996
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5931
6997
if test -n "$ac_ct_STRIP"; then
5932
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5933
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6998
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6999
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5934
7000
else
5935
 
  echo "$as_me:$LINENO: result: no" >&5
5936
 
echo "${ECHO_T}no" >&6
 
7001
  { echo "$as_me:$LINENO: result: no" >&5
 
7002
echo "${ECHO_T}no" >&6; }
5937
7003
fi
5938
7004
 
5939
 
  STRIP=$ac_ct_STRIP
 
7005
  if test "x$ac_ct_STRIP" = x; then
 
7006
    STRIP=":"
 
7007
  else
 
7008
    case $cross_compiling:$ac_tool_warned in
 
7009
yes:)
 
7010
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7011
whose name does not start with the host triplet.  If you think this
 
7012
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7013
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7014
whose name does not start with the host triplet.  If you think this
 
7015
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7016
ac_tool_warned=yes ;;
 
7017
esac
 
7018
    STRIP=$ac_ct_STRIP
 
7019
  fi
5940
7020
else
5941
7021
  STRIP="$ac_cv_prog_STRIP"
5942
7022
fi
5951
7031
test -z "$AS" && AS=as
5952
7032
test -z "$CC" && CC=cc
5953
7033
test -z "$LTCC" && LTCC=$CC
 
7034
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5954
7035
test -z "$DLLTOOL" && DLLTOOL=dlltool
5955
7036
test -z "$LD" && LD=ld
5956
7037
test -z "$LN_S" && LN_S="ln -s"
5970
7051
if test -n "$RANLIB"; then
5971
7052
  case $host_os in
5972
7053
  openbsd*)
5973
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7054
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5974
7055
    ;;
5975
7056
  *)
5976
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7057
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5977
7058
    ;;
5978
7059
  esac
5979
7060
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5980
7061
fi
5981
7062
 
 
7063
for cc_temp in $compiler""; do
 
7064
  case $cc_temp in
 
7065
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7066
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7067
    \-*) ;;
 
7068
    *) break;;
 
7069
  esac
 
7070
done
 
7071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7072
 
 
7073
 
5982
7074
# Only perform the check for file, if the check method requires it
5983
7075
case $deplibs_check_method in
5984
7076
file_magic*)
5985
7077
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5986
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5987
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7078
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7079
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5988
7080
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5989
7081
  echo $ECHO_N "(cached) $ECHO_C" >&6
5990
7082
else
6004
7096
      if test -n "$file_magic_test_file"; then
6005
7097
        case $deplibs_check_method in
6006
7098
        "file_magic "*)
6007
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7099
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6008
7100
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6009
7101
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6010
7102
            $EGREP "$file_magic_regex" > /dev/null; then
6036
7128
 
6037
7129
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6038
7130
if test -n "$MAGIC_CMD"; then
6039
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6040
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7131
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7132
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6041
7133
else
6042
 
  echo "$as_me:$LINENO: result: no" >&5
6043
 
echo "${ECHO_T}no" >&6
 
7134
  { echo "$as_me:$LINENO: result: no" >&5
 
7135
echo "${ECHO_T}no" >&6; }
6044
7136
fi
6045
7137
 
6046
7138
if test -z "$lt_cv_path_MAGIC_CMD"; then
6047
7139
  if test -n "$ac_tool_prefix"; then
6048
 
    echo "$as_me:$LINENO: checking for file" >&5
6049
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7140
    { echo "$as_me:$LINENO: checking for file" >&5
 
7141
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6050
7142
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6051
7143
  echo $ECHO_N "(cached) $ECHO_C" >&6
6052
7144
else
6066
7158
      if test -n "$file_magic_test_file"; then
6067
7159
        case $deplibs_check_method in
6068
7160
        "file_magic "*)
6069
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7161
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6070
7162
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6071
7163
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6072
7164
            $EGREP "$file_magic_regex" > /dev/null; then
6098
7190
 
6099
7191
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6100
7192
if test -n "$MAGIC_CMD"; then
6101
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6102
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7193
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7194
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6103
7195
else
6104
 
  echo "$as_me:$LINENO: result: no" >&5
6105
 
echo "${ECHO_T}no" >&6
 
7196
  { echo "$as_me:$LINENO: result: no" >&5
 
7197
echo "${ECHO_T}no" >&6; }
6106
7198
fi
6107
7199
 
6108
7200
  else
6117
7209
enable_dlopen=no
6118
7210
enable_win32_dll=no
6119
7211
 
6120
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7212
# Check whether --enable-libtool-lock was given.
6121
7213
if test "${enable_libtool_lock+set}" = set; then
6122
 
  enableval="$enable_libtool_lock"
 
7214
  enableval=$enable_libtool_lock;
 
7215
fi
6123
7216
 
6124
 
fi;
6125
7217
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6126
7218
 
6127
7219
 
6128
 
# Check whether --with-pic or --without-pic was given.
 
7220
# Check whether --with-pic was given.
6129
7221
if test "${with_pic+set}" = set; then
6130
 
  withval="$with_pic"
6131
 
  pic_mode="$withval"
 
7222
  withval=$with_pic; pic_mode="$withval"
6132
7223
else
6133
7224
  pic_mode=default
6134
 
fi;
 
7225
fi
 
7226
 
6135
7227
test -z "$pic_mode" && pic_mode=default
6136
7228
 
6137
7229
# Use C for the default configuration in the libtool script
6161
7253
# If no C compiler was specified, use CC.
6162
7254
LTCC=${LTCC-"$CC"}
6163
7255
 
 
7256
# If no C compiler flags were specified, use CFLAGS.
 
7257
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7258
 
6164
7259
# Allow CC to be a program name with arguments.
6165
7260
compiler=$CC
6166
7261
 
6167
7262
 
6168
 
#
6169
 
# Check for any special shared library compilation flags.
6170
 
#
6171
 
lt_prog_cc_shlib=
6172
 
if test "$GCC" = no; then
6173
 
  case $host_os in
6174
 
  sco3.2v5*)
6175
 
    lt_prog_cc_shlib='-belf'
6176
 
    ;;
6177
 
  esac
6178
 
fi
6179
 
if test -n "$lt_prog_cc_shlib"; then
6180
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6181
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6182
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6183
 
  else
6184
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6185
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6186
 
    lt_cv_prog_cc_can_build_shared=no
6187
 
  fi
6188
 
fi
6189
 
 
6190
 
 
6191
 
#
6192
 
# Check to make sure the static flag actually works.
6193
 
#
6194
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6195
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6196
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6197
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6198
 
else
6199
 
  lt_prog_compiler_static_works=no
6200
 
   save_LDFLAGS="$LDFLAGS"
6201
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6202
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6203
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6204
 
     # The compiler can only warn and ignore the option if not recognized
6205
 
     # So say no if there are warnings
6206
 
     if test -s conftest.err; then
6207
 
       # Append any errors to the config.log.
6208
 
       cat conftest.err 1>&5
6209
 
     else
6210
 
       lt_prog_compiler_static_works=yes
6211
 
     fi
6212
 
   fi
6213
 
   $rm conftest*
6214
 
   LDFLAGS="$save_LDFLAGS"
6215
 
 
6216
 
fi
6217
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6218
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6219
 
 
6220
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6221
 
    :
6222
 
else
6223
 
    lt_prog_compiler_static=
6224
 
fi
6225
 
 
 
7263
# save warnings/boilerplate of simple test code
 
7264
ac_outfile=conftest.$ac_objext
 
7265
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7266
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7267
_lt_compiler_boilerplate=`cat conftest.err`
 
7268
$rm conftest*
 
7269
 
 
7270
ac_outfile=conftest.$ac_objext
 
7271
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7272
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7273
_lt_linker_boilerplate=`cat conftest.err`
 
7274
$rm conftest*
6226
7275
 
6227
7276
 
6228
7277
 
6232
7281
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6233
7282
 
6234
7283
 
6235
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6236
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7284
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7285
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6237
7286
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6238
7287
  echo $ECHO_N "(cached) $ECHO_C" >&6
6239
7288
else
6247
7296
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6248
7297
   # The option is referenced via a variable to avoid confusing sed.
6249
7298
   lt_compile=`echo "$ac_compile" | $SED \
6250
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7299
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6251
7300
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6252
7301
   -e 's:$: $lt_compiler_flag:'`
6253
 
   (eval echo "\"\$as_me:6253: $lt_compile\"" >&5)
 
7302
   (eval echo "\"\$as_me:7302: $lt_compile\"" >&5)
6254
7303
   (eval "$lt_compile" 2>conftest.err)
6255
7304
   ac_status=$?
6256
7305
   cat conftest.err >&5
6257
 
   echo "$as_me:6257: \$? = $ac_status" >&5
 
7306
   echo "$as_me:7306: \$? = $ac_status" >&5
6258
7307
   if (exit $ac_status) && test -s "$ac_outfile"; then
6259
7308
     # The compiler can only warn and ignore the option if not recognized
6260
 
     # So say no if there are warnings
6261
 
     if test ! -s conftest.err; then
 
7309
     # So say no if there are warnings other than the usual output.
 
7310
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7311
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7312
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6262
7313
       lt_cv_prog_compiler_rtti_exceptions=yes
6263
7314
     fi
6264
7315
   fi
6265
7316
   $rm conftest*
6266
7317
 
6267
7318
fi
6268
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6269
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7319
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7320
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6270
7321
 
6271
7322
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6272
7323
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6280
7331
lt_prog_compiler_pic=
6281
7332
lt_prog_compiler_static=
6282
7333
 
6283
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6284
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7334
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7335
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6285
7336
 
6286
7337
  if test "$GCC" = yes; then
6287
7338
    lt_prog_compiler_wl='-Wl,'
6319
7370
      lt_prog_compiler_pic='-fno-common'
6320
7371
      ;;
6321
7372
 
 
7373
    interix3*)
 
7374
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7375
      # Instead, we relocate shared libraries at runtime.
 
7376
      ;;
 
7377
 
6322
7378
    msdosdjgpp*)
6323
7379
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6324
7380
      # on systems that don't support them.
6335
7391
    hpux*)
6336
7392
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6337
7393
      # not for PA HP-UX.
6338
 
      case "$host_cpu" in
 
7394
      case $host_cpu in
6339
7395
      hppa*64*|ia64*)
6340
7396
        # +Z the default
6341
7397
        ;;
6361
7417
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6362
7418
      fi
6363
7419
      ;;
 
7420
      darwin*)
 
7421
        # PIC is the default on this platform
 
7422
        # Common symbols not allowed in MH_DYLIB files
 
7423
       case $cc_basename in
 
7424
         xlc*)
 
7425
         lt_prog_compiler_pic='-qnocommon'
 
7426
         lt_prog_compiler_wl='-Wl,'
 
7427
         ;;
 
7428
       esac
 
7429
       ;;
6364
7430
 
6365
7431
    mingw* | pw32* | os2*)
6366
7432
      # This hack is so that the source file can tell whether it is being
6372
7438
      lt_prog_compiler_wl='-Wl,'
6373
7439
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6374
7440
      # not for PA HP-UX.
6375
 
      case "$host_cpu" in
 
7441
      case $host_cpu in
6376
7442
      hppa*64*|ia64*)
6377
7443
        # +Z the default
6378
7444
        ;;
6396
7462
      ;;
6397
7463
 
6398
7464
    linux*)
6399
 
      case $CC in
 
7465
      case $cc_basename in
6400
7466
      icc* | ecc*)
6401
7467
        lt_prog_compiler_wl='-Wl,'
6402
7468
        lt_prog_compiler_pic='-KPIC'
6403
7469
        lt_prog_compiler_static='-static'
6404
7470
        ;;
 
7471
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7472
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7473
        # which looks to be a dead project)
 
7474
        lt_prog_compiler_wl='-Wl,'
 
7475
        lt_prog_compiler_pic='-fpic'
 
7476
        lt_prog_compiler_static='-Bstatic'
 
7477
        ;;
6405
7478
      ccc*)
6406
7479
        lt_prog_compiler_wl='-Wl,'
6407
7480
        # All Alpha code is PIC.
6416
7489
      lt_prog_compiler_static='-non_shared'
6417
7490
      ;;
6418
7491
 
6419
 
    sco3.2v5*)
6420
 
      lt_prog_compiler_pic='-Kpic'
6421
 
      lt_prog_compiler_static='-dn'
6422
 
      ;;
6423
 
 
6424
7492
    solaris*)
6425
 
      lt_prog_compiler_wl='-Wl,'
6426
7493
      lt_prog_compiler_pic='-KPIC'
6427
7494
      lt_prog_compiler_static='-Bstatic'
 
7495
      case $cc_basename in
 
7496
      f77* | f90* | f95*)
 
7497
        lt_prog_compiler_wl='-Qoption ld ';;
 
7498
      *)
 
7499
        lt_prog_compiler_wl='-Wl,';;
 
7500
      esac
6428
7501
      ;;
6429
7502
 
6430
7503
    sunos4*)
6433
7506
      lt_prog_compiler_static='-Bstatic'
6434
7507
      ;;
6435
7508
 
6436
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7509
    sysv4 | sysv4.2uw2* | sysv4.3*)
6437
7510
      lt_prog_compiler_wl='-Wl,'
6438
7511
      lt_prog_compiler_pic='-KPIC'
6439
7512
      lt_prog_compiler_static='-Bstatic'
6446
7519
      fi
6447
7520
      ;;
6448
7521
 
 
7522
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7523
      lt_prog_compiler_wl='-Wl,'
 
7524
      lt_prog_compiler_pic='-KPIC'
 
7525
      lt_prog_compiler_static='-Bstatic'
 
7526
      ;;
 
7527
 
 
7528
    unicos*)
 
7529
      lt_prog_compiler_wl='-Wl,'
 
7530
      lt_prog_compiler_can_build_shared=no
 
7531
      ;;
 
7532
 
6449
7533
    uts4*)
6450
7534
      lt_prog_compiler_pic='-pic'
6451
7535
      lt_prog_compiler_static='-Bstatic'
6457
7541
    esac
6458
7542
  fi
6459
7543
 
6460
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6461
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7544
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7545
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6462
7546
 
6463
7547
#
6464
7548
# Check to make sure the PIC flag actually works.
6465
7549
#
6466
7550
if test -n "$lt_prog_compiler_pic"; then
6467
7551
 
6468
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6469
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7552
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7553
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6470
7554
if test "${lt_prog_compiler_pic_works+set}" = set; then
6471
7555
  echo $ECHO_N "(cached) $ECHO_C" >&6
6472
7556
else
6480
7564
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6481
7565
   # The option is referenced via a variable to avoid confusing sed.
6482
7566
   lt_compile=`echo "$ac_compile" | $SED \
6483
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7567
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6484
7568
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6485
7569
   -e 's:$: $lt_compiler_flag:'`
6486
 
   (eval echo "\"\$as_me:6486: $lt_compile\"" >&5)
 
7570
   (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
6487
7571
   (eval "$lt_compile" 2>conftest.err)
6488
7572
   ac_status=$?
6489
7573
   cat conftest.err >&5
6490
 
   echo "$as_me:6490: \$? = $ac_status" >&5
 
7574
   echo "$as_me:7574: \$? = $ac_status" >&5
6491
7575
   if (exit $ac_status) && test -s "$ac_outfile"; then
6492
7576
     # The compiler can only warn and ignore the option if not recognized
6493
 
     # So say no if there are warnings
6494
 
     if test ! -s conftest.err; then
 
7577
     # So say no if there are warnings other than the usual output.
 
7578
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7579
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7580
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6495
7581
       lt_prog_compiler_pic_works=yes
6496
7582
     fi
6497
7583
   fi
6498
7584
   $rm conftest*
6499
7585
 
6500
7586
fi
6501
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6502
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7587
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7588
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6503
7589
 
6504
7590
if test x"$lt_prog_compiler_pic_works" = xyes; then
6505
7591
    case $lt_prog_compiler_pic in
6512
7598
fi
6513
7599
 
6514
7600
fi
6515
 
case "$host_os" in
 
7601
case $host_os in
6516
7602
  # For platforms which do not support PIC, -DPIC is meaningless:
6517
7603
  *djgpp*)
6518
7604
    lt_prog_compiler_pic=
6522
7608
    ;;
6523
7609
esac
6524
7610
 
6525
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6526
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7611
#
 
7612
# Check to make sure the static flag actually works.
 
7613
#
 
7614
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7615
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7616
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7617
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7619
else
 
7620
  lt_prog_compiler_static_works=no
 
7621
   save_LDFLAGS="$LDFLAGS"
 
7622
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7623
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7624
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7625
     # The linker can only warn and ignore the option if not recognized
 
7626
     # So say no if there are warnings
 
7627
     if test -s conftest.err; then
 
7628
       # Append any errors to the config.log.
 
7629
       cat conftest.err 1>&5
 
7630
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7631
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7632
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7633
         lt_prog_compiler_static_works=yes
 
7634
       fi
 
7635
     else
 
7636
       lt_prog_compiler_static_works=yes
 
7637
     fi
 
7638
   fi
 
7639
   $rm conftest*
 
7640
   LDFLAGS="$save_LDFLAGS"
 
7641
 
 
7642
fi
 
7643
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7644
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7645
 
 
7646
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7647
    :
 
7648
else
 
7649
    lt_prog_compiler_static=
 
7650
fi
 
7651
 
 
7652
 
 
7653
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7654
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6527
7655
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6528
7656
  echo $ECHO_N "(cached) $ECHO_C" >&6
6529
7657
else
6540
7668
   # Note that $ac_compile itself does not contain backslashes and begins
6541
7669
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6542
7670
   lt_compile=`echo "$ac_compile" | $SED \
6543
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7671
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6544
7672
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6545
7673
   -e 's:$: $lt_compiler_flag:'`
6546
 
   (eval echo "\"\$as_me:6546: $lt_compile\"" >&5)
 
7674
   (eval echo "\"\$as_me:7674: $lt_compile\"" >&5)
6547
7675
   (eval "$lt_compile" 2>out/conftest.err)
6548
7676
   ac_status=$?
6549
7677
   cat out/conftest.err >&5
6550
 
   echo "$as_me:6550: \$? = $ac_status" >&5
 
7678
   echo "$as_me:7678: \$? = $ac_status" >&5
6551
7679
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6552
7680
   then
6553
7681
     # The compiler can only warn and ignore the option if not recognized
6554
7682
     # So say no if there are warnings
6555
 
     if test ! -s out/conftest.err; then
 
7683
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7684
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7685
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6556
7686
       lt_cv_prog_compiler_c_o=yes
6557
7687
     fi
6558
7688
   fi
6559
 
   chmod u+w .
 
7689
   chmod u+w . 2>&5
6560
7690
   $rm conftest*
6561
7691
   # SGI C++ compiler will create directory out/ii_files/ for
6562
7692
   # template instantiation
6567
7697
   $rm conftest*
6568
7698
 
6569
7699
fi
6570
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6571
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7700
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7701
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6572
7702
 
6573
7703
 
6574
7704
hard_links="nottested"
6575
7705
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6576
7706
  # do not overwrite the value of need_locks provided by the user
6577
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6578
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7707
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7708
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6579
7709
  hard_links=yes
6580
7710
  $rm conftest*
6581
7711
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582
7712
  touch conftest.a
6583
7713
  ln conftest.a conftest.b 2>&5 || hard_links=no
6584
7714
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6585
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6586
 
echo "${ECHO_T}$hard_links" >&6
 
7715
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7716
echo "${ECHO_T}$hard_links" >&6; }
6587
7717
  if test "$hard_links" = no; then
6588
7718
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6589
7719
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6593
7723
  need_locks=no
6594
7724
fi
6595
7725
 
6596
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6597
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7726
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7727
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6598
7728
 
6599
7729
  runpath_var=
6600
7730
  allow_undefined_flag=
6632
7762
  # rely on this symbol name, it's probably fine to never include it in
6633
7763
  # preloaded symbol tables.
6634
7764
  extract_expsyms_cmds=
 
7765
  # Just being paranoid about ensuring that cc_basename is set.
 
7766
  for cc_temp in $compiler""; do
 
7767
  case $cc_temp in
 
7768
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7769
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7770
    \-*) ;;
 
7771
    *) break;;
 
7772
  esac
 
7773
done
 
7774
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6635
7775
 
6636
7776
  case $host_os in
6637
7777
  cygwin* | mingw* | pw32*)
6642
7782
      with_gnu_ld=no
6643
7783
    fi
6644
7784
    ;;
 
7785
  interix*)
 
7786
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7787
    with_gnu_ld=yes
 
7788
    ;;
6645
7789
  openbsd*)
6646
7790
    with_gnu_ld=no
6647
7791
    ;;
6652
7796
    # If archive_cmds runs LD, not CC, wlarc should be empty
6653
7797
    wlarc='${wl}'
6654
7798
 
 
7799
    # Set some defaults for GNU ld with shared library support. These
 
7800
    # are reset later if shared libraries are not supported. Putting them
 
7801
    # here allows them to be overridden if necessary.
 
7802
    runpath_var=LD_RUN_PATH
 
7803
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7804
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7805
    # ancient GNU ld didn't support --whole-archive et. al.
 
7806
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7807
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7808
      else
 
7809
        whole_archive_flag_spec=
 
7810
    fi
 
7811
    supports_anon_versioning=no
 
7812
    case `$LD -v 2>/dev/null` in
 
7813
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7814
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7815
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7816
      *\ 2.11.*) ;; # other 2.11 versions
 
7817
      *) supports_anon_versioning=yes ;;
 
7818
    esac
 
7819
 
6655
7820
    # See if GNU ld supports shared libraries.
6656
7821
    case $host_os in
6657
7822
    aix3* | aix4* | aix5*)
6702
7867
      allow_undefined_flag=unsupported
6703
7868
      always_export_symbols=no
6704
7869
      enable_shared_with_static_runtimes=yes
6705
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7870
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6706
7871
 
6707
7872
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6708
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7873
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6709
7874
        # If the export-symbols file already is a .def file (1st line
6710
7875
        # is EXPORTS), use it as is; otherwise, prepend...
6711
7876
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6714
7879
          echo EXPORTS > $output_objdir/$soname.def;
6715
7880
          cat $export_symbols >> $output_objdir/$soname.def;
6716
7881
        fi~
6717
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6718
 
      else
6719
 
        ld_shlibs=no
6720
 
      fi
6721
 
      ;;
6722
 
 
6723
 
    netbsd* | knetbsd*-gnu)
 
7882
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7883
      else
 
7884
        ld_shlibs=no
 
7885
      fi
 
7886
      ;;
 
7887
 
 
7888
    interix3*)
 
7889
      hardcode_direct=no
 
7890
      hardcode_shlibpath_var=no
 
7891
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7892
      export_dynamic_flag_spec='${wl}-E'
 
7893
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7894
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7895
      # default) and relocated if they conflict, which is a slow very memory
 
7896
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7897
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7898
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7899
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7900
      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'
 
7901
      ;;
 
7902
 
 
7903
    linux*)
 
7904
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7905
        tmp_addflag=
 
7906
        case $cc_basename,$host_cpu in
 
7907
        pgcc*)                          # Portland Group C compiler
 
7908
          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'
 
7909
          tmp_addflag=' $pic_flag'
 
7910
          ;;
 
7911
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7912
          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'
 
7913
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7914
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7915
          tmp_addflag=' -i_dynamic' ;;
 
7916
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7917
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7918
        ifc* | ifort*)                  # Intel Fortran compiler
 
7919
          tmp_addflag=' -nofor_main' ;;
 
7920
        esac
 
7921
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7922
 
 
7923
        if test $supports_anon_versioning = yes; then
 
7924
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7925
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7926
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7927
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7928
        fi
 
7929
      else
 
7930
        ld_shlibs=no
 
7931
      fi
 
7932
      ;;
 
7933
 
 
7934
    netbsd*)
6724
7935
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6725
7936
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6726
7937
        wlarc=
6730
7941
      fi
6731
7942
      ;;
6732
7943
 
6733
 
    solaris* | sysv5*)
 
7944
    solaris*)
6734
7945
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6735
7946
        ld_shlibs=no
6736
7947
        cat <<EOF 1>&2
6751
7962
      fi
6752
7963
      ;;
6753
7964
 
 
7965
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7966
      case `$LD -v 2>&1` in
 
7967
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7968
        ld_shlibs=no
 
7969
        cat <<_LT_EOF 1>&2
 
7970
 
 
7971
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7972
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7973
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7974
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7975
*** your PATH or compiler configuration so that the native linker is
 
7976
*** used, and then restart.
 
7977
 
 
7978
_LT_EOF
 
7979
        ;;
 
7980
        *)
 
7981
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7982
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7983
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7984
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7985
          else
 
7986
            ld_shlibs=no
 
7987
          fi
 
7988
        ;;
 
7989
      esac
 
7990
      ;;
 
7991
 
6754
7992
    sunos4*)
6755
7993
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6756
7994
      wlarc=
6758
7996
      hardcode_shlibpath_var=no
6759
7997
      ;;
6760
7998
 
6761
 
  linux*)
6762
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6763
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6764
 
        archive_cmds="$tmp_archive_cmds"
6765
 
      supports_anon_versioning=no
6766
 
      case `$LD -v 2>/dev/null` in
6767
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6768
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6769
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6770
 
        *\ 2.11.*) ;; # other 2.11 versions
6771
 
        *) supports_anon_versioning=yes ;;
6772
 
      esac
6773
 
      if test $supports_anon_versioning = yes; then
6774
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6775
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6776
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6777
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6778
 
      else
6779
 
        archive_expsym_cmds="$tmp_archive_cmds"
6780
 
      fi
6781
 
      link_all_deplibs=no
6782
 
    else
6783
 
      ld_shlibs=no
6784
 
    fi
6785
 
    ;;
6786
 
 
6787
7999
    *)
6788
8000
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789
8001
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794
8006
      ;;
6795
8007
    esac
6796
8008
 
6797
 
    if test "$ld_shlibs" = yes; then
6798
 
      runpath_var=LD_RUN_PATH
6799
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6800
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6801
 
      # ancient GNU ld didn't support --whole-archive et. al.
6802
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6803
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6804
 
      else
6805
 
        whole_archive_flag_spec=
6806
 
      fi
 
8009
    if test "$ld_shlibs" = no; then
 
8010
      runpath_var=
 
8011
      hardcode_libdir_flag_spec=
 
8012
      export_dynamic_flag_spec=
 
8013
      whole_archive_flag_spec=
6807
8014
    fi
6808
8015
  else
6809
8016
    # PORTME fill in a description of your system's linker (not GNU ld)
6815
8022
      # Note: this linker hardcodes the directories in LIBPATH if there
6816
8023
      # are no directories specified by -L.
6817
8024
      hardcode_minus_L=yes
6818
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8025
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6819
8026
        # Neither direct hardcoding nor static linking is supported with a
6820
8027
        # broken collect2.
6821
8028
        hardcode_direct=unsupported
6849
8056
            break
6850
8057
          fi
6851
8058
          done
 
8059
          ;;
6852
8060
        esac
6853
8061
 
6854
8062
        exp_sym_flag='-bexport'
6867
8075
      link_all_deplibs=yes
6868
8076
 
6869
8077
      if test "$GCC" = yes; then
6870
 
        case $host_os in aix4.012|aix4.012.*)
 
8078
        case $host_os in aix4.[012]|aix4.[012].*)
6871
8079
        # We only want to do this on AIX 4.2 and lower, the check
6872
8080
        # below for broken collect2 doesn't work under 4.3+
6873
8081
          collect2name=`${CC} -print-prog-name=collect2`
6886
8094
          hardcode_libdir_flag_spec='-L$libdir'
6887
8095
          hardcode_libdir_separator=
6888
8096
          fi
 
8097
          ;;
6889
8098
        esac
6890
8099
        shared_flag='-shared'
 
8100
        if test "$aix_use_runtimelinking" = yes; then
 
8101
          shared_flag="$shared_flag "'${wl}-G'
 
8102
        fi
6891
8103
      else
6892
8104
        # not using gcc
6893
8105
        if test "$host_cpu" = ia64; then
6895
8107
        # chokes on -Wl,-G. The following line is correct:
6896
8108
          shared_flag='-G'
6897
8109
        else
6898
 
        if test "$aix_use_runtimelinking" = yes; then
 
8110
          if test "$aix_use_runtimelinking" = yes; then
6899
8111
            shared_flag='${wl}-G'
6900
8112
          else
6901
8113
            shared_flag='${wl}-bM:SRE'
6902
 
        fi
 
8114
          fi
6903
8115
        fi
6904
8116
      fi
6905
8117
 
6927
8139
}
6928
8140
_ACEOF
6929
8141
rm -f conftest.$ac_objext conftest$ac_exeext
6930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931
 
  (eval $ac_link) 2>conftest.er1
 
8142
if { (ac_try="$ac_link"
 
8143
case "(($ac_try" in
 
8144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8145
  *) ac_try_echo=$ac_try;;
 
8146
esac
 
8147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8148
  (eval "$ac_link") 2>conftest.er1
6932
8149
  ac_status=$?
6933
8150
  grep -v '^ *+' conftest.er1 >conftest.err
6934
8151
  rm -f conftest.er1
6935
8152
  cat conftest.err >&5
6936
8153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937
 
  (exit $ac_status); } &&
6938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940
 
  (eval $ac_try) 2>&5
6941
 
  ac_status=$?
6942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943
 
  (exit $ac_status); }; } &&
6944
 
         { ac_try='test -s conftest$ac_exeext'
6945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946
 
  (eval $ac_try) 2>&5
6947
 
  ac_status=$?
6948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949
 
  (exit $ac_status); }; }; then
 
8154
  (exit $ac_status); } && {
 
8155
         test -z "$ac_c_werror_flag" ||
 
8156
         test ! -s conftest.err
 
8157
       } && test -s conftest$ac_exeext &&
 
8158
       $as_test_x conftest$ac_exeext; then
6950
8159
 
6951
8160
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6952
8161
}'`
6957
8166
  echo "$as_me: failed program was:" >&5
6958
8167
sed 's/^/| /' conftest.$ac_ext >&5
6959
8168
 
 
8169
 
6960
8170
fi
6961
 
rm -f conftest.err conftest.$ac_objext \
 
8171
 
 
8172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6962
8173
      conftest$ac_exeext conftest.$ac_ext
6963
8174
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6964
8175
 
6965
8176
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6966
 
        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"
 
8177
        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"
6967
8178
       else
6968
8179
        if test "$host_cpu" = ia64; then
6969
8180
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6970
8181
          allow_undefined_flag="-z nodefs"
6971
 
          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"
 
8182
          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"
6972
8183
        else
6973
8184
         # Determine the default libpath from the value encoded in an empty executable.
6974
8185
         cat >conftest.$ac_ext <<_ACEOF
6987
8198
}
6988
8199
_ACEOF
6989
8200
rm -f conftest.$ac_objext conftest$ac_exeext
6990
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991
 
  (eval $ac_link) 2>conftest.er1
 
8201
if { (ac_try="$ac_link"
 
8202
case "(($ac_try" in
 
8203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8204
  *) ac_try_echo=$ac_try;;
 
8205
esac
 
8206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8207
  (eval "$ac_link") 2>conftest.er1
6992
8208
  ac_status=$?
6993
8209
  grep -v '^ *+' conftest.er1 >conftest.err
6994
8210
  rm -f conftest.er1
6995
8211
  cat conftest.err >&5
6996
8212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997
 
  (exit $ac_status); } &&
6998
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000
 
  (eval $ac_try) 2>&5
7001
 
  ac_status=$?
7002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003
 
  (exit $ac_status); }; } &&
7004
 
         { ac_try='test -s conftest$ac_exeext'
7005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006
 
  (eval $ac_try) 2>&5
7007
 
  ac_status=$?
7008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009
 
  (exit $ac_status); }; }; then
 
8213
  (exit $ac_status); } && {
 
8214
         test -z "$ac_c_werror_flag" ||
 
8215
         test ! -s conftest.err
 
8216
       } && test -s conftest$ac_exeext &&
 
8217
       $as_test_x conftest$ac_exeext; then
7010
8218
 
7011
8219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7012
8220
}'`
7017
8225
  echo "$as_me: failed program was:" >&5
7018
8226
sed 's/^/| /' conftest.$ac_ext >&5
7019
8227
 
 
8228
 
7020
8229
fi
7021
 
rm -f conftest.err conftest.$ac_objext \
 
8230
 
 
8231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7022
8232
      conftest$ac_exeext conftest.$ac_ext
7023
8233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7024
8234
 
7027
8237
          # -berok will link without error, but may produce a broken library.
7028
8238
          no_undefined_flag=' ${wl}-bernotok'
7029
8239
          allow_undefined_flag=' ${wl}-berok'
7030
 
          # -bexpall does not export symbols beginning with underscore (_)
7031
 
          always_export_symbols=yes
7032
8240
          # Exported symbols can be pulled into shared objects from archives
7033
 
          whole_archive_flag_spec=' '
 
8241
          whole_archive_flag_spec='$convenience'
7034
8242
          archive_cmds_need_lc=yes
7035
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7036
 
          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'
 
8243
          # This is similar to how AIX traditionally builds its shared libraries.
 
8244
          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'
7037
8245
        fi
7038
8246
      fi
7039
8247
      ;;
7046
8254
      ld_shlibs=no
7047
8255
      ;;
7048
8256
 
7049
 
    bsdi4*)
 
8257
    bsdi[45]*)
7050
8258
      export_dynamic_flag_spec=-rdynamic
7051
8259
      ;;
7052
8260
 
7072
8280
      ;;
7073
8281
 
7074
8282
    darwin* | rhapsody*)
7075
 
    if test "$GXX" = yes ; then
 
8283
      case $host_os in
 
8284
        rhapsody* | darwin1.[012])
 
8285
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8286
         ;;
 
8287
       *) # Darwin 1.3 on
 
8288
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8289
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8290
         else
 
8291
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8292
             10.[012])
 
8293
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8294
               ;;
 
8295
             10.*)
 
8296
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8297
               ;;
 
8298
           esac
 
8299
         fi
 
8300
         ;;
 
8301
      esac
7076
8302
      archive_cmds_need_lc=no
7077
 
      case "$host_os" in
7078
 
      rhapsody* | darwin1.[012])
7079
 
        allow_undefined_flag='-undefined suppress'
7080
 
        ;;
7081
 
      *) # Darwin 1.3 on
7082
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7083
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7084
 
      else
7085
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7086
 
          10.[012])
7087
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7088
 
            ;;
7089
 
          10.*)
7090
 
            allow_undefined_flag='-undefined dynamic_lookup'
7091
 
            ;;
7092
 
        esac
7093
 
      fi
7094
 
        ;;
7095
 
      esac
7096
 
        lt_int_apple_cc_single_mod=no
7097
 
        output_verbose_link_cmd='echo'
7098
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7099
 
          lt_int_apple_cc_single_mod=yes
7100
 
        fi
7101
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7102
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7103
 
        else
7104
 
        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'
7105
 
      fi
7106
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7107
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7108
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7109
 
          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}'
7110
 
        else
7111
 
          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}'
7112
 
        fi
7113
 
          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}'
7114
8303
      hardcode_direct=no
7115
8304
      hardcode_automatic=yes
7116
8305
      hardcode_shlibpath_var=unsupported
7117
 
      whole_archive_flag_spec='-all_load $convenience'
 
8306
      whole_archive_flag_spec=''
7118
8307
      link_all_deplibs=yes
 
8308
    if test "$GCC" = yes ; then
 
8309
        output_verbose_link_cmd='echo'
 
8310
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8311
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8312
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8313
      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}'
 
8314
      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}'
7119
8315
    else
7120
 
      ld_shlibs=no
 
8316
      case $cc_basename in
 
8317
        xlc*)
 
8318
         output_verbose_link_cmd='echo'
 
8319
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8320
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8321
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8322
         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}'
 
8323
          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}'
 
8324
          ;;
 
8325
       *)
 
8326
         ld_shlibs=no
 
8327
          ;;
 
8328
      esac
7121
8329
    fi
7122
8330
      ;;
7123
8331
 
7151
8359
      ;;
7152
8360
 
7153
8361
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7154
 
    freebsd* | kfreebsd*-gnu)
 
8362
    freebsd* | kfreebsd*-gnu | dragonfly*)
7155
8363
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7156
8364
      hardcode_libdir_flag_spec='-R$libdir'
7157
8365
      hardcode_direct=yes
7174
8382
      export_dynamic_flag_spec='${wl}-E'
7175
8383
      ;;
7176
8384
 
7177
 
    hpux10* | hpux11*)
7178
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7179
 
        case "$host_cpu" in
7180
 
        hppa*64*|ia64*)
 
8385
    hpux10*)
 
8386
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8387
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8388
      else
 
8389
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8390
      fi
 
8391
      if test "$with_gnu_ld" = no; then
 
8392
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8393
        hardcode_libdir_separator=:
 
8394
 
 
8395
        hardcode_direct=yes
 
8396
        export_dynamic_flag_spec='${wl}-E'
 
8397
 
 
8398
        # hardcode_minus_L: Not really in the search PATH,
 
8399
        # but as the default location of the library.
 
8400
        hardcode_minus_L=yes
 
8401
      fi
 
8402
      ;;
 
8403
 
 
8404
    hpux11*)
 
8405
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8406
        case $host_cpu in
 
8407
        hppa*64*)
7181
8408
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7182
8409
          ;;
 
8410
        ia64*)
 
8411
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8412
          ;;
7183
8413
        *)
7184
8414
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7185
8415
          ;;
7186
8416
        esac
7187
8417
      else
7188
 
        case "$host_cpu" in
7189
 
        hppa*64*|ia64*)
7190
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8418
        case $host_cpu in
 
8419
        hppa*64*)
 
8420
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8421
          ;;
 
8422
        ia64*)
 
8423
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7191
8424
          ;;
7192
8425
        *)
7193
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8426
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7194
8427
          ;;
7195
8428
        esac
7196
8429
      fi
7197
8430
      if test "$with_gnu_ld" = no; then
7198
 
        case "$host_cpu" in
7199
 
        hppa*64*)
7200
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8431
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8432
        hardcode_libdir_separator=:
 
8433
 
 
8434
        case $host_cpu in
 
8435
        hppa*64*|ia64*)
7201
8436
          hardcode_libdir_flag_spec_ld='+b $libdir'
7202
 
          hardcode_libdir_separator=:
7203
 
          hardcode_direct=no
7204
 
          hardcode_shlibpath_var=no
7205
 
          ;;
7206
 
        ia64*)
7207
 
          hardcode_libdir_flag_spec='-L$libdir'
7208
 
          hardcode_direct=no
7209
 
          hardcode_shlibpath_var=no
7210
 
 
7211
 
          # hardcode_minus_L: Not really in the search PATH,
7212
 
          # but as the default location of the library.
7213
 
          hardcode_minus_L=yes
 
8437
          hardcode_direct=no
 
8438
          hardcode_shlibpath_var=no
7214
8439
          ;;
7215
8440
        *)
7216
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7217
 
          hardcode_libdir_separator=:
7218
8441
          hardcode_direct=yes
7219
8442
          export_dynamic_flag_spec='${wl}-E'
7220
8443
 
7238
8461
      link_all_deplibs=yes
7239
8462
      ;;
7240
8463
 
7241
 
    netbsd* | knetbsd*-gnu)
 
8464
    netbsd*)
7242
8465
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7243
8466
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7244
8467
      else
7262
8485
      hardcode_shlibpath_var=no
7263
8486
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7264
8487
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8488
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7265
8489
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7266
8490
        export_dynamic_flag_spec='${wl}-E'
7267
8491
      else
7307
8531
        allow_undefined_flag=' -expect_unresolved \*'
7308
8532
        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'
7309
8533
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7310
 
        $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'
 
8534
        $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'
7311
8535
 
7312
8536
        # Both c and cxx compiler support -rpath directly
7313
8537
        hardcode_libdir_flag_spec='-rpath $libdir'
7315
8539
      hardcode_libdir_separator=:
7316
8540
      ;;
7317
8541
 
7318
 
    sco3.2v5*)
7319
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7320
 
      hardcode_shlibpath_var=no
7321
 
      export_dynamic_flag_spec='${wl}-Bexport'
7322
 
      runpath_var=LD_RUN_PATH
7323
 
      hardcode_runpath_var=yes
7324
 
      ;;
7325
 
 
7326
8542
    solaris*)
7327
8543
      no_undefined_flag=' -z text'
7328
8544
      if test "$GCC" = yes; then
 
8545
        wlarc='${wl}'
7329
8546
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7330
8547
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7331
8548
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7332
8549
      else
 
8550
        wlarc=''
7333
8551
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334
8552
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7335
8553
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7338
8556
      hardcode_shlibpath_var=no
7339
8557
      case $host_os in
7340
8558
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7341
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7342
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8559
      *)
 
8560
        # The compiler driver will combine linker options so we
 
8561
        # cannot just pass the convience library names through
 
8562
        # without $wl, iff we do not link with $LD.
 
8563
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8564
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8565
        case $wlarc in
 
8566
        '')
 
8567
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8568
        *)
 
8569
          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' ;;
 
8570
        esac ;;
7343
8571
      esac
7344
8572
      link_all_deplibs=yes
7345
8573
      ;;
7396
8624
      fi
7397
8625
      ;;
7398
8626
 
7399
 
    sysv4.2uw2*)
7400
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7401
 
      hardcode_direct=yes
7402
 
      hardcode_minus_L=no
7403
 
      hardcode_shlibpath_var=no
7404
 
      hardcode_runpath_var=yes
7405
 
      runpath_var=LD_RUN_PATH
7406
 
      ;;
7407
 
 
7408
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7409
 
      no_undefined_flag='${wl}-z ${wl}text'
7410
 
      if test "$GCC" = yes; then
7411
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7412
 
      else
7413
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414
 
      fi
7415
 
      runpath_var='LD_RUN_PATH'
7416
 
      hardcode_shlibpath_var=no
7417
 
      ;;
7418
 
 
7419
 
    sysv5*)
7420
 
      no_undefined_flag=' -z text'
7421
 
      # $CC -shared without GNU ld will not create a library from C++
7422
 
      # object files and a static libstdc++, better avoid it by now
7423
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7425
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7426
 
      hardcode_libdir_flag_spec=
7427
 
      hardcode_shlibpath_var=no
7428
 
      runpath_var='LD_RUN_PATH'
 
8627
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8628
      no_undefined_flag='${wl}-z,text'
 
8629
      archive_cmds_need_lc=no
 
8630
      hardcode_shlibpath_var=no
 
8631
      runpath_var='LD_RUN_PATH'
 
8632
 
 
8633
      if test "$GCC" = yes; then
 
8634
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8635
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8636
      else
 
8637
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8638
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8639
      fi
 
8640
      ;;
 
8641
 
 
8642
    sysv5* | sco3.2v5* | sco5v6*)
 
8643
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8644
      # link with -lc, and that would cause any symbols used from libc to
 
8645
      # always be unresolved, which means just about no library would
 
8646
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8647
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8648
      # as -z defs.
 
8649
      no_undefined_flag='${wl}-z,text'
 
8650
      allow_undefined_flag='${wl}-z,nodefs'
 
8651
      archive_cmds_need_lc=no
 
8652
      hardcode_shlibpath_var=no
 
8653
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8654
      hardcode_libdir_separator=':'
 
8655
      link_all_deplibs=yes
 
8656
      export_dynamic_flag_spec='${wl}-Bexport'
 
8657
      runpath_var='LD_RUN_PATH'
 
8658
 
 
8659
      if test "$GCC" = yes; then
 
8660
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8661
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8662
      else
 
8663
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8664
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8665
      fi
7429
8666
      ;;
7430
8667
 
7431
8668
    uts4*)
7440
8677
    esac
7441
8678
  fi
7442
8679
 
7443
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7444
 
echo "${ECHO_T}$ld_shlibs" >&6
 
8680
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8681
echo "${ECHO_T}$ld_shlibs" >&6; }
7445
8682
test "$ld_shlibs" = no && can_build_shared=no
7446
8683
 
7447
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7448
 
if test "$GCC" = yes; then
7449
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7450
 
fi
7451
 
 
7452
8684
#
7453
8685
# Do we need to explicitly link libc?
7454
8686
#
7466
8698
      # Test whether the compiler implicitly links with -lc since on some
7467
8699
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7468
8700
      # to ld, don't add -lc before -lgcc.
7469
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7470
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8701
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8702
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7471
8703
      $rm conftest*
7472
8704
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7473
8705
 
7481
8713
        libobjs=conftest.$ac_objext
7482
8714
        deplibs=
7483
8715
        wl=$lt_prog_compiler_wl
 
8716
        pic_flag=$lt_prog_compiler_pic
7484
8717
        compiler_flags=-v
7485
8718
        linker_flags=-v
7486
8719
        verstring=
7503
8736
        cat conftest.err 1>&5
7504
8737
      fi
7505
8738
      $rm conftest*
7506
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7507
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8739
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8740
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7508
8741
      ;;
7509
8742
    esac
7510
8743
  fi
7511
8744
  ;;
7512
8745
esac
7513
8746
 
7514
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7515
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8747
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8748
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7516
8749
library_names_spec=
7517
8750
libname_spec='lib$name'
7518
8751
soname_spec=
7613
8846
  shlibpath_var=LIBRARY_PATH
7614
8847
  ;;
7615
8848
 
7616
 
bsdi4*)
 
8849
bsdi[45]*)
7617
8850
  version_type=linux
7618
8851
  need_version=no
7619
8852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641
8874
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7642
8875
      dldir=$destdir/`dirname \$dlpath`~
7643
8876
      test -d \$dldir || mkdir -p \$dldir~
7644
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8877
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8878
      chmod a+x \$dldir/$dlname'
7645
8879
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7646
8880
      dlpath=$dir/\$dldll~
7647
8881
       $rm \$dlpath'
7671
8905
      ;;
7672
8906
    pw32*)
7673
8907
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7674
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8908
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7675
8909
      ;;
7676
8910
    esac
7677
8911
    ;;
7694
8928
  soname_spec='${libname}${release}${major}$shared_ext'
7695
8929
  shlibpath_overrides_runpath=yes
7696
8930
  shlibpath_var=DYLD_LIBRARY_PATH
7697
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8931
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7698
8932
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7699
8933
  if test "$GCC" = yes; then
7700
8934
    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"`
7729
8963
  dynamic_linker='GNU ld.so'
7730
8964
  ;;
7731
8965
 
7732
 
freebsd*)
7733
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8966
freebsd* | dragonfly*)
 
8967
  # DragonFly does not have aout.  When/if they implement a new
 
8968
  # versioning mechanism, adjust this.
 
8969
  if test -x /usr/bin/objformat; then
 
8970
    objformat=`/usr/bin/objformat`
 
8971
  else
 
8972
    case $host_os in
 
8973
    freebsd[123]*) objformat=aout ;;
 
8974
    *) objformat=elf ;;
 
8975
    esac
 
8976
  fi
7734
8977
  version_type=freebsd-$objformat
7735
8978
  case $version_type in
7736
8979
    freebsd-elf*)
7748
8991
  freebsd2*)
7749
8992
    shlibpath_overrides_runpath=yes
7750
8993
    ;;
7751
 
  freebsd3.01* | freebsdelf3.01*)
 
8994
  freebsd3.[01]* | freebsdelf3.[01]*)
7752
8995
    shlibpath_overrides_runpath=yes
7753
8996
    hardcode_into_libs=yes
7754
8997
    ;;
7755
 
  *) # from 3.2 on
 
8998
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8999
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7756
9000
    shlibpath_overrides_runpath=no
7757
9001
    hardcode_into_libs=yes
7758
9002
    ;;
 
9003
  freebsd*) # from 4.6 on
 
9004
    shlibpath_overrides_runpath=yes
 
9005
    hardcode_into_libs=yes
 
9006
    ;;
7759
9007
  esac
7760
9008
  ;;
7761
9009
 
7775
9023
  version_type=sunos
7776
9024
  need_lib_prefix=no
7777
9025
  need_version=no
7778
 
  case "$host_cpu" in
 
9026
  case $host_cpu in
7779
9027
  ia64*)
7780
9028
    shrext_cmds='.so'
7781
9029
    hardcode_into_libs=yes
7815
9063
  postinstall_cmds='chmod 555 $lib'
7816
9064
  ;;
7817
9065
 
 
9066
interix3*)
 
9067
  version_type=linux
 
9068
  need_lib_prefix=no
 
9069
  need_version=no
 
9070
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9071
  soname_spec='${libname}${release}${shared_ext}$major'
 
9072
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9073
  shlibpath_var=LD_LIBRARY_PATH
 
9074
  shlibpath_overrides_runpath=no
 
9075
  hardcode_into_libs=yes
 
9076
  ;;
 
9077
 
7818
9078
irix5* | irix6* | nonstopux*)
7819
9079
  case $host_os in
7820
9080
    nonstopux*) version_type=nonstopux ;;
7872
9132
  # before this can be enabled.
7873
9133
  hardcode_into_libs=yes
7874
9134
 
 
9135
  # find out which ABI we are using
 
9136
  libsuff=
 
9137
  case "$host_cpu" in
 
9138
  x86_64*|s390x*|powerpc64*)
 
9139
    echo '#line 9139 "configure"' > conftest.$ac_ext
 
9140
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9141
  (eval $ac_compile) 2>&5
 
9142
  ac_status=$?
 
9143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9144
  (exit $ac_status); }; then
 
9145
      case `/usr/bin/file conftest.$ac_objext` in
 
9146
      *64-bit*)
 
9147
        libsuff=64
 
9148
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9149
        ;;
 
9150
      esac
 
9151
    fi
 
9152
    rm -rf conftest*
 
9153
    ;;
 
9154
  esac
 
9155
 
7875
9156
  # Append ld.so.conf contents to the search path
7876
9157
  if test -f /etc/ld.so.conf; then
7877
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7878
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9158
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9159
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7879
9160
  fi
7880
9161
 
7881
9162
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7936
9217
 
7937
9218
openbsd*)
7938
9219
  version_type=sunos
 
9220
  sys_lib_dlsearch_path_spec="/usr/lib"
7939
9221
  need_lib_prefix=no
7940
 
  need_version=yes
 
9222
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9223
  case $host_os in
 
9224
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9225
    *)                         need_version=no  ;;
 
9226
  esac
7941
9227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7942
9228
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7943
9229
  shlibpath_var=LD_LIBRARY_PATH
7975
9261
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7976
9262
  ;;
7977
9263
 
7978
 
sco3.2v5*)
7979
 
  version_type=osf
7980
 
  soname_spec='${libname}${release}${shared_ext}$major'
7981
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982
 
  shlibpath_var=LD_LIBRARY_PATH
7983
 
  ;;
7984
 
 
7985
9264
solaris*)
7986
9265
  version_type=linux
7987
9266
  need_lib_prefix=no
8007
9286
  need_version=yes
8008
9287
  ;;
8009
9288
 
8010
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9289
sysv4 | sysv4.3*)
8011
9290
  version_type=linux
8012
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013
9292
  soname_spec='${libname}${release}${shared_ext}$major'
8040
9319
  fi
8041
9320
  ;;
8042
9321
 
 
9322
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9323
  version_type=freebsd-elf
 
9324
  need_lib_prefix=no
 
9325
  need_version=no
 
9326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9327
  soname_spec='${libname}${release}${shared_ext}$major'
 
9328
  shlibpath_var=LD_LIBRARY_PATH
 
9329
  hardcode_into_libs=yes
 
9330
  if test "$with_gnu_ld" = yes; then
 
9331
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9332
    shlibpath_overrides_runpath=no
 
9333
  else
 
9334
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9335
    shlibpath_overrides_runpath=yes
 
9336
    case $host_os in
 
9337
      sco3.2v5*)
 
9338
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9339
        ;;
 
9340
    esac
 
9341
  fi
 
9342
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9343
  ;;
 
9344
 
8043
9345
uts4*)
8044
9346
  version_type=linux
8045
9347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051
9353
  dynamic_linker=no
8052
9354
  ;;
8053
9355
esac
8054
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8055
 
echo "${ECHO_T}$dynamic_linker" >&6
 
9356
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9357
echo "${ECHO_T}$dynamic_linker" >&6; }
8056
9358
test "$dynamic_linker" = no && can_build_shared=no
8057
9359
 
8058
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8059
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9360
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9361
if test "$GCC" = yes; then
 
9362
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9363
fi
 
9364
 
 
9365
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9366
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8060
9367
hardcode_action=
8061
9368
if test -n "$hardcode_libdir_flag_spec" || \
8062
 
   test -n "$runpath_var " || \
8063
 
   test "X$hardcode_automatic"="Xyes" ; then
 
9369
   test -n "$runpath_var" || \
 
9370
   test "X$hardcode_automatic" = "Xyes" ; then
8064
9371
 
8065
9372
  # We can hardcode non-existant directories.
8066
9373
  if test "$hardcode_direct" != no &&
8080
9387
  # directories.
8081
9388
  hardcode_action=unsupported
8082
9389
fi
8083
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8084
 
echo "${ECHO_T}$hardcode_action" >&6
 
9390
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9391
echo "${ECHO_T}$hardcode_action" >&6; }
8085
9392
 
8086
9393
if test "$hardcode_action" = relink; then
8087
9394
  # Fast installation is not supported
8094
9401
 
8095
9402
striplib=
8096
9403
old_striplib=
8097
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8098
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9404
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9405
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8099
9406
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8100
9407
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8101
9408
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8102
 
  echo "$as_me:$LINENO: result: yes" >&5
8103
 
echo "${ECHO_T}yes" >&6
 
9409
  { echo "$as_me:$LINENO: result: yes" >&5
 
9410
echo "${ECHO_T}yes" >&6; }
8104
9411
else
8105
9412
# FIXME - insert some real tests, host_os isn't really good enough
8106
9413
  case $host_os in
8107
9414
   darwin*)
8108
9415
       if test -n "$STRIP" ; then
8109
9416
         striplib="$STRIP -x"
8110
 
         echo "$as_me:$LINENO: result: yes" >&5
8111
 
echo "${ECHO_T}yes" >&6
 
9417
         { echo "$as_me:$LINENO: result: yes" >&5
 
9418
echo "${ECHO_T}yes" >&6; }
8112
9419
       else
8113
 
  echo "$as_me:$LINENO: result: no" >&5
8114
 
echo "${ECHO_T}no" >&6
 
9420
  { echo "$as_me:$LINENO: result: no" >&5
 
9421
echo "${ECHO_T}no" >&6; }
8115
9422
fi
8116
9423
       ;;
8117
9424
   *)
8118
 
  echo "$as_me:$LINENO: result: no" >&5
8119
 
echo "${ECHO_T}no" >&6
 
9425
  { echo "$as_me:$LINENO: result: no" >&5
 
9426
echo "${ECHO_T}no" >&6; }
8120
9427
    ;;
8121
9428
  esac
8122
9429
fi
8148
9455
 
8149
9456
  darwin*)
8150
9457
  # if libdl is installed we need to link against it
8151
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8152
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9458
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9459
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8153
9460
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8154
9461
  echo $ECHO_N "(cached) $ECHO_C" >&6
8155
9462
else
8162
9469
cat >>conftest.$ac_ext <<_ACEOF
8163
9470
/* end confdefs.h.  */
8164
9471
 
8165
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9472
/* Override any GCC internal prototype to avoid an error.
 
9473
   Use char because int might match the return type of a GCC
 
9474
   builtin and then its argument prototype would still apply.  */
8166
9475
#ifdef __cplusplus
8167
9476
extern "C"
8168
9477
#endif
8169
 
/* We use char because int might match the return type of a gcc2
8170
 
   builtin and then its argument prototype would still apply.  */
8171
9478
char dlopen ();
8172
9479
int
8173
9480
main ()
8174
9481
{
8175
 
dlopen ();
 
9482
return dlopen ();
8176
9483
  ;
8177
9484
  return 0;
8178
9485
}
8179
9486
_ACEOF
8180
9487
rm -f conftest.$ac_objext conftest$ac_exeext
8181
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8182
 
  (eval $ac_link) 2>conftest.er1
 
9488
if { (ac_try="$ac_link"
 
9489
case "(($ac_try" in
 
9490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9491
  *) ac_try_echo=$ac_try;;
 
9492
esac
 
9493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9494
  (eval "$ac_link") 2>conftest.er1
8183
9495
  ac_status=$?
8184
9496
  grep -v '^ *+' conftest.er1 >conftest.err
8185
9497
  rm -f conftest.er1
8186
9498
  cat conftest.err >&5
8187
9499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188
 
  (exit $ac_status); } &&
8189
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8190
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191
 
  (eval $ac_try) 2>&5
8192
 
  ac_status=$?
8193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194
 
  (exit $ac_status); }; } &&
8195
 
         { ac_try='test -s conftest$ac_exeext'
8196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197
 
  (eval $ac_try) 2>&5
8198
 
  ac_status=$?
8199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200
 
  (exit $ac_status); }; }; then
 
9500
  (exit $ac_status); } && {
 
9501
         test -z "$ac_c_werror_flag" ||
 
9502
         test ! -s conftest.err
 
9503
       } && test -s conftest$ac_exeext &&
 
9504
       $as_test_x conftest$ac_exeext; then
8201
9505
  ac_cv_lib_dl_dlopen=yes
8202
9506
else
8203
9507
  echo "$as_me: failed program was:" >&5
8204
9508
sed 's/^/| /' conftest.$ac_ext >&5
8205
9509
 
8206
 
ac_cv_lib_dl_dlopen=no
 
9510
        ac_cv_lib_dl_dlopen=no
8207
9511
fi
8208
 
rm -f conftest.err conftest.$ac_objext \
 
9512
 
 
9513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8209
9514
      conftest$ac_exeext conftest.$ac_ext
8210
9515
LIBS=$ac_check_lib_save_LIBS
8211
9516
fi
8212
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8213
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9517
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9518
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8214
9519
if test $ac_cv_lib_dl_dlopen = yes; then
8215
9520
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8216
9521
else
8224
9529
   ;;
8225
9530
 
8226
9531
  *)
8227
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8228
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9532
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9533
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8229
9534
if test "${ac_cv_func_shl_load+set}" = set; then
8230
9535
  echo $ECHO_N "(cached) $ECHO_C" >&6
8231
9536
else
8252
9557
 
8253
9558
#undef shl_load
8254
9559
 
8255
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9560
/* Override any GCC internal prototype to avoid an error.
 
9561
   Use char because int might match the return type of a GCC
 
9562
   builtin and then its argument prototype would still apply.  */
8256
9563
#ifdef __cplusplus
8257
9564
extern "C"
8258
 
{
8259
9565
#endif
8260
 
/* We use char because int might match the return type of a gcc2
8261
 
   builtin and then its argument prototype would still apply.  */
8262
9566
char shl_load ();
8263
9567
/* The GNU C library defines this for functions which it implements
8264
9568
    to always fail with ENOSYS.  Some functions are actually named
8265
9569
    something starting with __ and the normal name is an alias.  */
8266
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9570
#if defined __stub_shl_load || defined __stub___shl_load
8267
9571
choke me
8268
 
#else
8269
 
char (*f) () = shl_load;
8270
 
#endif
8271
 
#ifdef __cplusplus
8272
 
}
8273
9572
#endif
8274
9573
 
8275
9574
int
8276
9575
main ()
8277
9576
{
8278
 
return f != shl_load;
 
9577
return shl_load ();
8279
9578
  ;
8280
9579
  return 0;
8281
9580
}
8282
9581
_ACEOF
8283
9582
rm -f conftest.$ac_objext conftest$ac_exeext
8284
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285
 
  (eval $ac_link) 2>conftest.er1
 
9583
if { (ac_try="$ac_link"
 
9584
case "(($ac_try" in
 
9585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9586
  *) ac_try_echo=$ac_try;;
 
9587
esac
 
9588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9589
  (eval "$ac_link") 2>conftest.er1
8286
9590
  ac_status=$?
8287
9591
  grep -v '^ *+' conftest.er1 >conftest.err
8288
9592
  rm -f conftest.er1
8289
9593
  cat conftest.err >&5
8290
9594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
 
  (exit $ac_status); } &&
8292
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294
 
  (eval $ac_try) 2>&5
8295
 
  ac_status=$?
8296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297
 
  (exit $ac_status); }; } &&
8298
 
         { ac_try='test -s conftest$ac_exeext'
8299
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300
 
  (eval $ac_try) 2>&5
8301
 
  ac_status=$?
8302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303
 
  (exit $ac_status); }; }; then
 
9595
  (exit $ac_status); } && {
 
9596
         test -z "$ac_c_werror_flag" ||
 
9597
         test ! -s conftest.err
 
9598
       } && test -s conftest$ac_exeext &&
 
9599
       $as_test_x conftest$ac_exeext; then
8304
9600
  ac_cv_func_shl_load=yes
8305
9601
else
8306
9602
  echo "$as_me: failed program was:" >&5
8307
9603
sed 's/^/| /' conftest.$ac_ext >&5
8308
9604
 
8309
 
ac_cv_func_shl_load=no
 
9605
        ac_cv_func_shl_load=no
8310
9606
fi
8311
 
rm -f conftest.err conftest.$ac_objext \
 
9607
 
 
9608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8312
9609
      conftest$ac_exeext conftest.$ac_ext
8313
9610
fi
8314
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8315
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9611
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9612
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8316
9613
if test $ac_cv_func_shl_load = yes; then
8317
9614
  lt_cv_dlopen="shl_load"
8318
9615
else
8319
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8320
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9616
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9617
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8321
9618
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8322
9619
  echo $ECHO_N "(cached) $ECHO_C" >&6
8323
9620
else
8330
9627
cat >>conftest.$ac_ext <<_ACEOF
8331
9628
/* end confdefs.h.  */
8332
9629
 
8333
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9630
/* Override any GCC internal prototype to avoid an error.
 
9631
   Use char because int might match the return type of a GCC
 
9632
   builtin and then its argument prototype would still apply.  */
8334
9633
#ifdef __cplusplus
8335
9634
extern "C"
8336
9635
#endif
8337
 
/* We use char because int might match the return type of a gcc2
8338
 
   builtin and then its argument prototype would still apply.  */
8339
9636
char shl_load ();
8340
9637
int
8341
9638
main ()
8342
9639
{
8343
 
shl_load ();
 
9640
return shl_load ();
8344
9641
  ;
8345
9642
  return 0;
8346
9643
}
8347
9644
_ACEOF
8348
9645
rm -f conftest.$ac_objext conftest$ac_exeext
8349
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350
 
  (eval $ac_link) 2>conftest.er1
 
9646
if { (ac_try="$ac_link"
 
9647
case "(($ac_try" in
 
9648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9649
  *) ac_try_echo=$ac_try;;
 
9650
esac
 
9651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9652
  (eval "$ac_link") 2>conftest.er1
8351
9653
  ac_status=$?
8352
9654
  grep -v '^ *+' conftest.er1 >conftest.err
8353
9655
  rm -f conftest.er1
8354
9656
  cat conftest.err >&5
8355
9657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356
 
  (exit $ac_status); } &&
8357
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8358
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359
 
  (eval $ac_try) 2>&5
8360
 
  ac_status=$?
8361
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
 
  (exit $ac_status); }; } &&
8363
 
         { ac_try='test -s conftest$ac_exeext'
8364
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365
 
  (eval $ac_try) 2>&5
8366
 
  ac_status=$?
8367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
 
  (exit $ac_status); }; }; then
 
9658
  (exit $ac_status); } && {
 
9659
         test -z "$ac_c_werror_flag" ||
 
9660
         test ! -s conftest.err
 
9661
       } && test -s conftest$ac_exeext &&
 
9662
       $as_test_x conftest$ac_exeext; then
8369
9663
  ac_cv_lib_dld_shl_load=yes
8370
9664
else
8371
9665
  echo "$as_me: failed program was:" >&5
8372
9666
sed 's/^/| /' conftest.$ac_ext >&5
8373
9667
 
8374
 
ac_cv_lib_dld_shl_load=no
 
9668
        ac_cv_lib_dld_shl_load=no
8375
9669
fi
8376
 
rm -f conftest.err conftest.$ac_objext \
 
9670
 
 
9671
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8377
9672
      conftest$ac_exeext conftest.$ac_ext
8378
9673
LIBS=$ac_check_lib_save_LIBS
8379
9674
fi
8380
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8381
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9675
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9676
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8382
9677
if test $ac_cv_lib_dld_shl_load = yes; then
8383
9678
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8384
9679
else
8385
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8386
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9680
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9681
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8387
9682
if test "${ac_cv_func_dlopen+set}" = set; then
8388
9683
  echo $ECHO_N "(cached) $ECHO_C" >&6
8389
9684
else
8410
9705
 
8411
9706
#undef dlopen
8412
9707
 
8413
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9708
/* Override any GCC internal prototype to avoid an error.
 
9709
   Use char because int might match the return type of a GCC
 
9710
   builtin and then its argument prototype would still apply.  */
8414
9711
#ifdef __cplusplus
8415
9712
extern "C"
8416
 
{
8417
9713
#endif
8418
 
/* We use char because int might match the return type of a gcc2
8419
 
   builtin and then its argument prototype would still apply.  */
8420
9714
char dlopen ();
8421
9715
/* The GNU C library defines this for functions which it implements
8422
9716
    to always fail with ENOSYS.  Some functions are actually named
8423
9717
    something starting with __ and the normal name is an alias.  */
8424
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9718
#if defined __stub_dlopen || defined __stub___dlopen
8425
9719
choke me
8426
 
#else
8427
 
char (*f) () = dlopen;
8428
 
#endif
8429
 
#ifdef __cplusplus
8430
 
}
8431
9720
#endif
8432
9721
 
8433
9722
int
8434
9723
main ()
8435
9724
{
8436
 
return f != dlopen;
 
9725
return dlopen ();
8437
9726
  ;
8438
9727
  return 0;
8439
9728
}
8440
9729
_ACEOF
8441
9730
rm -f conftest.$ac_objext conftest$ac_exeext
8442
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443
 
  (eval $ac_link) 2>conftest.er1
 
9731
if { (ac_try="$ac_link"
 
9732
case "(($ac_try" in
 
9733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9734
  *) ac_try_echo=$ac_try;;
 
9735
esac
 
9736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9737
  (eval "$ac_link") 2>conftest.er1
8444
9738
  ac_status=$?
8445
9739
  grep -v '^ *+' conftest.er1 >conftest.err
8446
9740
  rm -f conftest.er1
8447
9741
  cat conftest.err >&5
8448
9742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449
 
  (exit $ac_status); } &&
8450
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8451
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452
 
  (eval $ac_try) 2>&5
8453
 
  ac_status=$?
8454
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455
 
  (exit $ac_status); }; } &&
8456
 
         { ac_try='test -s conftest$ac_exeext'
8457
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458
 
  (eval $ac_try) 2>&5
8459
 
  ac_status=$?
8460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461
 
  (exit $ac_status); }; }; then
 
9743
  (exit $ac_status); } && {
 
9744
         test -z "$ac_c_werror_flag" ||
 
9745
         test ! -s conftest.err
 
9746
       } && test -s conftest$ac_exeext &&
 
9747
       $as_test_x conftest$ac_exeext; then
8462
9748
  ac_cv_func_dlopen=yes
8463
9749
else
8464
9750
  echo "$as_me: failed program was:" >&5
8465
9751
sed 's/^/| /' conftest.$ac_ext >&5
8466
9752
 
8467
 
ac_cv_func_dlopen=no
 
9753
        ac_cv_func_dlopen=no
8468
9754
fi
8469
 
rm -f conftest.err conftest.$ac_objext \
 
9755
 
 
9756
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470
9757
      conftest$ac_exeext conftest.$ac_ext
8471
9758
fi
8472
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8473
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9759
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9760
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8474
9761
if test $ac_cv_func_dlopen = yes; then
8475
9762
  lt_cv_dlopen="dlopen"
8476
9763
else
8477
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8478
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9764
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9765
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8479
9766
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8480
9767
  echo $ECHO_N "(cached) $ECHO_C" >&6
8481
9768
else
8488
9775
cat >>conftest.$ac_ext <<_ACEOF
8489
9776
/* end confdefs.h.  */
8490
9777
 
8491
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9778
/* Override any GCC internal prototype to avoid an error.
 
9779
   Use char because int might match the return type of a GCC
 
9780
   builtin and then its argument prototype would still apply.  */
8492
9781
#ifdef __cplusplus
8493
9782
extern "C"
8494
9783
#endif
8495
 
/* We use char because int might match the return type of a gcc2
8496
 
   builtin and then its argument prototype would still apply.  */
8497
9784
char dlopen ();
8498
9785
int
8499
9786
main ()
8500
9787
{
8501
 
dlopen ();
 
9788
return dlopen ();
8502
9789
  ;
8503
9790
  return 0;
8504
9791
}
8505
9792
_ACEOF
8506
9793
rm -f conftest.$ac_objext conftest$ac_exeext
8507
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508
 
  (eval $ac_link) 2>conftest.er1
 
9794
if { (ac_try="$ac_link"
 
9795
case "(($ac_try" in
 
9796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9797
  *) ac_try_echo=$ac_try;;
 
9798
esac
 
9799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9800
  (eval "$ac_link") 2>conftest.er1
8509
9801
  ac_status=$?
8510
9802
  grep -v '^ *+' conftest.er1 >conftest.err
8511
9803
  rm -f conftest.er1
8512
9804
  cat conftest.err >&5
8513
9805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
 
  (exit $ac_status); } &&
8515
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8516
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517
 
  (eval $ac_try) 2>&5
8518
 
  ac_status=$?
8519
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520
 
  (exit $ac_status); }; } &&
8521
 
         { ac_try='test -s conftest$ac_exeext'
8522
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523
 
  (eval $ac_try) 2>&5
8524
 
  ac_status=$?
8525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526
 
  (exit $ac_status); }; }; then
 
9806
  (exit $ac_status); } && {
 
9807
         test -z "$ac_c_werror_flag" ||
 
9808
         test ! -s conftest.err
 
9809
       } && test -s conftest$ac_exeext &&
 
9810
       $as_test_x conftest$ac_exeext; then
8527
9811
  ac_cv_lib_dl_dlopen=yes
8528
9812
else
8529
9813
  echo "$as_me: failed program was:" >&5
8530
9814
sed 's/^/| /' conftest.$ac_ext >&5
8531
9815
 
8532
 
ac_cv_lib_dl_dlopen=no
 
9816
        ac_cv_lib_dl_dlopen=no
8533
9817
fi
8534
 
rm -f conftest.err conftest.$ac_objext \
 
9818
 
 
9819
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8535
9820
      conftest$ac_exeext conftest.$ac_ext
8536
9821
LIBS=$ac_check_lib_save_LIBS
8537
9822
fi
8538
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8539
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9823
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9824
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8540
9825
if test $ac_cv_lib_dl_dlopen = yes; then
8541
9826
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8542
9827
else
8543
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8544
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9828
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9829
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8545
9830
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8546
9831
  echo $ECHO_N "(cached) $ECHO_C" >&6
8547
9832
else
8554
9839
cat >>conftest.$ac_ext <<_ACEOF
8555
9840
/* end confdefs.h.  */
8556
9841
 
8557
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9842
/* Override any GCC internal prototype to avoid an error.
 
9843
   Use char because int might match the return type of a GCC
 
9844
   builtin and then its argument prototype would still apply.  */
8558
9845
#ifdef __cplusplus
8559
9846
extern "C"
8560
9847
#endif
8561
 
/* We use char because int might match the return type of a gcc2
8562
 
   builtin and then its argument prototype would still apply.  */
8563
9848
char dlopen ();
8564
9849
int
8565
9850
main ()
8566
9851
{
8567
 
dlopen ();
 
9852
return dlopen ();
8568
9853
  ;
8569
9854
  return 0;
8570
9855
}
8571
9856
_ACEOF
8572
9857
rm -f conftest.$ac_objext conftest$ac_exeext
8573
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574
 
  (eval $ac_link) 2>conftest.er1
 
9858
if { (ac_try="$ac_link"
 
9859
case "(($ac_try" in
 
9860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9861
  *) ac_try_echo=$ac_try;;
 
9862
esac
 
9863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9864
  (eval "$ac_link") 2>conftest.er1
8575
9865
  ac_status=$?
8576
9866
  grep -v '^ *+' conftest.er1 >conftest.err
8577
9867
  rm -f conftest.er1
8578
9868
  cat conftest.err >&5
8579
9869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580
 
  (exit $ac_status); } &&
8581
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8582
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583
 
  (eval $ac_try) 2>&5
8584
 
  ac_status=$?
8585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586
 
  (exit $ac_status); }; } &&
8587
 
         { ac_try='test -s conftest$ac_exeext'
8588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589
 
  (eval $ac_try) 2>&5
8590
 
  ac_status=$?
8591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592
 
  (exit $ac_status); }; }; then
 
9870
  (exit $ac_status); } && {
 
9871
         test -z "$ac_c_werror_flag" ||
 
9872
         test ! -s conftest.err
 
9873
       } && test -s conftest$ac_exeext &&
 
9874
       $as_test_x conftest$ac_exeext; then
8593
9875
  ac_cv_lib_svld_dlopen=yes
8594
9876
else
8595
9877
  echo "$as_me: failed program was:" >&5
8596
9878
sed 's/^/| /' conftest.$ac_ext >&5
8597
9879
 
8598
 
ac_cv_lib_svld_dlopen=no
 
9880
        ac_cv_lib_svld_dlopen=no
8599
9881
fi
8600
 
rm -f conftest.err conftest.$ac_objext \
 
9882
 
 
9883
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8601
9884
      conftest$ac_exeext conftest.$ac_ext
8602
9885
LIBS=$ac_check_lib_save_LIBS
8603
9886
fi
8604
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8605
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9887
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9888
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8606
9889
if test $ac_cv_lib_svld_dlopen = yes; then
8607
9890
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8608
9891
else
8609
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8610
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9892
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9893
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8611
9894
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8612
9895
  echo $ECHO_N "(cached) $ECHO_C" >&6
8613
9896
else
8620
9903
cat >>conftest.$ac_ext <<_ACEOF
8621
9904
/* end confdefs.h.  */
8622
9905
 
8623
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9906
/* Override any GCC internal prototype to avoid an error.
 
9907
   Use char because int might match the return type of a GCC
 
9908
   builtin and then its argument prototype would still apply.  */
8624
9909
#ifdef __cplusplus
8625
9910
extern "C"
8626
9911
#endif
8627
 
/* We use char because int might match the return type of a gcc2
8628
 
   builtin and then its argument prototype would still apply.  */
8629
9912
char dld_link ();
8630
9913
int
8631
9914
main ()
8632
9915
{
8633
 
dld_link ();
 
9916
return dld_link ();
8634
9917
  ;
8635
9918
  return 0;
8636
9919
}
8637
9920
_ACEOF
8638
9921
rm -f conftest.$ac_objext conftest$ac_exeext
8639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640
 
  (eval $ac_link) 2>conftest.er1
 
9922
if { (ac_try="$ac_link"
 
9923
case "(($ac_try" in
 
9924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9925
  *) ac_try_echo=$ac_try;;
 
9926
esac
 
9927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9928
  (eval "$ac_link") 2>conftest.er1
8641
9929
  ac_status=$?
8642
9930
  grep -v '^ *+' conftest.er1 >conftest.err
8643
9931
  rm -f conftest.er1
8644
9932
  cat conftest.err >&5
8645
9933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646
 
  (exit $ac_status); } &&
8647
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649
 
  (eval $ac_try) 2>&5
8650
 
  ac_status=$?
8651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
 
  (exit $ac_status); }; } &&
8653
 
         { ac_try='test -s conftest$ac_exeext'
8654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655
 
  (eval $ac_try) 2>&5
8656
 
  ac_status=$?
8657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658
 
  (exit $ac_status); }; }; then
 
9934
  (exit $ac_status); } && {
 
9935
         test -z "$ac_c_werror_flag" ||
 
9936
         test ! -s conftest.err
 
9937
       } && test -s conftest$ac_exeext &&
 
9938
       $as_test_x conftest$ac_exeext; then
8659
9939
  ac_cv_lib_dld_dld_link=yes
8660
9940
else
8661
9941
  echo "$as_me: failed program was:" >&5
8662
9942
sed 's/^/| /' conftest.$ac_ext >&5
8663
9943
 
8664
 
ac_cv_lib_dld_dld_link=no
 
9944
        ac_cv_lib_dld_dld_link=no
8665
9945
fi
8666
 
rm -f conftest.err conftest.$ac_objext \
 
9946
 
 
9947
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667
9948
      conftest$ac_exeext conftest.$ac_ext
8668
9949
LIBS=$ac_check_lib_save_LIBS
8669
9950
fi
8670
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8671
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9951
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9952
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8672
9953
if test $ac_cv_lib_dld_dld_link = yes; then
8673
9954
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8674
9955
fi
8703
9984
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8704
9985
 
8705
9986
    save_LDFLAGS="$LDFLAGS"
8706
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9987
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8707
9988
 
8708
9989
    save_LIBS="$LIBS"
8709
9990
    LIBS="$lt_cv_dlopen_libs $LIBS"
8710
9991
 
8711
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8712
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9992
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9993
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8713
9994
if test "${lt_cv_dlopen_self+set}" = set; then
8714
9995
  echo $ECHO_N "(cached) $ECHO_C" >&6
8715
9996
else
8719
10000
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8720
10001
  lt_status=$lt_dlunknown
8721
10002
  cat > conftest.$ac_ext <<EOF
8722
 
#line 8722 "configure"
 
10003
#line 10003 "configure"
8723
10004
#include "confdefs.h"
8724
10005
 
8725
10006
#if HAVE_DLFCN_H
8776
10057
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8777
10058
      /* dlclose (self); */
8778
10059
    }
 
10060
  else
 
10061
    puts (dlerror ());
8779
10062
 
8780
10063
    exit (status);
8781
10064
}
8785
10068
  ac_status=$?
8786
10069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787
10070
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8788
 
    (./conftest; exit; ) 2>/dev/null
 
10071
    (./conftest; exit; ) >&5 2>/dev/null
8789
10072
    lt_status=$?
8790
10073
    case x$lt_status in
8791
10074
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8792
10075
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8793
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10076
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8794
10077
    esac
8795
10078
  else :
8796
10079
    # compilation failed
8801
10084
 
8802
10085
 
8803
10086
fi
8804
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8805
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10087
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10088
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8806
10089
 
8807
10090
    if test "x$lt_cv_dlopen_self" = xyes; then
8808
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8809
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8810
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10091
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10092
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10093
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8811
10094
if test "${lt_cv_dlopen_self_static+set}" = set; then
8812
10095
  echo $ECHO_N "(cached) $ECHO_C" >&6
8813
10096
else
8817
10100
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8818
10101
  lt_status=$lt_dlunknown
8819
10102
  cat > conftest.$ac_ext <<EOF
8820
 
#line 8820 "configure"
 
10103
#line 10103 "configure"
8821
10104
#include "confdefs.h"
8822
10105
 
8823
10106
#if HAVE_DLFCN_H
8874
10157
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8875
10158
      /* dlclose (self); */
8876
10159
    }
 
10160
  else
 
10161
    puts (dlerror ());
8877
10162
 
8878
10163
    exit (status);
8879
10164
}
8883
10168
  ac_status=$?
8884
10169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885
10170
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8886
 
    (./conftest; exit; ) 2>/dev/null
 
10171
    (./conftest; exit; ) >&5 2>/dev/null
8887
10172
    lt_status=$?
8888
10173
    case x$lt_status in
8889
10174
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8890
10175
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8891
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10176
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8892
10177
    esac
8893
10178
  else :
8894
10179
    # compilation failed
8899
10184
 
8900
10185
 
8901
10186
fi
8902
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8903
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10187
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10188
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8904
10189
    fi
8905
10190
 
8906
10191
    CPPFLAGS="$save_CPPFLAGS"
8921
10206
fi
8922
10207
 
8923
10208
 
8924
 
# Report which librarie types wil actually be built
8925
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8926
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8927
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8928
 
echo "${ECHO_T}$can_build_shared" >&6
 
10209
# Report which library types will actually be built
 
10210
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10211
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10212
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10213
echo "${ECHO_T}$can_build_shared" >&6; }
8929
10214
 
8930
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8931
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10215
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10216
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
8932
10217
test "$can_build_shared" = "no" && enable_shared=no
8933
10218
 
8934
10219
# On AIX, shared libraries and static libraries use the same namespace, and
8935
10220
# are all built from PIC.
8936
 
case "$host_os" in
 
10221
case $host_os in
8937
10222
aix3*)
8938
10223
  test "$enable_shared" = yes && enable_static=no
8939
10224
  if test -n "$RANLIB"; then
8946
10231
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8947
10232
    test "$enable_shared" = yes && enable_static=no
8948
10233
  fi
8949
 
  ;;
8950
 
  darwin* | rhapsody*)
8951
 
  if test "$GCC" = yes; then
8952
 
    archive_cmds_need_lc=no
8953
 
    case "$host_os" in
8954
 
    rhapsody* | darwin1.[012])
8955
 
      allow_undefined_flag='-undefined suppress'
8956
 
      ;;
8957
 
    *) # Darwin 1.3 on
8958
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8959
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8960
 
      else
8961
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8962
 
          10.[012])
8963
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8964
 
            ;;
8965
 
          10.*)
8966
 
            allow_undefined_flag='-undefined dynamic_lookup'
8967
 
            ;;
8968
 
        esac
8969
 
      fi
8970
 
      ;;
8971
 
    esac
8972
 
    output_verbose_link_cmd='echo'
8973
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8974
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8975
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8976
 
    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}'
8977
 
    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}'
8978
 
    hardcode_direct=no
8979
 
    hardcode_automatic=yes
8980
 
    hardcode_shlibpath_var=unsupported
8981
 
    whole_archive_flag_spec='-all_load $convenience'
8982
 
    link_all_deplibs=yes
8983
 
  else
8984
 
    ld_shlibs=no
8985
 
  fi
8986
10234
    ;;
8987
10235
esac
8988
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
8989
 
echo "${ECHO_T}$enable_shared" >&6
 
10236
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10237
echo "${ECHO_T}$enable_shared" >&6; }
8990
10238
 
8991
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8992
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10239
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10240
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
8993
10241
# Make sure either enable_shared or enable_static is yes.
8994
10242
test "$enable_shared" = yes || enable_static=yes
8995
 
echo "$as_me:$LINENO: result: $enable_static" >&5
8996
 
echo "${ECHO_T}$enable_static" >&6
 
10243
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10244
echo "${ECHO_T}$enable_static" >&6; }
8997
10245
 
8998
10246
# The else clause should only fire when bootstrapping the
8999
10247
# libtool distribution, otherwise you forgot to ship ltmain.sh
9008
10256
  # Now quote all the things that may contain metacharacters while being
9009
10257
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9010
10258
  # variables and quote the copies for generation of the libtool script.
9011
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10259
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9012
10260
    SED SHELL STRIP \
9013
10261
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9014
10262
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9112
10360
#
9113
10361
# You should have received a copy of the GNU General Public License
9114
10362
# along with this program; if not, write to the Free Software
9115
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10363
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9116
10364
#
9117
10365
# As a special exception to the GNU General Public License, if you
9118
10366
# distribute this file as part of a program that contains a
9123
10371
SED=$lt_SED
9124
10372
 
9125
10373
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9126
 
Xsed="$SED -e s/^X//"
 
10374
Xsed="$SED -e 1s/^X//"
9127
10375
 
9128
10376
# The HP-UX ksh and POSIX shell print the target directory to stdout
9129
10377
# if CDPATH is set.
9130
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10378
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9131
10379
 
9132
10380
# The names of the tagged configurations supported by this script.
9133
10381
available_tags=
9157
10405
# The host system.
9158
10406
host_alias=$host_alias
9159
10407
host=$host
 
10408
host_os=$host_os
 
10409
 
 
10410
# The build system.
 
10411
build_alias=$build_alias
 
10412
build=$build
 
10413
build_os=$build_os
9160
10414
 
9161
10415
# An echo program that does not interpret backslashes.
9162
10416
echo=$lt_echo
9168
10422
# A C compiler.
9169
10423
LTCC=$lt_LTCC
9170
10424
 
 
10425
# LTCC compiler flags.
 
10426
LTCFLAGS=$lt_LTCFLAGS
 
10427
 
9171
10428
# A language-specific compiler.
9172
10429
CC=$lt_compiler
9173
10430
 
9174
10431
# Is the compiler the GNU C compiler?
9175
10432
with_gcc=$GCC
9176
10433
 
 
10434
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
10435
gcc_ver=\`gcc -dumpversion\`
 
10436
 
9177
10437
# An ERE matcher.
9178
10438
EGREP=$lt_EGREP
9179
10439
 
9233
10493
# Does compiler simultaneously support -c and -o options?
9234
10494
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9235
10495
 
9236
 
# Must we lock files when doing compilation ?
 
10496
# Must we lock files when doing compilation?
9237
10497
need_locks=$lt_need_locks
9238
10498
 
9239
10499
# Do we need the lib prefix for modules?
9307
10567
 
9308
10568
# Dependencies to place before the objects being linked to create a
9309
10569
# shared library.
9310
 
predep_objects=$lt_predep_objects
 
10570
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9311
10571
 
9312
10572
# Dependencies to place after the objects being linked to create a
9313
10573
# shared library.
9314
 
postdep_objects=$lt_postdep_objects
 
10574
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9315
10575
 
9316
10576
# Dependencies to place before the objects being linked to create a
9317
10577
# shared library.
9323
10583
 
9324
10584
# The library search path used internally by the compiler when linking
9325
10585
# a shared library.
9326
 
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10586
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9327
10587
 
9328
10588
# Method to check whether dependent libraries are shared objects.
9329
10589
deplibs_check_method=$lt_deplibs_check_method
9403
10663
link_all_deplibs=$link_all_deplibs
9404
10664
 
9405
10665
# Compile-time system search path for libraries
9406
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10666
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9407
10667
 
9408
10668
# Run-time system search path for libraries
9409
10669
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9476
10736
CC="$lt_save_CC"
9477
10737
 
9478
10738
 
9479
 
# Check whether --with-tags or --without-tags was given.
 
10739
# Check whether --with-tags was given.
9480
10740
if test "${with_tags+set}" = set; then
9481
 
  withval="$with_tags"
9482
 
  tagnames="$withval"
9483
 
fi;
 
10741
  withval=$with_tags; tagnames="$withval"
 
10742
fi
 
10743
 
9484
10744
 
9485
10745
if test -f "$ltmain" && test -n "$tagnames"; then
9486
10746
  if test ! -f "${ofile}"; then
9498
10758
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9499
10759
    fi
9500
10760
  fi
 
10761
  if test -z "$LTCFLAGS"; then
 
10762
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10763
  fi
9501
10764
 
9502
10765
  # Extract list of available tagged configurations in $ofile.
9503
10766
  # Note that this assumes the entire list is on one line.
9528
10791
 
9529
10792
      case $tagname in
9530
10793
      CXX)
9531
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9532
 
          ac_ext=cc
 
10794
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10795
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10796
            (test "X$CXX" != "Xg++"))) ; then
 
10797
          ac_ext=cpp
9533
10798
ac_cpp='$CXXCPP $CPPFLAGS'
9534
10799
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535
10800
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548
10813
hardcode_libdir_flag_spec_ld_CXX=
9549
10814
hardcode_libdir_separator_CXX=
9550
10815
hardcode_minus_L_CXX=no
 
10816
hardcode_shlibpath_var_CXX=unsupported
9551
10817
hardcode_automatic_CXX=no
9552
10818
module_cmds_CXX=
9553
10819
module_expsym_cmds_CXX=
9565
10831
compiler_lib_search_path_CXX=
9566
10832
 
9567
10833
# Source file extension for C++ test sources.
9568
 
ac_ext=cc
 
10834
ac_ext=cpp
9569
10835
 
9570
10836
# Object file extension for compiled C++ test sources.
9571
10837
objext=o
9575
10841
lt_simple_compile_test_code="int some_variable = 0;\n"
9576
10842
 
9577
10843
# Code to be used in simple link tests
9578
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10844
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9579
10845
 
9580
10846
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9581
10847
 
9582
10848
# If no C compiler was specified, use CC.
9583
10849
LTCC=${LTCC-"$CC"}
9584
10850
 
 
10851
# If no C compiler flags were specified, use CFLAGS.
 
10852
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10853
 
9585
10854
# Allow CC to be a program name with arguments.
9586
10855
compiler=$CC
9587
10856
 
9588
10857
 
 
10858
# save warnings/boilerplate of simple test code
 
10859
ac_outfile=conftest.$ac_objext
 
10860
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10861
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10862
_lt_compiler_boilerplate=`cat conftest.err`
 
10863
$rm conftest*
 
10864
 
 
10865
ac_outfile=conftest.$ac_objext
 
10866
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10867
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10868
_lt_linker_boilerplate=`cat conftest.err`
 
10869
$rm conftest*
 
10870
 
 
10871
 
9589
10872
# Allow CC to be a program name with arguments.
9590
10873
lt_save_CC=$CC
9591
10874
lt_save_LD=$LD
9596
10879
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9597
10880
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9598
10881
else
9599
 
  unset lt_cv_prog_gnu_ld
 
10882
  $as_unset lt_cv_prog_gnu_ld
9600
10883
fi
9601
10884
if test -n "${lt_cv_path_LDCXX+set}"; then
9602
10885
  lt_cv_path_LD=$lt_cv_path_LDCXX
9603
10886
else
9604
 
  unset lt_cv_path_LD
 
10887
  $as_unset lt_cv_path_LD
9605
10888
fi
9606
10889
test -z "${LDCXX+set}" || LD=$LDCXX
9607
10890
CC=${CXX-"c++"}
9608
10891
compiler=$CC
9609
10892
compiler_CXX=$CC
9610
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10893
for cc_temp in $compiler""; do
 
10894
  case $cc_temp in
 
10895
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10896
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10897
    \-*) ;;
 
10898
    *) break;;
 
10899
  esac
 
10900
done
 
10901
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10902
 
9611
10903
 
9612
10904
# We don't want -fno-exception wen compiling C++ code, so set the
9613
10905
# no_builtin_flag separately
9621
10913
  # Set up default GNU C++ configuration
9622
10914
 
9623
10915
 
9624
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10916
# Check whether --with-gnu-ld was given.
9625
10917
if test "${with_gnu_ld+set}" = set; then
9626
 
  withval="$with_gnu_ld"
9627
 
  test "$withval" = no || with_gnu_ld=yes
 
10918
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9628
10919
else
9629
10920
  with_gnu_ld=no
9630
 
fi;
 
10921
fi
 
10922
 
9631
10923
ac_prog=ld
9632
10924
if test "$GCC" = yes; then
9633
10925
  # Check if gcc -print-prog-name=ld gives a path.
9634
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9635
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10926
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10927
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9636
10928
  case $host in
9637
10929
  *-*-mingw*)
9638
10930
    # gcc leaves a trailing carriage return which upsets mingw
9661
10953
    ;;
9662
10954
  esac
9663
10955
elif test "$with_gnu_ld" = yes; then
9664
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9665
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10956
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10957
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9666
10958
else
9667
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9668
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10959
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10960
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9669
10961
fi
9670
10962
if test "${lt_cv_path_LD+set}" = set; then
9671
10963
  echo $ECHO_N "(cached) $ECHO_C" >&6
9678
10970
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9679
10971
      lt_cv_path_LD="$ac_dir/$ac_prog"
9680
10972
      # Check to see if the program is GNU ld.  I'd rather use --version,
9681
 
      # but apparently some GNU ld's only accept -v.
 
10973
      # but apparently some variants of GNU ld only accept -v.
9682
10974
      # Break only if it was the GNU/non-GNU ld that we prefer.
9683
10975
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9684
10976
      *GNU* | *'with BFD'*)
9698
10990
 
9699
10991
LD="$lt_cv_path_LD"
9700
10992
if test -n "$LD"; then
9701
 
  echo "$as_me:$LINENO: result: $LD" >&5
9702
 
echo "${ECHO_T}$LD" >&6
 
10993
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10994
echo "${ECHO_T}$LD" >&6; }
9703
10995
else
9704
 
  echo "$as_me:$LINENO: result: no" >&5
9705
 
echo "${ECHO_T}no" >&6
 
10996
  { echo "$as_me:$LINENO: result: no" >&5
 
10997
echo "${ECHO_T}no" >&6; }
9706
10998
fi
9707
10999
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9708
11000
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9709
11001
   { (exit 1); exit 1; }; }
9710
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9711
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11002
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11003
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9712
11004
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9713
11005
  echo $ECHO_N "(cached) $ECHO_C" >&6
9714
11006
else
9715
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11007
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9716
11008
case `$LD -v 2>&1 </dev/null` in
9717
11009
*GNU* | *'with BFD'*)
9718
11010
  lt_cv_prog_gnu_ld=yes
9722
11014
  ;;
9723
11015
esac
9724
11016
fi
9725
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9726
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11017
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11018
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9727
11019
with_gnu_ld=$lt_cv_prog_gnu_ld
9728
11020
 
9729
11021
 
9773
11065
fi
9774
11066
 
9775
11067
# PORTME: fill in a description of your system's C++ link characteristics
9776
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9777
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11068
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11069
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9778
11070
ld_shlibs_CXX=yes
9779
11071
case $host_os in
9780
11072
  aix3*)
9803
11095
            ;;
9804
11096
          esac
9805
11097
        done
 
11098
        ;;
9806
11099
      esac
9807
11100
 
9808
11101
      exp_sym_flag='-bexport'
9821
11114
    link_all_deplibs_CXX=yes
9822
11115
 
9823
11116
    if test "$GXX" = yes; then
9824
 
      case $host_os in aix4.012|aix4.012.*)
 
11117
      case $host_os in aix4.[012]|aix4.[012].*)
9825
11118
      # We only want to do this on AIX 4.2 and lower, the check
9826
11119
      # below for broken collect2 doesn't work under 4.3+
9827
11120
        collect2name=`${CC} -print-prog-name=collect2`
9840
11133
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9841
11134
          hardcode_libdir_separator_CXX=
9842
11135
        fi
 
11136
        ;;
9843
11137
      esac
9844
11138
      shared_flag='-shared'
 
11139
      if test "$aix_use_runtimelinking" = yes; then
 
11140
        shared_flag="$shared_flag "'${wl}-G'
 
11141
      fi
9845
11142
    else
9846
11143
      # not using gcc
9847
11144
      if test "$host_cpu" = ia64; then
9881
11178
}
9882
11179
_ACEOF
9883
11180
rm -f conftest.$ac_objext conftest$ac_exeext
9884
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885
 
  (eval $ac_link) 2>conftest.er1
 
11181
if { (ac_try="$ac_link"
 
11182
case "(($ac_try" in
 
11183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11184
  *) ac_try_echo=$ac_try;;
 
11185
esac
 
11186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11187
  (eval "$ac_link") 2>conftest.er1
9886
11188
  ac_status=$?
9887
11189
  grep -v '^ *+' conftest.er1 >conftest.err
9888
11190
  rm -f conftest.er1
9889
11191
  cat conftest.err >&5
9890
11192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891
 
  (exit $ac_status); } &&
9892
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894
 
  (eval $ac_try) 2>&5
9895
 
  ac_status=$?
9896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897
 
  (exit $ac_status); }; } &&
9898
 
         { ac_try='test -s conftest$ac_exeext'
9899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900
 
  (eval $ac_try) 2>&5
9901
 
  ac_status=$?
9902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903
 
  (exit $ac_status); }; }; then
 
11193
  (exit $ac_status); } && {
 
11194
         test -z "$ac_cxx_werror_flag" ||
 
11195
         test ! -s conftest.err
 
11196
       } && test -s conftest$ac_exeext &&
 
11197
       $as_test_x conftest$ac_exeext; then
9904
11198
 
9905
11199
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9906
11200
}'`
9911
11205
  echo "$as_me: failed program was:" >&5
9912
11206
sed 's/^/| /' conftest.$ac_ext >&5
9913
11207
 
 
11208
 
9914
11209
fi
9915
 
rm -f conftest.err conftest.$ac_objext \
 
11210
 
 
11211
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916
11212
      conftest$ac_exeext conftest.$ac_ext
9917
11213
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9918
11214
 
9919
11215
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9920
11216
 
9921
 
      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"
 
11217
      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"
9922
11218
     else
9923
11219
      if test "$host_cpu" = ia64; then
9924
11220
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9925
11221
        allow_undefined_flag_CXX="-z nodefs"
9926
 
        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"
 
11222
        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"
9927
11223
      else
9928
11224
        # Determine the default libpath from the value encoded in an empty executable.
9929
11225
        cat >conftest.$ac_ext <<_ACEOF
9942
11238
}
9943
11239
_ACEOF
9944
11240
rm -f conftest.$ac_objext conftest$ac_exeext
9945
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946
 
  (eval $ac_link) 2>conftest.er1
 
11241
if { (ac_try="$ac_link"
 
11242
case "(($ac_try" in
 
11243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11244
  *) ac_try_echo=$ac_try;;
 
11245
esac
 
11246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11247
  (eval "$ac_link") 2>conftest.er1
9947
11248
  ac_status=$?
9948
11249
  grep -v '^ *+' conftest.er1 >conftest.err
9949
11250
  rm -f conftest.er1
9950
11251
  cat conftest.err >&5
9951
11252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952
 
  (exit $ac_status); } &&
9953
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955
 
  (eval $ac_try) 2>&5
9956
 
  ac_status=$?
9957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958
 
  (exit $ac_status); }; } &&
9959
 
         { ac_try='test -s conftest$ac_exeext'
9960
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961
 
  (eval $ac_try) 2>&5
9962
 
  ac_status=$?
9963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964
 
  (exit $ac_status); }; }; then
 
11253
  (exit $ac_status); } && {
 
11254
         test -z "$ac_cxx_werror_flag" ||
 
11255
         test ! -s conftest.err
 
11256
       } && test -s conftest$ac_exeext &&
 
11257
       $as_test_x conftest$ac_exeext; then
9965
11258
 
9966
11259
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9967
11260
}'`
9972
11265
  echo "$as_me: failed program was:" >&5
9973
11266
sed 's/^/| /' conftest.$ac_ext >&5
9974
11267
 
 
11268
 
9975
11269
fi
9976
 
rm -f conftest.err conftest.$ac_objext \
 
11270
 
 
11271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977
11272
      conftest$ac_exeext conftest.$ac_ext
9978
11273
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9979
11274
 
9982
11277
        # -berok will link without error, but may produce a broken library.
9983
11278
        no_undefined_flag_CXX=' ${wl}-bernotok'
9984
11279
        allow_undefined_flag_CXX=' ${wl}-berok'
9985
 
        # -bexpall does not export symbols beginning with underscore (_)
9986
 
        always_export_symbols_CXX=yes
9987
11280
        # Exported symbols can be pulled into shared objects from archives
9988
 
        whole_archive_flag_spec_CXX=' '
 
11281
        whole_archive_flag_spec_CXX='$convenience'
9989
11282
        archive_cmds_need_lc_CXX=yes
9990
 
        # This is similar to how AIX traditionally builds it's shared libraries.
9991
 
        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'
 
11283
        # This is similar to how AIX traditionally builds its shared libraries.
 
11284
        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'
9992
11285
      fi
9993
11286
    fi
9994
11287
    ;;
 
11288
 
 
11289
  beos*)
 
11290
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11291
      allow_undefined_flag_CXX=unsupported
 
11292
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11293
      # support --undefined.  This deserves some investigation.  FIXME
 
11294
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11295
    else
 
11296
      ld_shlibs_CXX=no
 
11297
    fi
 
11298
    ;;
 
11299
 
9995
11300
  chorus*)
9996
11301
    case $cc_basename in
9997
11302
      *)
10010
11315
    enable_shared_with_static_runtimes_CXX=yes
10011
11316
 
10012
11317
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10013
 
      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'
 
11318
      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'
10014
11319
      # If the export-symbols file already is a .def file (1st line
10015
11320
      # is EXPORTS), use it as is; otherwise, prepend...
10016
11321
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10019
11324
        echo EXPORTS > $output_objdir/$soname.def;
10020
11325
        cat $export_symbols >> $output_objdir/$soname.def;
10021
11326
      fi~
10022
 
      $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'
 
11327
      $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'
10023
11328
    else
10024
11329
      ld_shlibs_CXX=no
10025
11330
    fi
10026
11331
  ;;
10027
 
 
10028
 
  darwin* | rhapsody*)
10029
 
  if test "$GXX" = yes; then
10030
 
    archive_cmds_need_lc_CXX=no
10031
 
    case "$host_os" in
10032
 
    rhapsody* | darwin1.[012])
10033
 
      allow_undefined_flag_CXX='-undefined suppress'
10034
 
      ;;
10035
 
    *) # Darwin 1.3 on
10036
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10037
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10038
 
      else
10039
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10040
 
          10.[012])
10041
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10042
 
            ;;
10043
 
          10.*)
10044
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10045
 
            ;;
 
11332
      darwin* | rhapsody*)
 
11333
        case $host_os in
 
11334
        rhapsody* | darwin1.[012])
 
11335
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11336
         ;;
 
11337
       *) # Darwin 1.3 on
 
11338
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11339
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11340
         else
 
11341
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11342
             10.[012])
 
11343
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11344
               ;;
 
11345
             10.*)
 
11346
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11347
               ;;
 
11348
           esac
 
11349
         fi
 
11350
         ;;
10046
11351
        esac
10047
 
      fi
10048
 
      ;;
10049
 
    esac
10050
 
    lt_int_apple_cc_single_mod=no
10051
 
    output_verbose_link_cmd='echo'
10052
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10053
 
      lt_int_apple_cc_single_mod=yes
10054
 
    fi
10055
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10056
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10057
 
    else
10058
 
      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'
10059
 
    fi
10060
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11352
      archive_cmds_need_lc_CXX=no
 
11353
      hardcode_direct_CXX=no
 
11354
      hardcode_automatic_CXX=yes
 
11355
      hardcode_shlibpath_var_CXX=unsupported
 
11356
      whole_archive_flag_spec_CXX=''
 
11357
      link_all_deplibs_CXX=yes
10061
11358
 
10062
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10063
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10064
 
      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}'
10065
 
    else
10066
 
      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}'
10067
 
    fi
10068
 
    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}'
10069
 
    hardcode_direct_CXX=no
10070
 
    hardcode_automatic_CXX=yes
10071
 
    hardcode_shlibpath_var_CXX=unsupported
10072
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10073
 
    link_all_deplibs_CXX=yes
10074
 
  else
10075
 
    ld_shlibs_CXX=no
10076
 
  fi
10077
 
    ;;
 
11359
    if test "$GXX" = yes ; then
 
11360
      lt_int_apple_cc_single_mod=no
 
11361
      output_verbose_link_cmd='echo'
 
11362
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11363
       lt_int_apple_cc_single_mod=yes
 
11364
      fi
 
11365
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11366
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11367
      else
 
11368
          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'
 
11369
        fi
 
11370
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11371
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11372
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11373
            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}'
 
11374
          else
 
11375
            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}'
 
11376
          fi
 
11377
            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}'
 
11378
      else
 
11379
      case $cc_basename in
 
11380
        xlc*)
 
11381
         output_verbose_link_cmd='echo'
 
11382
          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'
 
11383
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11384
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11385
          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}'
 
11386
          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}'
 
11387
          ;;
 
11388
       *)
 
11389
         ld_shlibs_CXX=no
 
11390
          ;;
 
11391
      esac
 
11392
      fi
 
11393
        ;;
10078
11394
 
10079
11395
  dgux*)
10080
11396
    case $cc_basename in
10081
 
      ec++)
 
11397
      ec++*)
10082
11398
        # FIXME: insert proper C++ library support
10083
11399
        ld_shlibs_CXX=no
10084
11400
        ;;
10085
 
      ghcx)
 
11401
      ghcx*)
10086
11402
        # Green Hills C++ Compiler
10087
11403
        # FIXME: insert proper C++ library support
10088
11404
        ld_shlibs_CXX=no
10093
11409
        ;;
10094
11410
    esac
10095
11411
    ;;
10096
 
  freebsd12*)
 
11412
  freebsd[12]*)
10097
11413
    # C++ shared libraries reported to be fairly broken before switch to ELF
10098
11414
    ld_shlibs_CXX=no
10099
11415
    ;;
10100
11416
  freebsd-elf*)
10101
11417
    archive_cmds_need_lc_CXX=no
10102
11418
    ;;
10103
 
  freebsd* | kfreebsd*-gnu)
 
11419
  freebsd* | kfreebsd*-gnu | dragonfly*)
10104
11420
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10105
11421
    # conventions
10106
11422
    ld_shlibs_CXX=yes
10117
11433
                                # location of the library.
10118
11434
 
10119
11435
    case $cc_basename in
10120
 
    CC)
 
11436
    CC*)
10121
11437
      # FIXME: insert proper C++ library support
10122
11438
      ld_shlibs_CXX=no
10123
11439
      ;;
10124
 
    aCC)
 
11440
    aCC*)
10125
11441
      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'
10126
11442
      # Commands to make compiler produce verbose output that lists
10127
11443
      # what "hidden" libraries, object files and flags are used when
10131
11447
      # explicitly linking system object files so we need to strip them
10132
11448
      # from the output so that they don't get included in the library
10133
11449
      # dependencies.
10134
 
      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'
 
11450
      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'
10135
11451
      ;;
10136
11452
    *)
10137
11453
      if test "$GXX" = yes; then
10145
11461
    ;;
10146
11462
  hpux10*|hpux11*)
10147
11463
    if test $with_gnu_ld = no; then
10148
 
      case "$host_cpu" in
10149
 
      hppa*64*)
10150
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11464
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11465
      hardcode_libdir_separator_CXX=:
 
11466
 
 
11467
      case $host_cpu in
 
11468
      hppa*64*|ia64*)
10151
11469
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10152
 
        hardcode_libdir_separator_CXX=:
10153
 
        ;;
10154
 
      ia64*)
10155
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10156
11470
        ;;
10157
11471
      *)
10158
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10159
 
        hardcode_libdir_separator_CXX=:
10160
11472
        export_dynamic_flag_spec_CXX='${wl}-E'
10161
11473
        ;;
10162
11474
      esac
10163
11475
    fi
10164
 
    case "$host_cpu" in
10165
 
    hppa*64*)
10166
 
      hardcode_direct_CXX=no
10167
 
      hardcode_shlibpath_var_CXX=no
10168
 
      ;;
10169
 
    ia64*)
10170
 
      hardcode_direct_CXX=no
10171
 
      hardcode_shlibpath_var_CXX=no
10172
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10173
 
                                              # but as the default
10174
 
                                              # location of the library.
 
11476
    case $host_cpu in
 
11477
    hppa*64*|ia64*)
 
11478
      hardcode_direct_CXX=no
 
11479
      hardcode_shlibpath_var_CXX=no
10175
11480
      ;;
10176
11481
    *)
10177
11482
      hardcode_direct_CXX=yes
10182
11487
    esac
10183
11488
 
10184
11489
    case $cc_basename in
10185
 
      CC)
 
11490
      CC*)
10186
11491
        # FIXME: insert proper C++ library support
10187
11492
        ld_shlibs_CXX=no
10188
11493
        ;;
10189
 
      aCC)
10190
 
        case "$host_cpu" in
10191
 
        hppa*64*|ia64*)
10192
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11494
      aCC*)
 
11495
        case $host_cpu in
 
11496
        hppa*64*)
 
11497
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11498
          ;;
 
11499
        ia64*)
 
11500
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10193
11501
          ;;
10194
11502
        *)
10195
11503
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10208
11516
      *)
10209
11517
        if test "$GXX" = yes; then
10210
11518
          if test $with_gnu_ld = no; then
10211
 
            case "$host_cpu" in
10212
 
            ia64*|hppa*64*)
10213
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11519
            case $host_cpu in
 
11520
            hppa*64*)
 
11521
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11522
              ;;
 
11523
            ia64*)
 
11524
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10214
11525
              ;;
10215
11526
            *)
10216
11527
              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'
10224
11535
        ;;
10225
11536
    esac
10226
11537
    ;;
 
11538
  interix3*)
 
11539
    hardcode_direct_CXX=no
 
11540
    hardcode_shlibpath_var_CXX=no
 
11541
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11542
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11543
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11544
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11545
    # default) and relocated if they conflict, which is a slow very memory
 
11546
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11547
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11548
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11549
    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'
 
11550
    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'
 
11551
    ;;
10227
11552
  irix5* | irix6*)
10228
11553
    case $cc_basename in
10229
 
      CC)
 
11554
      CC*)
10230
11555
        # SGI C++
10231
 
        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'
 
11556
        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'
10232
11557
 
10233
11558
        # Archives containing C++ object files must be created using
10234
11559
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10239
11564
      *)
10240
11565
        if test "$GXX" = yes; then
10241
11566
          if test "$with_gnu_ld" = no; then
10242
 
            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'
 
11567
            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'
10243
11568
          else
10244
11569
            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'
10245
11570
          fi
10252
11577
    ;;
10253
11578
  linux*)
10254
11579
    case $cc_basename in
10255
 
      KCC)
 
11580
      KCC*)
10256
11581
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10257
11582
 
10258
11583
        # KCC will only create a shared library if the output file
10277
11602
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10278
11603
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10279
11604
        ;;
10280
 
      icpc)
 
11605
      icpc*)
10281
11606
        # Intel C++
10282
11607
        with_gnu_ld=yes
 
11608
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11609
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11610
        # earlier do not add the objects themselves.
 
11611
        case `$CC -V 2>&1` in
 
11612
        *"Version 7."*)
 
11613
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11614
          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'
 
11615
          ;;
 
11616
        *)  # Version 8.0 or newer
 
11617
          tmp_idyn=
 
11618
          case $host_cpu in
 
11619
            ia64*) tmp_idyn=' -i_dynamic';;
 
11620
          esac
 
11621
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11622
          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'
 
11623
          ;;
 
11624
        esac
10283
11625
        archive_cmds_need_lc_CXX=no
10284
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285
 
        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'
10286
11626
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10287
11627
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10288
11628
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10289
11629
        ;;
10290
 
      cxx)
 
11630
      pgCC*)
 
11631
        # Portland Group C++ compiler
 
11632
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11633
        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'
 
11634
 
 
11635
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11636
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11637
        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'
 
11638
        ;;
 
11639
      cxx*)
10291
11640
        # Compaq C++
10292
11641
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293
11642
        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'
10318
11667
    ;;
10319
11668
  mvs*)
10320
11669
    case $cc_basename in
10321
 
      cxx)
 
11670
      cxx*)
10322
11671
        # FIXME: insert proper C++ library support
10323
11672
        ld_shlibs_CXX=no
10324
11673
        ;;
10328
11677
        ;;
10329
11678
    esac
10330
11679
    ;;
10331
 
  netbsd* | knetbsd*-gnu)
 
11680
  netbsd*)
10332
11681
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10333
11682
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10334
11683
      wlarc=
10339
11688
    # Workaround some broken pre-1.5 toolchains
10340
11689
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10341
11690
    ;;
 
11691
  openbsd2*)
 
11692
    # C++ shared libraries are fairly broken
 
11693
    ld_shlibs_CXX=no
 
11694
    ;;
 
11695
  openbsd*)
 
11696
    hardcode_direct_CXX=yes
 
11697
    hardcode_shlibpath_var_CXX=no
 
11698
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11699
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11700
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11701
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11702
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11703
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11704
    fi
 
11705
    output_verbose_link_cmd='echo'
 
11706
    ;;
10342
11707
  osf3*)
10343
11708
    case $cc_basename in
10344
 
      KCC)
 
11709
      KCC*)
10345
11710
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10346
11711
 
10347
11712
        # KCC will only create a shared library if the output file
10357
11722
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10358
11723
 
10359
11724
        ;;
10360
 
      RCC)
 
11725
      RCC*)
10361
11726
        # Rational C++ 2.4.1
10362
11727
        # FIXME: insert proper C++ library support
10363
11728
        ld_shlibs_CXX=no
10364
11729
        ;;
10365
 
      cxx)
 
11730
      cxx*)
10366
11731
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10367
 
        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'
 
11732
        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'
10368
11733
 
10369
11734
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10370
11735
        hardcode_libdir_separator_CXX=:
10382
11747
      *)
10383
11748
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10384
11749
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10385
 
          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'
 
11750
          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'
10386
11751
 
10387
11752
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10388
11753
          hardcode_libdir_separator_CXX=:
10401
11766
    ;;
10402
11767
  osf4* | osf5*)
10403
11768
    case $cc_basename in
10404
 
      KCC)
 
11769
      KCC*)
10405
11770
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10406
11771
 
10407
11772
        # KCC will only create a shared library if the output file
10416
11781
        # the KAI C++ compiler.
10417
11782
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10418
11783
        ;;
10419
 
      RCC)
 
11784
      RCC*)
10420
11785
        # Rational C++ 2.4.1
10421
11786
        # FIXME: insert proper C++ library support
10422
11787
        ld_shlibs_CXX=no
10423
11788
        ;;
10424
 
      cxx)
 
11789
      cxx*)
10425
11790
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10426
 
        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'
 
11791
        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'
10427
11792
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10428
11793
          echo "-hidden">> $lib.exp~
10429
 
          $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~
 
11794
          $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~
10430
11795
          $rm $lib.exp'
10431
11796
 
10432
11797
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10445
11810
      *)
10446
11811
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10447
11812
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10448
 
         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'
 
11813
         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'
10449
11814
 
10450
11815
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10451
11816
          hardcode_libdir_separator_CXX=:
10466
11831
    # FIXME: insert proper C++ library support
10467
11832
    ld_shlibs_CXX=no
10468
11833
    ;;
10469
 
  sco*)
10470
 
    archive_cmds_need_lc_CXX=no
10471
 
    case $cc_basename in
10472
 
      CC)
10473
 
        # FIXME: insert proper C++ library support
10474
 
        ld_shlibs_CXX=no
10475
 
        ;;
10476
 
      *)
10477
 
        # FIXME: insert proper C++ library support
10478
 
        ld_shlibs_CXX=no
10479
 
        ;;
10480
 
    esac
10481
 
    ;;
10482
11834
  sunos4*)
10483
11835
    case $cc_basename in
10484
 
      CC)
 
11836
      CC*)
10485
11837
        # Sun C++ 4.x
10486
11838
        # FIXME: insert proper C++ library support
10487
11839
        ld_shlibs_CXX=no
10488
11840
        ;;
10489
 
      lcc)
 
11841
      lcc*)
10490
11842
        # Lucid
10491
11843
        # FIXME: insert proper C++ library support
10492
11844
        ld_shlibs_CXX=no
10499
11851
    ;;
10500
11852
  solaris*)
10501
11853
    case $cc_basename in
10502
 
      CC)
 
11854
      CC*)
10503
11855
        # Sun C++ 4.2, 5.x and Centerline C++
 
11856
        archive_cmds_need_lc_CXX=yes
10504
11857
        no_undefined_flag_CXX=' -zdefs'
10505
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11858
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10506
11859
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10507
 
        $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'
 
11860
        $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'
10508
11861
 
10509
11862
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10510
11863
        hardcode_shlibpath_var_CXX=no
10511
11864
        case $host_os in
10512
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11865
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10513
11866
          *)
10514
11867
            # The C++ compiler is used as linker so we must use $wl
10515
11868
            # flag to pass the commands to the underlying system
10516
 
            # linker.
 
11869
            # linker. We must also pass each convience library through
 
11870
            # to the system linker between allextract/defaultextract.
 
11871
            # The C++ compiler will combine linker options so we
 
11872
            # cannot just pass the convience library names through
 
11873
            # without $wl.
10517
11874
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10518
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11875
            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'
10519
11876
            ;;
10520
11877
        esac
10521
11878
        link_all_deplibs_CXX=yes
10522
11879
 
10523
 
        # Commands to make compiler produce verbose output that lists
10524
 
        # what "hidden" libraries, object files and flags are used when
10525
 
        # linking a shared library.
10526
 
        #
10527
 
        # There doesn't appear to be a way to prevent this compiler from
10528
 
        # explicitly linking system object files so we need to strip them
10529
 
        # from the output so that they don't get included in the library
10530
 
        # dependencies.
10531
 
        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'
 
11880
        output_verbose_link_cmd='echo'
10532
11881
 
10533
11882
        # Archives containing C++ object files must be created using
10534
11883
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10536
11885
        # in the archive.
10537
11886
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10538
11887
        ;;
10539
 
      gcx)
 
11888
      gcx*)
10540
11889
        # Green Hills C++ Compiler
10541
11890
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10542
11891
 
10574
11923
        ;;
10575
11924
    esac
10576
11925
    ;;
10577
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10578
 
    archive_cmds_need_lc_CXX=no
 
11926
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11927
    no_undefined_flag_CXX='${wl}-z,text'
 
11928
    archive_cmds_need_lc_CXX=no
 
11929
    hardcode_shlibpath_var_CXX=no
 
11930
    runpath_var='LD_RUN_PATH'
 
11931
 
 
11932
    case $cc_basename in
 
11933
      CC*)
 
11934
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11935
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11936
        ;;
 
11937
      *)
 
11938
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11939
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11940
        ;;
 
11941
    esac
 
11942
    ;;
 
11943
  sysv5* | sco3.2v5* | sco5v6*)
 
11944
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11945
    # link with -lc, and that would cause any symbols used from libc to
 
11946
    # always be unresolved, which means just about no library would
 
11947
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11948
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11949
    # as -z defs.
 
11950
    # For security reasons, it is highly recommended that you always
 
11951
    # use absolute paths for naming shared libraries, and exclude the
 
11952
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11953
    # requires that you compile everything twice, which is a pain.
 
11954
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11955
    # non-empty value in the environment.  Most likely only useful for
 
11956
    # creating official distributions of packages.
 
11957
    # This is a hack until libtool officially supports absolute path
 
11958
    # names for shared libraries.
 
11959
    no_undefined_flag_CXX='${wl}-z,text'
 
11960
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11961
    archive_cmds_need_lc_CXX=no
 
11962
    hardcode_shlibpath_var_CXX=no
 
11963
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11964
    hardcode_libdir_separator_CXX=':'
 
11965
    link_all_deplibs_CXX=yes
 
11966
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11967
    runpath_var='LD_RUN_PATH'
 
11968
 
 
11969
    case $cc_basename in
 
11970
      CC*)
 
11971
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11972
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11973
        ;;
 
11974
      *)
 
11975
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11976
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11977
        ;;
 
11978
    esac
10579
11979
    ;;
10580
11980
  tandem*)
10581
11981
    case $cc_basename in
10582
 
      NCC)
 
11982
      NCC*)
10583
11983
        # NonStop-UX NCC 3.20
10584
11984
        # FIXME: insert proper C++ library support
10585
11985
        ld_shlibs_CXX=no
10599
11999
    ld_shlibs_CXX=no
10600
12000
    ;;
10601
12001
esac
10602
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10603
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12002
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12003
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10604
12004
test "$ld_shlibs_CXX" = no && can_build_shared=no
10605
12005
 
10606
12006
GCC_CXX="$GXX"
10632
12032
  # The `*' in the case matches for architectures that use `case' in
10633
12033
  # $output_verbose_cmd can trigger glob expansion during the loop
10634
12034
  # eval without this substitution.
10635
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12035
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10636
12036
 
10637
12037
  for p in `eval $output_verbose_link_cmd`; do
10638
12038
    case $p in
10708
12108
 
10709
12109
$rm -f confest.$objext
10710
12110
 
 
12111
# PORTME: override above test on systems where it is broken
 
12112
case $host_os in
 
12113
interix3*)
 
12114
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12115
  # hack all around it, let's just trust "g++" to DTRT.
 
12116
  predep_objects_CXX=
 
12117
  postdep_objects_CXX=
 
12118
  postdeps_CXX=
 
12119
  ;;
 
12120
 
 
12121
solaris*)
 
12122
  case $cc_basename in
 
12123
  CC*)
 
12124
    # Adding this requires a known-good setup of shared libraries for
 
12125
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12126
    # archive will be linked into the output, leading to subtle bugs.
 
12127
    postdeps_CXX='-lCstd -lCrun'
 
12128
    ;;
 
12129
  esac
 
12130
  ;;
 
12131
esac
 
12132
 
 
12133
 
10711
12134
case " $postdeps_CXX " in
10712
12135
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10713
12136
esac
10716
12139
lt_prog_compiler_pic_CXX=
10717
12140
lt_prog_compiler_static_CXX=
10718
12141
 
10719
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10720
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12142
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12143
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10721
12144
 
10722
12145
  # C++ specific cases for pic, static, wl, etc.
10723
12146
  if test "$GXX" = yes; then
10755
12178
      # DJGPP does not support shared libraries at all
10756
12179
      lt_prog_compiler_pic_CXX=
10757
12180
      ;;
 
12181
    interix3*)
 
12182
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12183
      # Instead, we relocate shared libraries at runtime.
 
12184
      ;;
10758
12185
    sysv4*MP*)
10759
12186
      if test -d /usr/nec; then
10760
12187
        lt_prog_compiler_pic_CXX=-Kconform_pic
10763
12190
    hpux*)
10764
12191
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10765
12192
      # not for PA HP-UX.
10766
 
      case "$host_cpu" in
 
12193
      case $host_cpu in
10767
12194
      hppa*64*|ia64*)
10768
12195
        ;;
10769
12196
      *)
10788
12215
        ;;
10789
12216
      chorus*)
10790
12217
        case $cc_basename in
10791
 
        cxch68)
 
12218
        cxch68*)
10792
12219
          # Green Hills C++ Compiler
10793
12220
          # _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"
10794
12221
          ;;
10795
12222
        esac
10796
12223
        ;;
 
12224
       darwin*)
 
12225
         # PIC is the default on this platform
 
12226
         # Common symbols not allowed in MH_DYLIB files
 
12227
         case $cc_basename in
 
12228
           xlc*)
 
12229
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12230
           lt_prog_compiler_wl_CXX='-Wl,'
 
12231
           ;;
 
12232
         esac
 
12233
       ;;
10797
12234
      dgux*)
10798
12235
        case $cc_basename in
10799
 
          ec++)
 
12236
          ec++*)
10800
12237
            lt_prog_compiler_pic_CXX='-KPIC'
10801
12238
            ;;
10802
 
          ghcx)
 
12239
          ghcx*)
10803
12240
            # Green Hills C++ Compiler
10804
12241
            lt_prog_compiler_pic_CXX='-pic'
10805
12242
            ;;
10807
12244
            ;;
10808
12245
        esac
10809
12246
        ;;
10810
 
      freebsd* | kfreebsd*-gnu)
 
12247
      freebsd* | kfreebsd*-gnu | dragonfly*)
10811
12248
        # FreeBSD uses GNU C++
10812
12249
        ;;
10813
12250
      hpux9* | hpux10* | hpux11*)
10814
12251
        case $cc_basename in
10815
 
          CC)
 
12252
          CC*)
10816
12253
            lt_prog_compiler_wl_CXX='-Wl,'
10817
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12254
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10818
12255
            if test "$host_cpu" != ia64; then
10819
12256
              lt_prog_compiler_pic_CXX='+Z'
10820
12257
            fi
10821
12258
            ;;
10822
 
          aCC)
 
12259
          aCC*)
10823
12260
            lt_prog_compiler_wl_CXX='-Wl,'
10824
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10825
 
            case "$host_cpu" in
 
12261
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12262
            case $host_cpu in
10826
12263
            hppa*64*|ia64*)
10827
12264
              # +Z the default
10828
12265
              ;;
10835
12272
            ;;
10836
12273
        esac
10837
12274
        ;;
 
12275
      interix*)
 
12276
        # This is c89, which is MS Visual C++ (no shared libs)
 
12277
        # Anyone wants to do a port?
 
12278
        ;;
10838
12279
      irix5* | irix6* | nonstopux*)
10839
12280
        case $cc_basename in
10840
 
          CC)
 
12281
          CC*)
10841
12282
            lt_prog_compiler_wl_CXX='-Wl,'
10842
12283
            lt_prog_compiler_static_CXX='-non_shared'
10843
12284
            # CC pic flag -KPIC is the default.
10848
12289
        ;;
10849
12290
      linux*)
10850
12291
        case $cc_basename in
10851
 
          KCC)
 
12292
          KCC*)
10852
12293
            # KAI C++ Compiler
10853
12294
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10854
12295
            lt_prog_compiler_pic_CXX='-fPIC'
10855
12296
            ;;
10856
 
          icpc)
 
12297
          icpc* | ecpc*)
10857
12298
            # Intel C++
10858
12299
            lt_prog_compiler_wl_CXX='-Wl,'
10859
12300
            lt_prog_compiler_pic_CXX='-KPIC'
10860
12301
            lt_prog_compiler_static_CXX='-static'
10861
12302
            ;;
10862
 
          cxx)
 
12303
          pgCC*)
 
12304
            # Portland Group C++ compiler.
 
12305
            lt_prog_compiler_wl_CXX='-Wl,'
 
12306
            lt_prog_compiler_pic_CXX='-fpic'
 
12307
            lt_prog_compiler_static_CXX='-Bstatic'
 
12308
            ;;
 
12309
          cxx*)
10863
12310
            # Compaq C++
10864
12311
            # Make sure the PIC flag is empty.  It appears that all Alpha
10865
12312
            # Linux and Compaq Tru64 Unix objects are PIC.
10876
12323
        ;;
10877
12324
      mvs*)
10878
12325
        case $cc_basename in
10879
 
          cxx)
 
12326
          cxx*)
10880
12327
            lt_prog_compiler_pic_CXX='-W c,exportall'
10881
12328
            ;;
10882
12329
          *)
10883
12330
            ;;
10884
12331
        esac
10885
12332
        ;;
10886
 
      netbsd* | knetbsd*-gnu)
 
12333
      netbsd*)
10887
12334
        ;;
10888
12335
      osf3* | osf4* | osf5*)
10889
12336
        case $cc_basename in
10890
 
          KCC)
 
12337
          KCC*)
10891
12338
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10892
12339
            ;;
10893
 
          RCC)
 
12340
          RCC*)
10894
12341
            # Rational C++ 2.4.1
10895
12342
            lt_prog_compiler_pic_CXX='-pic'
10896
12343
            ;;
10897
 
          cxx)
 
12344
          cxx*)
10898
12345
            # Digital/Compaq C++
10899
12346
            lt_prog_compiler_wl_CXX='-Wl,'
10900
12347
            # Make sure the PIC flag is empty.  It appears that all Alpha
10908
12355
        ;;
10909
12356
      psos*)
10910
12357
        ;;
10911
 
      sco*)
10912
 
        case $cc_basename in
10913
 
          CC)
10914
 
            lt_prog_compiler_pic_CXX='-fPIC'
10915
 
            ;;
10916
 
          *)
10917
 
            ;;
10918
 
        esac
10919
 
        ;;
10920
12358
      solaris*)
10921
12359
        case $cc_basename in
10922
 
          CC)
 
12360
          CC*)
10923
12361
            # Sun C++ 4.2, 5.x and Centerline C++
10924
12362
            lt_prog_compiler_pic_CXX='-KPIC'
10925
12363
            lt_prog_compiler_static_CXX='-Bstatic'
10926
12364
            lt_prog_compiler_wl_CXX='-Qoption ld '
10927
12365
            ;;
10928
 
          gcx)
 
12366
          gcx*)
10929
12367
            # Green Hills C++ Compiler
10930
12368
            lt_prog_compiler_pic_CXX='-PIC'
10931
12369
            ;;
10935
12373
        ;;
10936
12374
      sunos4*)
10937
12375
        case $cc_basename in
10938
 
          CC)
 
12376
          CC*)
10939
12377
            # Sun C++ 4.x
10940
12378
            lt_prog_compiler_pic_CXX='-pic'
10941
12379
            lt_prog_compiler_static_CXX='-Bstatic'
10942
12380
            ;;
10943
 
          lcc)
 
12381
          lcc*)
10944
12382
            # Lucid
10945
12383
            lt_prog_compiler_pic_CXX='-pic'
10946
12384
            ;;
10950
12388
        ;;
10951
12389
      tandem*)
10952
12390
        case $cc_basename in
10953
 
          NCC)
 
12391
          NCC*)
10954
12392
            # NonStop-UX NCC 3.20
10955
12393
            lt_prog_compiler_pic_CXX='-KPIC'
10956
12394
            ;;
10958
12396
            ;;
10959
12397
        esac
10960
12398
        ;;
10961
 
      unixware*)
 
12399
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12400
        case $cc_basename in
 
12401
          CC*)
 
12402
            lt_prog_compiler_wl_CXX='-Wl,'
 
12403
            lt_prog_compiler_pic_CXX='-KPIC'
 
12404
            lt_prog_compiler_static_CXX='-Bstatic'
 
12405
            ;;
 
12406
        esac
10962
12407
        ;;
10963
12408
      vxworks*)
10964
12409
        ;;
10968
12413
    esac
10969
12414
  fi
10970
12415
 
10971
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10972
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12416
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12417
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
10973
12418
 
10974
12419
#
10975
12420
# Check to make sure the PIC flag actually works.
10976
12421
#
10977
12422
if test -n "$lt_prog_compiler_pic_CXX"; then
10978
12423
 
10979
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10980
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12424
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12425
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
10981
12426
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10982
12427
  echo $ECHO_N "(cached) $ECHO_C" >&6
10983
12428
else
10991
12436
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10992
12437
   # The option is referenced via a variable to avoid confusing sed.
10993
12438
   lt_compile=`echo "$ac_compile" | $SED \
10994
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10995
12440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10996
12441
   -e 's:$: $lt_compiler_flag:'`
10997
 
   (eval echo "\"\$as_me:10997: $lt_compile\"" >&5)
 
12442
   (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
10998
12443
   (eval "$lt_compile" 2>conftest.err)
10999
12444
   ac_status=$?
11000
12445
   cat conftest.err >&5
11001
 
   echo "$as_me:11001: \$? = $ac_status" >&5
 
12446
   echo "$as_me:12446: \$? = $ac_status" >&5
11002
12447
   if (exit $ac_status) && test -s "$ac_outfile"; then
11003
12448
     # The compiler can only warn and ignore the option if not recognized
11004
 
     # So say no if there are warnings
11005
 
     if test ! -s conftest.err; then
 
12449
     # So say no if there are warnings other than the usual output.
 
12450
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12451
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12452
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11006
12453
       lt_prog_compiler_pic_works_CXX=yes
11007
12454
     fi
11008
12455
   fi
11009
12456
   $rm conftest*
11010
12457
 
11011
12458
fi
11012
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11013
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12459
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12460
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11014
12461
 
11015
12462
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11016
12463
    case $lt_prog_compiler_pic_CXX in
11023
12470
fi
11024
12471
 
11025
12472
fi
11026
 
case "$host_os" in
 
12473
case $host_os in
11027
12474
  # For platforms which do not support PIC, -DPIC is meaningless:
11028
12475
  *djgpp*)
11029
12476
    lt_prog_compiler_pic_CXX=
11033
12480
    ;;
11034
12481
esac
11035
12482
 
11036
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11037
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12483
#
 
12484
# Check to make sure the static flag actually works.
 
12485
#
 
12486
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12487
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12488
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12489
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12491
else
 
12492
  lt_prog_compiler_static_works_CXX=no
 
12493
   save_LDFLAGS="$LDFLAGS"
 
12494
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12495
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12496
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12497
     # The linker can only warn and ignore the option if not recognized
 
12498
     # So say no if there are warnings
 
12499
     if test -s conftest.err; then
 
12500
       # Append any errors to the config.log.
 
12501
       cat conftest.err 1>&5
 
12502
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12503
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12504
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12505
         lt_prog_compiler_static_works_CXX=yes
 
12506
       fi
 
12507
     else
 
12508
       lt_prog_compiler_static_works_CXX=yes
 
12509
     fi
 
12510
   fi
 
12511
   $rm conftest*
 
12512
   LDFLAGS="$save_LDFLAGS"
 
12513
 
 
12514
fi
 
12515
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12516
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12517
 
 
12518
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12519
    :
 
12520
else
 
12521
    lt_prog_compiler_static_CXX=
 
12522
fi
 
12523
 
 
12524
 
 
12525
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12526
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11038
12527
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11039
12528
  echo $ECHO_N "(cached) $ECHO_C" >&6
11040
12529
else
11051
12540
   # Note that $ac_compile itself does not contain backslashes and begins
11052
12541
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11053
12542
   lt_compile=`echo "$ac_compile" | $SED \
11054
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12543
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11055
12544
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11056
12545
   -e 's:$: $lt_compiler_flag:'`
11057
 
   (eval echo "\"\$as_me:11057: $lt_compile\"" >&5)
 
12546
   (eval echo "\"\$as_me:12546: $lt_compile\"" >&5)
11058
12547
   (eval "$lt_compile" 2>out/conftest.err)
11059
12548
   ac_status=$?
11060
12549
   cat out/conftest.err >&5
11061
 
   echo "$as_me:11061: \$? = $ac_status" >&5
 
12550
   echo "$as_me:12550: \$? = $ac_status" >&5
11062
12551
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11063
12552
   then
11064
12553
     # The compiler can only warn and ignore the option if not recognized
11065
12554
     # So say no if there are warnings
11066
 
     if test ! -s out/conftest.err; then
 
12555
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12556
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12557
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11067
12558
       lt_cv_prog_compiler_c_o_CXX=yes
11068
12559
     fi
11069
12560
   fi
11070
 
   chmod u+w .
 
12561
   chmod u+w . 2>&5
11071
12562
   $rm conftest*
11072
12563
   # SGI C++ compiler will create directory out/ii_files/ for
11073
12564
   # template instantiation
11078
12569
   $rm conftest*
11079
12570
 
11080
12571
fi
11081
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11082
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12572
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12573
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11083
12574
 
11084
12575
 
11085
12576
hard_links="nottested"
11086
12577
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11087
12578
  # do not overwrite the value of need_locks provided by the user
11088
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11089
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12579
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12580
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11090
12581
  hard_links=yes
11091
12582
  $rm conftest*
11092
12583
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11093
12584
  touch conftest.a
11094
12585
  ln conftest.a conftest.b 2>&5 || hard_links=no
11095
12586
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11096
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11097
 
echo "${ECHO_T}$hard_links" >&6
 
12587
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12588
echo "${ECHO_T}$hard_links" >&6; }
11098
12589
  if test "$hard_links" = no; then
11099
12590
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11100
12591
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11104
12595
  need_locks=no
11105
12596
fi
11106
12597
 
11107
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11108
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12598
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12599
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11109
12600
 
11110
12601
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11111
12602
  case $host_os in
11122
12613
    export_symbols_cmds_CXX="$ltdll_cmds"
11123
12614
  ;;
11124
12615
  cygwin* | mingw*)
11125
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11126
 
  ;;
11127
 
  linux*)
11128
 
    link_all_deplibs_CXX=no
 
12616
    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'
11129
12617
  ;;
11130
12618
  *)
11131
12619
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11132
12620
  ;;
11133
12621
  esac
11134
12622
 
11135
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11136
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12623
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12624
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11137
12625
test "$ld_shlibs_CXX" = no && can_build_shared=no
11138
12626
 
11139
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11140
 
if test "$GCC" = yes; then
11141
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11142
 
fi
11143
 
 
11144
12627
#
11145
12628
# Do we need to explicitly link libc?
11146
12629
#
11158
12641
      # Test whether the compiler implicitly links with -lc since on some
11159
12642
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11160
12643
      # to ld, don't add -lc before -lgcc.
11161
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11162
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12644
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12645
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11163
12646
      $rm conftest*
11164
12647
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11165
12648
 
11173
12656
        libobjs=conftest.$ac_objext
11174
12657
        deplibs=
11175
12658
        wl=$lt_prog_compiler_wl_CXX
 
12659
        pic_flag=$lt_prog_compiler_pic_CXX
11176
12660
        compiler_flags=-v
11177
12661
        linker_flags=-v
11178
12662
        verstring=
11195
12679
        cat conftest.err 1>&5
11196
12680
      fi
11197
12681
      $rm conftest*
11198
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11199
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12682
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12683
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11200
12684
      ;;
11201
12685
    esac
11202
12686
  fi
11203
12687
  ;;
11204
12688
esac
11205
12689
 
11206
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11207
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12690
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12691
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11208
12692
library_names_spec=
11209
12693
libname_spec='lib$name'
11210
12694
soname_spec=
11305
12789
  shlibpath_var=LIBRARY_PATH
11306
12790
  ;;
11307
12791
 
11308
 
bsdi4*)
 
12792
bsdi[45]*)
11309
12793
  version_type=linux
11310
12794
  need_version=no
11311
12795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333
12817
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11334
12818
      dldir=$destdir/`dirname \$dlpath`~
11335
12819
      test -d \$dldir || mkdir -p \$dldir~
11336
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12820
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12821
      chmod a+x \$dldir/$dlname'
11337
12822
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11338
12823
      dlpath=$dir/\$dldll~
11339
12824
       $rm \$dlpath'
11363
12848
      ;;
11364
12849
    pw32*)
11365
12850
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11366
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12851
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11367
12852
      ;;
11368
12853
    esac
11369
12854
    ;;
11386
12871
  soname_spec='${libname}${release}${major}$shared_ext'
11387
12872
  shlibpath_overrides_runpath=yes
11388
12873
  shlibpath_var=DYLD_LIBRARY_PATH
11389
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12874
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11390
12875
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11391
12876
  if test "$GCC" = yes; then
11392
12877
    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"`
11421
12906
  dynamic_linker='GNU ld.so'
11422
12907
  ;;
11423
12908
 
11424
 
freebsd*)
11425
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12909
freebsd* | dragonfly*)
 
12910
  # DragonFly does not have aout.  When/if they implement a new
 
12911
  # versioning mechanism, adjust this.
 
12912
  if test -x /usr/bin/objformat; then
 
12913
    objformat=`/usr/bin/objformat`
 
12914
  else
 
12915
    case $host_os in
 
12916
    freebsd[123]*) objformat=aout ;;
 
12917
    *) objformat=elf ;;
 
12918
    esac
 
12919
  fi
11426
12920
  version_type=freebsd-$objformat
11427
12921
  case $version_type in
11428
12922
    freebsd-elf*)
11440
12934
  freebsd2*)
11441
12935
    shlibpath_overrides_runpath=yes
11442
12936
    ;;
11443
 
  freebsd3.01* | freebsdelf3.01*)
 
12937
  freebsd3.[01]* | freebsdelf3.[01]*)
11444
12938
    shlibpath_overrides_runpath=yes
11445
12939
    hardcode_into_libs=yes
11446
12940
    ;;
11447
 
  *) # from 3.2 on
 
12941
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12942
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11448
12943
    shlibpath_overrides_runpath=no
11449
12944
    hardcode_into_libs=yes
11450
12945
    ;;
 
12946
  freebsd*) # from 4.6 on
 
12947
    shlibpath_overrides_runpath=yes
 
12948
    hardcode_into_libs=yes
 
12949
    ;;
11451
12950
  esac
11452
12951
  ;;
11453
12952
 
11467
12966
  version_type=sunos
11468
12967
  need_lib_prefix=no
11469
12968
  need_version=no
11470
 
  case "$host_cpu" in
 
12969
  case $host_cpu in
11471
12970
  ia64*)
11472
12971
    shrext_cmds='.so'
11473
12972
    hardcode_into_libs=yes
11507
13006
  postinstall_cmds='chmod 555 $lib'
11508
13007
  ;;
11509
13008
 
 
13009
interix3*)
 
13010
  version_type=linux
 
13011
  need_lib_prefix=no
 
13012
  need_version=no
 
13013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13014
  soname_spec='${libname}${release}${shared_ext}$major'
 
13015
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13016
  shlibpath_var=LD_LIBRARY_PATH
 
13017
  shlibpath_overrides_runpath=no
 
13018
  hardcode_into_libs=yes
 
13019
  ;;
 
13020
 
11510
13021
irix5* | irix6* | nonstopux*)
11511
13022
  case $host_os in
11512
13023
    nonstopux*) version_type=nonstopux ;;
11564
13075
  # before this can be enabled.
11565
13076
  hardcode_into_libs=yes
11566
13077
 
 
13078
  # find out which ABI we are using
 
13079
  libsuff=
 
13080
  case "$host_cpu" in
 
13081
  x86_64*|s390x*|powerpc64*)
 
13082
    echo '#line 13082 "configure"' > conftest.$ac_ext
 
13083
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13084
  (eval $ac_compile) 2>&5
 
13085
  ac_status=$?
 
13086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13087
  (exit $ac_status); }; then
 
13088
      case `/usr/bin/file conftest.$ac_objext` in
 
13089
      *64-bit*)
 
13090
        libsuff=64
 
13091
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13092
        ;;
 
13093
      esac
 
13094
    fi
 
13095
    rm -rf conftest*
 
13096
    ;;
 
13097
  esac
 
13098
 
11567
13099
  # Append ld.so.conf contents to the search path
11568
13100
  if test -f /etc/ld.so.conf; then
11569
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11570
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13101
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13102
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11571
13103
  fi
11572
13104
 
11573
13105
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11628
13160
 
11629
13161
openbsd*)
11630
13162
  version_type=sunos
 
13163
  sys_lib_dlsearch_path_spec="/usr/lib"
11631
13164
  need_lib_prefix=no
11632
 
  need_version=yes
 
13165
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13166
  case $host_os in
 
13167
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13168
    *)                         need_version=no  ;;
 
13169
  esac
11633
13170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634
13171
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635
13172
  shlibpath_var=LD_LIBRARY_PATH
11667
13204
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11668
13205
  ;;
11669
13206
 
11670
 
sco3.2v5*)
11671
 
  version_type=osf
11672
 
  soname_spec='${libname}${release}${shared_ext}$major'
11673
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674
 
  shlibpath_var=LD_LIBRARY_PATH
11675
 
  ;;
11676
 
 
11677
13207
solaris*)
11678
13208
  version_type=linux
11679
13209
  need_lib_prefix=no
11699
13229
  need_version=yes
11700
13230
  ;;
11701
13231
 
11702
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13232
sysv4 | sysv4.3*)
11703
13233
  version_type=linux
11704
13234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705
13235
  soname_spec='${libname}${release}${shared_ext}$major'
11732
13262
  fi
11733
13263
  ;;
11734
13264
 
 
13265
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13266
  version_type=freebsd-elf
 
13267
  need_lib_prefix=no
 
13268
  need_version=no
 
13269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13270
  soname_spec='${libname}${release}${shared_ext}$major'
 
13271
  shlibpath_var=LD_LIBRARY_PATH
 
13272
  hardcode_into_libs=yes
 
13273
  if test "$with_gnu_ld" = yes; then
 
13274
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13275
    shlibpath_overrides_runpath=no
 
13276
  else
 
13277
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13278
    shlibpath_overrides_runpath=yes
 
13279
    case $host_os in
 
13280
      sco3.2v5*)
 
13281
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13282
        ;;
 
13283
    esac
 
13284
  fi
 
13285
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13286
  ;;
 
13287
 
11735
13288
uts4*)
11736
13289
  version_type=linux
11737
13290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743
13296
  dynamic_linker=no
11744
13297
  ;;
11745
13298
esac
11746
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11747
 
echo "${ECHO_T}$dynamic_linker" >&6
 
13299
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13300
echo "${ECHO_T}$dynamic_linker" >&6; }
11748
13301
test "$dynamic_linker" = no && can_build_shared=no
11749
13302
 
11750
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11751
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13303
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13304
if test "$GCC" = yes; then
 
13305
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13306
fi
 
13307
 
 
13308
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13309
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11752
13310
hardcode_action_CXX=
11753
13311
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11754
 
   test -n "$runpath_var CXX" || \
11755
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13312
   test -n "$runpath_var_CXX" || \
 
13313
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11756
13314
 
11757
13315
  # We can hardcode non-existant directories.
11758
13316
  if test "$hardcode_direct_CXX" != no &&
11772
13330
  # directories.
11773
13331
  hardcode_action_CXX=unsupported
11774
13332
fi
11775
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11776
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13333
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13334
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11777
13335
 
11778
13336
if test "$hardcode_action_CXX" = relink; then
11779
13337
  # Fast installation is not supported
11784
13342
  enable_fast_install=needless
11785
13343
fi
11786
13344
 
11787
 
striplib=
11788
 
old_striplib=
11789
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11790
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11791
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11792
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11793
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11794
 
  echo "$as_me:$LINENO: result: yes" >&5
11795
 
echo "${ECHO_T}yes" >&6
11796
 
else
11797
 
# FIXME - insert some real tests, host_os isn't really good enough
11798
 
  case $host_os in
11799
 
   darwin*)
11800
 
       if test -n "$STRIP" ; then
11801
 
         striplib="$STRIP -x"
11802
 
         echo "$as_me:$LINENO: result: yes" >&5
11803
 
echo "${ECHO_T}yes" >&6
11804
 
       else
11805
 
  echo "$as_me:$LINENO: result: no" >&5
11806
 
echo "${ECHO_T}no" >&6
11807
 
fi
11808
 
       ;;
11809
 
   *)
11810
 
  echo "$as_me:$LINENO: result: no" >&5
11811
 
echo "${ECHO_T}no" >&6
11812
 
    ;;
11813
 
  esac
11814
 
fi
11815
 
 
11816
 
if test "x$enable_dlopen" != xyes; then
11817
 
  enable_dlopen=unknown
11818
 
  enable_dlopen_self=unknown
11819
 
  enable_dlopen_self_static=unknown
11820
 
else
11821
 
  lt_cv_dlopen=no
11822
 
  lt_cv_dlopen_libs=
11823
 
 
11824
 
  case $host_os in
11825
 
  beos*)
11826
 
    lt_cv_dlopen="load_add_on"
11827
 
    lt_cv_dlopen_libs=
11828
 
    lt_cv_dlopen_self=yes
11829
 
    ;;
11830
 
 
11831
 
  mingw* | pw32*)
11832
 
    lt_cv_dlopen="LoadLibrary"
11833
 
    lt_cv_dlopen_libs=
11834
 
   ;;
11835
 
 
11836
 
  cygwin*)
11837
 
    lt_cv_dlopen="dlopen"
11838
 
    lt_cv_dlopen_libs=
11839
 
   ;;
11840
 
 
11841
 
  darwin*)
11842
 
  # if libdl is installed we need to link against it
11843
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11844
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11845
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11847
 
else
11848
 
  ac_check_lib_save_LIBS=$LIBS
11849
 
LIBS="-ldl  $LIBS"
11850
 
cat >conftest.$ac_ext <<_ACEOF
11851
 
/* confdefs.h.  */
11852
 
_ACEOF
11853
 
cat confdefs.h >>conftest.$ac_ext
11854
 
cat >>conftest.$ac_ext <<_ACEOF
11855
 
/* end confdefs.h.  */
11856
 
 
11857
 
/* Override any gcc2 internal prototype to avoid an error.  */
11858
 
#ifdef __cplusplus
11859
 
extern "C"
11860
 
#endif
11861
 
/* We use char because int might match the return type of a gcc2
11862
 
   builtin and then its argument prototype would still apply.  */
11863
 
char dlopen ();
11864
 
int
11865
 
main ()
11866
 
{
11867
 
dlopen ();
11868
 
  ;
11869
 
  return 0;
11870
 
}
11871
 
_ACEOF
11872
 
rm -f conftest.$ac_objext conftest$ac_exeext
11873
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874
 
  (eval $ac_link) 2>conftest.er1
11875
 
  ac_status=$?
11876
 
  grep -v '^ *+' conftest.er1 >conftest.err
11877
 
  rm -f conftest.er1
11878
 
  cat conftest.err >&5
11879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880
 
  (exit $ac_status); } &&
11881
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883
 
  (eval $ac_try) 2>&5
11884
 
  ac_status=$?
11885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
 
  (exit $ac_status); }; } &&
11887
 
         { ac_try='test -s conftest$ac_exeext'
11888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889
 
  (eval $ac_try) 2>&5
11890
 
  ac_status=$?
11891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
 
  (exit $ac_status); }; }; then
11893
 
  ac_cv_lib_dl_dlopen=yes
11894
 
else
11895
 
  echo "$as_me: failed program was:" >&5
11896
 
sed 's/^/| /' conftest.$ac_ext >&5
11897
 
 
11898
 
ac_cv_lib_dl_dlopen=no
11899
 
fi
11900
 
rm -f conftest.err conftest.$ac_objext \
11901
 
      conftest$ac_exeext conftest.$ac_ext
11902
 
LIBS=$ac_check_lib_save_LIBS
11903
 
fi
11904
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11905
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11906
 
if test $ac_cv_lib_dl_dlopen = yes; then
11907
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11908
 
else
11909
 
 
11910
 
    lt_cv_dlopen="dyld"
11911
 
    lt_cv_dlopen_libs=
11912
 
    lt_cv_dlopen_self=yes
11913
 
 
11914
 
fi
11915
 
 
11916
 
   ;;
11917
 
 
11918
 
  *)
11919
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11920
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11921
 
if test "${ac_cv_func_shl_load+set}" = set; then
11922
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11923
 
else
11924
 
  cat >conftest.$ac_ext <<_ACEOF
11925
 
/* confdefs.h.  */
11926
 
_ACEOF
11927
 
cat confdefs.h >>conftest.$ac_ext
11928
 
cat >>conftest.$ac_ext <<_ACEOF
11929
 
/* end confdefs.h.  */
11930
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11931
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11932
 
#define shl_load innocuous_shl_load
11933
 
 
11934
 
/* System header to define __stub macros and hopefully few prototypes,
11935
 
    which can conflict with char shl_load (); below.
11936
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937
 
    <limits.h> exists even on freestanding compilers.  */
11938
 
 
11939
 
#ifdef __STDC__
11940
 
# include <limits.h>
11941
 
#else
11942
 
# include <assert.h>
11943
 
#endif
11944
 
 
11945
 
#undef shl_load
11946
 
 
11947
 
/* Override any gcc2 internal prototype to avoid an error.  */
11948
 
#ifdef __cplusplus
11949
 
extern "C"
11950
 
{
11951
 
#endif
11952
 
/* We use char because int might match the return type of a gcc2
11953
 
   builtin and then its argument prototype would still apply.  */
11954
 
char shl_load ();
11955
 
/* The GNU C library defines this for functions which it implements
11956
 
    to always fail with ENOSYS.  Some functions are actually named
11957
 
    something starting with __ and the normal name is an alias.  */
11958
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11959
 
choke me
11960
 
#else
11961
 
char (*f) () = shl_load;
11962
 
#endif
11963
 
#ifdef __cplusplus
11964
 
}
11965
 
#endif
11966
 
 
11967
 
int
11968
 
main ()
11969
 
{
11970
 
return f != shl_load;
11971
 
  ;
11972
 
  return 0;
11973
 
}
11974
 
_ACEOF
11975
 
rm -f conftest.$ac_objext conftest$ac_exeext
11976
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977
 
  (eval $ac_link) 2>conftest.er1
11978
 
  ac_status=$?
11979
 
  grep -v '^ *+' conftest.er1 >conftest.err
11980
 
  rm -f conftest.er1
11981
 
  cat conftest.err >&5
11982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
 
  (exit $ac_status); } &&
11984
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986
 
  (eval $ac_try) 2>&5
11987
 
  ac_status=$?
11988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989
 
  (exit $ac_status); }; } &&
11990
 
         { ac_try='test -s conftest$ac_exeext'
11991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992
 
  (eval $ac_try) 2>&5
11993
 
  ac_status=$?
11994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995
 
  (exit $ac_status); }; }; then
11996
 
  ac_cv_func_shl_load=yes
11997
 
else
11998
 
  echo "$as_me: failed program was:" >&5
11999
 
sed 's/^/| /' conftest.$ac_ext >&5
12000
 
 
12001
 
ac_cv_func_shl_load=no
12002
 
fi
12003
 
rm -f conftest.err conftest.$ac_objext \
12004
 
      conftest$ac_exeext conftest.$ac_ext
12005
 
fi
12006
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12007
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12008
 
if test $ac_cv_func_shl_load = yes; then
12009
 
  lt_cv_dlopen="shl_load"
12010
 
else
12011
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12012
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12013
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12014
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12015
 
else
12016
 
  ac_check_lib_save_LIBS=$LIBS
12017
 
LIBS="-ldld  $LIBS"
12018
 
cat >conftest.$ac_ext <<_ACEOF
12019
 
/* confdefs.h.  */
12020
 
_ACEOF
12021
 
cat confdefs.h >>conftest.$ac_ext
12022
 
cat >>conftest.$ac_ext <<_ACEOF
12023
 
/* end confdefs.h.  */
12024
 
 
12025
 
/* Override any gcc2 internal prototype to avoid an error.  */
12026
 
#ifdef __cplusplus
12027
 
extern "C"
12028
 
#endif
12029
 
/* We use char because int might match the return type of a gcc2
12030
 
   builtin and then its argument prototype would still apply.  */
12031
 
char shl_load ();
12032
 
int
12033
 
main ()
12034
 
{
12035
 
shl_load ();
12036
 
  ;
12037
 
  return 0;
12038
 
}
12039
 
_ACEOF
12040
 
rm -f conftest.$ac_objext conftest$ac_exeext
12041
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042
 
  (eval $ac_link) 2>conftest.er1
12043
 
  ac_status=$?
12044
 
  grep -v '^ *+' conftest.er1 >conftest.err
12045
 
  rm -f conftest.er1
12046
 
  cat conftest.err >&5
12047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048
 
  (exit $ac_status); } &&
12049
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12050
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051
 
  (eval $ac_try) 2>&5
12052
 
  ac_status=$?
12053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054
 
  (exit $ac_status); }; } &&
12055
 
         { ac_try='test -s conftest$ac_exeext'
12056
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057
 
  (eval $ac_try) 2>&5
12058
 
  ac_status=$?
12059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
 
  (exit $ac_status); }; }; then
12061
 
  ac_cv_lib_dld_shl_load=yes
12062
 
else
12063
 
  echo "$as_me: failed program was:" >&5
12064
 
sed 's/^/| /' conftest.$ac_ext >&5
12065
 
 
12066
 
ac_cv_lib_dld_shl_load=no
12067
 
fi
12068
 
rm -f conftest.err conftest.$ac_objext \
12069
 
      conftest$ac_exeext conftest.$ac_ext
12070
 
LIBS=$ac_check_lib_save_LIBS
12071
 
fi
12072
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12073
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12074
 
if test $ac_cv_lib_dld_shl_load = yes; then
12075
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12076
 
else
12077
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12078
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12079
 
if test "${ac_cv_func_dlopen+set}" = set; then
12080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12081
 
else
12082
 
  cat >conftest.$ac_ext <<_ACEOF
12083
 
/* confdefs.h.  */
12084
 
_ACEOF
12085
 
cat confdefs.h >>conftest.$ac_ext
12086
 
cat >>conftest.$ac_ext <<_ACEOF
12087
 
/* end confdefs.h.  */
12088
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12089
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12090
 
#define dlopen innocuous_dlopen
12091
 
 
12092
 
/* System header to define __stub macros and hopefully few prototypes,
12093
 
    which can conflict with char dlopen (); below.
12094
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095
 
    <limits.h> exists even on freestanding compilers.  */
12096
 
 
12097
 
#ifdef __STDC__
12098
 
# include <limits.h>
12099
 
#else
12100
 
# include <assert.h>
12101
 
#endif
12102
 
 
12103
 
#undef dlopen
12104
 
 
12105
 
/* Override any gcc2 internal prototype to avoid an error.  */
12106
 
#ifdef __cplusplus
12107
 
extern "C"
12108
 
{
12109
 
#endif
12110
 
/* We use char because int might match the return type of a gcc2
12111
 
   builtin and then its argument prototype would still apply.  */
12112
 
char dlopen ();
12113
 
/* The GNU C library defines this for functions which it implements
12114
 
    to always fail with ENOSYS.  Some functions are actually named
12115
 
    something starting with __ and the normal name is an alias.  */
12116
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12117
 
choke me
12118
 
#else
12119
 
char (*f) () = dlopen;
12120
 
#endif
12121
 
#ifdef __cplusplus
12122
 
}
12123
 
#endif
12124
 
 
12125
 
int
12126
 
main ()
12127
 
{
12128
 
return f != dlopen;
12129
 
  ;
12130
 
  return 0;
12131
 
}
12132
 
_ACEOF
12133
 
rm -f conftest.$ac_objext conftest$ac_exeext
12134
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135
 
  (eval $ac_link) 2>conftest.er1
12136
 
  ac_status=$?
12137
 
  grep -v '^ *+' conftest.er1 >conftest.err
12138
 
  rm -f conftest.er1
12139
 
  cat conftest.err >&5
12140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141
 
  (exit $ac_status); } &&
12142
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12143
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144
 
  (eval $ac_try) 2>&5
12145
 
  ac_status=$?
12146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147
 
  (exit $ac_status); }; } &&
12148
 
         { ac_try='test -s conftest$ac_exeext'
12149
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150
 
  (eval $ac_try) 2>&5
12151
 
  ac_status=$?
12152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
 
  (exit $ac_status); }; }; then
12154
 
  ac_cv_func_dlopen=yes
12155
 
else
12156
 
  echo "$as_me: failed program was:" >&5
12157
 
sed 's/^/| /' conftest.$ac_ext >&5
12158
 
 
12159
 
ac_cv_func_dlopen=no
12160
 
fi
12161
 
rm -f conftest.err conftest.$ac_objext \
12162
 
      conftest$ac_exeext conftest.$ac_ext
12163
 
fi
12164
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12165
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12166
 
if test $ac_cv_func_dlopen = yes; then
12167
 
  lt_cv_dlopen="dlopen"
12168
 
else
12169
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12170
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12171
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12172
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12173
 
else
12174
 
  ac_check_lib_save_LIBS=$LIBS
12175
 
LIBS="-ldl  $LIBS"
12176
 
cat >conftest.$ac_ext <<_ACEOF
12177
 
/* confdefs.h.  */
12178
 
_ACEOF
12179
 
cat confdefs.h >>conftest.$ac_ext
12180
 
cat >>conftest.$ac_ext <<_ACEOF
12181
 
/* end confdefs.h.  */
12182
 
 
12183
 
/* Override any gcc2 internal prototype to avoid an error.  */
12184
 
#ifdef __cplusplus
12185
 
extern "C"
12186
 
#endif
12187
 
/* We use char because int might match the return type of a gcc2
12188
 
   builtin and then its argument prototype would still apply.  */
12189
 
char dlopen ();
12190
 
int
12191
 
main ()
12192
 
{
12193
 
dlopen ();
12194
 
  ;
12195
 
  return 0;
12196
 
}
12197
 
_ACEOF
12198
 
rm -f conftest.$ac_objext conftest$ac_exeext
12199
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200
 
  (eval $ac_link) 2>conftest.er1
12201
 
  ac_status=$?
12202
 
  grep -v '^ *+' conftest.er1 >conftest.err
12203
 
  rm -f conftest.er1
12204
 
  cat conftest.err >&5
12205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206
 
  (exit $ac_status); } &&
12207
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12208
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209
 
  (eval $ac_try) 2>&5
12210
 
  ac_status=$?
12211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
 
  (exit $ac_status); }; } &&
12213
 
         { ac_try='test -s conftest$ac_exeext'
12214
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215
 
  (eval $ac_try) 2>&5
12216
 
  ac_status=$?
12217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218
 
  (exit $ac_status); }; }; then
12219
 
  ac_cv_lib_dl_dlopen=yes
12220
 
else
12221
 
  echo "$as_me: failed program was:" >&5
12222
 
sed 's/^/| /' conftest.$ac_ext >&5
12223
 
 
12224
 
ac_cv_lib_dl_dlopen=no
12225
 
fi
12226
 
rm -f conftest.err conftest.$ac_objext \
12227
 
      conftest$ac_exeext conftest.$ac_ext
12228
 
LIBS=$ac_check_lib_save_LIBS
12229
 
fi
12230
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12231
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12232
 
if test $ac_cv_lib_dl_dlopen = yes; then
12233
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12234
 
else
12235
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12236
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12237
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12238
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12239
 
else
12240
 
  ac_check_lib_save_LIBS=$LIBS
12241
 
LIBS="-lsvld  $LIBS"
12242
 
cat >conftest.$ac_ext <<_ACEOF
12243
 
/* confdefs.h.  */
12244
 
_ACEOF
12245
 
cat confdefs.h >>conftest.$ac_ext
12246
 
cat >>conftest.$ac_ext <<_ACEOF
12247
 
/* end confdefs.h.  */
12248
 
 
12249
 
/* Override any gcc2 internal prototype to avoid an error.  */
12250
 
#ifdef __cplusplus
12251
 
extern "C"
12252
 
#endif
12253
 
/* We use char because int might match the return type of a gcc2
12254
 
   builtin and then its argument prototype would still apply.  */
12255
 
char dlopen ();
12256
 
int
12257
 
main ()
12258
 
{
12259
 
dlopen ();
12260
 
  ;
12261
 
  return 0;
12262
 
}
12263
 
_ACEOF
12264
 
rm -f conftest.$ac_objext conftest$ac_exeext
12265
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266
 
  (eval $ac_link) 2>conftest.er1
12267
 
  ac_status=$?
12268
 
  grep -v '^ *+' conftest.er1 >conftest.err
12269
 
  rm -f conftest.er1
12270
 
  cat conftest.err >&5
12271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272
 
  (exit $ac_status); } &&
12273
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275
 
  (eval $ac_try) 2>&5
12276
 
  ac_status=$?
12277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
 
  (exit $ac_status); }; } &&
12279
 
         { ac_try='test -s conftest$ac_exeext'
12280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281
 
  (eval $ac_try) 2>&5
12282
 
  ac_status=$?
12283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284
 
  (exit $ac_status); }; }; then
12285
 
  ac_cv_lib_svld_dlopen=yes
12286
 
else
12287
 
  echo "$as_me: failed program was:" >&5
12288
 
sed 's/^/| /' conftest.$ac_ext >&5
12289
 
 
12290
 
ac_cv_lib_svld_dlopen=no
12291
 
fi
12292
 
rm -f conftest.err conftest.$ac_objext \
12293
 
      conftest$ac_exeext conftest.$ac_ext
12294
 
LIBS=$ac_check_lib_save_LIBS
12295
 
fi
12296
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12297
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12298
 
if test $ac_cv_lib_svld_dlopen = yes; then
12299
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12300
 
else
12301
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12302
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12303
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12305
 
else
12306
 
  ac_check_lib_save_LIBS=$LIBS
12307
 
LIBS="-ldld  $LIBS"
12308
 
cat >conftest.$ac_ext <<_ACEOF
12309
 
/* confdefs.h.  */
12310
 
_ACEOF
12311
 
cat confdefs.h >>conftest.$ac_ext
12312
 
cat >>conftest.$ac_ext <<_ACEOF
12313
 
/* end confdefs.h.  */
12314
 
 
12315
 
/* Override any gcc2 internal prototype to avoid an error.  */
12316
 
#ifdef __cplusplus
12317
 
extern "C"
12318
 
#endif
12319
 
/* We use char because int might match the return type of a gcc2
12320
 
   builtin and then its argument prototype would still apply.  */
12321
 
char dld_link ();
12322
 
int
12323
 
main ()
12324
 
{
12325
 
dld_link ();
12326
 
  ;
12327
 
  return 0;
12328
 
}
12329
 
_ACEOF
12330
 
rm -f conftest.$ac_objext conftest$ac_exeext
12331
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332
 
  (eval $ac_link) 2>conftest.er1
12333
 
  ac_status=$?
12334
 
  grep -v '^ *+' conftest.er1 >conftest.err
12335
 
  rm -f conftest.er1
12336
 
  cat conftest.err >&5
12337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338
 
  (exit $ac_status); } &&
12339
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12340
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341
 
  (eval $ac_try) 2>&5
12342
 
  ac_status=$?
12343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
 
  (exit $ac_status); }; } &&
12345
 
         { ac_try='test -s conftest$ac_exeext'
12346
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347
 
  (eval $ac_try) 2>&5
12348
 
  ac_status=$?
12349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350
 
  (exit $ac_status); }; }; then
12351
 
  ac_cv_lib_dld_dld_link=yes
12352
 
else
12353
 
  echo "$as_me: failed program was:" >&5
12354
 
sed 's/^/| /' conftest.$ac_ext >&5
12355
 
 
12356
 
ac_cv_lib_dld_dld_link=no
12357
 
fi
12358
 
rm -f conftest.err conftest.$ac_objext \
12359
 
      conftest$ac_exeext conftest.$ac_ext
12360
 
LIBS=$ac_check_lib_save_LIBS
12361
 
fi
12362
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12363
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12364
 
if test $ac_cv_lib_dld_dld_link = yes; then
12365
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12366
 
fi
12367
 
 
12368
 
 
12369
 
fi
12370
 
 
12371
 
 
12372
 
fi
12373
 
 
12374
 
 
12375
 
fi
12376
 
 
12377
 
 
12378
 
fi
12379
 
 
12380
 
 
12381
 
fi
12382
 
 
12383
 
    ;;
12384
 
  esac
12385
 
 
12386
 
  if test "x$lt_cv_dlopen" != xno; then
12387
 
    enable_dlopen=yes
12388
 
  else
12389
 
    enable_dlopen=no
12390
 
  fi
12391
 
 
12392
 
  case $lt_cv_dlopen in
12393
 
  dlopen)
12394
 
    save_CPPFLAGS="$CPPFLAGS"
12395
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12396
 
 
12397
 
    save_LDFLAGS="$LDFLAGS"
12398
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12399
 
 
12400
 
    save_LIBS="$LIBS"
12401
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12402
 
 
12403
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12404
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12405
 
if test "${lt_cv_dlopen_self+set}" = set; then
12406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12407
 
else
12408
 
          if test "$cross_compiling" = yes; then :
12409
 
  lt_cv_dlopen_self=cross
12410
 
else
12411
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412
 
  lt_status=$lt_dlunknown
12413
 
  cat > conftest.$ac_ext <<EOF
12414
 
#line 12414 "configure"
12415
 
#include "confdefs.h"
12416
 
 
12417
 
#if HAVE_DLFCN_H
12418
 
#include <dlfcn.h>
12419
 
#endif
12420
 
 
12421
 
#include <stdio.h>
12422
 
 
12423
 
#ifdef RTLD_GLOBAL
12424
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12425
 
#else
12426
 
#  ifdef DL_GLOBAL
12427
 
#    define LT_DLGLOBAL         DL_GLOBAL
12428
 
#  else
12429
 
#    define LT_DLGLOBAL         0
12430
 
#  endif
12431
 
#endif
12432
 
 
12433
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434
 
   find out it does not work in some platform. */
12435
 
#ifndef LT_DLLAZY_OR_NOW
12436
 
#  ifdef RTLD_LAZY
12437
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12438
 
#  else
12439
 
#    ifdef DL_LAZY
12440
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12441
 
#    else
12442
 
#      ifdef RTLD_NOW
12443
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12444
 
#      else
12445
 
#        ifdef DL_NOW
12446
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12447
 
#        else
12448
 
#          define LT_DLLAZY_OR_NOW      0
12449
 
#        endif
12450
 
#      endif
12451
 
#    endif
12452
 
#  endif
12453
 
#endif
12454
 
 
12455
 
#ifdef __cplusplus
12456
 
extern "C" void exit (int);
12457
 
#endif
12458
 
 
12459
 
void fnord() { int i=42;}
12460
 
int main ()
12461
 
{
12462
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12463
 
  int status = $lt_dlunknown;
12464
 
 
12465
 
  if (self)
12466
 
    {
12467
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12468
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12469
 
      /* dlclose (self); */
12470
 
    }
12471
 
 
12472
 
    exit (status);
12473
 
}
12474
 
EOF
12475
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476
 
  (eval $ac_link) 2>&5
12477
 
  ac_status=$?
12478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12480
 
    (./conftest; exit; ) 2>/dev/null
12481
 
    lt_status=$?
12482
 
    case x$lt_status in
12483
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12484
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12485
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12486
 
    esac
12487
 
  else :
12488
 
    # compilation failed
12489
 
    lt_cv_dlopen_self=no
12490
 
  fi
12491
 
fi
12492
 
rm -fr conftest*
12493
 
 
12494
 
 
12495
 
fi
12496
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12497
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12498
 
 
12499
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12500
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12501
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12502
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12503
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12504
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12505
 
else
12506
 
          if test "$cross_compiling" = yes; then :
12507
 
  lt_cv_dlopen_self_static=cross
12508
 
else
12509
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12510
 
  lt_status=$lt_dlunknown
12511
 
  cat > conftest.$ac_ext <<EOF
12512
 
#line 12512 "configure"
12513
 
#include "confdefs.h"
12514
 
 
12515
 
#if HAVE_DLFCN_H
12516
 
#include <dlfcn.h>
12517
 
#endif
12518
 
 
12519
 
#include <stdio.h>
12520
 
 
12521
 
#ifdef RTLD_GLOBAL
12522
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12523
 
#else
12524
 
#  ifdef DL_GLOBAL
12525
 
#    define LT_DLGLOBAL         DL_GLOBAL
12526
 
#  else
12527
 
#    define LT_DLGLOBAL         0
12528
 
#  endif
12529
 
#endif
12530
 
 
12531
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12532
 
   find out it does not work in some platform. */
12533
 
#ifndef LT_DLLAZY_OR_NOW
12534
 
#  ifdef RTLD_LAZY
12535
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12536
 
#  else
12537
 
#    ifdef DL_LAZY
12538
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12539
 
#    else
12540
 
#      ifdef RTLD_NOW
12541
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12542
 
#      else
12543
 
#        ifdef DL_NOW
12544
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12545
 
#        else
12546
 
#          define LT_DLLAZY_OR_NOW      0
12547
 
#        endif
12548
 
#      endif
12549
 
#    endif
12550
 
#  endif
12551
 
#endif
12552
 
 
12553
 
#ifdef __cplusplus
12554
 
extern "C" void exit (int);
12555
 
#endif
12556
 
 
12557
 
void fnord() { int i=42;}
12558
 
int main ()
12559
 
{
12560
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12561
 
  int status = $lt_dlunknown;
12562
 
 
12563
 
  if (self)
12564
 
    {
12565
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12566
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12567
 
      /* dlclose (self); */
12568
 
    }
12569
 
 
12570
 
    exit (status);
12571
 
}
12572
 
EOF
12573
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574
 
  (eval $ac_link) 2>&5
12575
 
  ac_status=$?
12576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12578
 
    (./conftest; exit; ) 2>/dev/null
12579
 
    lt_status=$?
12580
 
    case x$lt_status in
12581
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12582
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12583
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12584
 
    esac
12585
 
  else :
12586
 
    # compilation failed
12587
 
    lt_cv_dlopen_self_static=no
12588
 
  fi
12589
 
fi
12590
 
rm -fr conftest*
12591
 
 
12592
 
 
12593
 
fi
12594
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12595
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12596
 
    fi
12597
 
 
12598
 
    CPPFLAGS="$save_CPPFLAGS"
12599
 
    LDFLAGS="$save_LDFLAGS"
12600
 
    LIBS="$save_LIBS"
12601
 
    ;;
12602
 
  esac
12603
 
 
12604
 
  case $lt_cv_dlopen_self in
12605
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12606
 
  *) enable_dlopen_self=unknown ;;
12607
 
  esac
12608
 
 
12609
 
  case $lt_cv_dlopen_self_static in
12610
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12611
 
  *) enable_dlopen_self_static=unknown ;;
12612
 
  esac
12613
 
fi
12614
 
 
12615
13345
 
12616
13346
# The else clause should only fire when bootstrapping the
12617
13347
# libtool distribution, otherwise you forgot to ship ltmain.sh
12626
13356
  # Now quote all the things that may contain metacharacters while being
12627
13357
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12628
13358
  # variables and quote the copies for generation of the libtool script.
12629
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13359
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12630
13360
    SED SHELL STRIP \
12631
13361
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12632
13362
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12727
13457
# The host system.
12728
13458
host_alias=$host_alias
12729
13459
host=$host
 
13460
host_os=$host_os
 
13461
 
 
13462
# The build system.
 
13463
build_alias=$build_alias
 
13464
build=$build
 
13465
build_os=$build_os
12730
13466
 
12731
13467
# An echo program that does not interpret backslashes.
12732
13468
echo=$lt_echo
12738
13474
# A C compiler.
12739
13475
LTCC=$lt_LTCC
12740
13476
 
 
13477
# LTCC compiler flags.
 
13478
LTCFLAGS=$lt_LTCFLAGS
 
13479
 
12741
13480
# A language-specific compiler.
12742
13481
CC=$lt_compiler_CXX
12743
13482
 
12744
13483
# Is the compiler the GNU C compiler?
12745
13484
with_gcc=$GCC_CXX
12746
13485
 
 
13486
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
13487
gcc_ver=\`gcc -dumpversion\`
 
13488
 
12747
13489
# An ERE matcher.
12748
13490
EGREP=$lt_EGREP
12749
13491
 
12803
13545
# Does compiler simultaneously support -c and -o options?
12804
13546
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12805
13547
 
12806
 
# Must we lock files when doing compilation ?
 
13548
# Must we lock files when doing compilation?
12807
13549
need_locks=$lt_need_locks
12808
13550
 
12809
13551
# Do we need the lib prefix for modules?
12877
13619
 
12878
13620
# Dependencies to place before the objects being linked to create a
12879
13621
# shared library.
12880
 
predep_objects=$lt_predep_objects_CXX
 
13622
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12881
13623
 
12882
13624
# Dependencies to place after the objects being linked to create a
12883
13625
# shared library.
12884
 
postdep_objects=$lt_postdep_objects_CXX
 
13626
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12885
13627
 
12886
13628
# Dependencies to place before the objects being linked to create a
12887
13629
# shared library.
12893
13635
 
12894
13636
# The library search path used internally by the compiler when linking
12895
13637
# a shared library.
12896
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13638
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12897
13639
 
12898
13640
# Method to check whether dependent libraries are shared objects.
12899
13641
deplibs_check_method=$lt_deplibs_check_method
12973
13715
link_all_deplibs=$link_all_deplibs_CXX
12974
13716
 
12975
13717
# Compile-time system search path for libraries
12976
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13718
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12977
13719
 
12978
13720
# Run-time system search path for libraries
12979
13721
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13080
13822
# If no C compiler was specified, use CC.
13081
13823
LTCC=${LTCC-"$CC"}
13082
13824
 
 
13825
# If no C compiler flags were specified, use CFLAGS.
 
13826
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13827
 
13083
13828
# Allow CC to be a program name with arguments.
13084
13829
compiler=$CC
13085
13830
 
13086
13831
 
 
13832
# save warnings/boilerplate of simple test code
 
13833
ac_outfile=conftest.$ac_objext
 
13834
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13835
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13836
_lt_compiler_boilerplate=`cat conftest.err`
 
13837
$rm conftest*
 
13838
 
 
13839
ac_outfile=conftest.$ac_objext
 
13840
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13841
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13842
_lt_linker_boilerplate=`cat conftest.err`
 
13843
$rm conftest*
 
13844
 
 
13845
 
13087
13846
# Allow CC to be a program name with arguments.
13088
13847
lt_save_CC="$CC"
13089
13848
CC=${F77-"f77"}
13090
13849
compiler=$CC
13091
13850
compiler_F77=$CC
13092
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13093
 
 
13094
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13095
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13096
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13097
 
echo "${ECHO_T}$can_build_shared" >&6
13098
 
 
13099
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13100
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13851
for cc_temp in $compiler""; do
 
13852
  case $cc_temp in
 
13853
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13854
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13855
    \-*) ;;
 
13856
    *) break;;
 
13857
  esac
 
13858
done
 
13859
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13860
 
 
13861
 
 
13862
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13863
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13864
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13865
echo "${ECHO_T}$can_build_shared" >&6; }
 
13866
 
 
13867
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13868
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13101
13869
test "$can_build_shared" = "no" && enable_shared=no
13102
13870
 
13103
13871
# On AIX, shared libraries and static libraries use the same namespace, and
13104
13872
# are all built from PIC.
13105
 
case "$host_os" in
 
13873
case $host_os in
13106
13874
aix3*)
13107
13875
  test "$enable_shared" = yes && enable_static=no
13108
13876
  if test -n "$RANLIB"; then
13111
13879
  fi
13112
13880
  ;;
13113
13881
aix4* | aix5*)
13114
 
  test "$enable_shared" = yes && enable_static=no
 
13882
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13883
    test "$enable_shared" = yes && enable_static=no
 
13884
  fi
13115
13885
  ;;
13116
13886
esac
13117
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13118
 
echo "${ECHO_T}$enable_shared" >&6
 
13887
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13888
echo "${ECHO_T}$enable_shared" >&6; }
13119
13889
 
13120
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13121
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13890
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13891
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13122
13892
# Make sure either enable_shared or enable_static is yes.
13123
13893
test "$enable_shared" = yes || enable_static=yes
13124
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13125
 
echo "${ECHO_T}$enable_static" >&6
13126
 
 
13127
 
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13894
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13895
echo "${ECHO_T}$enable_static" >&6; }
13128
13896
 
13129
13897
GCC_F77="$G77"
13130
13898
LD_F77="$LD"
13133
13901
lt_prog_compiler_pic_F77=
13134
13902
lt_prog_compiler_static_F77=
13135
13903
 
13136
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13137
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13904
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13905
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13138
13906
 
13139
13907
  if test "$GCC" = yes; then
13140
13908
    lt_prog_compiler_wl_F77='-Wl,'
13172
13940
      lt_prog_compiler_pic_F77='-fno-common'
13173
13941
      ;;
13174
13942
 
 
13943
    interix3*)
 
13944
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13945
      # Instead, we relocate shared libraries at runtime.
 
13946
      ;;
 
13947
 
13175
13948
    msdosdjgpp*)
13176
13949
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13177
13950
      # on systems that don't support them.
13188
13961
    hpux*)
13189
13962
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13190
13963
      # not for PA HP-UX.
13191
 
      case "$host_cpu" in
 
13964
      case $host_cpu in
13192
13965
      hppa*64*|ia64*)
13193
13966
        # +Z the default
13194
13967
        ;;
13214
13987
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13215
13988
      fi
13216
13989
      ;;
 
13990
      darwin*)
 
13991
        # PIC is the default on this platform
 
13992
        # Common symbols not allowed in MH_DYLIB files
 
13993
       case $cc_basename in
 
13994
         xlc*)
 
13995
         lt_prog_compiler_pic_F77='-qnocommon'
 
13996
         lt_prog_compiler_wl_F77='-Wl,'
 
13997
         ;;
 
13998
       esac
 
13999
       ;;
13217
14000
 
13218
14001
    mingw* | pw32* | os2*)
13219
14002
      # This hack is so that the source file can tell whether it is being
13225
14008
      lt_prog_compiler_wl_F77='-Wl,'
13226
14009
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13227
14010
      # not for PA HP-UX.
13228
 
      case "$host_cpu" in
 
14011
      case $host_cpu in
13229
14012
      hppa*64*|ia64*)
13230
14013
        # +Z the default
13231
14014
        ;;
13249
14032
      ;;
13250
14033
 
13251
14034
    linux*)
13252
 
      case $CC in
 
14035
      case $cc_basename in
13253
14036
      icc* | ecc*)
13254
14037
        lt_prog_compiler_wl_F77='-Wl,'
13255
14038
        lt_prog_compiler_pic_F77='-KPIC'
13256
14039
        lt_prog_compiler_static_F77='-static'
13257
14040
        ;;
 
14041
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14042
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14043
        # which looks to be a dead project)
 
14044
        lt_prog_compiler_wl_F77='-Wl,'
 
14045
        lt_prog_compiler_pic_F77='-fpic'
 
14046
        lt_prog_compiler_static_F77='-Bstatic'
 
14047
        ;;
13258
14048
      ccc*)
13259
14049
        lt_prog_compiler_wl_F77='-Wl,'
13260
14050
        # All Alpha code is PIC.
13269
14059
      lt_prog_compiler_static_F77='-non_shared'
13270
14060
      ;;
13271
14061
 
13272
 
    sco3.2v5*)
13273
 
      lt_prog_compiler_pic_F77='-Kpic'
13274
 
      lt_prog_compiler_static_F77='-dn'
13275
 
      ;;
13276
 
 
13277
14062
    solaris*)
13278
 
      lt_prog_compiler_wl_F77='-Wl,'
13279
14063
      lt_prog_compiler_pic_F77='-KPIC'
13280
14064
      lt_prog_compiler_static_F77='-Bstatic'
 
14065
      case $cc_basename in
 
14066
      f77* | f90* | f95*)
 
14067
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14068
      *)
 
14069
        lt_prog_compiler_wl_F77='-Wl,';;
 
14070
      esac
13281
14071
      ;;
13282
14072
 
13283
14073
    sunos4*)
13286
14076
      lt_prog_compiler_static_F77='-Bstatic'
13287
14077
      ;;
13288
14078
 
13289
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14079
    sysv4 | sysv4.2uw2* | sysv4.3*)
13290
14080
      lt_prog_compiler_wl_F77='-Wl,'
13291
14081
      lt_prog_compiler_pic_F77='-KPIC'
13292
14082
      lt_prog_compiler_static_F77='-Bstatic'
13299
14089
      fi
13300
14090
      ;;
13301
14091
 
 
14092
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14093
      lt_prog_compiler_wl_F77='-Wl,'
 
14094
      lt_prog_compiler_pic_F77='-KPIC'
 
14095
      lt_prog_compiler_static_F77='-Bstatic'
 
14096
      ;;
 
14097
 
 
14098
    unicos*)
 
14099
      lt_prog_compiler_wl_F77='-Wl,'
 
14100
      lt_prog_compiler_can_build_shared_F77=no
 
14101
      ;;
 
14102
 
13302
14103
    uts4*)
13303
14104
      lt_prog_compiler_pic_F77='-pic'
13304
14105
      lt_prog_compiler_static_F77='-Bstatic'
13310
14111
    esac
13311
14112
  fi
13312
14113
 
13313
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13314
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14114
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14115
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13315
14116
 
13316
14117
#
13317
14118
# Check to make sure the PIC flag actually works.
13318
14119
#
13319
14120
if test -n "$lt_prog_compiler_pic_F77"; then
13320
14121
 
13321
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13322
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14122
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14123
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13323
14124
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13324
14125
  echo $ECHO_N "(cached) $ECHO_C" >&6
13325
14126
else
13333
14134
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13334
14135
   # The option is referenced via a variable to avoid confusing sed.
13335
14136
   lt_compile=`echo "$ac_compile" | $SED \
13336
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14137
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13337
14138
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13338
14139
   -e 's:$: $lt_compiler_flag:'`
13339
 
   (eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
 
14140
   (eval echo "\"\$as_me:14140: $lt_compile\"" >&5)
13340
14141
   (eval "$lt_compile" 2>conftest.err)
13341
14142
   ac_status=$?
13342
14143
   cat conftest.err >&5
13343
 
   echo "$as_me:13343: \$? = $ac_status" >&5
 
14144
   echo "$as_me:14144: \$? = $ac_status" >&5
13344
14145
   if (exit $ac_status) && test -s "$ac_outfile"; then
13345
14146
     # The compiler can only warn and ignore the option if not recognized
13346
 
     # So say no if there are warnings
13347
 
     if test ! -s conftest.err; then
 
14147
     # So say no if there are warnings other than the usual output.
 
14148
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14149
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14150
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13348
14151
       lt_prog_compiler_pic_works_F77=yes
13349
14152
     fi
13350
14153
   fi
13351
14154
   $rm conftest*
13352
14155
 
13353
14156
fi
13354
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13355
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14157
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14158
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13356
14159
 
13357
14160
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13358
14161
    case $lt_prog_compiler_pic_F77 in
13365
14168
fi
13366
14169
 
13367
14170
fi
13368
 
case "$host_os" in
 
14171
case $host_os in
13369
14172
  # For platforms which do not support PIC, -DPIC is meaningless:
13370
14173
  *djgpp*)
13371
14174
    lt_prog_compiler_pic_F77=
13375
14178
    ;;
13376
14179
esac
13377
14180
 
13378
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13379
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14181
#
 
14182
# Check to make sure the static flag actually works.
 
14183
#
 
14184
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14185
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14186
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14187
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14189
else
 
14190
  lt_prog_compiler_static_works_F77=no
 
14191
   save_LDFLAGS="$LDFLAGS"
 
14192
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14193
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14194
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14195
     # The linker can only warn and ignore the option if not recognized
 
14196
     # So say no if there are warnings
 
14197
     if test -s conftest.err; then
 
14198
       # Append any errors to the config.log.
 
14199
       cat conftest.err 1>&5
 
14200
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14201
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14202
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14203
         lt_prog_compiler_static_works_F77=yes
 
14204
       fi
 
14205
     else
 
14206
       lt_prog_compiler_static_works_F77=yes
 
14207
     fi
 
14208
   fi
 
14209
   $rm conftest*
 
14210
   LDFLAGS="$save_LDFLAGS"
 
14211
 
 
14212
fi
 
14213
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14214
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14215
 
 
14216
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14217
    :
 
14218
else
 
14219
    lt_prog_compiler_static_F77=
 
14220
fi
 
14221
 
 
14222
 
 
14223
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14224
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13380
14225
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13381
14226
  echo $ECHO_N "(cached) $ECHO_C" >&6
13382
14227
else
13393
14238
   # Note that $ac_compile itself does not contain backslashes and begins
13394
14239
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13395
14240
   lt_compile=`echo "$ac_compile" | $SED \
13396
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14241
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13397
14242
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13398
14243
   -e 's:$: $lt_compiler_flag:'`
13399
 
   (eval echo "\"\$as_me:13399: $lt_compile\"" >&5)
 
14244
   (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
13400
14245
   (eval "$lt_compile" 2>out/conftest.err)
13401
14246
   ac_status=$?
13402
14247
   cat out/conftest.err >&5
13403
 
   echo "$as_me:13403: \$? = $ac_status" >&5
 
14248
   echo "$as_me:14248: \$? = $ac_status" >&5
13404
14249
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13405
14250
   then
13406
14251
     # The compiler can only warn and ignore the option if not recognized
13407
14252
     # So say no if there are warnings
13408
 
     if test ! -s out/conftest.err; then
 
14253
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14254
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14255
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13409
14256
       lt_cv_prog_compiler_c_o_F77=yes
13410
14257
     fi
13411
14258
   fi
13412
 
   chmod u+w .
 
14259
   chmod u+w . 2>&5
13413
14260
   $rm conftest*
13414
14261
   # SGI C++ compiler will create directory out/ii_files/ for
13415
14262
   # template instantiation
13420
14267
   $rm conftest*
13421
14268
 
13422
14269
fi
13423
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13424
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14270
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14271
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13425
14272
 
13426
14273
 
13427
14274
hard_links="nottested"
13428
14275
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13429
14276
  # do not overwrite the value of need_locks provided by the user
13430
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13431
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14277
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14278
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13432
14279
  hard_links=yes
13433
14280
  $rm conftest*
13434
14281
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13435
14282
  touch conftest.a
13436
14283
  ln conftest.a conftest.b 2>&5 || hard_links=no
13437
14284
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13438
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13439
 
echo "${ECHO_T}$hard_links" >&6
 
14285
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14286
echo "${ECHO_T}$hard_links" >&6; }
13440
14287
  if test "$hard_links" = no; then
13441
14288
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13442
14289
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13446
14293
  need_locks=no
13447
14294
fi
13448
14295
 
13449
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13450
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14296
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14297
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13451
14298
 
13452
14299
  runpath_var=
13453
14300
  allow_undefined_flag_F77=
13485
14332
  # rely on this symbol name, it's probably fine to never include it in
13486
14333
  # preloaded symbol tables.
13487
14334
  extract_expsyms_cmds=
 
14335
  # Just being paranoid about ensuring that cc_basename is set.
 
14336
  for cc_temp in $compiler""; do
 
14337
  case $cc_temp in
 
14338
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14339
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14340
    \-*) ;;
 
14341
    *) break;;
 
14342
  esac
 
14343
done
 
14344
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13488
14345
 
13489
14346
  case $host_os in
13490
14347
  cygwin* | mingw* | pw32*)
13495
14352
      with_gnu_ld=no
13496
14353
    fi
13497
14354
    ;;
 
14355
  interix*)
 
14356
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14357
    with_gnu_ld=yes
 
14358
    ;;
13498
14359
  openbsd*)
13499
14360
    with_gnu_ld=no
13500
14361
    ;;
13505
14366
    # If archive_cmds runs LD, not CC, wlarc should be empty
13506
14367
    wlarc='${wl}'
13507
14368
 
 
14369
    # Set some defaults for GNU ld with shared library support. These
 
14370
    # are reset later if shared libraries are not supported. Putting them
 
14371
    # here allows them to be overridden if necessary.
 
14372
    runpath_var=LD_RUN_PATH
 
14373
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14374
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14375
    # ancient GNU ld didn't support --whole-archive et. al.
 
14376
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14377
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14378
      else
 
14379
        whole_archive_flag_spec_F77=
 
14380
    fi
 
14381
    supports_anon_versioning=no
 
14382
    case `$LD -v 2>/dev/null` in
 
14383
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14384
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14385
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14386
      *\ 2.11.*) ;; # other 2.11 versions
 
14387
      *) supports_anon_versioning=yes ;;
 
14388
    esac
 
14389
 
13508
14390
    # See if GNU ld supports shared libraries.
13509
14391
    case $host_os in
13510
14392
    aix3* | aix4* | aix5*)
13555
14437
      allow_undefined_flag_F77=unsupported
13556
14438
      always_export_symbols_F77=no
13557
14439
      enable_shared_with_static_runtimes_F77=yes
13558
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14440
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13559
14441
 
13560
14442
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13561
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14443
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13562
14444
        # If the export-symbols file already is a .def file (1st line
13563
14445
        # is EXPORTS), use it as is; otherwise, prepend...
13564
14446
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13567
14449
          echo EXPORTS > $output_objdir/$soname.def;
13568
14450
          cat $export_symbols >> $output_objdir/$soname.def;
13569
14451
        fi~
13570
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13571
 
      else
13572
 
        ld_shlibs=no
13573
 
      fi
13574
 
      ;;
13575
 
 
13576
 
    netbsd* | knetbsd*-gnu)
 
14452
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14453
      else
 
14454
        ld_shlibs_F77=no
 
14455
      fi
 
14456
      ;;
 
14457
 
 
14458
    interix3*)
 
14459
      hardcode_direct_F77=no
 
14460
      hardcode_shlibpath_var_F77=no
 
14461
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14462
      export_dynamic_flag_spec_F77='${wl}-E'
 
14463
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14464
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14465
      # default) and relocated if they conflict, which is a slow very memory
 
14466
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14467
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14468
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14469
      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'
 
14470
      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'
 
14471
      ;;
 
14472
 
 
14473
    linux*)
 
14474
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14475
        tmp_addflag=
 
14476
        case $cc_basename,$host_cpu in
 
14477
        pgcc*)                          # Portland Group C compiler
 
14478
          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'
 
14479
          tmp_addflag=' $pic_flag'
 
14480
          ;;
 
14481
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14482
          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'
 
14483
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14484
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14485
          tmp_addflag=' -i_dynamic' ;;
 
14486
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14487
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14488
        ifc* | ifort*)                  # Intel Fortran compiler
 
14489
          tmp_addflag=' -nofor_main' ;;
 
14490
        esac
 
14491
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14492
 
 
14493
        if test $supports_anon_versioning = yes; then
 
14494
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14495
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14496
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14497
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14498
        fi
 
14499
      else
 
14500
        ld_shlibs_F77=no
 
14501
      fi
 
14502
      ;;
 
14503
 
 
14504
    netbsd*)
13577
14505
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13578
14506
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13579
14507
        wlarc=
13583
14511
      fi
13584
14512
      ;;
13585
14513
 
13586
 
    solaris* | sysv5*)
 
14514
    solaris*)
13587
14515
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13588
14516
        ld_shlibs_F77=no
13589
14517
        cat <<EOF 1>&2
13604
14532
      fi
13605
14533
      ;;
13606
14534
 
 
14535
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14536
      case `$LD -v 2>&1` in
 
14537
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14538
        ld_shlibs_F77=no
 
14539
        cat <<_LT_EOF 1>&2
 
14540
 
 
14541
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14542
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14543
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14544
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14545
*** your PATH or compiler configuration so that the native linker is
 
14546
*** used, and then restart.
 
14547
 
 
14548
_LT_EOF
 
14549
        ;;
 
14550
        *)
 
14551
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14552
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14553
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14554
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14555
          else
 
14556
            ld_shlibs_F77=no
 
14557
          fi
 
14558
        ;;
 
14559
      esac
 
14560
      ;;
 
14561
 
13607
14562
    sunos4*)
13608
14563
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13609
14564
      wlarc=
13611
14566
      hardcode_shlibpath_var_F77=no
13612
14567
      ;;
13613
14568
 
13614
 
  linux*)
13615
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13616
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617
 
        archive_cmds_F77="$tmp_archive_cmds"
13618
 
      supports_anon_versioning=no
13619
 
      case `$LD -v 2>/dev/null` in
13620
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13621
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13622
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13623
 
        *\ 2.11.*) ;; # other 2.11 versions
13624
 
        *) supports_anon_versioning=yes ;;
13625
 
      esac
13626
 
      if test $supports_anon_versioning = yes; then
13627
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13628
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13629
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13630
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13631
 
      else
13632
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13633
 
      fi
13634
 
      link_all_deplibs_F77=no
13635
 
    else
13636
 
      ld_shlibs_F77=no
13637
 
    fi
13638
 
    ;;
13639
 
 
13640
14569
    *)
13641
14570
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13642
14571
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13647
14576
      ;;
13648
14577
    esac
13649
14578
 
13650
 
    if test "$ld_shlibs_F77" = yes; then
13651
 
      runpath_var=LD_RUN_PATH
13652
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13653
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13654
 
      # ancient GNU ld didn't support --whole-archive et. al.
13655
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13656
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13657
 
      else
13658
 
        whole_archive_flag_spec_F77=
13659
 
      fi
 
14579
    if test "$ld_shlibs_F77" = no; then
 
14580
      runpath_var=
 
14581
      hardcode_libdir_flag_spec_F77=
 
14582
      export_dynamic_flag_spec_F77=
 
14583
      whole_archive_flag_spec_F77=
13660
14584
    fi
13661
14585
  else
13662
14586
    # PORTME fill in a description of your system's linker (not GNU ld)
13668
14592
      # Note: this linker hardcodes the directories in LIBPATH if there
13669
14593
      # are no directories specified by -L.
13670
14594
      hardcode_minus_L_F77=yes
13671
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14595
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13672
14596
        # Neither direct hardcoding nor static linking is supported with a
13673
14597
        # broken collect2.
13674
14598
        hardcode_direct_F77=unsupported
13702
14626
            break
13703
14627
          fi
13704
14628
          done
 
14629
          ;;
13705
14630
        esac
13706
14631
 
13707
14632
        exp_sym_flag='-bexport'
13720
14645
      link_all_deplibs_F77=yes
13721
14646
 
13722
14647
      if test "$GCC" = yes; then
13723
 
        case $host_os in aix4.012|aix4.012.*)
 
14648
        case $host_os in aix4.[012]|aix4.[012].*)
13724
14649
        # We only want to do this on AIX 4.2 and lower, the check
13725
14650
        # below for broken collect2 doesn't work under 4.3+
13726
14651
          collect2name=`${CC} -print-prog-name=collect2`
13739
14664
          hardcode_libdir_flag_spec_F77='-L$libdir'
13740
14665
          hardcode_libdir_separator_F77=
13741
14666
          fi
 
14667
          ;;
13742
14668
        esac
13743
14669
        shared_flag='-shared'
 
14670
        if test "$aix_use_runtimelinking" = yes; then
 
14671
          shared_flag="$shared_flag "'${wl}-G'
 
14672
        fi
13744
14673
      else
13745
14674
        # not using gcc
13746
14675
        if test "$host_cpu" = ia64; then
13748
14677
        # chokes on -Wl,-G. The following line is correct:
13749
14678
          shared_flag='-G'
13750
14679
        else
13751
 
        if test "$aix_use_runtimelinking" = yes; then
 
14680
          if test "$aix_use_runtimelinking" = yes; then
13752
14681
            shared_flag='${wl}-G'
13753
14682
          else
13754
14683
            shared_flag='${wl}-bM:SRE'
13755
 
        fi
 
14684
          fi
13756
14685
        fi
13757
14686
      fi
13758
14687
 
13770
14699
      end
13771
14700
_ACEOF
13772
14701
rm -f conftest.$ac_objext conftest$ac_exeext
13773
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774
 
  (eval $ac_link) 2>conftest.er1
 
14702
if { (ac_try="$ac_link"
 
14703
case "(($ac_try" in
 
14704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14705
  *) ac_try_echo=$ac_try;;
 
14706
esac
 
14707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14708
  (eval "$ac_link") 2>conftest.er1
13775
14709
  ac_status=$?
13776
14710
  grep -v '^ *+' conftest.er1 >conftest.err
13777
14711
  rm -f conftest.er1
13778
14712
  cat conftest.err >&5
13779
14713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780
 
  (exit $ac_status); } &&
13781
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13782
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783
 
  (eval $ac_try) 2>&5
13784
 
  ac_status=$?
13785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786
 
  (exit $ac_status); }; } &&
13787
 
         { ac_try='test -s conftest$ac_exeext'
13788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789
 
  (eval $ac_try) 2>&5
13790
 
  ac_status=$?
13791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792
 
  (exit $ac_status); }; }; then
 
14714
  (exit $ac_status); } && {
 
14715
         test -z "$ac_f77_werror_flag" ||
 
14716
         test ! -s conftest.err
 
14717
       } && test -s conftest$ac_exeext &&
 
14718
       $as_test_x conftest$ac_exeext; then
13793
14719
 
13794
14720
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13795
14721
}'`
13800
14726
  echo "$as_me: failed program was:" >&5
13801
14727
sed 's/^/| /' conftest.$ac_ext >&5
13802
14728
 
 
14729
 
13803
14730
fi
13804
 
rm -f conftest.err conftest.$ac_objext \
 
14731
 
 
14732
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805
14733
      conftest$ac_exeext conftest.$ac_ext
13806
14734
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13807
14735
 
13808
14736
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13809
 
        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"
 
14737
        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"
13810
14738
       else
13811
14739
        if test "$host_cpu" = ia64; then
13812
14740
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13813
14741
          allow_undefined_flag_F77="-z nodefs"
13814
 
          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"
 
14742
          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"
13815
14743
        else
13816
14744
         # Determine the default libpath from the value encoded in an empty executable.
13817
14745
         cat >conftest.$ac_ext <<_ACEOF
13820
14748
      end
13821
14749
_ACEOF
13822
14750
rm -f conftest.$ac_objext conftest$ac_exeext
13823
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824
 
  (eval $ac_link) 2>conftest.er1
 
14751
if { (ac_try="$ac_link"
 
14752
case "(($ac_try" in
 
14753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14754
  *) ac_try_echo=$ac_try;;
 
14755
esac
 
14756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14757
  (eval "$ac_link") 2>conftest.er1
13825
14758
  ac_status=$?
13826
14759
  grep -v '^ *+' conftest.er1 >conftest.err
13827
14760
  rm -f conftest.er1
13828
14761
  cat conftest.err >&5
13829
14762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830
 
  (exit $ac_status); } &&
13831
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13832
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833
 
  (eval $ac_try) 2>&5
13834
 
  ac_status=$?
13835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836
 
  (exit $ac_status); }; } &&
13837
 
         { ac_try='test -s conftest$ac_exeext'
13838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839
 
  (eval $ac_try) 2>&5
13840
 
  ac_status=$?
13841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842
 
  (exit $ac_status); }; }; then
 
14763
  (exit $ac_status); } && {
 
14764
         test -z "$ac_f77_werror_flag" ||
 
14765
         test ! -s conftest.err
 
14766
       } && test -s conftest$ac_exeext &&
 
14767
       $as_test_x conftest$ac_exeext; then
13843
14768
 
13844
14769
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13845
14770
}'`
13850
14775
  echo "$as_me: failed program was:" >&5
13851
14776
sed 's/^/| /' conftest.$ac_ext >&5
13852
14777
 
 
14778
 
13853
14779
fi
13854
 
rm -f conftest.err conftest.$ac_objext \
 
14780
 
 
14781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13855
14782
      conftest$ac_exeext conftest.$ac_ext
13856
14783
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13857
14784
 
13860
14787
          # -berok will link without error, but may produce a broken library.
13861
14788
          no_undefined_flag_F77=' ${wl}-bernotok'
13862
14789
          allow_undefined_flag_F77=' ${wl}-berok'
13863
 
          # -bexpall does not export symbols beginning with underscore (_)
13864
 
          always_export_symbols_F77=yes
13865
14790
          # Exported symbols can be pulled into shared objects from archives
13866
 
          whole_archive_flag_spec_F77=' '
 
14791
          whole_archive_flag_spec_F77='$convenience'
13867
14792
          archive_cmds_need_lc_F77=yes
13868
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13869
 
          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'
 
14793
          # This is similar to how AIX traditionally builds its shared libraries.
 
14794
          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'
13870
14795
        fi
13871
14796
      fi
13872
14797
      ;;
13879
14804
      ld_shlibs_F77=no
13880
14805
      ;;
13881
14806
 
13882
 
    bsdi4*)
 
14807
    bsdi[45]*)
13883
14808
      export_dynamic_flag_spec_F77=-rdynamic
13884
14809
      ;;
13885
14810
 
13900
14825
      old_archive_From_new_cmds_F77='true'
13901
14826
      # FIXME: Should let the user specify the lib program.
13902
14827
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13903
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14828
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13904
14829
      enable_shared_with_static_runtimes_F77=yes
13905
14830
      ;;
13906
14831
 
13907
14832
    darwin* | rhapsody*)
13908
 
    if test "$GXX" = yes ; then
 
14833
      case $host_os in
 
14834
        rhapsody* | darwin1.[012])
 
14835
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14836
         ;;
 
14837
       *) # Darwin 1.3 on
 
14838
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14839
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14840
         else
 
14841
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14842
             10.[012])
 
14843
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14844
               ;;
 
14845
             10.*)
 
14846
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14847
               ;;
 
14848
           esac
 
14849
         fi
 
14850
         ;;
 
14851
      esac
13909
14852
      archive_cmds_need_lc_F77=no
13910
 
      case "$host_os" in
13911
 
      rhapsody* | darwin1.[012])
13912
 
        allow_undefined_flag_F77='-undefined suppress'
13913
 
        ;;
13914
 
      *) # Darwin 1.3 on
13915
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13916
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13917
 
      else
13918
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13919
 
          10.[012])
13920
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13921
 
            ;;
13922
 
          10.*)
13923
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13924
 
            ;;
13925
 
        esac
13926
 
      fi
13927
 
        ;;
13928
 
      esac
13929
 
        lt_int_apple_cc_single_mod=no
13930
 
        output_verbose_link_cmd='echo'
13931
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13932
 
          lt_int_apple_cc_single_mod=yes
13933
 
        fi
13934
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13935
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13936
 
        else
13937
 
        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'
13938
 
      fi
13939
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13940
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13941
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13942
 
          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}'
13943
 
        else
13944
 
          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}'
13945
 
        fi
13946
 
          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}'
13947
14853
      hardcode_direct_F77=no
13948
14854
      hardcode_automatic_F77=yes
13949
14855
      hardcode_shlibpath_var_F77=unsupported
13950
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14856
      whole_archive_flag_spec_F77=''
13951
14857
      link_all_deplibs_F77=yes
 
14858
    if test "$GCC" = yes ; then
 
14859
        output_verbose_link_cmd='echo'
 
14860
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14861
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14862
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14863
      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}'
 
14864
      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}'
13952
14865
    else
13953
 
      ld_shlibs_F77=no
 
14866
      case $cc_basename in
 
14867
        xlc*)
 
14868
         output_verbose_link_cmd='echo'
 
14869
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14870
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14871
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14872
         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}'
 
14873
          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}'
 
14874
          ;;
 
14875
       *)
 
14876
         ld_shlibs_F77=no
 
14877
          ;;
 
14878
      esac
13954
14879
    fi
13955
14880
      ;;
13956
14881
 
13984
14909
      ;;
13985
14910
 
13986
14911
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13987
 
    freebsd* | kfreebsd*-gnu)
 
14912
    freebsd* | kfreebsd*-gnu | dragonfly*)
13988
14913
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13989
14914
      hardcode_libdir_flag_spec_F77='-R$libdir'
13990
14915
      hardcode_direct_F77=yes
14007
14932
      export_dynamic_flag_spec_F77='${wl}-E'
14008
14933
      ;;
14009
14934
 
14010
 
    hpux10* | hpux11*)
14011
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14012
 
        case "$host_cpu" in
14013
 
        hppa*64*|ia64*)
 
14935
    hpux10*)
 
14936
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14937
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14938
      else
 
14939
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14940
      fi
 
14941
      if test "$with_gnu_ld" = no; then
 
14942
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14943
        hardcode_libdir_separator_F77=:
 
14944
 
 
14945
        hardcode_direct_F77=yes
 
14946
        export_dynamic_flag_spec_F77='${wl}-E'
 
14947
 
 
14948
        # hardcode_minus_L: Not really in the search PATH,
 
14949
        # but as the default location of the library.
 
14950
        hardcode_minus_L_F77=yes
 
14951
      fi
 
14952
      ;;
 
14953
 
 
14954
    hpux11*)
 
14955
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14956
        case $host_cpu in
 
14957
        hppa*64*)
14014
14958
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14015
14959
          ;;
 
14960
        ia64*)
 
14961
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14962
          ;;
14016
14963
        *)
14017
14964
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14018
14965
          ;;
14019
14966
        esac
14020
14967
      else
14021
 
        case "$host_cpu" in
14022
 
        hppa*64*|ia64*)
14023
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14968
        case $host_cpu in
 
14969
        hppa*64*)
 
14970
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14971
          ;;
 
14972
        ia64*)
 
14973
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14024
14974
          ;;
14025
14975
        *)
14026
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14976
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027
14977
          ;;
14028
14978
        esac
14029
14979
      fi
14030
14980
      if test "$with_gnu_ld" = no; then
14031
 
        case "$host_cpu" in
14032
 
        hppa*64*)
14033
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14981
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14982
        hardcode_libdir_separator_F77=:
 
14983
 
 
14984
        case $host_cpu in
 
14985
        hppa*64*|ia64*)
14034
14986
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14035
 
          hardcode_libdir_separator_F77=:
14036
 
          hardcode_direct_F77=no
14037
 
          hardcode_shlibpath_var_F77=no
14038
 
          ;;
14039
 
        ia64*)
14040
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14041
 
          hardcode_direct_F77=no
14042
 
          hardcode_shlibpath_var_F77=no
14043
 
 
14044
 
          # hardcode_minus_L: Not really in the search PATH,
14045
 
          # but as the default location of the library.
14046
 
          hardcode_minus_L_F77=yes
 
14987
          hardcode_direct_F77=no
 
14988
          hardcode_shlibpath_var_F77=no
14047
14989
          ;;
14048
14990
        *)
14049
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14050
 
          hardcode_libdir_separator_F77=:
14051
14991
          hardcode_direct_F77=yes
14052
14992
          export_dynamic_flag_spec_F77='${wl}-E'
14053
14993
 
14071
15011
      link_all_deplibs_F77=yes
14072
15012
      ;;
14073
15013
 
14074
 
    netbsd* | knetbsd*-gnu)
 
15014
    netbsd*)
14075
15015
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14076
15016
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14077
15017
      else
14095
15035
      hardcode_shlibpath_var_F77=no
14096
15036
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14097
15037
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15038
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14098
15039
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14099
15040
        export_dynamic_flag_spec_F77='${wl}-E'
14100
15041
      else
14140
15081
        allow_undefined_flag_F77=' -expect_unresolved \*'
14141
15082
        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'
14142
15083
        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~
14143
 
        $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'
 
15084
        $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'
14144
15085
 
14145
15086
        # Both c and cxx compiler support -rpath directly
14146
15087
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14148
15089
      hardcode_libdir_separator_F77=:
14149
15090
      ;;
14150
15091
 
14151
 
    sco3.2v5*)
14152
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153
 
      hardcode_shlibpath_var_F77=no
14154
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14155
 
      runpath_var=LD_RUN_PATH
14156
 
      hardcode_runpath_var=yes
14157
 
      ;;
14158
 
 
14159
15092
    solaris*)
14160
15093
      no_undefined_flag_F77=' -z text'
14161
15094
      if test "$GCC" = yes; then
 
15095
        wlarc='${wl}'
14162
15096
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14163
15097
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14164
15098
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14165
15099
      else
 
15100
        wlarc=''
14166
15101
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167
15102
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14168
15103
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14171
15106
      hardcode_shlibpath_var_F77=no
14172
15107
      case $host_os in
14173
15108
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14174
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14175
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15109
      *)
 
15110
        # The compiler driver will combine linker options so we
 
15111
        # cannot just pass the convience library names through
 
15112
        # without $wl, iff we do not link with $LD.
 
15113
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15114
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15115
        case $wlarc in
 
15116
        '')
 
15117
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15118
        *)
 
15119
          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' ;;
 
15120
        esac ;;
14176
15121
      esac
14177
15122
      link_all_deplibs_F77=yes
14178
15123
      ;;
14229
15174
      fi
14230
15175
      ;;
14231
15176
 
14232
 
    sysv4.2uw2*)
14233
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14234
 
      hardcode_direct_F77=yes
14235
 
      hardcode_minus_L_F77=no
14236
 
      hardcode_shlibpath_var_F77=no
14237
 
      hardcode_runpath_var=yes
14238
 
      runpath_var=LD_RUN_PATH
14239
 
      ;;
14240
 
 
14241
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14242
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14243
 
      if test "$GCC" = yes; then
14244
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14245
 
      else
14246
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14247
 
      fi
14248
 
      runpath_var='LD_RUN_PATH'
14249
 
      hardcode_shlibpath_var_F77=no
14250
 
      ;;
14251
 
 
14252
 
    sysv5*)
14253
 
      no_undefined_flag_F77=' -z text'
14254
 
      # $CC -shared without GNU ld will not create a library from C++
14255
 
      # object files and a static libstdc++, better avoid it by now
14256
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14257
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14258
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14259
 
      hardcode_libdir_flag_spec_F77=
14260
 
      hardcode_shlibpath_var_F77=no
14261
 
      runpath_var='LD_RUN_PATH'
 
15177
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15178
      no_undefined_flag_F77='${wl}-z,text'
 
15179
      archive_cmds_need_lc_F77=no
 
15180
      hardcode_shlibpath_var_F77=no
 
15181
      runpath_var='LD_RUN_PATH'
 
15182
 
 
15183
      if test "$GCC" = yes; then
 
15184
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15185
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15186
      else
 
15187
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15188
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15189
      fi
 
15190
      ;;
 
15191
 
 
15192
    sysv5* | sco3.2v5* | sco5v6*)
 
15193
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15194
      # link with -lc, and that would cause any symbols used from libc to
 
15195
      # always be unresolved, which means just about no library would
 
15196
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15197
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15198
      # as -z defs.
 
15199
      no_undefined_flag_F77='${wl}-z,text'
 
15200
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15201
      archive_cmds_need_lc_F77=no
 
15202
      hardcode_shlibpath_var_F77=no
 
15203
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15204
      hardcode_libdir_separator_F77=':'
 
15205
      link_all_deplibs_F77=yes
 
15206
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15207
      runpath_var='LD_RUN_PATH'
 
15208
 
 
15209
      if test "$GCC" = yes; then
 
15210
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15211
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15212
      else
 
15213
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15214
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15215
      fi
14262
15216
      ;;
14263
15217
 
14264
15218
    uts4*)
14273
15227
    esac
14274
15228
  fi
14275
15229
 
14276
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14277
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15230
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15231
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14278
15232
test "$ld_shlibs_F77" = no && can_build_shared=no
14279
15233
 
14280
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14281
 
if test "$GCC" = yes; then
14282
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14283
 
fi
14284
 
 
14285
15234
#
14286
15235
# Do we need to explicitly link libc?
14287
15236
#
14299
15248
      # Test whether the compiler implicitly links with -lc since on some
14300
15249
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14301
15250
      # to ld, don't add -lc before -lgcc.
14302
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14303
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15251
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15252
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14304
15253
      $rm conftest*
14305
15254
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306
15255
 
14314
15263
        libobjs=conftest.$ac_objext
14315
15264
        deplibs=
14316
15265
        wl=$lt_prog_compiler_wl_F77
 
15266
        pic_flag=$lt_prog_compiler_pic_F77
14317
15267
        compiler_flags=-v
14318
15268
        linker_flags=-v
14319
15269
        verstring=
14336
15286
        cat conftest.err 1>&5
14337
15287
      fi
14338
15288
      $rm conftest*
14339
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14340
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15289
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15290
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14341
15291
      ;;
14342
15292
    esac
14343
15293
  fi
14344
15294
  ;;
14345
15295
esac
14346
15296
 
14347
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14348
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15297
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15298
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14349
15299
library_names_spec=
14350
15300
libname_spec='lib$name'
14351
15301
soname_spec=
14446
15396
  shlibpath_var=LIBRARY_PATH
14447
15397
  ;;
14448
15398
 
14449
 
bsdi4*)
 
15399
bsdi[45]*)
14450
15400
  version_type=linux
14451
15401
  need_version=no
14452
15402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474
15424
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14475
15425
      dldir=$destdir/`dirname \$dlpath`~
14476
15426
      test -d \$dldir || mkdir -p \$dldir~
14477
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15427
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15428
      chmod a+x \$dldir/$dlname'
14478
15429
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14479
15430
      dlpath=$dir/\$dldll~
14480
15431
       $rm \$dlpath'
14504
15455
      ;;
14505
15456
    pw32*)
14506
15457
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14507
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15458
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14508
15459
      ;;
14509
15460
    esac
14510
15461
    ;;
14527
15478
  soname_spec='${libname}${release}${major}$shared_ext'
14528
15479
  shlibpath_overrides_runpath=yes
14529
15480
  shlibpath_var=DYLD_LIBRARY_PATH
14530
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15481
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14531
15482
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14532
15483
  if test "$GCC" = yes; then
14533
15484
    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"`
14562
15513
  dynamic_linker='GNU ld.so'
14563
15514
  ;;
14564
15515
 
14565
 
freebsd*)
14566
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15516
freebsd* | dragonfly*)
 
15517
  # DragonFly does not have aout.  When/if they implement a new
 
15518
  # versioning mechanism, adjust this.
 
15519
  if test -x /usr/bin/objformat; then
 
15520
    objformat=`/usr/bin/objformat`
 
15521
  else
 
15522
    case $host_os in
 
15523
    freebsd[123]*) objformat=aout ;;
 
15524
    *) objformat=elf ;;
 
15525
    esac
 
15526
  fi
14567
15527
  version_type=freebsd-$objformat
14568
15528
  case $version_type in
14569
15529
    freebsd-elf*)
14581
15541
  freebsd2*)
14582
15542
    shlibpath_overrides_runpath=yes
14583
15543
    ;;
14584
 
  freebsd3.01* | freebsdelf3.01*)
 
15544
  freebsd3.[01]* | freebsdelf3.[01]*)
14585
15545
    shlibpath_overrides_runpath=yes
14586
15546
    hardcode_into_libs=yes
14587
15547
    ;;
14588
 
  *) # from 3.2 on
 
15548
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15549
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14589
15550
    shlibpath_overrides_runpath=no
14590
15551
    hardcode_into_libs=yes
14591
15552
    ;;
 
15553
  freebsd*) # from 4.6 on
 
15554
    shlibpath_overrides_runpath=yes
 
15555
    hardcode_into_libs=yes
 
15556
    ;;
14592
15557
  esac
14593
15558
  ;;
14594
15559
 
14608
15573
  version_type=sunos
14609
15574
  need_lib_prefix=no
14610
15575
  need_version=no
14611
 
  case "$host_cpu" in
 
15576
  case $host_cpu in
14612
15577
  ia64*)
14613
15578
    shrext_cmds='.so'
14614
15579
    hardcode_into_libs=yes
14648
15613
  postinstall_cmds='chmod 555 $lib'
14649
15614
  ;;
14650
15615
 
 
15616
interix3*)
 
15617
  version_type=linux
 
15618
  need_lib_prefix=no
 
15619
  need_version=no
 
15620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15621
  soname_spec='${libname}${release}${shared_ext}$major'
 
15622
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15623
  shlibpath_var=LD_LIBRARY_PATH
 
15624
  shlibpath_overrides_runpath=no
 
15625
  hardcode_into_libs=yes
 
15626
  ;;
 
15627
 
14651
15628
irix5* | irix6* | nonstopux*)
14652
15629
  case $host_os in
14653
15630
    nonstopux*) version_type=nonstopux ;;
14705
15682
  # before this can be enabled.
14706
15683
  hardcode_into_libs=yes
14707
15684
 
 
15685
  # find out which ABI we are using
 
15686
  libsuff=
 
15687
  case "$host_cpu" in
 
15688
  x86_64*|s390x*|powerpc64*)
 
15689
    echo '#line 15689 "configure"' > conftest.$ac_ext
 
15690
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15691
  (eval $ac_compile) 2>&5
 
15692
  ac_status=$?
 
15693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15694
  (exit $ac_status); }; then
 
15695
      case `/usr/bin/file conftest.$ac_objext` in
 
15696
      *64-bit*)
 
15697
        libsuff=64
 
15698
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15699
        ;;
 
15700
      esac
 
15701
    fi
 
15702
    rm -rf conftest*
 
15703
    ;;
 
15704
  esac
 
15705
 
14708
15706
  # Append ld.so.conf contents to the search path
14709
15707
  if test -f /etc/ld.so.conf; then
14710
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14711
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15708
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15709
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14712
15710
  fi
14713
15711
 
14714
15712
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14769
15767
 
14770
15768
openbsd*)
14771
15769
  version_type=sunos
 
15770
  sys_lib_dlsearch_path_spec="/usr/lib"
14772
15771
  need_lib_prefix=no
14773
 
  need_version=yes
 
15772
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15773
  case $host_os in
 
15774
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15775
    *)                         need_version=no  ;;
 
15776
  esac
14774
15777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14775
15778
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14776
15779
  shlibpath_var=LD_LIBRARY_PATH
14808
15811
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14809
15812
  ;;
14810
15813
 
14811
 
sco3.2v5*)
14812
 
  version_type=osf
14813
 
  soname_spec='${libname}${release}${shared_ext}$major'
14814
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815
 
  shlibpath_var=LD_LIBRARY_PATH
14816
 
  ;;
14817
 
 
14818
15814
solaris*)
14819
15815
  version_type=linux
14820
15816
  need_lib_prefix=no
14840
15836
  need_version=yes
14841
15837
  ;;
14842
15838
 
14843
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15839
sysv4 | sysv4.3*)
14844
15840
  version_type=linux
14845
15841
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846
15842
  soname_spec='${libname}${release}${shared_ext}$major'
14873
15869
  fi
14874
15870
  ;;
14875
15871
 
 
15872
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15873
  version_type=freebsd-elf
 
15874
  need_lib_prefix=no
 
15875
  need_version=no
 
15876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15877
  soname_spec='${libname}${release}${shared_ext}$major'
 
15878
  shlibpath_var=LD_LIBRARY_PATH
 
15879
  hardcode_into_libs=yes
 
15880
  if test "$with_gnu_ld" = yes; then
 
15881
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15882
    shlibpath_overrides_runpath=no
 
15883
  else
 
15884
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15885
    shlibpath_overrides_runpath=yes
 
15886
    case $host_os in
 
15887
      sco3.2v5*)
 
15888
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15889
        ;;
 
15890
    esac
 
15891
  fi
 
15892
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15893
  ;;
 
15894
 
14876
15895
uts4*)
14877
15896
  version_type=linux
14878
15897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884
15903
  dynamic_linker=no
14885
15904
  ;;
14886
15905
esac
14887
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14888
 
echo "${ECHO_T}$dynamic_linker" >&6
 
15906
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15907
echo "${ECHO_T}$dynamic_linker" >&6; }
14889
15908
test "$dynamic_linker" = no && can_build_shared=no
14890
15909
 
14891
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14892
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15910
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15911
if test "$GCC" = yes; then
 
15912
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15913
fi
 
15914
 
 
15915
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15916
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14893
15917
hardcode_action_F77=
14894
15918
if test -n "$hardcode_libdir_flag_spec_F77" || \
14895
 
   test -n "$runpath_var F77" || \
14896
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15919
   test -n "$runpath_var_F77" || \
 
15920
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14897
15921
 
14898
15922
  # We can hardcode non-existant directories.
14899
15923
  if test "$hardcode_direct_F77" != no &&
14913
15937
  # directories.
14914
15938
  hardcode_action_F77=unsupported
14915
15939
fi
14916
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14917
 
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15940
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15941
echo "${ECHO_T}$hardcode_action_F77" >&6; }
14918
15942
 
14919
15943
if test "$hardcode_action_F77" = relink; then
14920
15944
  # Fast installation is not supported
14925
15949
  enable_fast_install=needless
14926
15950
fi
14927
15951
 
14928
 
striplib=
14929
 
old_striplib=
14930
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14931
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14932
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14933
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14934
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14935
 
  echo "$as_me:$LINENO: result: yes" >&5
14936
 
echo "${ECHO_T}yes" >&6
14937
 
else
14938
 
# FIXME - insert some real tests, host_os isn't really good enough
14939
 
  case $host_os in
14940
 
   darwin*)
14941
 
       if test -n "$STRIP" ; then
14942
 
         striplib="$STRIP -x"
14943
 
         echo "$as_me:$LINENO: result: yes" >&5
14944
 
echo "${ECHO_T}yes" >&6
14945
 
       else
14946
 
  echo "$as_me:$LINENO: result: no" >&5
14947
 
echo "${ECHO_T}no" >&6
14948
 
fi
14949
 
       ;;
14950
 
   *)
14951
 
  echo "$as_me:$LINENO: result: no" >&5
14952
 
echo "${ECHO_T}no" >&6
14953
 
    ;;
14954
 
  esac
14955
 
fi
14956
 
 
14957
 
 
14958
15952
 
14959
15953
# The else clause should only fire when bootstrapping the
14960
15954
# libtool distribution, otherwise you forgot to ship ltmain.sh
14969
15963
  # Now quote all the things that may contain metacharacters while being
14970
15964
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14971
15965
  # variables and quote the copies for generation of the libtool script.
14972
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15966
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14973
15967
    SED SHELL STRIP \
14974
15968
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14975
15969
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15070
16064
# The host system.
15071
16065
host_alias=$host_alias
15072
16066
host=$host
 
16067
host_os=$host_os
 
16068
 
 
16069
# The build system.
 
16070
build_alias=$build_alias
 
16071
build=$build
 
16072
build_os=$build_os
15073
16073
 
15074
16074
# An echo program that does not interpret backslashes.
15075
16075
echo=$lt_echo
15081
16081
# A C compiler.
15082
16082
LTCC=$lt_LTCC
15083
16083
 
 
16084
# LTCC compiler flags.
 
16085
LTCFLAGS=$lt_LTCFLAGS
 
16086
 
15084
16087
# A language-specific compiler.
15085
16088
CC=$lt_compiler_F77
15086
16089
 
15087
16090
# Is the compiler the GNU C compiler?
15088
16091
with_gcc=$GCC_F77
15089
16092
 
 
16093
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
16094
gcc_ver=\`gcc -dumpversion\`
 
16095
 
15090
16096
# An ERE matcher.
15091
16097
EGREP=$lt_EGREP
15092
16098
 
15146
16152
# Does compiler simultaneously support -c and -o options?
15147
16153
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15148
16154
 
15149
 
# Must we lock files when doing compilation ?
 
16155
# Must we lock files when doing compilation?
15150
16156
need_locks=$lt_need_locks
15151
16157
 
15152
16158
# Do we need the lib prefix for modules?
15220
16226
 
15221
16227
# Dependencies to place before the objects being linked to create a
15222
16228
# shared library.
15223
 
predep_objects=$lt_predep_objects_F77
 
16229
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15224
16230
 
15225
16231
# Dependencies to place after the objects being linked to create a
15226
16232
# shared library.
15227
 
postdep_objects=$lt_postdep_objects_F77
 
16233
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15228
16234
 
15229
16235
# Dependencies to place before the objects being linked to create a
15230
16236
# shared library.
15236
16242
 
15237
16243
# The library search path used internally by the compiler when linking
15238
16244
# a shared library.
15239
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16245
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15240
16246
 
15241
16247
# Method to check whether dependent libraries are shared objects.
15242
16248
deplibs_check_method=$lt_deplibs_check_method
15316
16322
link_all_deplibs=$link_all_deplibs_F77
15317
16323
 
15318
16324
# Compile-time system search path for libraries
15319
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16325
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15320
16326
 
15321
16327
# Run-time system search path for libraries
15322
16328
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15372
16378
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15373
16379
 
15374
16380
 
15375
 
 
15376
16381
# Source file extension for Java test sources.
15377
16382
ac_ext=java
15378
16383
 
15384
16389
lt_simple_compile_test_code="class foo {}\n"
15385
16390
 
15386
16391
# Code to be used in simple link tests
15387
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16392
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15388
16393
 
15389
16394
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15390
16395
 
15391
16396
# If no C compiler was specified, use CC.
15392
16397
LTCC=${LTCC-"$CC"}
15393
16398
 
 
16399
# If no C compiler flags were specified, use CFLAGS.
 
16400
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16401
 
15394
16402
# Allow CC to be a program name with arguments.
15395
16403
compiler=$CC
15396
16404
 
15397
16405
 
 
16406
# save warnings/boilerplate of simple test code
 
16407
ac_outfile=conftest.$ac_objext
 
16408
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16409
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16410
_lt_compiler_boilerplate=`cat conftest.err`
 
16411
$rm conftest*
 
16412
 
 
16413
ac_outfile=conftest.$ac_objext
 
16414
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16415
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16416
_lt_linker_boilerplate=`cat conftest.err`
 
16417
$rm conftest*
 
16418
 
 
16419
 
15398
16420
# Allow CC to be a program name with arguments.
15399
16421
lt_save_CC="$CC"
15400
16422
CC=${GCJ-"gcj"}
15401
16423
compiler=$CC
15402
16424
compiler_GCJ=$CC
 
16425
for cc_temp in $compiler""; do
 
16426
  case $cc_temp in
 
16427
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16428
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16429
    \-*) ;;
 
16430
    *) break;;
 
16431
  esac
 
16432
done
 
16433
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16434
 
15403
16435
 
15404
16436
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15405
16437
archive_cmds_need_lc_GCJ=no
15406
16438
 
 
16439
old_archive_cmds_GCJ=$old_archive_cmds
 
16440
 
15407
16441
 
15408
16442
lt_prog_compiler_no_builtin_flag_GCJ=
15409
16443
 
15411
16445
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15412
16446
 
15413
16447
 
15414
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15415
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16448
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16449
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15416
16450
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15417
16451
  echo $ECHO_N "(cached) $ECHO_C" >&6
15418
16452
else
15426
16460
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15427
16461
   # The option is referenced via a variable to avoid confusing sed.
15428
16462
   lt_compile=`echo "$ac_compile" | $SED \
15429
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16463
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15430
16464
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431
16465
   -e 's:$: $lt_compiler_flag:'`
15432
 
   (eval echo "\"\$as_me:15432: $lt_compile\"" >&5)
 
16466
   (eval echo "\"\$as_me:16466: $lt_compile\"" >&5)
15433
16467
   (eval "$lt_compile" 2>conftest.err)
15434
16468
   ac_status=$?
15435
16469
   cat conftest.err >&5
15436
 
   echo "$as_me:15436: \$? = $ac_status" >&5
 
16470
   echo "$as_me:16470: \$? = $ac_status" >&5
15437
16471
   if (exit $ac_status) && test -s "$ac_outfile"; then
15438
16472
     # The compiler can only warn and ignore the option if not recognized
15439
 
     # So say no if there are warnings
15440
 
     if test ! -s conftest.err; then
 
16473
     # So say no if there are warnings other than the usual output.
 
16474
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16475
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16476
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15441
16477
       lt_cv_prog_compiler_rtti_exceptions=yes
15442
16478
     fi
15443
16479
   fi
15444
16480
   $rm conftest*
15445
16481
 
15446
16482
fi
15447
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15448
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16483
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16484
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15449
16485
 
15450
16486
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15451
16487
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15459
16495
lt_prog_compiler_pic_GCJ=
15460
16496
lt_prog_compiler_static_GCJ=
15461
16497
 
15462
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15463
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16498
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16499
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15464
16500
 
15465
16501
  if test "$GCC" = yes; then
15466
16502
    lt_prog_compiler_wl_GCJ='-Wl,'
15498
16534
      lt_prog_compiler_pic_GCJ='-fno-common'
15499
16535
      ;;
15500
16536
 
 
16537
    interix3*)
 
16538
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16539
      # Instead, we relocate shared libraries at runtime.
 
16540
      ;;
 
16541
 
15501
16542
    msdosdjgpp*)
15502
16543
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15503
16544
      # on systems that don't support them.
15514
16555
    hpux*)
15515
16556
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15516
16557
      # not for PA HP-UX.
15517
 
      case "$host_cpu" in
 
16558
      case $host_cpu in
15518
16559
      hppa*64*|ia64*)
15519
16560
        # +Z the default
15520
16561
        ;;
15540
16581
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15541
16582
      fi
15542
16583
      ;;
 
16584
      darwin*)
 
16585
        # PIC is the default on this platform
 
16586
        # Common symbols not allowed in MH_DYLIB files
 
16587
       case $cc_basename in
 
16588
         xlc*)
 
16589
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16590
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16591
         ;;
 
16592
       esac
 
16593
       ;;
15543
16594
 
15544
16595
    mingw* | pw32* | os2*)
15545
16596
      # This hack is so that the source file can tell whether it is being
15551
16602
      lt_prog_compiler_wl_GCJ='-Wl,'
15552
16603
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15553
16604
      # not for PA HP-UX.
15554
 
      case "$host_cpu" in
 
16605
      case $host_cpu in
15555
16606
      hppa*64*|ia64*)
15556
16607
        # +Z the default
15557
16608
        ;;
15575
16626
      ;;
15576
16627
 
15577
16628
    linux*)
15578
 
      case $CC in
 
16629
      case $cc_basename in
15579
16630
      icc* | ecc*)
15580
16631
        lt_prog_compiler_wl_GCJ='-Wl,'
15581
16632
        lt_prog_compiler_pic_GCJ='-KPIC'
15582
16633
        lt_prog_compiler_static_GCJ='-static'
15583
16634
        ;;
 
16635
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16636
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16637
        # which looks to be a dead project)
 
16638
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16639
        lt_prog_compiler_pic_GCJ='-fpic'
 
16640
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16641
        ;;
15584
16642
      ccc*)
15585
16643
        lt_prog_compiler_wl_GCJ='-Wl,'
15586
16644
        # All Alpha code is PIC.
15595
16653
      lt_prog_compiler_static_GCJ='-non_shared'
15596
16654
      ;;
15597
16655
 
15598
 
    sco3.2v5*)
15599
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15600
 
      lt_prog_compiler_static_GCJ='-dn'
15601
 
      ;;
15602
 
 
15603
16656
    solaris*)
15604
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15605
16657
      lt_prog_compiler_pic_GCJ='-KPIC'
15606
16658
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16659
      case $cc_basename in
 
16660
      f77* | f90* | f95*)
 
16661
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16662
      *)
 
16663
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16664
      esac
15607
16665
      ;;
15608
16666
 
15609
16667
    sunos4*)
15612
16670
      lt_prog_compiler_static_GCJ='-Bstatic'
15613
16671
      ;;
15614
16672
 
15615
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16673
    sysv4 | sysv4.2uw2* | sysv4.3*)
15616
16674
      lt_prog_compiler_wl_GCJ='-Wl,'
15617
16675
      lt_prog_compiler_pic_GCJ='-KPIC'
15618
16676
      lt_prog_compiler_static_GCJ='-Bstatic'
15625
16683
      fi
15626
16684
      ;;
15627
16685
 
 
16686
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16687
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16688
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16689
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16690
      ;;
 
16691
 
 
16692
    unicos*)
 
16693
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16694
      lt_prog_compiler_can_build_shared_GCJ=no
 
16695
      ;;
 
16696
 
15628
16697
    uts4*)
15629
16698
      lt_prog_compiler_pic_GCJ='-pic'
15630
16699
      lt_prog_compiler_static_GCJ='-Bstatic'
15636
16705
    esac
15637
16706
  fi
15638
16707
 
15639
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15640
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16708
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16709
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15641
16710
 
15642
16711
#
15643
16712
# Check to make sure the PIC flag actually works.
15644
16713
#
15645
16714
if test -n "$lt_prog_compiler_pic_GCJ"; then
15646
16715
 
15647
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15648
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16716
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16717
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15649
16718
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15650
16719
  echo $ECHO_N "(cached) $ECHO_C" >&6
15651
16720
else
15659
16728
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15660
16729
   # The option is referenced via a variable to avoid confusing sed.
15661
16730
   lt_compile=`echo "$ac_compile" | $SED \
15662
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16731
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15663
16732
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15664
16733
   -e 's:$: $lt_compiler_flag:'`
15665
 
   (eval echo "\"\$as_me:15665: $lt_compile\"" >&5)
 
16734
   (eval echo "\"\$as_me:16734: $lt_compile\"" >&5)
15666
16735
   (eval "$lt_compile" 2>conftest.err)
15667
16736
   ac_status=$?
15668
16737
   cat conftest.err >&5
15669
 
   echo "$as_me:15669: \$? = $ac_status" >&5
 
16738
   echo "$as_me:16738: \$? = $ac_status" >&5
15670
16739
   if (exit $ac_status) && test -s "$ac_outfile"; then
15671
16740
     # The compiler can only warn and ignore the option if not recognized
15672
 
     # So say no if there are warnings
15673
 
     if test ! -s conftest.err; then
 
16741
     # So say no if there are warnings other than the usual output.
 
16742
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16743
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16744
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15674
16745
       lt_prog_compiler_pic_works_GCJ=yes
15675
16746
     fi
15676
16747
   fi
15677
16748
   $rm conftest*
15678
16749
 
15679
16750
fi
15680
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15681
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16751
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16752
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15682
16753
 
15683
16754
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15684
16755
    case $lt_prog_compiler_pic_GCJ in
15691
16762
fi
15692
16763
 
15693
16764
fi
15694
 
case "$host_os" in
 
16765
case $host_os in
15695
16766
  # For platforms which do not support PIC, -DPIC is meaningless:
15696
16767
  *djgpp*)
15697
16768
    lt_prog_compiler_pic_GCJ=
15701
16772
    ;;
15702
16773
esac
15703
16774
 
15704
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15705
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16775
#
 
16776
# Check to make sure the static flag actually works.
 
16777
#
 
16778
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16779
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16780
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16781
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16783
else
 
16784
  lt_prog_compiler_static_works_GCJ=no
 
16785
   save_LDFLAGS="$LDFLAGS"
 
16786
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16787
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16788
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16789
     # The linker can only warn and ignore the option if not recognized
 
16790
     # So say no if there are warnings
 
16791
     if test -s conftest.err; then
 
16792
       # Append any errors to the config.log.
 
16793
       cat conftest.err 1>&5
 
16794
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16795
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16796
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16797
         lt_prog_compiler_static_works_GCJ=yes
 
16798
       fi
 
16799
     else
 
16800
       lt_prog_compiler_static_works_GCJ=yes
 
16801
     fi
 
16802
   fi
 
16803
   $rm conftest*
 
16804
   LDFLAGS="$save_LDFLAGS"
 
16805
 
 
16806
fi
 
16807
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16808
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16809
 
 
16810
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16811
    :
 
16812
else
 
16813
    lt_prog_compiler_static_GCJ=
 
16814
fi
 
16815
 
 
16816
 
 
16817
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16818
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15706
16819
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15707
16820
  echo $ECHO_N "(cached) $ECHO_C" >&6
15708
16821
else
15719
16832
   # Note that $ac_compile itself does not contain backslashes and begins
15720
16833
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15721
16834
   lt_compile=`echo "$ac_compile" | $SED \
15722
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16835
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15723
16836
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15724
16837
   -e 's:$: $lt_compiler_flag:'`
15725
 
   (eval echo "\"\$as_me:15725: $lt_compile\"" >&5)
 
16838
   (eval echo "\"\$as_me:16838: $lt_compile\"" >&5)
15726
16839
   (eval "$lt_compile" 2>out/conftest.err)
15727
16840
   ac_status=$?
15728
16841
   cat out/conftest.err >&5
15729
 
   echo "$as_me:15729: \$? = $ac_status" >&5
 
16842
   echo "$as_me:16842: \$? = $ac_status" >&5
15730
16843
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15731
16844
   then
15732
16845
     # The compiler can only warn and ignore the option if not recognized
15733
16846
     # So say no if there are warnings
15734
 
     if test ! -s out/conftest.err; then
 
16847
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16848
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16849
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15735
16850
       lt_cv_prog_compiler_c_o_GCJ=yes
15736
16851
     fi
15737
16852
   fi
15738
 
   chmod u+w .
 
16853
   chmod u+w . 2>&5
15739
16854
   $rm conftest*
15740
16855
   # SGI C++ compiler will create directory out/ii_files/ for
15741
16856
   # template instantiation
15746
16861
   $rm conftest*
15747
16862
 
15748
16863
fi
15749
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15750
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16864
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16865
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15751
16866
 
15752
16867
 
15753
16868
hard_links="nottested"
15754
16869
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15755
16870
  # do not overwrite the value of need_locks provided by the user
15756
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15757
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16871
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16872
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15758
16873
  hard_links=yes
15759
16874
  $rm conftest*
15760
16875
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15761
16876
  touch conftest.a
15762
16877
  ln conftest.a conftest.b 2>&5 || hard_links=no
15763
16878
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15764
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15765
 
echo "${ECHO_T}$hard_links" >&6
 
16879
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16880
echo "${ECHO_T}$hard_links" >&6; }
15766
16881
  if test "$hard_links" = no; then
15767
16882
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15768
16883
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15772
16887
  need_locks=no
15773
16888
fi
15774
16889
 
15775
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15776
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16890
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16891
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15777
16892
 
15778
16893
  runpath_var=
15779
16894
  allow_undefined_flag_GCJ=
15811
16926
  # rely on this symbol name, it's probably fine to never include it in
15812
16927
  # preloaded symbol tables.
15813
16928
  extract_expsyms_cmds=
 
16929
  # Just being paranoid about ensuring that cc_basename is set.
 
16930
  for cc_temp in $compiler""; do
 
16931
  case $cc_temp in
 
16932
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16933
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16934
    \-*) ;;
 
16935
    *) break;;
 
16936
  esac
 
16937
done
 
16938
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15814
16939
 
15815
16940
  case $host_os in
15816
16941
  cygwin* | mingw* | pw32*)
15821
16946
      with_gnu_ld=no
15822
16947
    fi
15823
16948
    ;;
 
16949
  interix*)
 
16950
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16951
    with_gnu_ld=yes
 
16952
    ;;
15824
16953
  openbsd*)
15825
16954
    with_gnu_ld=no
15826
16955
    ;;
15831
16960
    # If archive_cmds runs LD, not CC, wlarc should be empty
15832
16961
    wlarc='${wl}'
15833
16962
 
 
16963
    # Set some defaults for GNU ld with shared library support. These
 
16964
    # are reset later if shared libraries are not supported. Putting them
 
16965
    # here allows them to be overridden if necessary.
 
16966
    runpath_var=LD_RUN_PATH
 
16967
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16968
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16969
    # ancient GNU ld didn't support --whole-archive et. al.
 
16970
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16971
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16972
      else
 
16973
        whole_archive_flag_spec_GCJ=
 
16974
    fi
 
16975
    supports_anon_versioning=no
 
16976
    case `$LD -v 2>/dev/null` in
 
16977
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16978
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16979
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16980
      *\ 2.11.*) ;; # other 2.11 versions
 
16981
      *) supports_anon_versioning=yes ;;
 
16982
    esac
 
16983
 
15834
16984
    # See if GNU ld supports shared libraries.
15835
16985
    case $host_os in
15836
16986
    aix3* | aix4* | aix5*)
15881
17031
      allow_undefined_flag_GCJ=unsupported
15882
17032
      always_export_symbols_GCJ=no
15883
17033
      enable_shared_with_static_runtimes_GCJ=yes
15884
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17034
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15885
17035
 
15886
17036
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15887
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17037
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15888
17038
        # If the export-symbols file already is a .def file (1st line
15889
17039
        # is EXPORTS), use it as is; otherwise, prepend...
15890
17040
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15893
17043
          echo EXPORTS > $output_objdir/$soname.def;
15894
17044
          cat $export_symbols >> $output_objdir/$soname.def;
15895
17045
        fi~
15896
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15897
 
      else
15898
 
        ld_shlibs=no
15899
 
      fi
15900
 
      ;;
15901
 
 
15902
 
    netbsd* | knetbsd*-gnu)
 
17046
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17047
      else
 
17048
        ld_shlibs_GCJ=no
 
17049
      fi
 
17050
      ;;
 
17051
 
 
17052
    interix3*)
 
17053
      hardcode_direct_GCJ=no
 
17054
      hardcode_shlibpath_var_GCJ=no
 
17055
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17056
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17057
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17058
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17059
      # default) and relocated if they conflict, which is a slow very memory
 
17060
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17061
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17062
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17063
      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'
 
17064
      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'
 
17065
      ;;
 
17066
 
 
17067
    linux*)
 
17068
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17069
        tmp_addflag=
 
17070
        case $cc_basename,$host_cpu in
 
17071
        pgcc*)                          # Portland Group C compiler
 
17072
          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'
 
17073
          tmp_addflag=' $pic_flag'
 
17074
          ;;
 
17075
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17076
          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'
 
17077
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17078
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17079
          tmp_addflag=' -i_dynamic' ;;
 
17080
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17081
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17082
        ifc* | ifort*)                  # Intel Fortran compiler
 
17083
          tmp_addflag=' -nofor_main' ;;
 
17084
        esac
 
17085
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17086
 
 
17087
        if test $supports_anon_versioning = yes; then
 
17088
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17089
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17090
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17091
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17092
        fi
 
17093
      else
 
17094
        ld_shlibs_GCJ=no
 
17095
      fi
 
17096
      ;;
 
17097
 
 
17098
    netbsd*)
15903
17099
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15904
17100
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15905
17101
        wlarc=
15909
17105
      fi
15910
17106
      ;;
15911
17107
 
15912
 
    solaris* | sysv5*)
 
17108
    solaris*)
15913
17109
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15914
17110
        ld_shlibs_GCJ=no
15915
17111
        cat <<EOF 1>&2
15930
17126
      fi
15931
17127
      ;;
15932
17128
 
 
17129
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17130
      case `$LD -v 2>&1` in
 
17131
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17132
        ld_shlibs_GCJ=no
 
17133
        cat <<_LT_EOF 1>&2
 
17134
 
 
17135
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17136
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17137
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17138
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17139
*** your PATH or compiler configuration so that the native linker is
 
17140
*** used, and then restart.
 
17141
 
 
17142
_LT_EOF
 
17143
        ;;
 
17144
        *)
 
17145
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17146
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17147
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17148
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17149
          else
 
17150
            ld_shlibs_GCJ=no
 
17151
          fi
 
17152
        ;;
 
17153
      esac
 
17154
      ;;
 
17155
 
15933
17156
    sunos4*)
15934
17157
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15935
17158
      wlarc=
15937
17160
      hardcode_shlibpath_var_GCJ=no
15938
17161
      ;;
15939
17162
 
15940
 
  linux*)
15941
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943
 
        archive_cmds_GCJ="$tmp_archive_cmds"
15944
 
      supports_anon_versioning=no
15945
 
      case `$LD -v 2>/dev/null` in
15946
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15947
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15948
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15949
 
        *\ 2.11.*) ;; # other 2.11 versions
15950
 
        *) supports_anon_versioning=yes ;;
15951
 
      esac
15952
 
      if test $supports_anon_versioning = yes; then
15953
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15954
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15955
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15956
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15957
 
      else
15958
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15959
 
      fi
15960
 
      link_all_deplibs_GCJ=no
15961
 
    else
15962
 
      ld_shlibs_GCJ=no
15963
 
    fi
15964
 
    ;;
15965
 
 
15966
17163
    *)
15967
17164
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15968
17165
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973
17170
      ;;
15974
17171
    esac
15975
17172
 
15976
 
    if test "$ld_shlibs_GCJ" = yes; then
15977
 
      runpath_var=LD_RUN_PATH
15978
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15979
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15980
 
      # ancient GNU ld didn't support --whole-archive et. al.
15981
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15982
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15983
 
      else
15984
 
        whole_archive_flag_spec_GCJ=
15985
 
      fi
 
17173
    if test "$ld_shlibs_GCJ" = no; then
 
17174
      runpath_var=
 
17175
      hardcode_libdir_flag_spec_GCJ=
 
17176
      export_dynamic_flag_spec_GCJ=
 
17177
      whole_archive_flag_spec_GCJ=
15986
17178
    fi
15987
17179
  else
15988
17180
    # PORTME fill in a description of your system's linker (not GNU ld)
15994
17186
      # Note: this linker hardcodes the directories in LIBPATH if there
15995
17187
      # are no directories specified by -L.
15996
17188
      hardcode_minus_L_GCJ=yes
15997
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17189
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15998
17190
        # Neither direct hardcoding nor static linking is supported with a
15999
17191
        # broken collect2.
16000
17192
        hardcode_direct_GCJ=unsupported
16028
17220
            break
16029
17221
          fi
16030
17222
          done
 
17223
          ;;
16031
17224
        esac
16032
17225
 
16033
17226
        exp_sym_flag='-bexport'
16046
17239
      link_all_deplibs_GCJ=yes
16047
17240
 
16048
17241
      if test "$GCC" = yes; then
16049
 
        case $host_os in aix4.012|aix4.012.*)
 
17242
        case $host_os in aix4.[012]|aix4.[012].*)
16050
17243
        # We only want to do this on AIX 4.2 and lower, the check
16051
17244
        # below for broken collect2 doesn't work under 4.3+
16052
17245
          collect2name=`${CC} -print-prog-name=collect2`
16065
17258
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16066
17259
          hardcode_libdir_separator_GCJ=
16067
17260
          fi
 
17261
          ;;
16068
17262
        esac
16069
17263
        shared_flag='-shared'
 
17264
        if test "$aix_use_runtimelinking" = yes; then
 
17265
          shared_flag="$shared_flag "'${wl}-G'
 
17266
        fi
16070
17267
      else
16071
17268
        # not using gcc
16072
17269
        if test "$host_cpu" = ia64; then
16074
17271
        # chokes on -Wl,-G. The following line is correct:
16075
17272
          shared_flag='-G'
16076
17273
        else
16077
 
        if test "$aix_use_runtimelinking" = yes; then
 
17274
          if test "$aix_use_runtimelinking" = yes; then
16078
17275
            shared_flag='${wl}-G'
16079
17276
          else
16080
17277
            shared_flag='${wl}-bM:SRE'
16081
 
        fi
 
17278
          fi
16082
17279
        fi
16083
17280
      fi
16084
17281
 
16106
17303
}
16107
17304
_ACEOF
16108
17305
rm -f conftest.$ac_objext conftest$ac_exeext
16109
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110
 
  (eval $ac_link) 2>conftest.er1
 
17306
if { (ac_try="$ac_link"
 
17307
case "(($ac_try" in
 
17308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17309
  *) ac_try_echo=$ac_try;;
 
17310
esac
 
17311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17312
  (eval "$ac_link") 2>conftest.er1
16111
17313
  ac_status=$?
16112
17314
  grep -v '^ *+' conftest.er1 >conftest.err
16113
17315
  rm -f conftest.er1
16114
17316
  cat conftest.err >&5
16115
17317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116
 
  (exit $ac_status); } &&
16117
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119
 
  (eval $ac_try) 2>&5
16120
 
  ac_status=$?
16121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122
 
  (exit $ac_status); }; } &&
16123
 
         { ac_try='test -s conftest$ac_exeext'
16124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125
 
  (eval $ac_try) 2>&5
16126
 
  ac_status=$?
16127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128
 
  (exit $ac_status); }; }; then
 
17318
  (exit $ac_status); } && {
 
17319
         test -z "$ac_c_werror_flag" ||
 
17320
         test ! -s conftest.err
 
17321
       } && test -s conftest$ac_exeext &&
 
17322
       $as_test_x conftest$ac_exeext; then
16129
17323
 
16130
17324
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16131
17325
}'`
16136
17330
  echo "$as_me: failed program was:" >&5
16137
17331
sed 's/^/| /' conftest.$ac_ext >&5
16138
17332
 
 
17333
 
16139
17334
fi
16140
 
rm -f conftest.err conftest.$ac_objext \
 
17335
 
 
17336
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16141
17337
      conftest$ac_exeext conftest.$ac_ext
16142
17338
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16143
17339
 
16144
17340
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16145
 
        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"
 
17341
        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"
16146
17342
       else
16147
17343
        if test "$host_cpu" = ia64; then
16148
17344
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16149
17345
          allow_undefined_flag_GCJ="-z nodefs"
16150
 
          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"
 
17346
          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"
16151
17347
        else
16152
17348
         # Determine the default libpath from the value encoded in an empty executable.
16153
17349
         cat >conftest.$ac_ext <<_ACEOF
16166
17362
}
16167
17363
_ACEOF
16168
17364
rm -f conftest.$ac_objext conftest$ac_exeext
16169
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16170
 
  (eval $ac_link) 2>conftest.er1
 
17365
if { (ac_try="$ac_link"
 
17366
case "(($ac_try" in
 
17367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17368
  *) ac_try_echo=$ac_try;;
 
17369
esac
 
17370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17371
  (eval "$ac_link") 2>conftest.er1
16171
17372
  ac_status=$?
16172
17373
  grep -v '^ *+' conftest.er1 >conftest.err
16173
17374
  rm -f conftest.er1
16174
17375
  cat conftest.err >&5
16175
17376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176
 
  (exit $ac_status); } &&
16177
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16178
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179
 
  (eval $ac_try) 2>&5
16180
 
  ac_status=$?
16181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182
 
  (exit $ac_status); }; } &&
16183
 
         { ac_try='test -s conftest$ac_exeext'
16184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185
 
  (eval $ac_try) 2>&5
16186
 
  ac_status=$?
16187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188
 
  (exit $ac_status); }; }; then
 
17377
  (exit $ac_status); } && {
 
17378
         test -z "$ac_c_werror_flag" ||
 
17379
         test ! -s conftest.err
 
17380
       } && test -s conftest$ac_exeext &&
 
17381
       $as_test_x conftest$ac_exeext; then
16189
17382
 
16190
17383
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16191
17384
}'`
16196
17389
  echo "$as_me: failed program was:" >&5
16197
17390
sed 's/^/| /' conftest.$ac_ext >&5
16198
17391
 
 
17392
 
16199
17393
fi
16200
 
rm -f conftest.err conftest.$ac_objext \
 
17394
 
 
17395
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201
17396
      conftest$ac_exeext conftest.$ac_ext
16202
17397
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16203
17398
 
16206
17401
          # -berok will link without error, but may produce a broken library.
16207
17402
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16208
17403
          allow_undefined_flag_GCJ=' ${wl}-berok'
16209
 
          # -bexpall does not export symbols beginning with underscore (_)
16210
 
          always_export_symbols_GCJ=yes
16211
17404
          # Exported symbols can be pulled into shared objects from archives
16212
 
          whole_archive_flag_spec_GCJ=' '
 
17405
          whole_archive_flag_spec_GCJ='$convenience'
16213
17406
          archive_cmds_need_lc_GCJ=yes
16214
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16215
 
          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'
 
17407
          # This is similar to how AIX traditionally builds its shared libraries.
 
17408
          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'
16216
17409
        fi
16217
17410
      fi
16218
17411
      ;;
16225
17418
      ld_shlibs_GCJ=no
16226
17419
      ;;
16227
17420
 
16228
 
    bsdi4*)
 
17421
    bsdi[45]*)
16229
17422
      export_dynamic_flag_spec_GCJ=-rdynamic
16230
17423
      ;;
16231
17424
 
16246
17439
      old_archive_From_new_cmds_GCJ='true'
16247
17440
      # FIXME: Should let the user specify the lib program.
16248
17441
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16249
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17442
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16250
17443
      enable_shared_with_static_runtimes_GCJ=yes
16251
17444
      ;;
16252
17445
 
16253
17446
    darwin* | rhapsody*)
16254
 
    if test "$GXX" = yes ; then
 
17447
      case $host_os in
 
17448
        rhapsody* | darwin1.[012])
 
17449
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17450
         ;;
 
17451
       *) # Darwin 1.3 on
 
17452
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17453
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17454
         else
 
17455
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17456
             10.[012])
 
17457
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17458
               ;;
 
17459
             10.*)
 
17460
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17461
               ;;
 
17462
           esac
 
17463
         fi
 
17464
         ;;
 
17465
      esac
16255
17466
      archive_cmds_need_lc_GCJ=no
16256
 
      case "$host_os" in
16257
 
      rhapsody* | darwin1.[012])
16258
 
        allow_undefined_flag_GCJ='-undefined suppress'
16259
 
        ;;
16260
 
      *) # Darwin 1.3 on
16261
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16262
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16263
 
      else
16264
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16265
 
          10.[012])
16266
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16267
 
            ;;
16268
 
          10.*)
16269
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16270
 
            ;;
16271
 
        esac
16272
 
      fi
16273
 
        ;;
16274
 
      esac
16275
 
        lt_int_apple_cc_single_mod=no
16276
 
        output_verbose_link_cmd='echo'
16277
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16278
 
          lt_int_apple_cc_single_mod=yes
16279
 
        fi
16280
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16281
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16282
 
        else
16283
 
        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'
16284
 
      fi
16285
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16286
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16287
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16288
 
          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}'
16289
 
        else
16290
 
          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}'
16291
 
        fi
16292
 
          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}'
16293
17467
      hardcode_direct_GCJ=no
16294
17468
      hardcode_automatic_GCJ=yes
16295
17469
      hardcode_shlibpath_var_GCJ=unsupported
16296
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17470
      whole_archive_flag_spec_GCJ=''
16297
17471
      link_all_deplibs_GCJ=yes
 
17472
    if test "$GCC" = yes ; then
 
17473
        output_verbose_link_cmd='echo'
 
17474
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17475
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17476
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17477
      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}'
 
17478
      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}'
16298
17479
    else
16299
 
      ld_shlibs_GCJ=no
 
17480
      case $cc_basename in
 
17481
        xlc*)
 
17482
         output_verbose_link_cmd='echo'
 
17483
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17484
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17485
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17486
         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}'
 
17487
          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}'
 
17488
          ;;
 
17489
       *)
 
17490
         ld_shlibs_GCJ=no
 
17491
          ;;
 
17492
      esac
16300
17493
    fi
16301
17494
      ;;
16302
17495
 
16330
17523
      ;;
16331
17524
 
16332
17525
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16333
 
    freebsd* | kfreebsd*-gnu)
 
17526
    freebsd* | kfreebsd*-gnu | dragonfly*)
16334
17527
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16335
17528
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16336
17529
      hardcode_direct_GCJ=yes
16353
17546
      export_dynamic_flag_spec_GCJ='${wl}-E'
16354
17547
      ;;
16355
17548
 
16356
 
    hpux10* | hpux11*)
16357
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16358
 
        case "$host_cpu" in
16359
 
        hppa*64*|ia64*)
 
17549
    hpux10*)
 
17550
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17551
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17552
      else
 
17553
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17554
      fi
 
17555
      if test "$with_gnu_ld" = no; then
 
17556
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17557
        hardcode_libdir_separator_GCJ=:
 
17558
 
 
17559
        hardcode_direct_GCJ=yes
 
17560
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17561
 
 
17562
        # hardcode_minus_L: Not really in the search PATH,
 
17563
        # but as the default location of the library.
 
17564
        hardcode_minus_L_GCJ=yes
 
17565
      fi
 
17566
      ;;
 
17567
 
 
17568
    hpux11*)
 
17569
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17570
        case $host_cpu in
 
17571
        hppa*64*)
16360
17572
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16361
17573
          ;;
 
17574
        ia64*)
 
17575
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17576
          ;;
16362
17577
        *)
16363
17578
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16364
17579
          ;;
16365
17580
        esac
16366
17581
      else
16367
 
        case "$host_cpu" in
16368
 
        hppa*64*|ia64*)
16369
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17582
        case $host_cpu in
 
17583
        hppa*64*)
 
17584
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17585
          ;;
 
17586
        ia64*)
 
17587
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16370
17588
          ;;
16371
17589
        *)
16372
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17590
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16373
17591
          ;;
16374
17592
        esac
16375
17593
      fi
16376
17594
      if test "$with_gnu_ld" = no; then
16377
 
        case "$host_cpu" in
16378
 
        hppa*64*)
16379
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17595
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17596
        hardcode_libdir_separator_GCJ=:
 
17597
 
 
17598
        case $host_cpu in
 
17599
        hppa*64*|ia64*)
16380
17600
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16381
 
          hardcode_libdir_separator_GCJ=:
16382
 
          hardcode_direct_GCJ=no
16383
 
          hardcode_shlibpath_var_GCJ=no
16384
 
          ;;
16385
 
        ia64*)
16386
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16387
 
          hardcode_direct_GCJ=no
16388
 
          hardcode_shlibpath_var_GCJ=no
16389
 
 
16390
 
          # hardcode_minus_L: Not really in the search PATH,
16391
 
          # but as the default location of the library.
16392
 
          hardcode_minus_L_GCJ=yes
 
17601
          hardcode_direct_GCJ=no
 
17602
          hardcode_shlibpath_var_GCJ=no
16393
17603
          ;;
16394
17604
        *)
16395
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16396
 
          hardcode_libdir_separator_GCJ=:
16397
17605
          hardcode_direct_GCJ=yes
16398
17606
          export_dynamic_flag_spec_GCJ='${wl}-E'
16399
17607
 
16417
17625
      link_all_deplibs_GCJ=yes
16418
17626
      ;;
16419
17627
 
16420
 
    netbsd* | knetbsd*-gnu)
 
17628
    netbsd*)
16421
17629
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16422
17630
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16423
17631
      else
16441
17649
      hardcode_shlibpath_var_GCJ=no
16442
17650
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16443
17651
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17652
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16444
17653
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16445
17654
        export_dynamic_flag_spec_GCJ='${wl}-E'
16446
17655
      else
16486
17695
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16487
17696
        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'
16488
17697
        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~
16489
 
        $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'
 
17698
        $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'
16490
17699
 
16491
17700
        # Both c and cxx compiler support -rpath directly
16492
17701
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16494
17703
      hardcode_libdir_separator_GCJ=:
16495
17704
      ;;
16496
17705
 
16497
 
    sco3.2v5*)
16498
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499
 
      hardcode_shlibpath_var_GCJ=no
16500
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16501
 
      runpath_var=LD_RUN_PATH
16502
 
      hardcode_runpath_var=yes
16503
 
      ;;
16504
 
 
16505
17706
    solaris*)
16506
17707
      no_undefined_flag_GCJ=' -z text'
16507
17708
      if test "$GCC" = yes; then
 
17709
        wlarc='${wl}'
16508
17710
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16509
17711
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16510
17712
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16511
17713
      else
 
17714
        wlarc=''
16512
17715
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513
17716
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16514
17717
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16517
17720
      hardcode_shlibpath_var_GCJ=no
16518
17721
      case $host_os in
16519
17722
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16520
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16521
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17723
      *)
 
17724
        # The compiler driver will combine linker options so we
 
17725
        # cannot just pass the convience library names through
 
17726
        # without $wl, iff we do not link with $LD.
 
17727
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17728
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17729
        case $wlarc in
 
17730
        '')
 
17731
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17732
        *)
 
17733
          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' ;;
 
17734
        esac ;;
16522
17735
      esac
16523
17736
      link_all_deplibs_GCJ=yes
16524
17737
      ;;
16575
17788
      fi
16576
17789
      ;;
16577
17790
 
16578
 
    sysv4.2uw2*)
16579
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16580
 
      hardcode_direct_GCJ=yes
16581
 
      hardcode_minus_L_GCJ=no
16582
 
      hardcode_shlibpath_var_GCJ=no
16583
 
      hardcode_runpath_var=yes
16584
 
      runpath_var=LD_RUN_PATH
16585
 
      ;;
16586
 
 
16587
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16588
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16589
 
      if test "$GCC" = yes; then
16590
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16591
 
      else
16592
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16593
 
      fi
16594
 
      runpath_var='LD_RUN_PATH'
16595
 
      hardcode_shlibpath_var_GCJ=no
16596
 
      ;;
16597
 
 
16598
 
    sysv5*)
16599
 
      no_undefined_flag_GCJ=' -z text'
16600
 
      # $CC -shared without GNU ld will not create a library from C++
16601
 
      # object files and a static libstdc++, better avoid it by now
16602
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16604
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16605
 
      hardcode_libdir_flag_spec_GCJ=
16606
 
      hardcode_shlibpath_var_GCJ=no
16607
 
      runpath_var='LD_RUN_PATH'
 
17791
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17792
      no_undefined_flag_GCJ='${wl}-z,text'
 
17793
      archive_cmds_need_lc_GCJ=no
 
17794
      hardcode_shlibpath_var_GCJ=no
 
17795
      runpath_var='LD_RUN_PATH'
 
17796
 
 
17797
      if test "$GCC" = yes; then
 
17798
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17799
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17800
      else
 
17801
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17802
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17803
      fi
 
17804
      ;;
 
17805
 
 
17806
    sysv5* | sco3.2v5* | sco5v6*)
 
17807
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17808
      # link with -lc, and that would cause any symbols used from libc to
 
17809
      # always be unresolved, which means just about no library would
 
17810
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17811
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17812
      # as -z defs.
 
17813
      no_undefined_flag_GCJ='${wl}-z,text'
 
17814
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17815
      archive_cmds_need_lc_GCJ=no
 
17816
      hardcode_shlibpath_var_GCJ=no
 
17817
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17818
      hardcode_libdir_separator_GCJ=':'
 
17819
      link_all_deplibs_GCJ=yes
 
17820
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17821
      runpath_var='LD_RUN_PATH'
 
17822
 
 
17823
      if test "$GCC" = yes; then
 
17824
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17825
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17826
      else
 
17827
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17828
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17829
      fi
16608
17830
      ;;
16609
17831
 
16610
17832
    uts4*)
16619
17841
    esac
16620
17842
  fi
16621
17843
 
16622
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16623
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17844
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17845
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16624
17846
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16625
17847
 
16626
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16627
 
if test "$GCC" = yes; then
16628
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16629
 
fi
16630
 
 
16631
17848
#
16632
17849
# Do we need to explicitly link libc?
16633
17850
#
16645
17862
      # Test whether the compiler implicitly links with -lc since on some
16646
17863
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16647
17864
      # to ld, don't add -lc before -lgcc.
16648
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16649
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17865
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17866
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16650
17867
      $rm conftest*
16651
17868
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16652
17869
 
16660
17877
        libobjs=conftest.$ac_objext
16661
17878
        deplibs=
16662
17879
        wl=$lt_prog_compiler_wl_GCJ
 
17880
        pic_flag=$lt_prog_compiler_pic_GCJ
16663
17881
        compiler_flags=-v
16664
17882
        linker_flags=-v
16665
17883
        verstring=
16682
17900
        cat conftest.err 1>&5
16683
17901
      fi
16684
17902
      $rm conftest*
16685
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16686
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17903
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17904
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16687
17905
      ;;
16688
17906
    esac
16689
17907
  fi
16690
17908
  ;;
16691
17909
esac
16692
17910
 
16693
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16694
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17911
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17912
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16695
17913
library_names_spec=
16696
17914
libname_spec='lib$name'
16697
17915
soname_spec=
16792
18010
  shlibpath_var=LIBRARY_PATH
16793
18011
  ;;
16794
18012
 
16795
 
bsdi4*)
 
18013
bsdi[45]*)
16796
18014
  version_type=linux
16797
18015
  need_version=no
16798
18016
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820
18038
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16821
18039
      dldir=$destdir/`dirname \$dlpath`~
16822
18040
      test -d \$dldir || mkdir -p \$dldir~
16823
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18041
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18042
      chmod a+x \$dldir/$dlname'
16824
18043
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16825
18044
      dlpath=$dir/\$dldll~
16826
18045
       $rm \$dlpath'
16850
18069
      ;;
16851
18070
    pw32*)
16852
18071
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16853
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18072
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16854
18073
      ;;
16855
18074
    esac
16856
18075
    ;;
16873
18092
  soname_spec='${libname}${release}${major}$shared_ext'
16874
18093
  shlibpath_overrides_runpath=yes
16875
18094
  shlibpath_var=DYLD_LIBRARY_PATH
16876
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18095
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16877
18096
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16878
18097
  if test "$GCC" = yes; then
16879
18098
    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"`
16908
18127
  dynamic_linker='GNU ld.so'
16909
18128
  ;;
16910
18129
 
16911
 
freebsd*)
16912
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18130
freebsd* | dragonfly*)
 
18131
  # DragonFly does not have aout.  When/if they implement a new
 
18132
  # versioning mechanism, adjust this.
 
18133
  if test -x /usr/bin/objformat; then
 
18134
    objformat=`/usr/bin/objformat`
 
18135
  else
 
18136
    case $host_os in
 
18137
    freebsd[123]*) objformat=aout ;;
 
18138
    *) objformat=elf ;;
 
18139
    esac
 
18140
  fi
16913
18141
  version_type=freebsd-$objformat
16914
18142
  case $version_type in
16915
18143
    freebsd-elf*)
16927
18155
  freebsd2*)
16928
18156
    shlibpath_overrides_runpath=yes
16929
18157
    ;;
16930
 
  freebsd3.01* | freebsdelf3.01*)
 
18158
  freebsd3.[01]* | freebsdelf3.[01]*)
16931
18159
    shlibpath_overrides_runpath=yes
16932
18160
    hardcode_into_libs=yes
16933
18161
    ;;
16934
 
  *) # from 3.2 on
 
18162
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18163
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16935
18164
    shlibpath_overrides_runpath=no
16936
18165
    hardcode_into_libs=yes
16937
18166
    ;;
 
18167
  freebsd*) # from 4.6 on
 
18168
    shlibpath_overrides_runpath=yes
 
18169
    hardcode_into_libs=yes
 
18170
    ;;
16938
18171
  esac
16939
18172
  ;;
16940
18173
 
16954
18187
  version_type=sunos
16955
18188
  need_lib_prefix=no
16956
18189
  need_version=no
16957
 
  case "$host_cpu" in
 
18190
  case $host_cpu in
16958
18191
  ia64*)
16959
18192
    shrext_cmds='.so'
16960
18193
    hardcode_into_libs=yes
16994
18227
  postinstall_cmds='chmod 555 $lib'
16995
18228
  ;;
16996
18229
 
 
18230
interix3*)
 
18231
  version_type=linux
 
18232
  need_lib_prefix=no
 
18233
  need_version=no
 
18234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18235
  soname_spec='${libname}${release}${shared_ext}$major'
 
18236
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18237
  shlibpath_var=LD_LIBRARY_PATH
 
18238
  shlibpath_overrides_runpath=no
 
18239
  hardcode_into_libs=yes
 
18240
  ;;
 
18241
 
16997
18242
irix5* | irix6* | nonstopux*)
16998
18243
  case $host_os in
16999
18244
    nonstopux*) version_type=nonstopux ;;
17051
18296
  # before this can be enabled.
17052
18297
  hardcode_into_libs=yes
17053
18298
 
 
18299
  # find out which ABI we are using
 
18300
  libsuff=
 
18301
  case "$host_cpu" in
 
18302
  x86_64*|s390x*|powerpc64*)
 
18303
    echo '#line 18303 "configure"' > conftest.$ac_ext
 
18304
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18305
  (eval $ac_compile) 2>&5
 
18306
  ac_status=$?
 
18307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18308
  (exit $ac_status); }; then
 
18309
      case `/usr/bin/file conftest.$ac_objext` in
 
18310
      *64-bit*)
 
18311
        libsuff=64
 
18312
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18313
        ;;
 
18314
      esac
 
18315
    fi
 
18316
    rm -rf conftest*
 
18317
    ;;
 
18318
  esac
 
18319
 
17054
18320
  # Append ld.so.conf contents to the search path
17055
18321
  if test -f /etc/ld.so.conf; then
17056
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17057
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18322
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18323
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17058
18324
  fi
17059
18325
 
17060
18326
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17115
18381
 
17116
18382
openbsd*)
17117
18383
  version_type=sunos
 
18384
  sys_lib_dlsearch_path_spec="/usr/lib"
17118
18385
  need_lib_prefix=no
17119
 
  need_version=yes
 
18386
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18387
  case $host_os in
 
18388
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18389
    *)                         need_version=no  ;;
 
18390
  esac
17120
18391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17121
18392
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17122
18393
  shlibpath_var=LD_LIBRARY_PATH
17154
18425
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17155
18426
  ;;
17156
18427
 
17157
 
sco3.2v5*)
17158
 
  version_type=osf
17159
 
  soname_spec='${libname}${release}${shared_ext}$major'
17160
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161
 
  shlibpath_var=LD_LIBRARY_PATH
17162
 
  ;;
17163
 
 
17164
18428
solaris*)
17165
18429
  version_type=linux
17166
18430
  need_lib_prefix=no
17186
18450
  need_version=yes
17187
18451
  ;;
17188
18452
 
17189
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18453
sysv4 | sysv4.3*)
17190
18454
  version_type=linux
17191
18455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192
18456
  soname_spec='${libname}${release}${shared_ext}$major'
17219
18483
  fi
17220
18484
  ;;
17221
18485
 
 
18486
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18487
  version_type=freebsd-elf
 
18488
  need_lib_prefix=no
 
18489
  need_version=no
 
18490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18491
  soname_spec='${libname}${release}${shared_ext}$major'
 
18492
  shlibpath_var=LD_LIBRARY_PATH
 
18493
  hardcode_into_libs=yes
 
18494
  if test "$with_gnu_ld" = yes; then
 
18495
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18496
    shlibpath_overrides_runpath=no
 
18497
  else
 
18498
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18499
    shlibpath_overrides_runpath=yes
 
18500
    case $host_os in
 
18501
      sco3.2v5*)
 
18502
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18503
        ;;
 
18504
    esac
 
18505
  fi
 
18506
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18507
  ;;
 
18508
 
17222
18509
uts4*)
17223
18510
  version_type=linux
17224
18511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230
18517
  dynamic_linker=no
17231
18518
  ;;
17232
18519
esac
17233
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17234
 
echo "${ECHO_T}$dynamic_linker" >&6
 
18520
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18521
echo "${ECHO_T}$dynamic_linker" >&6; }
17235
18522
test "$dynamic_linker" = no && can_build_shared=no
17236
18523
 
17237
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17238
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18524
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18525
if test "$GCC" = yes; then
 
18526
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18527
fi
 
18528
 
 
18529
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18530
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17239
18531
hardcode_action_GCJ=
17240
18532
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17241
 
   test -n "$runpath_var GCJ" || \
17242
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18533
   test -n "$runpath_var_GCJ" || \
 
18534
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17243
18535
 
17244
18536
  # We can hardcode non-existant directories.
17245
18537
  if test "$hardcode_direct_GCJ" != no &&
17259
18551
  # directories.
17260
18552
  hardcode_action_GCJ=unsupported
17261
18553
fi
17262
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17263
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18554
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18555
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17264
18556
 
17265
18557
if test "$hardcode_action_GCJ" = relink; then
17266
18558
  # Fast installation is not supported
17271
18563
  enable_fast_install=needless
17272
18564
fi
17273
18565
 
17274
 
striplib=
17275
 
old_striplib=
17276
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17277
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17278
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17279
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17280
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17281
 
  echo "$as_me:$LINENO: result: yes" >&5
17282
 
echo "${ECHO_T}yes" >&6
17283
 
else
17284
 
# FIXME - insert some real tests, host_os isn't really good enough
17285
 
  case $host_os in
17286
 
   darwin*)
17287
 
       if test -n "$STRIP" ; then
17288
 
         striplib="$STRIP -x"
17289
 
         echo "$as_me:$LINENO: result: yes" >&5
17290
 
echo "${ECHO_T}yes" >&6
17291
 
       else
17292
 
  echo "$as_me:$LINENO: result: no" >&5
17293
 
echo "${ECHO_T}no" >&6
17294
 
fi
17295
 
       ;;
17296
 
   *)
17297
 
  echo "$as_me:$LINENO: result: no" >&5
17298
 
echo "${ECHO_T}no" >&6
17299
 
    ;;
17300
 
  esac
17301
 
fi
17302
 
 
17303
 
if test "x$enable_dlopen" != xyes; then
17304
 
  enable_dlopen=unknown
17305
 
  enable_dlopen_self=unknown
17306
 
  enable_dlopen_self_static=unknown
17307
 
else
17308
 
  lt_cv_dlopen=no
17309
 
  lt_cv_dlopen_libs=
17310
 
 
17311
 
  case $host_os in
17312
 
  beos*)
17313
 
    lt_cv_dlopen="load_add_on"
17314
 
    lt_cv_dlopen_libs=
17315
 
    lt_cv_dlopen_self=yes
17316
 
    ;;
17317
 
 
17318
 
  mingw* | pw32*)
17319
 
    lt_cv_dlopen="LoadLibrary"
17320
 
    lt_cv_dlopen_libs=
17321
 
   ;;
17322
 
 
17323
 
  cygwin*)
17324
 
    lt_cv_dlopen="dlopen"
17325
 
    lt_cv_dlopen_libs=
17326
 
   ;;
17327
 
 
17328
 
  darwin*)
17329
 
  # if libdl is installed we need to link against it
17330
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17331
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17332
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17333
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17334
 
else
17335
 
  ac_check_lib_save_LIBS=$LIBS
17336
 
LIBS="-ldl  $LIBS"
17337
 
cat >conftest.$ac_ext <<_ACEOF
17338
 
/* confdefs.h.  */
17339
 
_ACEOF
17340
 
cat confdefs.h >>conftest.$ac_ext
17341
 
cat >>conftest.$ac_ext <<_ACEOF
17342
 
/* end confdefs.h.  */
17343
 
 
17344
 
/* Override any gcc2 internal prototype to avoid an error.  */
17345
 
#ifdef __cplusplus
17346
 
extern "C"
17347
 
#endif
17348
 
/* We use char because int might match the return type of a gcc2
17349
 
   builtin and then its argument prototype would still apply.  */
17350
 
char dlopen ();
17351
 
int
17352
 
main ()
17353
 
{
17354
 
dlopen ();
17355
 
  ;
17356
 
  return 0;
17357
 
}
17358
 
_ACEOF
17359
 
rm -f conftest.$ac_objext conftest$ac_exeext
17360
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361
 
  (eval $ac_link) 2>conftest.er1
17362
 
  ac_status=$?
17363
 
  grep -v '^ *+' conftest.er1 >conftest.err
17364
 
  rm -f conftest.er1
17365
 
  cat conftest.err >&5
17366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
 
  (exit $ac_status); } &&
17368
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17369
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370
 
  (eval $ac_try) 2>&5
17371
 
  ac_status=$?
17372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373
 
  (exit $ac_status); }; } &&
17374
 
         { ac_try='test -s conftest$ac_exeext'
17375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376
 
  (eval $ac_try) 2>&5
17377
 
  ac_status=$?
17378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379
 
  (exit $ac_status); }; }; then
17380
 
  ac_cv_lib_dl_dlopen=yes
17381
 
else
17382
 
  echo "$as_me: failed program was:" >&5
17383
 
sed 's/^/| /' conftest.$ac_ext >&5
17384
 
 
17385
 
ac_cv_lib_dl_dlopen=no
17386
 
fi
17387
 
rm -f conftest.err conftest.$ac_objext \
17388
 
      conftest$ac_exeext conftest.$ac_ext
17389
 
LIBS=$ac_check_lib_save_LIBS
17390
 
fi
17391
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17392
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17393
 
if test $ac_cv_lib_dl_dlopen = yes; then
17394
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17395
 
else
17396
 
 
17397
 
    lt_cv_dlopen="dyld"
17398
 
    lt_cv_dlopen_libs=
17399
 
    lt_cv_dlopen_self=yes
17400
 
 
17401
 
fi
17402
 
 
17403
 
   ;;
17404
 
 
17405
 
  *)
17406
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17407
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17408
 
if test "${ac_cv_func_shl_load+set}" = set; then
17409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17410
 
else
17411
 
  cat >conftest.$ac_ext <<_ACEOF
17412
 
/* confdefs.h.  */
17413
 
_ACEOF
17414
 
cat confdefs.h >>conftest.$ac_ext
17415
 
cat >>conftest.$ac_ext <<_ACEOF
17416
 
/* end confdefs.h.  */
17417
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17418
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17419
 
#define shl_load innocuous_shl_load
17420
 
 
17421
 
/* System header to define __stub macros and hopefully few prototypes,
17422
 
    which can conflict with char shl_load (); below.
17423
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424
 
    <limits.h> exists even on freestanding compilers.  */
17425
 
 
17426
 
#ifdef __STDC__
17427
 
# include <limits.h>
17428
 
#else
17429
 
# include <assert.h>
17430
 
#endif
17431
 
 
17432
 
#undef shl_load
17433
 
 
17434
 
/* Override any gcc2 internal prototype to avoid an error.  */
17435
 
#ifdef __cplusplus
17436
 
extern "C"
17437
 
{
17438
 
#endif
17439
 
/* We use char because int might match the return type of a gcc2
17440
 
   builtin and then its argument prototype would still apply.  */
17441
 
char shl_load ();
17442
 
/* The GNU C library defines this for functions which it implements
17443
 
    to always fail with ENOSYS.  Some functions are actually named
17444
 
    something starting with __ and the normal name is an alias.  */
17445
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17446
 
choke me
17447
 
#else
17448
 
char (*f) () = shl_load;
17449
 
#endif
17450
 
#ifdef __cplusplus
17451
 
}
17452
 
#endif
17453
 
 
17454
 
int
17455
 
main ()
17456
 
{
17457
 
return f != shl_load;
17458
 
  ;
17459
 
  return 0;
17460
 
}
17461
 
_ACEOF
17462
 
rm -f conftest.$ac_objext conftest$ac_exeext
17463
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464
 
  (eval $ac_link) 2>conftest.er1
17465
 
  ac_status=$?
17466
 
  grep -v '^ *+' conftest.er1 >conftest.err
17467
 
  rm -f conftest.er1
17468
 
  cat conftest.err >&5
17469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470
 
  (exit $ac_status); } &&
17471
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473
 
  (eval $ac_try) 2>&5
17474
 
  ac_status=$?
17475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476
 
  (exit $ac_status); }; } &&
17477
 
         { ac_try='test -s conftest$ac_exeext'
17478
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479
 
  (eval $ac_try) 2>&5
17480
 
  ac_status=$?
17481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
 
  (exit $ac_status); }; }; then
17483
 
  ac_cv_func_shl_load=yes
17484
 
else
17485
 
  echo "$as_me: failed program was:" >&5
17486
 
sed 's/^/| /' conftest.$ac_ext >&5
17487
 
 
17488
 
ac_cv_func_shl_load=no
17489
 
fi
17490
 
rm -f conftest.err conftest.$ac_objext \
17491
 
      conftest$ac_exeext conftest.$ac_ext
17492
 
fi
17493
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17494
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17495
 
if test $ac_cv_func_shl_load = yes; then
17496
 
  lt_cv_dlopen="shl_load"
17497
 
else
17498
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17499
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17500
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17501
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17502
 
else
17503
 
  ac_check_lib_save_LIBS=$LIBS
17504
 
LIBS="-ldld  $LIBS"
17505
 
cat >conftest.$ac_ext <<_ACEOF
17506
 
/* confdefs.h.  */
17507
 
_ACEOF
17508
 
cat confdefs.h >>conftest.$ac_ext
17509
 
cat >>conftest.$ac_ext <<_ACEOF
17510
 
/* end confdefs.h.  */
17511
 
 
17512
 
/* Override any gcc2 internal prototype to avoid an error.  */
17513
 
#ifdef __cplusplus
17514
 
extern "C"
17515
 
#endif
17516
 
/* We use char because int might match the return type of a gcc2
17517
 
   builtin and then its argument prototype would still apply.  */
17518
 
char shl_load ();
17519
 
int
17520
 
main ()
17521
 
{
17522
 
shl_load ();
17523
 
  ;
17524
 
  return 0;
17525
 
}
17526
 
_ACEOF
17527
 
rm -f conftest.$ac_objext conftest$ac_exeext
17528
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529
 
  (eval $ac_link) 2>conftest.er1
17530
 
  ac_status=$?
17531
 
  grep -v '^ *+' conftest.er1 >conftest.err
17532
 
  rm -f conftest.er1
17533
 
  cat conftest.err >&5
17534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535
 
  (exit $ac_status); } &&
17536
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17537
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538
 
  (eval $ac_try) 2>&5
17539
 
  ac_status=$?
17540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541
 
  (exit $ac_status); }; } &&
17542
 
         { ac_try='test -s conftest$ac_exeext'
17543
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544
 
  (eval $ac_try) 2>&5
17545
 
  ac_status=$?
17546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547
 
  (exit $ac_status); }; }; then
17548
 
  ac_cv_lib_dld_shl_load=yes
17549
 
else
17550
 
  echo "$as_me: failed program was:" >&5
17551
 
sed 's/^/| /' conftest.$ac_ext >&5
17552
 
 
17553
 
ac_cv_lib_dld_shl_load=no
17554
 
fi
17555
 
rm -f conftest.err conftest.$ac_objext \
17556
 
      conftest$ac_exeext conftest.$ac_ext
17557
 
LIBS=$ac_check_lib_save_LIBS
17558
 
fi
17559
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17560
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17561
 
if test $ac_cv_lib_dld_shl_load = yes; then
17562
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17563
 
else
17564
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17565
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17566
 
if test "${ac_cv_func_dlopen+set}" = set; then
17567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17568
 
else
17569
 
  cat >conftest.$ac_ext <<_ACEOF
17570
 
/* confdefs.h.  */
17571
 
_ACEOF
17572
 
cat confdefs.h >>conftest.$ac_ext
17573
 
cat >>conftest.$ac_ext <<_ACEOF
17574
 
/* end confdefs.h.  */
17575
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17576
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17577
 
#define dlopen innocuous_dlopen
17578
 
 
17579
 
/* System header to define __stub macros and hopefully few prototypes,
17580
 
    which can conflict with char dlopen (); below.
17581
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17582
 
    <limits.h> exists even on freestanding compilers.  */
17583
 
 
17584
 
#ifdef __STDC__
17585
 
# include <limits.h>
17586
 
#else
17587
 
# include <assert.h>
17588
 
#endif
17589
 
 
17590
 
#undef dlopen
17591
 
 
17592
 
/* Override any gcc2 internal prototype to avoid an error.  */
17593
 
#ifdef __cplusplus
17594
 
extern "C"
17595
 
{
17596
 
#endif
17597
 
/* We use char because int might match the return type of a gcc2
17598
 
   builtin and then its argument prototype would still apply.  */
17599
 
char dlopen ();
17600
 
/* The GNU C library defines this for functions which it implements
17601
 
    to always fail with ENOSYS.  Some functions are actually named
17602
 
    something starting with __ and the normal name is an alias.  */
17603
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17604
 
choke me
17605
 
#else
17606
 
char (*f) () = dlopen;
17607
 
#endif
17608
 
#ifdef __cplusplus
17609
 
}
17610
 
#endif
17611
 
 
17612
 
int
17613
 
main ()
17614
 
{
17615
 
return f != dlopen;
17616
 
  ;
17617
 
  return 0;
17618
 
}
17619
 
_ACEOF
17620
 
rm -f conftest.$ac_objext conftest$ac_exeext
17621
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622
 
  (eval $ac_link) 2>conftest.er1
17623
 
  ac_status=$?
17624
 
  grep -v '^ *+' conftest.er1 >conftest.err
17625
 
  rm -f conftest.er1
17626
 
  cat conftest.err >&5
17627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628
 
  (exit $ac_status); } &&
17629
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631
 
  (eval $ac_try) 2>&5
17632
 
  ac_status=$?
17633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
 
  (exit $ac_status); }; } &&
17635
 
         { ac_try='test -s conftest$ac_exeext'
17636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
 
  (eval $ac_try) 2>&5
17638
 
  ac_status=$?
17639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
 
  (exit $ac_status); }; }; then
17641
 
  ac_cv_func_dlopen=yes
17642
 
else
17643
 
  echo "$as_me: failed program was:" >&5
17644
 
sed 's/^/| /' conftest.$ac_ext >&5
17645
 
 
17646
 
ac_cv_func_dlopen=no
17647
 
fi
17648
 
rm -f conftest.err conftest.$ac_objext \
17649
 
      conftest$ac_exeext conftest.$ac_ext
17650
 
fi
17651
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17652
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17653
 
if test $ac_cv_func_dlopen = yes; then
17654
 
  lt_cv_dlopen="dlopen"
17655
 
else
17656
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17657
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17658
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17660
 
else
17661
 
  ac_check_lib_save_LIBS=$LIBS
17662
 
LIBS="-ldl  $LIBS"
17663
 
cat >conftest.$ac_ext <<_ACEOF
17664
 
/* confdefs.h.  */
17665
 
_ACEOF
17666
 
cat confdefs.h >>conftest.$ac_ext
17667
 
cat >>conftest.$ac_ext <<_ACEOF
17668
 
/* end confdefs.h.  */
17669
 
 
17670
 
/* Override any gcc2 internal prototype to avoid an error.  */
17671
 
#ifdef __cplusplus
17672
 
extern "C"
17673
 
#endif
17674
 
/* We use char because int might match the return type of a gcc2
17675
 
   builtin and then its argument prototype would still apply.  */
17676
 
char dlopen ();
17677
 
int
17678
 
main ()
17679
 
{
17680
 
dlopen ();
17681
 
  ;
17682
 
  return 0;
17683
 
}
17684
 
_ACEOF
17685
 
rm -f conftest.$ac_objext conftest$ac_exeext
17686
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687
 
  (eval $ac_link) 2>conftest.er1
17688
 
  ac_status=$?
17689
 
  grep -v '^ *+' conftest.er1 >conftest.err
17690
 
  rm -f conftest.er1
17691
 
  cat conftest.err >&5
17692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693
 
  (exit $ac_status); } &&
17694
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17695
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696
 
  (eval $ac_try) 2>&5
17697
 
  ac_status=$?
17698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699
 
  (exit $ac_status); }; } &&
17700
 
         { ac_try='test -s conftest$ac_exeext'
17701
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702
 
  (eval $ac_try) 2>&5
17703
 
  ac_status=$?
17704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705
 
  (exit $ac_status); }; }; then
17706
 
  ac_cv_lib_dl_dlopen=yes
17707
 
else
17708
 
  echo "$as_me: failed program was:" >&5
17709
 
sed 's/^/| /' conftest.$ac_ext >&5
17710
 
 
17711
 
ac_cv_lib_dl_dlopen=no
17712
 
fi
17713
 
rm -f conftest.err conftest.$ac_objext \
17714
 
      conftest$ac_exeext conftest.$ac_ext
17715
 
LIBS=$ac_check_lib_save_LIBS
17716
 
fi
17717
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17718
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17719
 
if test $ac_cv_lib_dl_dlopen = yes; then
17720
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17721
 
else
17722
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17723
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17724
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17725
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17726
 
else
17727
 
  ac_check_lib_save_LIBS=$LIBS
17728
 
LIBS="-lsvld  $LIBS"
17729
 
cat >conftest.$ac_ext <<_ACEOF
17730
 
/* confdefs.h.  */
17731
 
_ACEOF
17732
 
cat confdefs.h >>conftest.$ac_ext
17733
 
cat >>conftest.$ac_ext <<_ACEOF
17734
 
/* end confdefs.h.  */
17735
 
 
17736
 
/* Override any gcc2 internal prototype to avoid an error.  */
17737
 
#ifdef __cplusplus
17738
 
extern "C"
17739
 
#endif
17740
 
/* We use char because int might match the return type of a gcc2
17741
 
   builtin and then its argument prototype would still apply.  */
17742
 
char dlopen ();
17743
 
int
17744
 
main ()
17745
 
{
17746
 
dlopen ();
17747
 
  ;
17748
 
  return 0;
17749
 
}
17750
 
_ACEOF
17751
 
rm -f conftest.$ac_objext conftest$ac_exeext
17752
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753
 
  (eval $ac_link) 2>conftest.er1
17754
 
  ac_status=$?
17755
 
  grep -v '^ *+' conftest.er1 >conftest.err
17756
 
  rm -f conftest.er1
17757
 
  cat conftest.err >&5
17758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
 
  (exit $ac_status); } &&
17760
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17761
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762
 
  (eval $ac_try) 2>&5
17763
 
  ac_status=$?
17764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765
 
  (exit $ac_status); }; } &&
17766
 
         { ac_try='test -s conftest$ac_exeext'
17767
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768
 
  (eval $ac_try) 2>&5
17769
 
  ac_status=$?
17770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771
 
  (exit $ac_status); }; }; then
17772
 
  ac_cv_lib_svld_dlopen=yes
17773
 
else
17774
 
  echo "$as_me: failed program was:" >&5
17775
 
sed 's/^/| /' conftest.$ac_ext >&5
17776
 
 
17777
 
ac_cv_lib_svld_dlopen=no
17778
 
fi
17779
 
rm -f conftest.err conftest.$ac_objext \
17780
 
      conftest$ac_exeext conftest.$ac_ext
17781
 
LIBS=$ac_check_lib_save_LIBS
17782
 
fi
17783
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17784
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17785
 
if test $ac_cv_lib_svld_dlopen = yes; then
17786
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17787
 
else
17788
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17789
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17790
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17792
 
else
17793
 
  ac_check_lib_save_LIBS=$LIBS
17794
 
LIBS="-ldld  $LIBS"
17795
 
cat >conftest.$ac_ext <<_ACEOF
17796
 
/* confdefs.h.  */
17797
 
_ACEOF
17798
 
cat confdefs.h >>conftest.$ac_ext
17799
 
cat >>conftest.$ac_ext <<_ACEOF
17800
 
/* end confdefs.h.  */
17801
 
 
17802
 
/* Override any gcc2 internal prototype to avoid an error.  */
17803
 
#ifdef __cplusplus
17804
 
extern "C"
17805
 
#endif
17806
 
/* We use char because int might match the return type of a gcc2
17807
 
   builtin and then its argument prototype would still apply.  */
17808
 
char dld_link ();
17809
 
int
17810
 
main ()
17811
 
{
17812
 
dld_link ();
17813
 
  ;
17814
 
  return 0;
17815
 
}
17816
 
_ACEOF
17817
 
rm -f conftest.$ac_objext conftest$ac_exeext
17818
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819
 
  (eval $ac_link) 2>conftest.er1
17820
 
  ac_status=$?
17821
 
  grep -v '^ *+' conftest.er1 >conftest.err
17822
 
  rm -f conftest.er1
17823
 
  cat conftest.err >&5
17824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
 
  (exit $ac_status); } &&
17826
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
 
  (eval $ac_try) 2>&5
17829
 
  ac_status=$?
17830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
 
  (exit $ac_status); }; } &&
17832
 
         { ac_try='test -s conftest$ac_exeext'
17833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834
 
  (eval $ac_try) 2>&5
17835
 
  ac_status=$?
17836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837
 
  (exit $ac_status); }; }; then
17838
 
  ac_cv_lib_dld_dld_link=yes
17839
 
else
17840
 
  echo "$as_me: failed program was:" >&5
17841
 
sed 's/^/| /' conftest.$ac_ext >&5
17842
 
 
17843
 
ac_cv_lib_dld_dld_link=no
17844
 
fi
17845
 
rm -f conftest.err conftest.$ac_objext \
17846
 
      conftest$ac_exeext conftest.$ac_ext
17847
 
LIBS=$ac_check_lib_save_LIBS
17848
 
fi
17849
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17850
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17851
 
if test $ac_cv_lib_dld_dld_link = yes; then
17852
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17853
 
fi
17854
 
 
17855
 
 
17856
 
fi
17857
 
 
17858
 
 
17859
 
fi
17860
 
 
17861
 
 
17862
 
fi
17863
 
 
17864
 
 
17865
 
fi
17866
 
 
17867
 
 
17868
 
fi
17869
 
 
17870
 
    ;;
17871
 
  esac
17872
 
 
17873
 
  if test "x$lt_cv_dlopen" != xno; then
17874
 
    enable_dlopen=yes
17875
 
  else
17876
 
    enable_dlopen=no
17877
 
  fi
17878
 
 
17879
 
  case $lt_cv_dlopen in
17880
 
  dlopen)
17881
 
    save_CPPFLAGS="$CPPFLAGS"
17882
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17883
 
 
17884
 
    save_LDFLAGS="$LDFLAGS"
17885
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17886
 
 
17887
 
    save_LIBS="$LIBS"
17888
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17889
 
 
17890
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17891
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17892
 
if test "${lt_cv_dlopen_self+set}" = set; then
17893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17894
 
else
17895
 
          if test "$cross_compiling" = yes; then :
17896
 
  lt_cv_dlopen_self=cross
17897
 
else
17898
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17899
 
  lt_status=$lt_dlunknown
17900
 
  cat > conftest.$ac_ext <<EOF
17901
 
#line 17901 "configure"
17902
 
#include "confdefs.h"
17903
 
 
17904
 
#if HAVE_DLFCN_H
17905
 
#include <dlfcn.h>
17906
 
#endif
17907
 
 
17908
 
#include <stdio.h>
17909
 
 
17910
 
#ifdef RTLD_GLOBAL
17911
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17912
 
#else
17913
 
#  ifdef DL_GLOBAL
17914
 
#    define LT_DLGLOBAL         DL_GLOBAL
17915
 
#  else
17916
 
#    define LT_DLGLOBAL         0
17917
 
#  endif
17918
 
#endif
17919
 
 
17920
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17921
 
   find out it does not work in some platform. */
17922
 
#ifndef LT_DLLAZY_OR_NOW
17923
 
#  ifdef RTLD_LAZY
17924
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17925
 
#  else
17926
 
#    ifdef DL_LAZY
17927
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17928
 
#    else
17929
 
#      ifdef RTLD_NOW
17930
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17931
 
#      else
17932
 
#        ifdef DL_NOW
17933
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17934
 
#        else
17935
 
#          define LT_DLLAZY_OR_NOW      0
17936
 
#        endif
17937
 
#      endif
17938
 
#    endif
17939
 
#  endif
17940
 
#endif
17941
 
 
17942
 
#ifdef __cplusplus
17943
 
extern "C" void exit (int);
17944
 
#endif
17945
 
 
17946
 
void fnord() { int i=42;}
17947
 
int main ()
17948
 
{
17949
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17950
 
  int status = $lt_dlunknown;
17951
 
 
17952
 
  if (self)
17953
 
    {
17954
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17955
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17956
 
      /* dlclose (self); */
17957
 
    }
17958
 
 
17959
 
    exit (status);
17960
 
}
17961
 
EOF
17962
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963
 
  (eval $ac_link) 2>&5
17964
 
  ac_status=$?
17965
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17967
 
    (./conftest; exit; ) 2>/dev/null
17968
 
    lt_status=$?
17969
 
    case x$lt_status in
17970
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17971
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17972
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17973
 
    esac
17974
 
  else :
17975
 
    # compilation failed
17976
 
    lt_cv_dlopen_self=no
17977
 
  fi
17978
 
fi
17979
 
rm -fr conftest*
17980
 
 
17981
 
 
17982
 
fi
17983
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17984
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17985
 
 
17986
 
    if test "x$lt_cv_dlopen_self" = xyes; then
17987
 
      LDFLAGS="$LDFLAGS $link_static_flag"
17988
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17989
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17990
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
17991
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17992
 
else
17993
 
          if test "$cross_compiling" = yes; then :
17994
 
  lt_cv_dlopen_self_static=cross
17995
 
else
17996
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17997
 
  lt_status=$lt_dlunknown
17998
 
  cat > conftest.$ac_ext <<EOF
17999
 
#line 17999 "configure"
18000
 
#include "confdefs.h"
18001
 
 
18002
 
#if HAVE_DLFCN_H
18003
 
#include <dlfcn.h>
18004
 
#endif
18005
 
 
18006
 
#include <stdio.h>
18007
 
 
18008
 
#ifdef RTLD_GLOBAL
18009
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18010
 
#else
18011
 
#  ifdef DL_GLOBAL
18012
 
#    define LT_DLGLOBAL         DL_GLOBAL
18013
 
#  else
18014
 
#    define LT_DLGLOBAL         0
18015
 
#  endif
18016
 
#endif
18017
 
 
18018
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18019
 
   find out it does not work in some platform. */
18020
 
#ifndef LT_DLLAZY_OR_NOW
18021
 
#  ifdef RTLD_LAZY
18022
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18023
 
#  else
18024
 
#    ifdef DL_LAZY
18025
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18026
 
#    else
18027
 
#      ifdef RTLD_NOW
18028
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18029
 
#      else
18030
 
#        ifdef DL_NOW
18031
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18032
 
#        else
18033
 
#          define LT_DLLAZY_OR_NOW      0
18034
 
#        endif
18035
 
#      endif
18036
 
#    endif
18037
 
#  endif
18038
 
#endif
18039
 
 
18040
 
#ifdef __cplusplus
18041
 
extern "C" void exit (int);
18042
 
#endif
18043
 
 
18044
 
void fnord() { int i=42;}
18045
 
int main ()
18046
 
{
18047
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18048
 
  int status = $lt_dlunknown;
18049
 
 
18050
 
  if (self)
18051
 
    {
18052
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18053
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18054
 
      /* dlclose (self); */
18055
 
    }
18056
 
 
18057
 
    exit (status);
18058
 
}
18059
 
EOF
18060
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061
 
  (eval $ac_link) 2>&5
18062
 
  ac_status=$?
18063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18065
 
    (./conftest; exit; ) 2>/dev/null
18066
 
    lt_status=$?
18067
 
    case x$lt_status in
18068
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18069
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18070
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18071
 
    esac
18072
 
  else :
18073
 
    # compilation failed
18074
 
    lt_cv_dlopen_self_static=no
18075
 
  fi
18076
 
fi
18077
 
rm -fr conftest*
18078
 
 
18079
 
 
18080
 
fi
18081
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18082
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18083
 
    fi
18084
 
 
18085
 
    CPPFLAGS="$save_CPPFLAGS"
18086
 
    LDFLAGS="$save_LDFLAGS"
18087
 
    LIBS="$save_LIBS"
18088
 
    ;;
18089
 
  esac
18090
 
 
18091
 
  case $lt_cv_dlopen_self in
18092
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18093
 
  *) enable_dlopen_self=unknown ;;
18094
 
  esac
18095
 
 
18096
 
  case $lt_cv_dlopen_self_static in
18097
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18098
 
  *) enable_dlopen_self_static=unknown ;;
18099
 
  esac
18100
 
fi
18101
 
 
18102
18566
 
18103
18567
# The else clause should only fire when bootstrapping the
18104
18568
# libtool distribution, otherwise you forgot to ship ltmain.sh
18113
18577
  # Now quote all the things that may contain metacharacters while being
18114
18578
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18115
18579
  # variables and quote the copies for generation of the libtool script.
18116
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18580
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18117
18581
    SED SHELL STRIP \
18118
18582
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18119
18583
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18214
18678
# The host system.
18215
18679
host_alias=$host_alias
18216
18680
host=$host
 
18681
host_os=$host_os
 
18682
 
 
18683
# The build system.
 
18684
build_alias=$build_alias
 
18685
build=$build
 
18686
build_os=$build_os
18217
18687
 
18218
18688
# An echo program that does not interpret backslashes.
18219
18689
echo=$lt_echo
18225
18695
# A C compiler.
18226
18696
LTCC=$lt_LTCC
18227
18697
 
 
18698
# LTCC compiler flags.
 
18699
LTCFLAGS=$lt_LTCFLAGS
 
18700
 
18228
18701
# A language-specific compiler.
18229
18702
CC=$lt_compiler_GCJ
18230
18703
 
18231
18704
# Is the compiler the GNU C compiler?
18232
18705
with_gcc=$GCC_GCJ
18233
18706
 
 
18707
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
18708
gcc_ver=\`gcc -dumpversion\`
 
18709
 
18234
18710
# An ERE matcher.
18235
18711
EGREP=$lt_EGREP
18236
18712
 
18290
18766
# Does compiler simultaneously support -c and -o options?
18291
18767
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18292
18768
 
18293
 
# Must we lock files when doing compilation ?
 
18769
# Must we lock files when doing compilation?
18294
18770
need_locks=$lt_need_locks
18295
18771
 
18296
18772
# Do we need the lib prefix for modules?
18364
18840
 
18365
18841
# Dependencies to place before the objects being linked to create a
18366
18842
# shared library.
18367
 
predep_objects=$lt_predep_objects_GCJ
 
18843
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18368
18844
 
18369
18845
# Dependencies to place after the objects being linked to create a
18370
18846
# shared library.
18371
 
postdep_objects=$lt_postdep_objects_GCJ
 
18847
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18372
18848
 
18373
18849
# Dependencies to place before the objects being linked to create a
18374
18850
# shared library.
18380
18856
 
18381
18857
# The library search path used internally by the compiler when linking
18382
18858
# a shared library.
18383
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18859
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18384
18860
 
18385
18861
# Method to check whether dependent libraries are shared objects.
18386
18862
deplibs_check_method=$lt_deplibs_check_method
18460
18936
link_all_deplibs=$link_all_deplibs_GCJ
18461
18937
 
18462
18938
# Compile-time system search path for libraries
18463
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18939
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18464
18940
 
18465
18941
# Run-time system search path for libraries
18466
18942
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
18991
      RC)
18516
18992
 
18517
18993
 
18518
 
 
18519
18994
# Source file extension for RC test sources.
18520
18995
ac_ext=rc
18521
18996
 
18534
19009
# If no C compiler was specified, use CC.
18535
19010
LTCC=${LTCC-"$CC"}
18536
19011
 
 
19012
# If no C compiler flags were specified, use CFLAGS.
 
19013
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19014
 
18537
19015
# Allow CC to be a program name with arguments.
18538
19016
compiler=$CC
18539
19017
 
18540
19018
 
 
19019
# save warnings/boilerplate of simple test code
 
19020
ac_outfile=conftest.$ac_objext
 
19021
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19022
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19023
_lt_compiler_boilerplate=`cat conftest.err`
 
19024
$rm conftest*
 
19025
 
 
19026
ac_outfile=conftest.$ac_objext
 
19027
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19028
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19029
_lt_linker_boilerplate=`cat conftest.err`
 
19030
$rm conftest*
 
19031
 
 
19032
 
18541
19033
# Allow CC to be a program name with arguments.
18542
19034
lt_save_CC="$CC"
18543
19035
CC=${RC-"windres"}
18544
19036
compiler=$CC
18545
19037
compiler_RC=$CC
 
19038
for cc_temp in $compiler""; do
 
19039
  case $cc_temp in
 
19040
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19041
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19042
    \-*) ;;
 
19043
    *) break;;
 
19044
  esac
 
19045
done
 
19046
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19047
 
18546
19048
lt_cv_prog_compiler_c_o_RC=yes
18547
19049
 
18548
19050
# The else clause should only fire when bootstrapping the
18558
19060
  # Now quote all the things that may contain metacharacters while being
18559
19061
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18560
19062
  # variables and quote the copies for generation of the libtool script.
18561
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19063
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18562
19064
    SED SHELL STRIP \
18563
19065
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18564
19066
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18659
19161
# The host system.
18660
19162
host_alias=$host_alias
18661
19163
host=$host
 
19164
host_os=$host_os
 
19165
 
 
19166
# The build system.
 
19167
build_alias=$build_alias
 
19168
build=$build
 
19169
build_os=$build_os
18662
19170
 
18663
19171
# An echo program that does not interpret backslashes.
18664
19172
echo=$lt_echo
18670
19178
# A C compiler.
18671
19179
LTCC=$lt_LTCC
18672
19180
 
 
19181
# LTCC compiler flags.
 
19182
LTCFLAGS=$lt_LTCFLAGS
 
19183
 
18673
19184
# A language-specific compiler.
18674
19185
CC=$lt_compiler_RC
18675
19186
 
18676
19187
# Is the compiler the GNU C compiler?
18677
19188
with_gcc=$GCC_RC
18678
19189
 
 
19190
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
19191
gcc_ver=\`gcc -dumpversion\`
 
19192
 
18679
19193
# An ERE matcher.
18680
19194
EGREP=$lt_EGREP
18681
19195
 
18735
19249
# Does compiler simultaneously support -c and -o options?
18736
19250
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18737
19251
 
18738
 
# Must we lock files when doing compilation ?
 
19252
# Must we lock files when doing compilation?
18739
19253
need_locks=$lt_need_locks
18740
19254
 
18741
19255
# Do we need the lib prefix for modules?
18809
19323
 
18810
19324
# Dependencies to place before the objects being linked to create a
18811
19325
# shared library.
18812
 
predep_objects=$lt_predep_objects_RC
 
19326
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18813
19327
 
18814
19328
# Dependencies to place after the objects being linked to create a
18815
19329
# shared library.
18816
 
postdep_objects=$lt_postdep_objects_RC
 
19330
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18817
19331
 
18818
19332
# Dependencies to place before the objects being linked to create a
18819
19333
# shared library.
18825
19339
 
18826
19340
# The library search path used internally by the compiler when linking
18827
19341
# a shared library.
18828
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19342
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18829
19343
 
18830
19344
# Method to check whether dependent libraries are shared objects.
18831
19345
deplibs_check_method=$lt_deplibs_check_method
18905
19419
link_all_deplibs=$link_all_deplibs_RC
18906
19420
 
18907
19421
# Compile-time system search path for libraries
18908
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19422
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18909
19423
 
18910
19424
# Run-time system search path for libraries
18911
19425
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19010
19524
 
19011
19525
 
19012
19526
 
 
19527
AM_CPPFLAGS="$CPPFLAGS -I\$(top_srcdir) -I\$(top_builddir)"
 
19528
 
 
19529
gp_config_msg_len="$(expr "Compiler" : '.*')"
 
19530
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
19531
        gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
19532
else
 
19533
        gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
19534
fi
 
19535
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${CC}
 
19536
"
 
19537
 
 
19538
if test "x$CC" != xcc; then
 
19539
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
19540
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
19541
else
 
19542
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
19543
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
19544
fi
 
19545
set dummy $CC; ac_cc=`echo $2 |
 
19546
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
19547
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
19548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19549
else
 
19550
  cat >conftest.$ac_ext <<_ACEOF
 
19551
/* confdefs.h.  */
 
19552
_ACEOF
 
19553
cat confdefs.h >>conftest.$ac_ext
 
19554
cat >>conftest.$ac_ext <<_ACEOF
 
19555
/* end confdefs.h.  */
 
19556
 
 
19557
int
 
19558
main ()
 
19559
{
 
19560
 
 
19561
  ;
 
19562
  return 0;
 
19563
}
 
19564
_ACEOF
 
19565
# Make sure it works both with $CC and with simple cc.
 
19566
# We do the test twice because some compilers refuse to overwrite an
 
19567
# existing .o file with -o, though they will create one.
 
19568
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
19569
rm -f conftest2.*
 
19570
if { (case "(($ac_try" in
 
19571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19572
  *) ac_try_echo=$ac_try;;
 
19573
esac
 
19574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19575
  (eval "$ac_try") 2>&5
 
19576
  ac_status=$?
 
19577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19578
  (exit $ac_status); } &&
 
19579
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
19580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19581
  *) ac_try_echo=$ac_try;;
 
19582
esac
 
19583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19584
  (eval "$ac_try") 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); };
 
19588
then
 
19589
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
19590
  if test "x$CC" != xcc; then
 
19591
    # Test first that cc exists at all.
 
19592
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
19593
  { (case "(($ac_try" in
 
19594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19595
  *) ac_try_echo=$ac_try;;
 
19596
esac
 
19597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19598
  (eval "$ac_try") 2>&5
 
19599
  ac_status=$?
 
19600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19601
  (exit $ac_status); }; }; then
 
19602
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
19603
      rm -f conftest2.*
 
19604
      if { (case "(($ac_try" in
 
19605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19606
  *) ac_try_echo=$ac_try;;
 
19607
esac
 
19608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19609
  (eval "$ac_try") 2>&5
 
19610
  ac_status=$?
 
19611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19612
  (exit $ac_status); } &&
 
19613
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
19614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19615
  *) ac_try_echo=$ac_try;;
 
19616
esac
 
19617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19618
  (eval "$ac_try") 2>&5
 
19619
  ac_status=$?
 
19620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19621
  (exit $ac_status); };
 
19622
      then
 
19623
        # cc works too.
 
19624
        :
 
19625
      else
 
19626
        # cc exists but doesn't like -o.
 
19627
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
19628
      fi
 
19629
    fi
 
19630
  fi
 
19631
else
 
19632
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
19633
fi
 
19634
rm -f core conftest*
 
19635
 
 
19636
fi
 
19637
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
19638
  { echo "$as_me:$LINENO: result: yes" >&5
 
19639
echo "${ECHO_T}yes" >&6; }
 
19640
else
 
19641
  { echo "$as_me:$LINENO: result: no" >&5
 
19642
echo "${ECHO_T}no" >&6; }
 
19643
 
 
19644
cat >>confdefs.h <<\_ACEOF
 
19645
#define NO_MINUS_C_MINUS_O 1
 
19646
_ACEOF
 
19647
 
 
19648
fi
 
19649
 
 
19650
# FIXME: we rely on the cache variable name because
 
19651
# there is no other way.
 
19652
set dummy $CC
 
19653
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
19654
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
19655
   # Losing compiler, so override with the script.
 
19656
   # FIXME: It is wrong to rewrite CC.
 
19657
   # But if we don't then we get into trouble of one sort or another.
 
19658
   # A longer-term fix would be to have automake use am__CC in this case,
 
19659
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
19660
   CC="$am_aux_dir/compile $CC"
 
19661
fi
 
19662
 
 
19663
 
 
19664
 
 
19665
 
 
19666
 
 
19667
for ac_func in isatty fileno
 
19668
do
 
19669
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19670
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19671
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19672
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19674
else
 
19675
  cat >conftest.$ac_ext <<_ACEOF
 
19676
/* confdefs.h.  */
 
19677
_ACEOF
 
19678
cat confdefs.h >>conftest.$ac_ext
 
19679
cat >>conftest.$ac_ext <<_ACEOF
 
19680
/* end confdefs.h.  */
 
19681
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19682
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19683
#define $ac_func innocuous_$ac_func
 
19684
 
 
19685
/* System header to define __stub macros and hopefully few prototypes,
 
19686
    which can conflict with char $ac_func (); below.
 
19687
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19688
    <limits.h> exists even on freestanding compilers.  */
 
19689
 
 
19690
#ifdef __STDC__
 
19691
# include <limits.h>
 
19692
#else
 
19693
# include <assert.h>
 
19694
#endif
 
19695
 
 
19696
#undef $ac_func
 
19697
 
 
19698
/* Override any GCC internal prototype to avoid an error.
 
19699
   Use char because int might match the return type of a GCC
 
19700
   builtin and then its argument prototype would still apply.  */
 
19701
#ifdef __cplusplus
 
19702
extern "C"
 
19703
#endif
 
19704
char $ac_func ();
 
19705
/* The GNU C library defines this for functions which it implements
 
19706
    to always fail with ENOSYS.  Some functions are actually named
 
19707
    something starting with __ and the normal name is an alias.  */
 
19708
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19709
choke me
 
19710
#endif
 
19711
 
 
19712
int
 
19713
main ()
 
19714
{
 
19715
return $ac_func ();
 
19716
  ;
 
19717
  return 0;
 
19718
}
 
19719
_ACEOF
 
19720
rm -f conftest.$ac_objext conftest$ac_exeext
 
19721
if { (ac_try="$ac_link"
 
19722
case "(($ac_try" in
 
19723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19724
  *) ac_try_echo=$ac_try;;
 
19725
esac
 
19726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19727
  (eval "$ac_link") 2>conftest.er1
 
19728
  ac_status=$?
 
19729
  grep -v '^ *+' conftest.er1 >conftest.err
 
19730
  rm -f conftest.er1
 
19731
  cat conftest.err >&5
 
19732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19733
  (exit $ac_status); } && {
 
19734
         test -z "$ac_c_werror_flag" ||
 
19735
         test ! -s conftest.err
 
19736
       } && test -s conftest$ac_exeext &&
 
19737
       $as_test_x conftest$ac_exeext; then
 
19738
  eval "$as_ac_var=yes"
 
19739
else
 
19740
  echo "$as_me: failed program was:" >&5
 
19741
sed 's/^/| /' conftest.$ac_ext >&5
 
19742
 
 
19743
        eval "$as_ac_var=no"
 
19744
fi
 
19745
 
 
19746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19747
      conftest$ac_exeext conftest.$ac_ext
 
19748
fi
 
19749
ac_res=`eval echo '${'$as_ac_var'}'`
 
19750
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19751
echo "${ECHO_T}$ac_res" >&6; }
 
19752
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19753
  cat >>confdefs.h <<_ACEOF
 
19754
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19755
_ACEOF
 
19756
 
 
19757
fi
 
19758
done
 
19759
 
 
19760
 
 
19761
 
 
19762
#
 
19763
# [GP_PKG_CONFIG]
 
19764
#
 
19765
 
 
19766
export PKG_CONFIG
 
19767
 
 
19768
export PKG_CONFIG_PATH
 
19769
 
 
19770
{ echo "$as_me:$LINENO: checking PKG_CONFIG_PATH" >&5
 
19771
echo $ECHO_N "checking PKG_CONFIG_PATH... $ECHO_C" >&6; }
 
19772
if test "x${PKG_CONFIG_PATH}" = "x"; then
 
19773
        { echo "$as_me:$LINENO: result: empty" >&5
 
19774
echo "${ECHO_T}empty" >&6; }
 
19775
else
 
19776
        { echo "$as_me:$LINENO: result: ${PKG_CONFIG_PATH}" >&5
 
19777
echo "${ECHO_T}${PKG_CONFIG_PATH}" >&6; }
 
19778
fi
 
19779
 
19013
19780
# Extract the first word of "pkg-config", so it can be a program name with args.
19014
19781
set dummy pkg-config; ac_word=$2
19015
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19016
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19782
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19017
19784
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19018
19785
  echo $ECHO_N "(cached) $ECHO_C" >&6
19019
19786
else
19028
19795
  IFS=$as_save_IFS
19029
19796
  test -z "$as_dir" && as_dir=.
19030
19797
  for ac_exec_ext in '' $ac_executable_extensions; do
19031
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19032
19799
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19033
19800
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19034
19801
    break 2
19035
19802
  fi
19036
19803
done
19037
19804
done
 
19805
IFS=$as_save_IFS
19038
19806
 
 
19807
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
19039
19808
  ;;
19040
19809
esac
19041
19810
fi
19042
19811
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19043
 
 
19044
19812
if test -n "$PKG_CONFIG"; then
19045
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19046
 
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19813
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19814
echo "${ECHO_T}$PKG_CONFIG" >&6; }
19047
19815
else
19048
 
  echo "$as_me:$LINENO: result: no" >&5
19049
 
echo "${ECHO_T}no" >&6
19050
 
fi
19051
 
 
19052
 
 
 
19816
  { echo "$as_me:$LINENO: result: no" >&5
 
19817
echo "${ECHO_T}no" >&6; }
 
19818
fi
 
19819
 
 
19820
 
 
19821
if test "$PKG_CONFIG" = "false"; then
 
19822
{ { echo "$as_me:$LINENO: error:
 
19823
*** Build requires pkg-config
 
19824
***
 
19825
*** Possible solutions:
 
19826
***   - set PKG_CONFIG to where your pkg-config is located
 
19827
***   - set PATH to include the directory where pkg-config is installed
 
19828
***   - get it from http://freedesktop.org/software/pkgconfig/ and install it
 
19829
" >&5
 
19830
echo "$as_me: error:
 
19831
*** Build requires pkg-config
 
19832
***
 
19833
*** Possible solutions:
 
19834
***   - set PKG_CONFIG to where your pkg-config is located
 
19835
***   - set PATH to include the directory where pkg-config is installed
 
19836
***   - get it from http://freedesktop.org/software/pkgconfig/ and install it
 
19837
" >&2;}
 
19838
   { (exit 1); exit 1; }; }
 
19839
fi
 
19840
 
 
19841
 
 
19842
# ---------------------------------------------------------------------------
 
19843
# i18n support
 
19844
# ---------------------------------------------------------------------------
 
19845
 
 
19846
GETTEXT_PACKAGE="${PACKAGE}"
19053
19847
 
19054
19848
cat >>confdefs.h <<_ACEOF
19055
19849
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19056
19850
_ACEOF
19057
19851
 
19058
 
ALL_LINGUAS="de es fr"
 
19852
 
 
19853
sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
 
19854
sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Müller and others|"
 
19855
 
 
19856
sed_mb=""
 
19857
 
 
19858
sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
 
19859
# Not so sure whether this hack is all *that* evil...
 
19860
{ echo "$as_me:$LINENO: checking for po/Makevars requiring hack" >&5
 
19861
echo $ECHO_N "checking for po/Makevars requiring hack... $ECHO_C" >&6; }
 
19862
if test -f "${srcdir}/po/Makevars.template"; then
 
19863
   sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
 
19864
   { echo "$as_me:$LINENO: result: yes, done." >&5
 
19865
echo "${ECHO_T}yes, done." >&6; }
 
19866
else
 
19867
   { echo "$as_me:$LINENO: result: no" >&5
 
19868
echo "${ECHO_T}no" >&6; }
 
19869
fi
 
19870
 
 
19871
ALL_LINGUAS="de es fr pl"
 
19872
 
19059
19873
 
19060
19874
        MKINSTALLDIRS=
19061
19875
  if test -n "$ac_aux_dir"; then
19070
19884
 
19071
19885
 
19072
19886
 
19073
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19074
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
19075
 
    # Check whether --enable-nls or --disable-nls was given.
 
19887
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
19888
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
19889
    # Check whether --enable-nls was given.
19076
19890
if test "${enable_nls+set}" = set; then
19077
 
  enableval="$enable_nls"
19078
 
  USE_NLS=$enableval
 
19891
  enableval=$enable_nls; USE_NLS=$enableval
19079
19892
else
19080
19893
  USE_NLS=yes
19081
 
fi;
19082
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
19083
 
echo "${ECHO_T}$USE_NLS" >&6
 
19894
fi
 
19895
 
 
19896
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
19897
echo "${ECHO_T}$USE_NLS" >&6; }
19084
19898
 
19085
19899
 
19086
19900
 
19117
19931
 
19118
19932
# Extract the first word of "msgfmt", so it can be a program name with args.
19119
19933
set dummy msgfmt; ac_word=$2
19120
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19121
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19934
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19122
19936
if test "${ac_cv_path_MSGFMT+set}" = set; then
19123
19937
  echo $ECHO_N "(cached) $ECHO_C" >&6
19124
19938
else
19148
19962
fi
19149
19963
MSGFMT="$ac_cv_path_MSGFMT"
19150
19964
if test "$MSGFMT" != ":"; then
19151
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
19152
 
echo "${ECHO_T}$MSGFMT" >&6
 
19965
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
19966
echo "${ECHO_T}$MSGFMT" >&6; }
19153
19967
else
19154
 
  echo "$as_me:$LINENO: result: no" >&5
19155
 
echo "${ECHO_T}no" >&6
 
19968
  { echo "$as_me:$LINENO: result: no" >&5
 
19969
echo "${ECHO_T}no" >&6; }
19156
19970
fi
19157
19971
 
19158
19972
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
19159
19973
set dummy gmsgfmt; ac_word=$2
19160
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19161
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19974
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19975
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19162
19976
if test "${ac_cv_path_GMSGFMT+set}" = set; then
19163
19977
  echo $ECHO_N "(cached) $ECHO_C" >&6
19164
19978
else
19173
19987
  IFS=$as_save_IFS
19174
19988
  test -z "$as_dir" && as_dir=.
19175
19989
  for ac_exec_ext in '' $ac_executable_extensions; do
19176
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19990
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19177
19991
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19178
19992
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19179
19993
    break 2
19180
19994
  fi
19181
19995
done
19182
19996
done
 
19997
IFS=$as_save_IFS
19183
19998
 
19184
19999
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19185
20000
  ;;
19186
20001
esac
19187
20002
fi
19188
20003
GMSGFMT=$ac_cv_path_GMSGFMT
19189
 
 
19190
20004
if test -n "$GMSGFMT"; then
19191
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
19192
 
echo "${ECHO_T}$GMSGFMT" >&6
 
20005
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
20006
echo "${ECHO_T}$GMSGFMT" >&6; }
19193
20007
else
19194
 
  echo "$as_me:$LINENO: result: no" >&5
19195
 
echo "${ECHO_T}no" >&6
 
20008
  { echo "$as_me:$LINENO: result: no" >&5
 
20009
echo "${ECHO_T}no" >&6; }
19196
20010
fi
19197
20011
 
19198
20012
 
19199
20013
 
 
20014
 
19200
20015
# Prepare PATH_SEPARATOR.
19201
20016
# The user is always right.
19202
20017
if test "${PATH_SEPARATOR+set}" != set; then
19227
20042
 
19228
20043
# Extract the first word of "xgettext", so it can be a program name with args.
19229
20044
set dummy xgettext; ac_word=$2
19230
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19231
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20045
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19232
20047
if test "${ac_cv_path_XGETTEXT+set}" = set; then
19233
20048
  echo $ECHO_N "(cached) $ECHO_C" >&6
19234
20049
else
19258
20073
fi
19259
20074
XGETTEXT="$ac_cv_path_XGETTEXT"
19260
20075
if test "$XGETTEXT" != ":"; then
19261
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
19262
 
echo "${ECHO_T}$XGETTEXT" >&6
 
20076
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
20077
echo "${ECHO_T}$XGETTEXT" >&6; }
19263
20078
else
19264
 
  echo "$as_me:$LINENO: result: no" >&5
19265
 
echo "${ECHO_T}no" >&6
 
20079
  { echo "$as_me:$LINENO: result: no" >&5
 
20080
echo "${ECHO_T}no" >&6; }
19266
20081
fi
19267
20082
 
19268
20083
    rm -f messages.po
19298
20113
 
19299
20114
# Extract the first word of "msgmerge", so it can be a program name with args.
19300
20115
set dummy msgmerge; ac_word=$2
19301
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19302
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20116
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19303
20118
if test "${ac_cv_path_MSGMERGE+set}" = set; then
19304
20119
  echo $ECHO_N "(cached) $ECHO_C" >&6
19305
20120
else
19328
20143
fi
19329
20144
MSGMERGE="$ac_cv_path_MSGMERGE"
19330
20145
if test "$MSGMERGE" != ":"; then
19331
 
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
19332
 
echo "${ECHO_T}$MSGMERGE" >&6
 
20146
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
20147
echo "${ECHO_T}$MSGMERGE" >&6; }
19333
20148
else
19334
 
  echo "$as_me:$LINENO: result: no" >&5
19335
 
echo "${ECHO_T}no" >&6
 
20149
  { echo "$as_me:$LINENO: result: no" >&5
 
20150
echo "${ECHO_T}no" >&6; }
19336
20151
fi
19337
20152
 
19338
20153
 
19342
20157
      : ;
19343
20158
    else
19344
20159
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
19345
 
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
19346
 
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
20160
      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
20161
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
19347
20162
      GMSGFMT=":"
19348
20163
    fi
19349
20164
  fi
19353
20168
       (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
19354
20169
      : ;
19355
20170
    else
19356
 
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
19357
 
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
20171
      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
20172
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
19358
20173
      XGETTEXT=":"
19359
20174
    fi
19360
20175
        rm -f messages.po
19361
20176
  fi
19362
20177
 
19363
 
            ac_config_commands="$ac_config_commands default-1"
 
20178
  ac_config_commands="$ac_config_commands default-1"
19364
20179
 
19365
20180
 
19366
20181
 
19380
20195
  prefix="$acl_save_prefix"
19381
20196
 
19382
20197
 
19383
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
20198
# Check whether --with-gnu-ld was given.
19384
20199
if test "${with_gnu_ld+set}" = set; then
19385
 
  withval="$with_gnu_ld"
19386
 
  test "$withval" = no || with_gnu_ld=yes
 
20200
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19387
20201
else
19388
20202
  with_gnu_ld=no
19389
 
fi;
 
20203
fi
 
20204
 
19390
20205
# Prepare PATH_SEPARATOR.
19391
20206
# The user is always right.
19392
20207
if test "${PATH_SEPARATOR+set}" != set; then
19403
20218
ac_prog=ld
19404
20219
if test "$GCC" = yes; then
19405
20220
  # Check if gcc -print-prog-name=ld gives a path.
19406
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19407
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
20221
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
20222
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
19408
20223
  case $host in
19409
20224
  *-*-mingw*)
19410
20225
    # gcc leaves a trailing carriage return which upsets mingw
19433
20248
    ;;
19434
20249
  esac
19435
20250
elif test "$with_gnu_ld" = yes; then
19436
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
19437
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
20251
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
20252
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
19438
20253
else
19439
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19440
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
20254
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
20255
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
19441
20256
fi
19442
20257
if test "${acl_cv_path_LD+set}" = set; then
19443
20258
  echo $ECHO_N "(cached) $ECHO_C" >&6
19467
20282
 
19468
20283
LD="$acl_cv_path_LD"
19469
20284
if test -n "$LD"; then
19470
 
  echo "$as_me:$LINENO: result: $LD" >&5
19471
 
echo "${ECHO_T}$LD" >&6
 
20285
  { echo "$as_me:$LINENO: result: $LD" >&5
 
20286
echo "${ECHO_T}$LD" >&6; }
19472
20287
else
19473
 
  echo "$as_me:$LINENO: result: no" >&5
19474
 
echo "${ECHO_T}no" >&6
 
20288
  { echo "$as_me:$LINENO: result: no" >&5
 
20289
echo "${ECHO_T}no" >&6; }
19475
20290
fi
19476
20291
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19477
20292
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19478
20293
   { (exit 1); exit 1; }; }
19479
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19480
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
20294
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
20295
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19481
20296
if test "${acl_cv_prog_gnu_ld+set}" = set; then
19482
20297
  echo $ECHO_N "(cached) $ECHO_C" >&6
19483
20298
else
19489
20304
  acl_cv_prog_gnu_ld=no ;;
19490
20305
esac
19491
20306
fi
19492
 
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19493
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
20307
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
20308
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
19494
20309
with_gnu_ld=$acl_cv_prog_gnu_ld
19495
20310
 
19496
20311
 
19497
20312
 
19498
 
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19499
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
20313
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
20314
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
19500
20315
if test "${acl_cv_rpath+set}" = set; then
19501
20316
  echo $ECHO_N "(cached) $ECHO_C" >&6
19502
20317
else
19508
20323
    acl_cv_rpath=done
19509
20324
 
19510
20325
fi
19511
 
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19512
 
echo "${ECHO_T}$acl_cv_rpath" >&6
 
20326
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
20327
echo "${ECHO_T}$acl_cv_rpath" >&6; }
19513
20328
  wl="$acl_cv_wl"
19514
20329
  libext="$acl_cv_libext"
19515
20330
  shlibext="$acl_cv_shlibext"
19517
20332
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19518
20333
  hardcode_direct="$acl_cv_hardcode_direct"
19519
20334
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
19520
 
    # Check whether --enable-rpath or --disable-rpath was given.
 
20335
    # Check whether --enable-rpath was given.
19521
20336
if test "${enable_rpath+set}" = set; then
19522
 
  enableval="$enable_rpath"
19523
 
  :
 
20337
  enableval=$enable_rpath; :
19524
20338
else
19525
20339
  enable_rpath=yes
19526
 
fi;
 
20340
fi
 
20341
 
19527
20342
 
19528
20343
 
19529
20344
 
19545
20360
  prefix="$acl_save_prefix"
19546
20361
 
19547
20362
 
19548
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
20363
# Check whether --with-libiconv-prefix was given.
19549
20364
if test "${with_libiconv_prefix+set}" = set; then
19550
 
  withval="$with_libiconv_prefix"
19551
 
 
 
20365
  withval=$with_libiconv_prefix;
19552
20366
    if test "X$withval" = "Xno"; then
19553
20367
      use_additional=no
19554
20368
    else
19571
20385
      fi
19572
20386
    fi
19573
20387
 
19574
 
fi;
 
20388
fi
 
20389
 
19575
20390
      LIBICONV=
19576
20391
  LTLIBICONV=
19577
20392
  INCICONV=
19924
20739
 
19925
20740
 
19926
20741
 
19927
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19928
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
19929
 
    # Check whether --enable-nls or --disable-nls was given.
 
20742
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
20743
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
20744
    # Check whether --enable-nls was given.
19930
20745
if test "${enable_nls+set}" = set; then
19931
 
  enableval="$enable_nls"
19932
 
  USE_NLS=$enableval
 
20746
  enableval=$enable_nls; USE_NLS=$enableval
19933
20747
else
19934
20748
  USE_NLS=yes
19935
 
fi;
19936
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
19937
 
echo "${ECHO_T}$USE_NLS" >&6
 
20749
fi
 
20750
 
 
20751
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
20752
echo "${ECHO_T}$USE_NLS" >&6; }
19938
20753
 
19939
20754
 
19940
20755
 
19951
20766
 
19952
20767
 
19953
20768
 
19954
 
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
19955
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
20769
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
20770
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
19956
20771
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
19957
20772
  echo $ECHO_N "(cached) $ECHO_C" >&6
19958
20773
else
19975
20790
}
19976
20791
_ACEOF
19977
20792
rm -f conftest.$ac_objext conftest$ac_exeext
19978
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19979
 
  (eval $ac_link) 2>conftest.er1
 
20793
if { (ac_try="$ac_link"
 
20794
case "(($ac_try" in
 
20795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20796
  *) ac_try_echo=$ac_try;;
 
20797
esac
 
20798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20799
  (eval "$ac_link") 2>conftest.er1
19980
20800
  ac_status=$?
19981
20801
  grep -v '^ *+' conftest.er1 >conftest.err
19982
20802
  rm -f conftest.er1
19983
20803
  cat conftest.err >&5
19984
20804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985
 
  (exit $ac_status); } &&
19986
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988
 
  (eval $ac_try) 2>&5
19989
 
  ac_status=$?
19990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991
 
  (exit $ac_status); }; } &&
19992
 
         { ac_try='test -s conftest$ac_exeext'
19993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994
 
  (eval $ac_try) 2>&5
19995
 
  ac_status=$?
19996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997
 
  (exit $ac_status); }; }; then
 
20805
  (exit $ac_status); } && {
 
20806
         test -z "$ac_c_werror_flag" ||
 
20807
         test ! -s conftest.err
 
20808
       } && test -s conftest$ac_exeext &&
 
20809
       $as_test_x conftest$ac_exeext; then
19998
20810
  gt_cv_func_gnugettext1_libc=yes
19999
20811
else
20000
20812
  echo "$as_me: failed program was:" >&5
20001
20813
sed 's/^/| /' conftest.$ac_ext >&5
20002
20814
 
20003
 
gt_cv_func_gnugettext1_libc=no
 
20815
        gt_cv_func_gnugettext1_libc=no
20004
20816
fi
20005
 
rm -f conftest.err conftest.$ac_objext \
 
20817
 
 
20818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20006
20819
      conftest$ac_exeext conftest.$ac_ext
20007
20820
fi
20008
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
20009
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
20821
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
20822
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
20010
20823
 
20011
20824
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20012
20825
 
20039
20852
  done
20040
20853
 
20041
20854
 
20042
 
  echo "$as_me:$LINENO: checking for iconv" >&5
20043
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
20855
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
20856
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
20044
20857
if test "${am_cv_func_iconv+set}" = set; then
20045
20858
  echo $ECHO_N "(cached) $ECHO_C" >&6
20046
20859
else
20066
20879
}
20067
20880
_ACEOF
20068
20881
rm -f conftest.$ac_objext conftest$ac_exeext
20069
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20070
 
  (eval $ac_link) 2>conftest.er1
 
20882
if { (ac_try="$ac_link"
 
20883
case "(($ac_try" in
 
20884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20885
  *) ac_try_echo=$ac_try;;
 
20886
esac
 
20887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20888
  (eval "$ac_link") 2>conftest.er1
20071
20889
  ac_status=$?
20072
20890
  grep -v '^ *+' conftest.er1 >conftest.err
20073
20891
  rm -f conftest.er1
20074
20892
  cat conftest.err >&5
20075
20893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076
 
  (exit $ac_status); } &&
20077
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079
 
  (eval $ac_try) 2>&5
20080
 
  ac_status=$?
20081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082
 
  (exit $ac_status); }; } &&
20083
 
         { ac_try='test -s conftest$ac_exeext'
20084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085
 
  (eval $ac_try) 2>&5
20086
 
  ac_status=$?
20087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088
 
  (exit $ac_status); }; }; then
 
20894
  (exit $ac_status); } && {
 
20895
         test -z "$ac_c_werror_flag" ||
 
20896
         test ! -s conftest.err
 
20897
       } && test -s conftest$ac_exeext &&
 
20898
       $as_test_x conftest$ac_exeext; then
20089
20899
  am_cv_func_iconv=yes
20090
20900
else
20091
20901
  echo "$as_me: failed program was:" >&5
20092
20902
sed 's/^/| /' conftest.$ac_ext >&5
20093
20903
 
 
20904
 
20094
20905
fi
20095
 
rm -f conftest.err conftest.$ac_objext \
 
20906
 
 
20907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096
20908
      conftest$ac_exeext conftest.$ac_ext
20097
20909
    if test "$am_cv_func_iconv" != yes; then
20098
20910
      am_save_LIBS="$LIBS"
20116
20928
}
20117
20929
_ACEOF
20118
20930
rm -f conftest.$ac_objext conftest$ac_exeext
20119
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20120
 
  (eval $ac_link) 2>conftest.er1
 
20931
if { (ac_try="$ac_link"
 
20932
case "(($ac_try" in
 
20933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20934
  *) ac_try_echo=$ac_try;;
 
20935
esac
 
20936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20937
  (eval "$ac_link") 2>conftest.er1
20121
20938
  ac_status=$?
20122
20939
  grep -v '^ *+' conftest.er1 >conftest.err
20123
20940
  rm -f conftest.er1
20124
20941
  cat conftest.err >&5
20125
20942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126
 
  (exit $ac_status); } &&
20127
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20128
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129
 
  (eval $ac_try) 2>&5
20130
 
  ac_status=$?
20131
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132
 
  (exit $ac_status); }; } &&
20133
 
         { ac_try='test -s conftest$ac_exeext'
20134
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135
 
  (eval $ac_try) 2>&5
20136
 
  ac_status=$?
20137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138
 
  (exit $ac_status); }; }; then
 
20943
  (exit $ac_status); } && {
 
20944
         test -z "$ac_c_werror_flag" ||
 
20945
         test ! -s conftest.err
 
20946
       } && test -s conftest$ac_exeext &&
 
20947
       $as_test_x conftest$ac_exeext; then
20139
20948
  am_cv_lib_iconv=yes
20140
20949
        am_cv_func_iconv=yes
20141
20950
else
20142
20951
  echo "$as_me: failed program was:" >&5
20143
20952
sed 's/^/| /' conftest.$ac_ext >&5
20144
20953
 
 
20954
 
20145
20955
fi
20146
 
rm -f conftest.err conftest.$ac_objext \
 
20956
 
 
20957
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20147
20958
      conftest$ac_exeext conftest.$ac_ext
20148
20959
      LIBS="$am_save_LIBS"
20149
20960
    fi
20150
20961
 
20151
20962
fi
20152
 
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20153
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
20963
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
20964
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
20154
20965
  if test "$am_cv_func_iconv" = yes; then
20155
20966
 
20156
20967
cat >>confdefs.h <<\_ACEOF
20159
20970
 
20160
20971
  fi
20161
20972
  if test "$am_cv_lib_iconv" = yes; then
20162
 
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
20163
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
20164
 
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
20165
 
echo "${ECHO_T}$LIBICONV" >&6
 
20973
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
20974
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
20975
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
20976
echo "${ECHO_T}$LIBICONV" >&6; }
20166
20977
  else
20167
20978
            CPPFLAGS="$am_save_CPPFLAGS"
20168
20979
    LIBICONV=
20188
20999
  prefix="$acl_save_prefix"
20189
21000
 
20190
21001
 
20191
 
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
21002
# Check whether --with-libintl-prefix was given.
20192
21003
if test "${with_libintl_prefix+set}" = set; then
20193
 
  withval="$with_libintl_prefix"
20194
 
 
 
21004
  withval=$with_libintl_prefix;
20195
21005
    if test "X$withval" = "Xno"; then
20196
21006
      use_additional=no
20197
21007
    else
20214
21024
      fi
20215
21025
    fi
20216
21026
 
20217
 
fi;
 
21027
fi
 
21028
 
20218
21029
      LIBINTL=
20219
21030
  LTLIBINTL=
20220
21031
  INCINTL=
20550
21361
    done
20551
21362
  fi
20552
21363
 
20553
 
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
20554
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
21364
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
21365
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
20555
21366
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
20556
21367
  echo $ECHO_N "(cached) $ECHO_C" >&6
20557
21368
else
20582
21393
}
20583
21394
_ACEOF
20584
21395
rm -f conftest.$ac_objext conftest$ac_exeext
20585
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20586
 
  (eval $ac_link) 2>conftest.er1
 
21396
if { (ac_try="$ac_link"
 
21397
case "(($ac_try" in
 
21398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21399
  *) ac_try_echo=$ac_try;;
 
21400
esac
 
21401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21402
  (eval "$ac_link") 2>conftest.er1
20587
21403
  ac_status=$?
20588
21404
  grep -v '^ *+' conftest.er1 >conftest.err
20589
21405
  rm -f conftest.er1
20590
21406
  cat conftest.err >&5
20591
21407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592
 
  (exit $ac_status); } &&
20593
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20594
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595
 
  (eval $ac_try) 2>&5
20596
 
  ac_status=$?
20597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598
 
  (exit $ac_status); }; } &&
20599
 
         { ac_try='test -s conftest$ac_exeext'
20600
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601
 
  (eval $ac_try) 2>&5
20602
 
  ac_status=$?
20603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
 
  (exit $ac_status); }; }; then
 
21408
  (exit $ac_status); } && {
 
21409
         test -z "$ac_c_werror_flag" ||
 
21410
         test ! -s conftest.err
 
21411
       } && test -s conftest$ac_exeext &&
 
21412
       $as_test_x conftest$ac_exeext; then
20605
21413
  gt_cv_func_gnugettext1_libintl=yes
20606
21414
else
20607
21415
  echo "$as_me: failed program was:" >&5
20608
21416
sed 's/^/| /' conftest.$ac_ext >&5
20609
21417
 
20610
 
gt_cv_func_gnugettext1_libintl=no
 
21418
        gt_cv_func_gnugettext1_libintl=no
20611
21419
fi
20612
 
rm -f conftest.err conftest.$ac_objext \
 
21420
 
 
21421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613
21422
      conftest$ac_exeext conftest.$ac_ext
20614
21423
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20615
21424
              LIBS="$LIBS $LIBICONV"
20636
21445
}
20637
21446
_ACEOF
20638
21447
rm -f conftest.$ac_objext conftest$ac_exeext
20639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20640
 
  (eval $ac_link) 2>conftest.er1
 
21448
if { (ac_try="$ac_link"
 
21449
case "(($ac_try" in
 
21450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21451
  *) ac_try_echo=$ac_try;;
 
21452
esac
 
21453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21454
  (eval "$ac_link") 2>conftest.er1
20641
21455
  ac_status=$?
20642
21456
  grep -v '^ *+' conftest.er1 >conftest.err
20643
21457
  rm -f conftest.er1
20644
21458
  cat conftest.err >&5
20645
21459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646
 
  (exit $ac_status); } &&
20647
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649
 
  (eval $ac_try) 2>&5
20650
 
  ac_status=$?
20651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652
 
  (exit $ac_status); }; } &&
20653
 
         { ac_try='test -s conftest$ac_exeext'
20654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655
 
  (eval $ac_try) 2>&5
20656
 
  ac_status=$?
20657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658
 
  (exit $ac_status); }; }; then
 
21460
  (exit $ac_status); } && {
 
21461
         test -z "$ac_c_werror_flag" ||
 
21462
         test ! -s conftest.err
 
21463
       } && test -s conftest$ac_exeext &&
 
21464
       $as_test_x conftest$ac_exeext; then
20659
21465
  LIBINTL="$LIBINTL $LIBICONV"
20660
21466
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20661
21467
                gt_cv_func_gnugettext1_libintl=yes
20664
21470
  echo "$as_me: failed program was:" >&5
20665
21471
sed 's/^/| /' conftest.$ac_ext >&5
20666
21472
 
 
21473
 
20667
21474
fi
20668
 
rm -f conftest.err conftest.$ac_objext \
 
21475
 
 
21476
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20669
21477
      conftest$ac_exeext conftest.$ac_ext
20670
21478
            fi
20671
21479
            CPPFLAGS="$gt_save_CPPFLAGS"
20672
21480
            LIBS="$gt_save_LIBS"
20673
21481
fi
20674
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
20675
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
21482
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
21483
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
20676
21484
        fi
20677
21485
 
20678
21486
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20700
21508
    fi
20701
21509
  fi
20702
21510
 
20703
 
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
20704
 
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
20705
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
20706
 
echo "${ECHO_T}$USE_NLS" >&6
 
21511
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
21512
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
 
21513
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
21514
echo "${ECHO_T}$USE_NLS" >&6; }
20707
21515
  if test "$USE_NLS" = "yes"; then
20708
 
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
20709
 
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
21516
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
21517
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
20710
21518
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20711
21519
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20712
21520
        gt_source="external libintl"
20716
21524
    else
20717
21525
      gt_source="included intl directory"
20718
21526
    fi
20719
 
    echo "$as_me:$LINENO: result: $gt_source" >&5
20720
 
echo "${ECHO_T}$gt_source" >&6
 
21527
    { echo "$as_me:$LINENO: result: $gt_source" >&5
 
21528
echo "${ECHO_T}$gt_source" >&6; }
20721
21529
  fi
20722
21530
 
20723
21531
  if test "$USE_NLS" = "yes"; then
20724
21532
 
20725
21533
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20726
21534
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20727
 
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
20728
 
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
20729
 
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
20730
 
echo "${ECHO_T}$LIBINTL" >&6
 
21535
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
21536
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
 
21537
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
21538
echo "${ECHO_T}$LIBINTL" >&6; }
20731
21539
 
20732
21540
  for element in $INCINTL; do
20733
21541
    haveit=
20779
21587
 
20780
21588
 
20781
21589
 
20782
 
  succeeded=no
20783
 
 
20784
 
  if test -z "$PKG_CONFIG"; then
20785
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
20786
 
set dummy pkg-config; ac_word=$2
20787
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
20788
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20789
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20790
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20791
 
else
20792
 
  case $PKG_CONFIG in
20793
 
  [\\/]* | ?:[\\/]*)
20794
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21590
 
 
21591
 
 
21592
# Prepare PATH_SEPARATOR.
 
21593
# The user is always right.
 
21594
if test "${PATH_SEPARATOR+set}" != set; then
 
21595
  echo "#! /bin/sh" >conf$$.sh
 
21596
  echo  "exit 0"   >>conf$$.sh
 
21597
  chmod +x conf$$.sh
 
21598
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21599
    PATH_SEPARATOR=';'
 
21600
  else
 
21601
    PATH_SEPARATOR=:
 
21602
  fi
 
21603
  rm -f conf$$.sh
 
21604
fi
 
21605
 
 
21606
# Find out how to test for executable files. Don't use a zero-byte file,
 
21607
# as systems may use methods other than mode bits to determine executability.
 
21608
cat >conf$$.file <<_ASEOF
 
21609
#! /bin/sh
 
21610
exit 0
 
21611
_ASEOF
 
21612
chmod +x conf$$.file
 
21613
if test -x conf$$.file >/dev/null 2>&1; then
 
21614
  ac_executable_p="test -x"
 
21615
else
 
21616
  ac_executable_p="test -f"
 
21617
fi
 
21618
rm -f conf$$.file
 
21619
 
 
21620
# Extract the first word of "msgfmt", so it can be a program name with args.
 
21621
set dummy msgfmt; ac_word=$2
 
21622
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21624
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21626
else
 
21627
  case "$MSGFMT" in
 
21628
  [\\/]* | ?:[\\/]*)
 
21629
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21630
    ;;
 
21631
  *)
 
21632
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
21633
    for ac_dir in $PATH; do
 
21634
      IFS="$ac_save_IFS"
 
21635
      test -z "$ac_dir" && ac_dir=.
 
21636
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21637
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
21638
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
21639
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
21640
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
21641
            break 2
 
21642
          fi
 
21643
        fi
 
21644
      done
 
21645
    done
 
21646
    IFS="$ac_save_IFS"
 
21647
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
21648
    ;;
 
21649
esac
 
21650
fi
 
21651
MSGFMT="$ac_cv_path_MSGFMT"
 
21652
if test "$MSGFMT" != ":"; then
 
21653
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21654
echo "${ECHO_T}$MSGFMT" >&6; }
 
21655
else
 
21656
  { echo "$as_me:$LINENO: result: no" >&5
 
21657
echo "${ECHO_T}no" >&6; }
 
21658
fi
 
21659
 
 
21660
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21661
set dummy gmsgfmt; ac_word=$2
 
21662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21664
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21666
else
 
21667
  case $GMSGFMT in
 
21668
  [\\/]* | ?:[\\/]*)
 
21669
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20795
21670
  ;;
20796
21671
  *)
20797
21672
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20800
21675
  IFS=$as_save_IFS
20801
21676
  test -z "$as_dir" && as_dir=.
20802
21677
  for ac_exec_ext in '' $ac_executable_extensions; do
20803
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20804
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21679
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20805
21680
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20806
21681
    break 2
20807
21682
  fi
20808
21683
done
20809
21684
done
 
21685
IFS=$as_save_IFS
20810
21686
 
20811
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21687
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20812
21688
  ;;
20813
21689
esac
20814
21690
fi
20815
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20816
 
 
20817
 
if test -n "$PKG_CONFIG"; then
20818
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20819
 
echo "${ECHO_T}$PKG_CONFIG" >&6
20820
 
else
20821
 
  echo "$as_me:$LINENO: result: no" >&5
20822
 
echo "${ECHO_T}no" >&6
20823
 
fi
20824
 
 
20825
 
  fi
20826
 
 
20827
 
  if test "$PKG_CONFIG" = "no" ; then
20828
 
     echo "*** The pkg-config script could not be found. Make sure it is"
20829
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
20830
 
     echo "*** to the full path to pkg-config."
20831
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20832
 
  else
20833
 
     PKG_CONFIG_MIN_VERSION=0.9.0
20834
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20835
 
        echo "$as_me:$LINENO: checking for libexif >= 0.6.9" >&5
20836
 
echo $ECHO_N "checking for libexif >= 0.6.9... $ECHO_C" >&6
20837
 
 
20838
 
        if $PKG_CONFIG --exists "libexif >= 0.6.9" ; then
20839
 
            echo "$as_me:$LINENO: result: yes" >&5
20840
 
echo "${ECHO_T}yes" >&6
20841
 
            succeeded=yes
20842
 
 
20843
 
            echo "$as_me:$LINENO: checking LIBEXIF_CFLAGS" >&5
20844
 
echo $ECHO_N "checking LIBEXIF_CFLAGS... $ECHO_C" >&6
20845
 
            LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.9"`
20846
 
            echo "$as_me:$LINENO: result: $LIBEXIF_CFLAGS" >&5
20847
 
echo "${ECHO_T}$LIBEXIF_CFLAGS" >&6
20848
 
 
20849
 
            echo "$as_me:$LINENO: checking LIBEXIF_LIBS" >&5
20850
 
echo $ECHO_N "checking LIBEXIF_LIBS... $ECHO_C" >&6
20851
 
            LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.9"`
20852
 
            echo "$as_me:$LINENO: result: $LIBEXIF_LIBS" >&5
20853
 
echo "${ECHO_T}$LIBEXIF_LIBS" >&6
20854
 
        else
20855
 
            LIBEXIF_CFLAGS=""
20856
 
            LIBEXIF_LIBS=""
20857
 
            ## If we have a custom action on failure, don't print errors, but
20858
 
            ## do set a variable so people can do so.
20859
 
            LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif >= 0.6.9"`
20860
 
            echo $LIBEXIF_PKG_ERRORS
20861
 
        fi
20862
 
 
20863
 
 
20864
 
 
20865
 
     else
20866
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20867
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
20868
 
     fi
20869
 
  fi
20870
 
 
20871
 
  if test $succeeded = yes; then
20872
 
     :
20873
 
  else
20874
 
     { { echo "$as_me:$LINENO: error: Library requirements (libexif >= 0.6.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20875
 
echo "$as_me: error: Library requirements (libexif >= 0.6.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20876
 
   { (exit 1); exit 1; }; }
20877
 
  fi
20878
 
 
20879
 
 
20880
 
 
20881
 
 
 
21691
GMSGFMT=$ac_cv_path_GMSGFMT
 
21692
if test -n "$GMSGFMT"; then
 
21693
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21694
echo "${ECHO_T}$GMSGFMT" >&6; }
 
21695
else
 
21696
  { echo "$as_me:$LINENO: result: no" >&5
 
21697
echo "${ECHO_T}no" >&6; }
 
21698
fi
 
21699
 
 
21700
 
 
21701
 
 
21702
 
 
21703
# Prepare PATH_SEPARATOR.
 
21704
# The user is always right.
 
21705
if test "${PATH_SEPARATOR+set}" != set; then
 
21706
  echo "#! /bin/sh" >conf$$.sh
 
21707
  echo  "exit 0"   >>conf$$.sh
 
21708
  chmod +x conf$$.sh
 
21709
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21710
    PATH_SEPARATOR=';'
 
21711
  else
 
21712
    PATH_SEPARATOR=:
 
21713
  fi
 
21714
  rm -f conf$$.sh
 
21715
fi
 
21716
 
 
21717
# Find out how to test for executable files. Don't use a zero-byte file,
 
21718
# as systems may use methods other than mode bits to determine executability.
 
21719
cat >conf$$.file <<_ASEOF
 
21720
#! /bin/sh
 
21721
exit 0
 
21722
_ASEOF
 
21723
chmod +x conf$$.file
 
21724
if test -x conf$$.file >/dev/null 2>&1; then
 
21725
  ac_executable_p="test -x"
 
21726
else
 
21727
  ac_executable_p="test -f"
 
21728
fi
 
21729
rm -f conf$$.file
 
21730
 
 
21731
# Extract the first word of "xgettext", so it can be a program name with args.
 
21732
set dummy xgettext; ac_word=$2
 
21733
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21735
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21737
else
 
21738
  case "$XGETTEXT" in
 
21739
  [\\/]* | ?:[\\/]*)
 
21740
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21741
    ;;
 
21742
  *)
 
21743
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
21744
    for ac_dir in $PATH; do
 
21745
      IFS="$ac_save_IFS"
 
21746
      test -z "$ac_dir" && ac_dir=.
 
21747
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21748
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
21749
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
21750
     (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
 
21751
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
21752
            break 2
 
21753
          fi
 
21754
        fi
 
21755
      done
 
21756
    done
 
21757
    IFS="$ac_save_IFS"
 
21758
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21759
    ;;
 
21760
esac
 
21761
fi
 
21762
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21763
if test "$XGETTEXT" != ":"; then
 
21764
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21765
echo "${ECHO_T}$XGETTEXT" >&6; }
 
21766
else
 
21767
  { echo "$as_me:$LINENO: result: no" >&5
 
21768
echo "${ECHO_T}no" >&6; }
 
21769
fi
 
21770
 
 
21771
    rm -f messages.po
 
21772
 
 
21773
 
 
21774
# Prepare PATH_SEPARATOR.
 
21775
# The user is always right.
 
21776
if test "${PATH_SEPARATOR+set}" != set; then
 
21777
  echo "#! /bin/sh" >conf$$.sh
 
21778
  echo  "exit 0"   >>conf$$.sh
 
21779
  chmod +x conf$$.sh
 
21780
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21781
    PATH_SEPARATOR=';'
 
21782
  else
 
21783
    PATH_SEPARATOR=:
 
21784
  fi
 
21785
  rm -f conf$$.sh
 
21786
fi
 
21787
 
 
21788
# Find out how to test for executable files. Don't use a zero-byte file,
 
21789
# as systems may use methods other than mode bits to determine executability.
 
21790
cat >conf$$.file <<_ASEOF
 
21791
#! /bin/sh
 
21792
exit 0
 
21793
_ASEOF
 
21794
chmod +x conf$$.file
 
21795
if test -x conf$$.file >/dev/null 2>&1; then
 
21796
  ac_executable_p="test -x"
 
21797
else
 
21798
  ac_executable_p="test -f"
 
21799
fi
 
21800
rm -f conf$$.file
 
21801
 
 
21802
# Extract the first word of "msgmerge", so it can be a program name with args.
 
21803
set dummy msgmerge; ac_word=$2
 
21804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21806
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
21807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21808
else
 
21809
  case "$MSGMERGE" in
 
21810
  [\\/]* | ?:[\\/]*)
 
21811
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
21812
    ;;
 
21813
  *)
 
21814
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
21815
    for ac_dir in $PATH; do
 
21816
      IFS="$ac_save_IFS"
 
21817
      test -z "$ac_dir" && ac_dir=.
 
21818
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21819
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
21820
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
21821
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
21822
            break 2
 
21823
          fi
 
21824
        fi
 
21825
      done
 
21826
    done
 
21827
    IFS="$ac_save_IFS"
 
21828
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
21829
    ;;
 
21830
esac
 
21831
fi
 
21832
MSGMERGE="$ac_cv_path_MSGMERGE"
 
21833
if test "$MSGMERGE" != ":"; then
 
21834
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
21835
echo "${ECHO_T}$MSGMERGE" >&6; }
 
21836
else
 
21837
  { echo "$as_me:$LINENO: result: no" >&5
 
21838
echo "${ECHO_T}no" >&6; }
 
21839
fi
 
21840
 
 
21841
 
 
21842
      if test "$GMSGFMT" != ":"; then
 
21843
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
21844
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
21845
      : ;
 
21846
    else
 
21847
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
21848
      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
21849
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
 
21850
      GMSGFMT=":"
 
21851
    fi
 
21852
  fi
 
21853
 
 
21854
      if test "$XGETTEXT" != ":"; then
 
21855
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
21856
       (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
 
21857
      : ;
 
21858
    else
 
21859
      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
21860
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 
21861
      XGETTEXT=":"
 
21862
    fi
 
21863
        rm -f messages.po
 
21864
  fi
 
21865
 
 
21866
  ac_config_commands="$ac_config_commands default-2"
 
21867
 
 
21868
 
 
21869
 
 
21870
 
 
21871
 
 
21872
 
 
21873
 
 
21874
          am_save_CPPFLAGS="$CPPFLAGS"
 
21875
 
 
21876
  for element in $INCICONV; do
 
21877
    haveit=
 
21878
    for x in $CPPFLAGS; do
 
21879
 
 
21880
  acl_save_prefix="$prefix"
 
21881
  prefix="$acl_final_prefix"
 
21882
  acl_save_exec_prefix="$exec_prefix"
 
21883
  exec_prefix="$acl_final_exec_prefix"
 
21884
  eval x=\"$x\"
 
21885
  exec_prefix="$acl_save_exec_prefix"
 
21886
  prefix="$acl_save_prefix"
 
21887
 
 
21888
      if test "X$x" = "X$element"; then
 
21889
        haveit=yes
 
21890
        break
 
21891
      fi
 
21892
    done
 
21893
    if test -z "$haveit"; then
 
21894
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
21895
    fi
 
21896
  done
 
21897
 
 
21898
 
 
21899
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
21900
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
 
21901
if test "${am_cv_func_iconv+set}" = set; then
 
21902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21903
else
 
21904
 
 
21905
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
21906
    am_cv_lib_iconv=no
 
21907
    cat >conftest.$ac_ext <<_ACEOF
 
21908
/* confdefs.h.  */
 
21909
_ACEOF
 
21910
cat confdefs.h >>conftest.$ac_ext
 
21911
cat >>conftest.$ac_ext <<_ACEOF
 
21912
/* end confdefs.h.  */
 
21913
#include <stdlib.h>
 
21914
#include <iconv.h>
 
21915
int
 
21916
main ()
 
21917
{
 
21918
iconv_t cd = iconv_open("","");
 
21919
       iconv(cd,NULL,NULL,NULL,NULL);
 
21920
       iconv_close(cd);
 
21921
  ;
 
21922
  return 0;
 
21923
}
 
21924
_ACEOF
 
21925
rm -f conftest.$ac_objext conftest$ac_exeext
 
21926
if { (ac_try="$ac_link"
 
21927
case "(($ac_try" in
 
21928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21929
  *) ac_try_echo=$ac_try;;
 
21930
esac
 
21931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21932
  (eval "$ac_link") 2>conftest.er1
 
21933
  ac_status=$?
 
21934
  grep -v '^ *+' conftest.er1 >conftest.err
 
21935
  rm -f conftest.er1
 
21936
  cat conftest.err >&5
 
21937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21938
  (exit $ac_status); } && {
 
21939
         test -z "$ac_c_werror_flag" ||
 
21940
         test ! -s conftest.err
 
21941
       } && test -s conftest$ac_exeext &&
 
21942
       $as_test_x conftest$ac_exeext; then
 
21943
  am_cv_func_iconv=yes
 
21944
else
 
21945
  echo "$as_me: failed program was:" >&5
 
21946
sed 's/^/| /' conftest.$ac_ext >&5
 
21947
 
 
21948
 
 
21949
fi
 
21950
 
 
21951
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21952
      conftest$ac_exeext conftest.$ac_ext
 
21953
    if test "$am_cv_func_iconv" != yes; then
 
21954
      am_save_LIBS="$LIBS"
 
21955
      LIBS="$LIBS $LIBICONV"
 
21956
      cat >conftest.$ac_ext <<_ACEOF
 
21957
/* confdefs.h.  */
 
21958
_ACEOF
 
21959
cat confdefs.h >>conftest.$ac_ext
 
21960
cat >>conftest.$ac_ext <<_ACEOF
 
21961
/* end confdefs.h.  */
 
21962
#include <stdlib.h>
 
21963
#include <iconv.h>
 
21964
int
 
21965
main ()
 
21966
{
 
21967
iconv_t cd = iconv_open("","");
 
21968
         iconv(cd,NULL,NULL,NULL,NULL);
 
21969
         iconv_close(cd);
 
21970
  ;
 
21971
  return 0;
 
21972
}
 
21973
_ACEOF
 
21974
rm -f conftest.$ac_objext conftest$ac_exeext
 
21975
if { (ac_try="$ac_link"
 
21976
case "(($ac_try" in
 
21977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21978
  *) ac_try_echo=$ac_try;;
 
21979
esac
 
21980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21981
  (eval "$ac_link") 2>conftest.er1
 
21982
  ac_status=$?
 
21983
  grep -v '^ *+' conftest.er1 >conftest.err
 
21984
  rm -f conftest.er1
 
21985
  cat conftest.err >&5
 
21986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21987
  (exit $ac_status); } && {
 
21988
         test -z "$ac_c_werror_flag" ||
 
21989
         test ! -s conftest.err
 
21990
       } && test -s conftest$ac_exeext &&
 
21991
       $as_test_x conftest$ac_exeext; then
 
21992
  am_cv_lib_iconv=yes
 
21993
        am_cv_func_iconv=yes
 
21994
else
 
21995
  echo "$as_me: failed program was:" >&5
 
21996
sed 's/^/| /' conftest.$ac_ext >&5
 
21997
 
 
21998
 
 
21999
fi
 
22000
 
 
22001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22002
      conftest$ac_exeext conftest.$ac_ext
 
22003
      LIBS="$am_save_LIBS"
 
22004
    fi
 
22005
 
 
22006
fi
 
22007
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
22008
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
22009
  if test "$am_cv_func_iconv" = yes; then
 
22010
 
 
22011
cat >>confdefs.h <<\_ACEOF
 
22012
#define HAVE_ICONV 1
 
22013
_ACEOF
 
22014
 
 
22015
  fi
 
22016
  if test "$am_cv_lib_iconv" = yes; then
 
22017
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
22018
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
22019
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
22020
echo "${ECHO_T}$LIBICONV" >&6; }
 
22021
  else
 
22022
            CPPFLAGS="$am_save_CPPFLAGS"
 
22023
    LIBICONV=
 
22024
    LTLIBICONV=
 
22025
  fi
 
22026
 
 
22027
 
 
22028
 
 
22029
  if test "$am_cv_func_iconv" = yes; then
 
22030
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
22031
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
 
22032
    if test "${am_cv_proto_iconv+set}" = set; then
 
22033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22034
else
 
22035
 
 
22036
      cat >conftest.$ac_ext <<_ACEOF
 
22037
/* confdefs.h.  */
 
22038
_ACEOF
 
22039
cat confdefs.h >>conftest.$ac_ext
 
22040
cat >>conftest.$ac_ext <<_ACEOF
 
22041
/* end confdefs.h.  */
 
22042
 
 
22043
#include <stdlib.h>
 
22044
#include <iconv.h>
 
22045
extern
 
22046
#ifdef __cplusplus
 
22047
"C"
 
22048
#endif
 
22049
#if defined(__STDC__) || defined(__cplusplus)
 
22050
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
22051
#else
 
22052
size_t iconv();
 
22053
#endif
 
22054
 
 
22055
int
 
22056
main ()
 
22057
{
 
22058
 
 
22059
  ;
 
22060
  return 0;
 
22061
}
 
22062
_ACEOF
 
22063
rm -f conftest.$ac_objext
 
22064
if { (ac_try="$ac_compile"
 
22065
case "(($ac_try" in
 
22066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22067
  *) ac_try_echo=$ac_try;;
 
22068
esac
 
22069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22070
  (eval "$ac_compile") 2>conftest.er1
 
22071
  ac_status=$?
 
22072
  grep -v '^ *+' conftest.er1 >conftest.err
 
22073
  rm -f conftest.er1
 
22074
  cat conftest.err >&5
 
22075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22076
  (exit $ac_status); } && {
 
22077
         test -z "$ac_c_werror_flag" ||
 
22078
         test ! -s conftest.err
 
22079
       } && test -s conftest.$ac_objext; then
 
22080
  am_cv_proto_iconv_arg1=""
 
22081
else
 
22082
  echo "$as_me: failed program was:" >&5
 
22083
sed 's/^/| /' conftest.$ac_ext >&5
 
22084
 
 
22085
        am_cv_proto_iconv_arg1="const"
 
22086
fi
 
22087
 
 
22088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22089
      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);"
 
22090
fi
 
22091
 
 
22092
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
22093
    { echo "$as_me:$LINENO: result: ${ac_t:-
 
22094
         }$am_cv_proto_iconv" >&5
 
22095
echo "${ECHO_T}${ac_t:-
 
22096
         }$am_cv_proto_iconv" >&6; }
 
22097
 
 
22098
cat >>confdefs.h <<_ACEOF
 
22099
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
22100
_ACEOF
 
22101
 
 
22102
  fi
 
22103
 
 
22104
 
 
22105
 
 
22106
 
 
22107
if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
 
22108
   AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
 
22109
fi
 
22110
 
 
22111
gp_config_msg_len="$(expr "Use translations" : '.*')"
 
22112
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
22113
        gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
22114
else
 
22115
        gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
22116
fi
 
22117
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${USE_NLS}
 
22118
"
 
22119
 
 
22120
if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
 
22121
 
 
22122
gp_config_msg_len="$(expr "Use included libintl" : '.*')"
 
22123
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
22124
        gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
22125
else
 
22126
        gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
22127
fi
 
22128
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
 
22129
"
 
22130
 
 
22131
fi
 
22132
 
 
22133
 
 
22134
# We cannot use [AC_DEFINE_UNQUOTED()] for these definitions, as
 
22135
# we require make to do insert the proper $(datadir) value
 
22136
localedir="\$(datadir)/locale"
 
22137
 
 
22138
AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
 
22139
 
 
22140
# ---------------------------------------------------------------------------
 
22141
# locale.h: locale.h provides setlocale. It seems that some systems don't
 
22142
#           have it (at least if configured --without-nls).
 
22143
# ---------------------------------------------------------------------------
20882
22144
 
20883
22145
for ac_header in locale.h
20884
22146
do
20885
22147
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20886
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20887
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20888
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20889
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20890
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20891
 
fi
20892
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20893
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20894
 
else
20895
 
  # Is the header compilable?
20896
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20897
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20898
 
cat >conftest.$ac_ext <<_ACEOF
20899
 
/* confdefs.h.  */
20900
 
_ACEOF
20901
 
cat confdefs.h >>conftest.$ac_ext
20902
 
cat >>conftest.$ac_ext <<_ACEOF
20903
 
/* end confdefs.h.  */
20904
 
$ac_includes_default
20905
 
#include <$ac_header>
20906
 
_ACEOF
20907
 
rm -f conftest.$ac_objext
20908
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909
 
  (eval $ac_compile) 2>conftest.er1
20910
 
  ac_status=$?
20911
 
  grep -v '^ *+' conftest.er1 >conftest.err
20912
 
  rm -f conftest.er1
20913
 
  cat conftest.err >&5
20914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915
 
  (exit $ac_status); } &&
20916
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20917
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918
 
  (eval $ac_try) 2>&5
20919
 
  ac_status=$?
20920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921
 
  (exit $ac_status); }; } &&
20922
 
         { ac_try='test -s conftest.$ac_objext'
20923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924
 
  (eval $ac_try) 2>&5
20925
 
  ac_status=$?
20926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
 
  (exit $ac_status); }; }; then
20928
 
  ac_header_compiler=yes
20929
 
else
20930
 
  echo "$as_me: failed program was:" >&5
20931
 
sed 's/^/| /' conftest.$ac_ext >&5
20932
 
 
20933
 
ac_header_compiler=no
20934
 
fi
20935
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20937
 
echo "${ECHO_T}$ac_header_compiler" >&6
20938
 
 
20939
 
# Is the header present?
20940
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20941
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20942
 
cat >conftest.$ac_ext <<_ACEOF
20943
 
/* confdefs.h.  */
20944
 
_ACEOF
20945
 
cat confdefs.h >>conftest.$ac_ext
20946
 
cat >>conftest.$ac_ext <<_ACEOF
20947
 
/* end confdefs.h.  */
20948
 
#include <$ac_header>
20949
 
_ACEOF
20950
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20952
 
  ac_status=$?
20953
 
  grep -v '^ *+' conftest.er1 >conftest.err
20954
 
  rm -f conftest.er1
20955
 
  cat conftest.err >&5
20956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957
 
  (exit $ac_status); } >/dev/null; then
20958
 
  if test -s conftest.err; then
20959
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20960
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22148
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22149
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22153
fi
 
22154
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22155
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22156
echo "${ECHO_T}$ac_res" >&6; }
 
22157
else
 
22158
  # Is the header compilable?
 
22159
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22160
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22161
cat >conftest.$ac_ext <<_ACEOF
 
22162
/* confdefs.h.  */
 
22163
_ACEOF
 
22164
cat confdefs.h >>conftest.$ac_ext
 
22165
cat >>conftest.$ac_ext <<_ACEOF
 
22166
/* end confdefs.h.  */
 
22167
$ac_includes_default
 
22168
#include <$ac_header>
 
22169
_ACEOF
 
22170
rm -f conftest.$ac_objext
 
22171
if { (ac_try="$ac_compile"
 
22172
case "(($ac_try" in
 
22173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22174
  *) ac_try_echo=$ac_try;;
 
22175
esac
 
22176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22177
  (eval "$ac_compile") 2>conftest.er1
 
22178
  ac_status=$?
 
22179
  grep -v '^ *+' conftest.er1 >conftest.err
 
22180
  rm -f conftest.er1
 
22181
  cat conftest.err >&5
 
22182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22183
  (exit $ac_status); } && {
 
22184
         test -z "$ac_c_werror_flag" ||
 
22185
         test ! -s conftest.err
 
22186
       } && test -s conftest.$ac_objext; then
 
22187
  ac_header_compiler=yes
 
22188
else
 
22189
  echo "$as_me: failed program was:" >&5
 
22190
sed 's/^/| /' conftest.$ac_ext >&5
 
22191
 
 
22192
        ac_header_compiler=no
 
22193
fi
 
22194
 
 
22195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22196
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22197
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22198
 
 
22199
# Is the header present?
 
22200
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22201
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22202
cat >conftest.$ac_ext <<_ACEOF
 
22203
/* confdefs.h.  */
 
22204
_ACEOF
 
22205
cat confdefs.h >>conftest.$ac_ext
 
22206
cat >>conftest.$ac_ext <<_ACEOF
 
22207
/* end confdefs.h.  */
 
22208
#include <$ac_header>
 
22209
_ACEOF
 
22210
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22211
case "(($ac_try" in
 
22212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22213
  *) ac_try_echo=$ac_try;;
 
22214
esac
 
22215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22216
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22217
  ac_status=$?
 
22218
  grep -v '^ *+' conftest.er1 >conftest.err
 
22219
  rm -f conftest.er1
 
22220
  cat conftest.err >&5
 
22221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22222
  (exit $ac_status); } >/dev/null && {
 
22223
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22224
         test ! -s conftest.err
 
22225
       }; then
 
22226
  ac_header_preproc=yes
 
22227
else
 
22228
  echo "$as_me: failed program was:" >&5
 
22229
sed 's/^/| /' conftest.$ac_ext >&5
 
22230
 
 
22231
  ac_header_preproc=no
 
22232
fi
 
22233
 
 
22234
rm -f conftest.err conftest.$ac_ext
 
22235
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22236
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22237
 
 
22238
# So?  What about this header?
 
22239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22240
  yes:no: )
 
22241
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22243
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22245
    ac_header_preproc=yes
 
22246
    ;;
 
22247
  no:yes:* )
 
22248
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22250
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22251
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22252
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22254
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22255
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22256
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22258
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22260
    ( cat <<\_ASBOX
 
22261
## -------------------------------------------------- ##
 
22262
## Report this to libexif-devel@lists.sourceforge.net ##
 
22263
## -------------------------------------------------- ##
 
22264
_ASBOX
 
22265
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22266
    ;;
 
22267
esac
 
22268
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22269
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22272
else
 
22273
  eval "$as_ac_Header=\$ac_header_preproc"
 
22274
fi
 
22275
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22276
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22277
echo "${ECHO_T}$ac_res" >&6; }
 
22278
 
 
22279
fi
 
22280
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22281
  cat >>confdefs.h <<_ACEOF
 
22282
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22283
_ACEOF
 
22284
 
 
22285
fi
 
22286
 
 
22287
done
 
22288
 
 
22289
if test "${ac_cv_header_iconv_h+set}" = set; then
 
22290
  { echo "$as_me:$LINENO: checking for iconv.h" >&5
 
22291
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
 
22292
if test "${ac_cv_header_iconv_h+set}" = set; then
 
22293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22294
fi
 
22295
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
22296
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
 
22297
else
 
22298
  # Is the header compilable?
 
22299
{ echo "$as_me:$LINENO: checking iconv.h usability" >&5
 
22300
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
 
22301
cat >conftest.$ac_ext <<_ACEOF
 
22302
/* confdefs.h.  */
 
22303
_ACEOF
 
22304
cat confdefs.h >>conftest.$ac_ext
 
22305
cat >>conftest.$ac_ext <<_ACEOF
 
22306
/* end confdefs.h.  */
 
22307
$ac_includes_default
 
22308
#include <iconv.h>
 
22309
_ACEOF
 
22310
rm -f conftest.$ac_objext
 
22311
if { (ac_try="$ac_compile"
 
22312
case "(($ac_try" in
 
22313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22314
  *) ac_try_echo=$ac_try;;
 
22315
esac
 
22316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22317
  (eval "$ac_compile") 2>conftest.er1
 
22318
  ac_status=$?
 
22319
  grep -v '^ *+' conftest.er1 >conftest.err
 
22320
  rm -f conftest.er1
 
22321
  cat conftest.err >&5
 
22322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22323
  (exit $ac_status); } && {
 
22324
         test -z "$ac_c_werror_flag" ||
 
22325
         test ! -s conftest.err
 
22326
       } && test -s conftest.$ac_objext; then
 
22327
  ac_header_compiler=yes
 
22328
else
 
22329
  echo "$as_me: failed program was:" >&5
 
22330
sed 's/^/| /' conftest.$ac_ext >&5
 
22331
 
 
22332
        ac_header_compiler=no
 
22333
fi
 
22334
 
 
22335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22336
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22337
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22338
 
 
22339
# Is the header present?
 
22340
{ echo "$as_me:$LINENO: checking iconv.h presence" >&5
 
22341
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
 
22342
cat >conftest.$ac_ext <<_ACEOF
 
22343
/* confdefs.h.  */
 
22344
_ACEOF
 
22345
cat confdefs.h >>conftest.$ac_ext
 
22346
cat >>conftest.$ac_ext <<_ACEOF
 
22347
/* end confdefs.h.  */
 
22348
#include <iconv.h>
 
22349
_ACEOF
 
22350
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22351
case "(($ac_try" in
 
22352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22353
  *) ac_try_echo=$ac_try;;
 
22354
esac
 
22355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22356
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22357
  ac_status=$?
 
22358
  grep -v '^ *+' conftest.er1 >conftest.err
 
22359
  rm -f conftest.er1
 
22360
  cat conftest.err >&5
 
22361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22362
  (exit $ac_status); } >/dev/null && {
 
22363
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22364
         test ! -s conftest.err
 
22365
       }; then
 
22366
  ac_header_preproc=yes
 
22367
else
 
22368
  echo "$as_me: failed program was:" >&5
 
22369
sed 's/^/| /' conftest.$ac_ext >&5
 
22370
 
 
22371
  ac_header_preproc=no
 
22372
fi
 
22373
 
 
22374
rm -f conftest.err conftest.$ac_ext
 
22375
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22376
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22377
 
 
22378
# So?  What about this header?
 
22379
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22380
  yes:no: )
 
22381
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22382
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22383
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
 
22384
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
 
22385
    ac_header_preproc=yes
 
22386
    ;;
 
22387
  no:yes:* )
 
22388
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
 
22389
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
 
22390
    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
 
22391
echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
 
22392
    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
 
22393
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
 
22394
    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22395
echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22396
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
 
22397
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
 
22398
    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
 
22399
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
 
22400
    ( cat <<\_ASBOX
 
22401
## -------------------------------------------------- ##
 
22402
## Report this to libexif-devel@lists.sourceforge.net ##
 
22403
## -------------------------------------------------- ##
 
22404
_ASBOX
 
22405
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22406
    ;;
 
22407
esac
 
22408
{ echo "$as_me:$LINENO: checking for iconv.h" >&5
 
22409
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
 
22410
if test "${ac_cv_header_iconv_h+set}" = set; then
 
22411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22412
else
 
22413
  ac_cv_header_iconv_h=$ac_header_preproc
 
22414
fi
 
22415
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
22416
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
 
22417
 
 
22418
fi
 
22419
if test $ac_cv_header_iconv_h = yes; then
 
22420
 
 
22421
 
 
22422
cat >>confdefs.h <<\_ACEOF
 
22423
#define HAVE_ICONV 1
 
22424
_ACEOF
 
22425
 
 
22426
fi
 
22427
 
 
22428
 
 
22429
 
 
22430
 
 
22431
# ---------------------------------------------------------------------------
 
22432
# libraries needed
 
22433
# ---------------------------------------------------------------------------
 
22434
{ echo "$as_me:$LINENO: checking for dynamic library extension" >&5
 
22435
echo $ECHO_N "checking for dynamic library extension... $ECHO_C" >&6; }
 
22436
soext=""
 
22437
case "$host" in
 
22438
        *linux*)        soext=".so" ;;
 
22439
        *sunos*)        soext=".so" ;;
 
22440
        *solaris*)      soext=".so" ;;
 
22441
        *bsd*)          soext=".so" ;;
 
22442
        *darwin*)       soext=".dylib" ;;
 
22443
        *w32*)          soext=".dll" ;;
 
22444
esac
 
22445
if test "x$soext" = "x"; then
 
22446
        soext=".so"
 
22447
        { echo "$as_me:$LINENO: result: ${soext}" >&5
 
22448
echo "${ECHO_T}${soext}" >&6; }
 
22449
        { echo "$as_me:$LINENO: WARNING:
 
22450
Host system \"${host}\" not recognized, defaulting to \"${soext}\".
 
22451
" >&5
 
22452
echo "$as_me: WARNING:
 
22453
Host system \"${host}\" not recognized, defaulting to \"${soext}\".
 
22454
" >&2;}
 
22455
else
 
22456
        { echo "$as_me:$LINENO: result: ${soext}" >&5
 
22457
echo "${ECHO_T}${soext}" >&6; }
 
22458
fi
 
22459
 
 
22460
 
 
22461
 
 
22462
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
22463
        if test -n "$ac_tool_prefix"; then
 
22464
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
22465
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
22466
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22468
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22470
else
 
22471
  case $PKG_CONFIG in
 
22472
  [\\/]* | ?:[\\/]*)
 
22473
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22474
  ;;
 
22475
  *)
 
22476
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22477
for as_dir in $PATH
 
22478
do
 
22479
  IFS=$as_save_IFS
 
22480
  test -z "$as_dir" && as_dir=.
 
22481
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22482
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22483
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22484
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22485
    break 2
 
22486
  fi
 
22487
done
 
22488
done
 
22489
IFS=$as_save_IFS
 
22490
 
 
22491
  ;;
 
22492
esac
 
22493
fi
 
22494
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22495
if test -n "$PKG_CONFIG"; then
 
22496
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22497
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
22498
else
 
22499
  { echo "$as_me:$LINENO: result: no" >&5
 
22500
echo "${ECHO_T}no" >&6; }
 
22501
fi
 
22502
 
 
22503
 
 
22504
fi
 
22505
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
22506
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
22507
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
22508
set dummy pkg-config; ac_word=$2
 
22509
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22511
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
22512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22513
else
 
22514
  case $ac_pt_PKG_CONFIG in
 
22515
  [\\/]* | ?:[\\/]*)
 
22516
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
22517
  ;;
 
22518
  *)
 
22519
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22520
for as_dir in $PATH
 
22521
do
 
22522
  IFS=$as_save_IFS
 
22523
  test -z "$as_dir" && as_dir=.
 
22524
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22525
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22526
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22527
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22528
    break 2
 
22529
  fi
 
22530
done
 
22531
done
 
22532
IFS=$as_save_IFS
 
22533
 
 
22534
  ;;
 
22535
esac
 
22536
fi
 
22537
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
22538
if test -n "$ac_pt_PKG_CONFIG"; then
 
22539
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
22540
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
22541
else
 
22542
  { echo "$as_me:$LINENO: result: no" >&5
 
22543
echo "${ECHO_T}no" >&6; }
 
22544
fi
 
22545
 
 
22546
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
22547
    PKG_CONFIG=""
20961
22548
  else
20962
 
    ac_cpp_err=
20963
 
  fi
20964
 
else
20965
 
  ac_cpp_err=yes
20966
 
fi
20967
 
if test -z "$ac_cpp_err"; then
 
22549
    case $cross_compiling:$ac_tool_warned in
 
22550
yes:)
 
22551
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
22552
whose name does not start with the host triplet.  If you think this
 
22553
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
22554
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
22555
whose name does not start with the host triplet.  If you think this
 
22556
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
22557
ac_tool_warned=yes ;;
 
22558
esac
 
22559
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
22560
  fi
 
22561
else
 
22562
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
22563
fi
 
22564
 
 
22565
fi
 
22566
if test -n "$PKG_CONFIG"; then
 
22567
        _pkg_min_version=0.9.0
 
22568
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
22569
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
22570
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
22571
                { echo "$as_me:$LINENO: result: yes" >&5
 
22572
echo "${ECHO_T}yes" >&6; }
 
22573
        else
 
22574
                { echo "$as_me:$LINENO: result: no" >&5
 
22575
echo "${ECHO_T}no" >&6; }
 
22576
                PKG_CONFIG=""
 
22577
        fi
 
22578
 
 
22579
fi
 
22580
 
 
22581
# ----------------------------------------------------------------------
 
22582
# [GP_CHECK_LIBRARY]([LIBEXIF],[libexif],[>= 0.6.13],
 
22583
#                    [],[],
 
22584
#                    [...],[...],[mandatory])
 
22585
# ----------------------------------------------------------------------
 
22586
{ echo "$as_me:$LINENO: checking for libexif to use" >&5
 
22587
echo $ECHO_N "checking for libexif to use... $ECHO_C" >&6; }
 
22588
userdef_LIBEXIF=no
 
22589
have_LIBEXIF=no
 
22590
if test "x${LIBEXIF_LIBS}" = "x" && test "x${LIBEXIF_CFLAGS}" = "x"; then
 
22591
                                        try_LIBEXIF=auto
 
22592
 
 
22593
# Check whether --with-libexif was given.
 
22594
if test "${with_libexif+set}" = set; then
 
22595
  withval=$with_libexif; try_LIBEXIF="$withval"
 
22596
fi
 
22597
 
 
22598
        if test "x${try_LIBEXIF}" = "xauto"; then try_LIBEXIF=autodetect; fi
 
22599
        { echo "$as_me:$LINENO: result: ${try_LIBEXIF}" >&5
 
22600
echo "${ECHO_T}${try_LIBEXIF}" >&6; }
 
22601
                if test "x${try_LIBEXIF}" = "xautodetect"; then
 
22602
                                                if test "x${have_LIBEXIF}" = "xno"; then
 
22603
 
 
22604
pkg_failed=no
 
22605
{ echo "$as_me:$LINENO: checking for LIBEXIF" >&5
 
22606
echo $ECHO_N "checking for LIBEXIF... $ECHO_C" >&6; }
 
22607
 
 
22608
if test -n "$PKG_CONFIG"; then
 
22609
    if test -n "$LIBEXIF_CFLAGS"; then
 
22610
        pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
 
22611
    else
 
22612
        if test -n "$PKG_CONFIG" && \
 
22613
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\"") >&5
 
22614
  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
 
22615
  ac_status=$?
 
22616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22617
  (exit $ac_status); }; then
 
22618
  pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.13" 2>/dev/null`
 
22619
else
 
22620
  pkg_failed=yes
 
22621
fi
 
22622
    fi
 
22623
else
 
22624
        pkg_failed=untried
 
22625
fi
 
22626
if test -n "$PKG_CONFIG"; then
 
22627
    if test -n "$LIBEXIF_LIBS"; then
 
22628
        pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
 
22629
    else
 
22630
        if test -n "$PKG_CONFIG" && \
 
22631
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\"") >&5
 
22632
  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
 
22633
  ac_status=$?
 
22634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22635
  (exit $ac_status); }; then
 
22636
  pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.13" 2>/dev/null`
 
22637
else
 
22638
  pkg_failed=yes
 
22639
fi
 
22640
    fi
 
22641
else
 
22642
        pkg_failed=untried
 
22643
fi
 
22644
 
 
22645
 
 
22646
 
 
22647
if test $pkg_failed = yes; then
 
22648
 
 
22649
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22650
        _pkg_short_errors_supported=yes
 
22651
else
 
22652
        _pkg_short_errors_supported=no
 
22653
fi
 
22654
        if test $_pkg_short_errors_supported = yes; then
 
22655
                LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libexif >= 0.6.13"`
 
22656
        else
 
22657
                LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif >= 0.6.13"`
 
22658
        fi
 
22659
        # Put the nasty error message in config.log where it belongs
 
22660
        echo "$LIBEXIF_PKG_ERRORS" >&5
 
22661
 
 
22662
        { echo "$as_me:$LINENO: result: no" >&5
 
22663
echo "${ECHO_T}no" >&6; }
 
22664
                :
 
22665
elif test $pkg_failed = untried; then
 
22666
        :
 
22667
else
 
22668
        LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
 
22669
        LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
 
22670
        { echo "$as_me:$LINENO: result: yes" >&5
 
22671
echo "${ECHO_T}yes" >&6; }
 
22672
        have_LIBEXIF=yes
 
22673
fi
 
22674
                fi
 
22675
                                                if test "x${have_LIBEXIF}" = "xno"; then
 
22676
                        { echo "$as_me:$LINENO: WARNING: The \`libexif' library could not be found using pkg-config.
 
22677
No version checks will be performed if it is found using any other method." >&5
 
22678
echo "$as_me: WARNING: The \`libexif' library could not be found using pkg-config.
 
22679
No version checks will be performed if it is found using any other method." >&2;}
 
22680
                        { echo "$as_me:$LINENO: checking libexif config program" >&5
 
22681
echo $ECHO_N "checking libexif config program... $ECHO_C" >&6; }
 
22682
                                                { echo "$as_me:$LINENO: result: none" >&5
 
22683
echo "${ECHO_T}none" >&6; }
 
22684
                        # Extract the first word of "gp_lib_config", so it can be a program name with args.
 
22685
set dummy none; ac_word=$2
 
22686
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22688
if test "${ac_cv_path_LIBEXIF_CONFIG_PROG+set}" = set; then
 
22689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22690
else
 
22691
  case $LIBEXIF_CONFIG_PROG in
 
22692
  [\\/]* | ?:[\\/]*)
 
22693
  ac_cv_path_LIBEXIF_CONFIG_PROG="$LIBEXIF_CONFIG_PROG" # Let the user override the test with a path.
 
22694
  ;;
 
22695
  *)
 
22696
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22697
for as_dir in $PATH
 
22698
do
 
22699
  IFS=$as_save_IFS
 
22700
  test -z "$as_dir" && as_dir=.
 
22701
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22703
    ac_cv_path_LIBEXIF_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
 
22704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22705
    break 2
 
22706
  fi
 
22707
done
 
22708
done
 
22709
IFS=$as_save_IFS
 
22710
 
 
22711
  ;;
 
22712
esac
 
22713
fi
 
22714
LIBEXIF_CONFIG_PROG=$ac_cv_path_LIBEXIF_CONFIG_PROG
 
22715
if test -n "$LIBEXIF_CONFIG_PROG"; then
 
22716
  { echo "$as_me:$LINENO: result: $LIBEXIF_CONFIG_PROG" >&5
 
22717
echo "${ECHO_T}$LIBEXIF_CONFIG_PROG" >&6; }
 
22718
else
 
22719
  { echo "$as_me:$LINENO: result: no" >&5
 
22720
echo "${ECHO_T}no" >&6; }
 
22721
fi
 
22722
 
 
22723
 
 
22724
                        if test -n "${LIBEXIF_CONFIG_PROG}" &&
 
22725
                                test "${LIBEXIF_CONFIG_PROG}" != "none"; then
 
22726
                                { echo "$as_me:$LINENO: checking for libexif parameters from none" >&5
 
22727
echo $ECHO_N "checking for libexif parameters from none... $ECHO_C" >&6; }
 
22728
                                LIBEXIF_LIBS="$(${LIBEXIF_CONFIG_PROG} --libs || echo "*error*")"
 
22729
                                LIBEXIF_CFLAGSS="$(${LIBEXIF_CONFIG_PROG} --cflags || echo "*error*")"
 
22730
                                if test "x${LIBEXIF_LIBS}" = "*error*" ||
 
22731
                                        test "x${LIBEXIF_CFLAGS}" = "*error*"; then
 
22732
                                        { echo "$as_me:$LINENO: result: error" >&5
 
22733
echo "${ECHO_T}error" >&6; }
 
22734
                                else
 
22735
                                        have_LIBEXIF=yes
 
22736
                                        { echo "$as_me:$LINENO: result: ok" >&5
 
22737
echo "${ECHO_T}ok" >&6; }
 
22738
                                fi
 
22739
                        fi
 
22740
                                        fi
 
22741
                                                if test "x${have_LIBEXIF}" = "xno"; then
 
22742
                        ifs="$IFS"
 
22743
                        IFS=":" # FIXME: for W32 and OS/2 we may need ";" here
 
22744
                        for _libdir_ in \
 
22745
                                ${LD_LIBRARY_PATH} \
 
22746
                                "${libdir}" \
 
22747
                                "${prefix}/lib64" "${prefix}/lib" \
 
22748
                                /usr/lib64 /usr/lib \
 
22749
                                /usr/local/lib64 /usr/local/lib \
 
22750
                                /opt/lib64 /opt/lib
 
22751
                        do
 
22752
                                IFS="$ifs"
 
22753
                                for _soext_ in .la ${soext} .a; do
 
22754
                                        if test -f "${_libdir_}/libexif${_soext_}"
 
22755
                                        then
 
22756
                                                if test "x${_soext_}" = "x.la" ||
 
22757
                                                   test "x${_soext_}" = "x.a"; then
 
22758
                                                        LIBEXIF_LIBS="${_libdir_}/libexif${_soext_}"
 
22759
                                                else
 
22760
                                                        LIBEXIF_LIBS="-L${_libdir_} -l$(echo "libexif" | sed 's/^lib//')"
 
22761
                                                fi
 
22762
                                                break
 
22763
                                        fi
 
22764
                                done
 
22765
                                if test "x${LIBEXIF_LIBS}" != "x"; then
 
22766
                                        break
 
22767
                                fi
 
22768
                        done
 
22769
                        IFS="$ifs"
 
22770
                        if test "x${LIBEXIF_LIBS}" != "x"; then
 
22771
                                have_LIBEXIF=yes
 
22772
                        fi
 
22773
                fi
 
22774
        elif test "x${try_LIBEXIF}" = "xno"; then
 
22775
                :
 
22776
        else
 
22777
                LIBEXIF_LIBS="-L${try_LIBEXIF}/lib -l$(echo "libexif" | sed 's/^lib//')"
 
22778
                LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
 
22779
        fi
 
22780
elif test "x${LIBEXIF_LIBS}" != "x" && test "x${LIBEXIF_CFLAGS}" != "x"; then
 
22781
        { echo "$as_me:$LINENO: result: user-defined" >&5
 
22782
echo "${ECHO_T}user-defined" >&6; }
 
22783
        userdef_LIBEXIF=yes
 
22784
        have_LIBEXIF=yes
 
22785
else
 
22786
        { echo "$as_me:$LINENO: result: broken call" >&5
 
22787
echo "${ECHO_T}broken call" >&6; }
 
22788
        { { echo "$as_me:$LINENO: error:
 
22789
* Fatal:
 
22790
* When calling configure for ${PACKAGE_TARNAME}
 
22791
*     ${PACKAGE_NAME}
 
22792
* either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
 
22793
* or neither.
 
22794
" >&5
 
22795
echo "$as_me: error:
 
22796
* Fatal:
 
22797
* When calling configure for ${PACKAGE_TARNAME}
 
22798
*     ${PACKAGE_NAME}
 
22799
* either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
 
22800
* or neither.
 
22801
" >&2;}
 
22802
   { (exit 1); exit 1; }; }
 
22803
fi
 
22804
 
 
22805
if test "x${have_LIBEXIF}" = "xno"; then
 
22806
        { { echo "$as_me:$LINENO: error:
 
22807
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
 
22808
LIBEXIF_LIBS=${LIBEXIF_LIBS}
 
22809
LIBEXIF_CFLAGS=${LIBEXIF_CFLAGS}
 
22810
 
 
22811
* Fatal: ${PACKAGE_NAME} requires libexif to build.
 
22812
*
 
22813
* Possible solutions:
 
22814
*   - set PKG_CONFIG_PATH to adequate value
 
22815
*   - call configure with LIBEXIF_LIBS=.. and LIBEXIF_CFLAGS=..
 
22816
*   - call configure with one of the --with-libexif parameters
 
22817
*   - get libexif and install it:
 
22818
      " >&5
 
22819
echo "$as_me: error:
 
22820
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
 
22821
LIBEXIF_LIBS=${LIBEXIF_LIBS}
 
22822
LIBEXIF_CFLAGS=${LIBEXIF_CFLAGS}
 
22823
 
 
22824
* Fatal: ${PACKAGE_NAME} requires libexif to build.
 
22825
*
 
22826
* Possible solutions:
 
22827
*   - set PKG_CONFIG_PATH to adequate value
 
22828
*   - call configure with LIBEXIF_LIBS=.. and LIBEXIF_CFLAGS=..
 
22829
*   - call configure with one of the --with-libexif parameters
 
22830
*   - get libexif and install it:
 
22831
      " >&2;}
 
22832
   { (exit 1); exit 1; }; }
 
22833
fi
 
22834
 if test "x$have_LIBEXIF" = "xyes"; then
 
22835
  HAVE_LIBEXIF_TRUE=
 
22836
  HAVE_LIBEXIF_FALSE='#'
 
22837
else
 
22838
  HAVE_LIBEXIF_TRUE='#'
 
22839
  HAVE_LIBEXIF_FALSE=
 
22840
fi
 
22841
 
 
22842
if test "x$have_LIBEXIF" = "xyes"; then
 
22843
 
 
22844
cat >>confdefs.h <<\_ACEOF
 
22845
#define HAVE_LIBEXIF 1
 
22846
_ACEOF
 
22847
 
 
22848
 
 
22849
gp_config_msg_len="$(expr "libexif" : '.*')"
 
22850
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
22851
        gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
22852
else
 
22853
        gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
22854
fi
 
22855
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
 
22856
"
 
22857
        { echo "$as_me:$LINENO: checking libexif library flags" >&5
 
22858
echo $ECHO_N "checking libexif library flags... $ECHO_C" >&6; }
 
22859
        { echo "$as_me:$LINENO: result: ${LIBEXIF_LIBS}" >&5
 
22860
echo "${ECHO_T}${LIBEXIF_LIBS}" >&6; }
 
22861
        { echo "$as_me:$LINENO: checking libexif cpp flags" >&5
 
22862
echo $ECHO_N "checking libexif cpp flags... $ECHO_C" >&6; }
 
22863
        { echo "$as_me:$LINENO: result: ${LIBEXIF_CFLAGS}" >&5
 
22864
echo "${ECHO_T}${LIBEXIF_CFLAGS}" >&6; }
 
22865
else
 
22866
 
 
22867
gp_config_msg_len="$(expr "libexif" : '.*')"
 
22868
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
22869
        gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
22870
else
 
22871
        gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
22872
fi
 
22873
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
 
22874
"
 
22875
fi
 
22876
 
 
22877
 
 
22878
 
 
22879
# ---------------------------------------------------------------------------
 
22880
# Check for misc headers
 
22881
# ---------------------------------------------------------------------------
 
22882
 
 
22883
for ac_header in unistd.h
 
22884
do
 
22885
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22886
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22887
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22889
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22891
fi
 
22892
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22893
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22894
echo "${ECHO_T}$ac_res" >&6; }
 
22895
else
 
22896
  # Is the header compilable?
 
22897
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22898
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22899
cat >conftest.$ac_ext <<_ACEOF
 
22900
/* confdefs.h.  */
 
22901
_ACEOF
 
22902
cat confdefs.h >>conftest.$ac_ext
 
22903
cat >>conftest.$ac_ext <<_ACEOF
 
22904
/* end confdefs.h.  */
 
22905
$ac_includes_default
 
22906
#include <$ac_header>
 
22907
_ACEOF
 
22908
rm -f conftest.$ac_objext
 
22909
if { (ac_try="$ac_compile"
 
22910
case "(($ac_try" in
 
22911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22912
  *) ac_try_echo=$ac_try;;
 
22913
esac
 
22914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22915
  (eval "$ac_compile") 2>conftest.er1
 
22916
  ac_status=$?
 
22917
  grep -v '^ *+' conftest.er1 >conftest.err
 
22918
  rm -f conftest.er1
 
22919
  cat conftest.err >&5
 
22920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22921
  (exit $ac_status); } && {
 
22922
         test -z "$ac_c_werror_flag" ||
 
22923
         test ! -s conftest.err
 
22924
       } && test -s conftest.$ac_objext; then
 
22925
  ac_header_compiler=yes
 
22926
else
 
22927
  echo "$as_me: failed program was:" >&5
 
22928
sed 's/^/| /' conftest.$ac_ext >&5
 
22929
 
 
22930
        ac_header_compiler=no
 
22931
fi
 
22932
 
 
22933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22934
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22935
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22936
 
 
22937
# Is the header present?
 
22938
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22939
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22940
cat >conftest.$ac_ext <<_ACEOF
 
22941
/* confdefs.h.  */
 
22942
_ACEOF
 
22943
cat confdefs.h >>conftest.$ac_ext
 
22944
cat >>conftest.$ac_ext <<_ACEOF
 
22945
/* end confdefs.h.  */
 
22946
#include <$ac_header>
 
22947
_ACEOF
 
22948
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22949
case "(($ac_try" in
 
22950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22951
  *) ac_try_echo=$ac_try;;
 
22952
esac
 
22953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22954
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22955
  ac_status=$?
 
22956
  grep -v '^ *+' conftest.er1 >conftest.err
 
22957
  rm -f conftest.er1
 
22958
  cat conftest.err >&5
 
22959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22960
  (exit $ac_status); } >/dev/null && {
 
22961
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22962
         test ! -s conftest.err
 
22963
       }; then
20968
22964
  ac_header_preproc=yes
20969
22965
else
20970
22966
  echo "$as_me: failed program was:" >&5
20972
22968
 
20973
22969
  ac_header_preproc=no
20974
22970
fi
 
22971
 
20975
22972
rm -f conftest.err conftest.$ac_ext
20976
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20977
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
22973
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22974
echo "${ECHO_T}$ac_header_preproc" >&6; }
20978
22975
 
20979
22976
# So?  What about this header?
20980
22977
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20998
22995
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20999
22996
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21000
22997
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21001
 
    (
21002
 
      cat <<\_ASBOX
21003
 
## ------------------------------------------ ##
21004
 
## Report this to the AC_PACKAGE_NAME lists.  ##
21005
 
## ------------------------------------------ ##
 
22998
    ( cat <<\_ASBOX
 
22999
## -------------------------------------------------- ##
 
23000
## Report this to libexif-devel@lists.sourceforge.net ##
 
23001
## -------------------------------------------------- ##
21006
23002
_ASBOX
21007
 
    ) |
21008
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23003
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21009
23004
    ;;
21010
23005
esac
21011
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21012
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23006
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23007
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23008
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21014
23009
  echo $ECHO_N "(cached) $ECHO_C" >&6
21015
23010
else
21016
23011
  eval "$as_ac_Header=\$ac_header_preproc"
21017
23012
fi
21018
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21019
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23013
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23014
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23015
echo "${ECHO_T}$ac_res" >&6; }
21020
23016
 
21021
23017
fi
21022
23018
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21029
23025
done
21030
23026
 
21031
23027
 
21032
 
popt_msg="no (Note that popt is mandatory, so exif won't compile)"
21033
 
try_popt=true
21034
 
have_popt=false
21035
 
 
21036
 
# Check whether --with-popt or --without-popt was given.
21037
 
if test "${with_popt+set}" = set; then
21038
 
  withval="$with_popt"
21039
 
  if test "x${withval}" = "xno"; then
21040
 
                try_popt=false
21041
 
                popt_msg="no (not requested)"
21042
 
        fi
21043
 
 
21044
 
fi;
21045
 
popt_prefix=$ac_default_prefix
21046
 
 
21047
 
# Check whether --with-popt-prefix or --without-popt-prefix was given.
21048
 
if test "${with_popt_prefix+set}" = set; then
21049
 
  withval="$with_popt_prefix"
21050
 
 
21051
 
        popt_prefix="$withval"
21052
 
fi;
21053
 
if $try_popt; then
 
23028
 
 
23029
# ---------------------------------------------------------------------------
 
23030
# popt.h: Simplifies handling of command-line options enormously.
 
23031
# ---------------------------------------------------------------------------
 
23032
 
 
23033
#
 
23034
# [GP_CHECK_POPT]
 
23035
#
 
23036
 
 
23037
 
 
23038
try_popt=yes
 
23039
require_popt=yes
 
23040
 
 
23041
{ echo "$as_me:$LINENO: checking whether popt is required" >&5
 
23042
echo $ECHO_N "checking whether popt is required... $ECHO_C" >&6; }
 
23043
{ echo "$as_me:$LINENO: result: ${require_popt}" >&5
 
23044
echo "${ECHO_T}${require_popt}" >&6; }
 
23045
 
 
23046
if test "$require_popt" != yes; then
 
23047
        { echo "$as_me:$LINENO: checking whether popt is requested" >&5
 
23048
echo $ECHO_N "checking whether popt is requested... $ECHO_C" >&6; }
 
23049
        { echo "$as_me:$LINENO: result: ${try_popt}" >&5
 
23050
echo "${ECHO_T}${try_popt}" >&6; }
 
23051
fi
 
23052
 
 
23053
 
 
23054
have_popt=no
 
23055
 
 
23056
if test "x$POPT_CFLAGS" = "x" && test "x$POPT_LIBS" = "x"; then
 
23057
 
 
23058
        # try to find options to compile popt.h
21054
23059
        CPPFLAGS_save="$CPPFLAGS"
21055
 
        CPPFLAGS="-I$popt_prefix/include $CPPFLAGS"
21056
 
        if test "${ac_cv_header_popt_h+set}" = set; then
21057
 
  echo "$as_me:$LINENO: checking for popt.h" >&5
21058
 
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
 
23060
        popth_found=no
 
23061
        for popt_prefix in "" /usr /usr/local
 
23062
        do
 
23063
                if test -n "${popt_prefix}"; then
 
23064
                        :
 
23065
                elif test -d "${popt_prefix}/include"; then
 
23066
                        CPPFLAGS="-I${popt_prefix}/include ${CPPFLAGS}"
 
23067
                else
 
23068
                        continue
 
23069
                fi
 
23070
                ac_cv_header_popt_h=""
 
23071
                unset ac_cv_header_popt_h
 
23072
                if test "${ac_cv_header_popt_h+set}" = set; then
 
23073
  { echo "$as_me:$LINENO: checking for popt.h" >&5
 
23074
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21059
23075
if test "${ac_cv_header_popt_h+set}" = set; then
21060
23076
  echo $ECHO_N "(cached) $ECHO_C" >&6
21061
23077
fi
21062
 
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21063
 
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
 
23078
{ echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
 
23079
echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21064
23080
else
21065
23081
  # Is the header compilable?
21066
 
echo "$as_me:$LINENO: checking popt.h usability" >&5
21067
 
echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
 
23082
{ echo "$as_me:$LINENO: checking popt.h usability" >&5
 
23083
echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21068
23084
cat >conftest.$ac_ext <<_ACEOF
21069
23085
/* confdefs.h.  */
21070
23086
_ACEOF
21075
23091
#include <popt.h>
21076
23092
_ACEOF
21077
23093
rm -f conftest.$ac_objext
21078
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079
 
  (eval $ac_compile) 2>conftest.er1
 
23094
if { (ac_try="$ac_compile"
 
23095
case "(($ac_try" in
 
23096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23097
  *) ac_try_echo=$ac_try;;
 
23098
esac
 
23099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23100
  (eval "$ac_compile") 2>conftest.er1
21080
23101
  ac_status=$?
21081
23102
  grep -v '^ *+' conftest.er1 >conftest.err
21082
23103
  rm -f conftest.er1
21083
23104
  cat conftest.err >&5
21084
23105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085
 
  (exit $ac_status); } &&
21086
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21087
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088
 
  (eval $ac_try) 2>&5
21089
 
  ac_status=$?
21090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091
 
  (exit $ac_status); }; } &&
21092
 
         { ac_try='test -s conftest.$ac_objext'
21093
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094
 
  (eval $ac_try) 2>&5
21095
 
  ac_status=$?
21096
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097
 
  (exit $ac_status); }; }; then
 
23106
  (exit $ac_status); } && {
 
23107
         test -z "$ac_c_werror_flag" ||
 
23108
         test ! -s conftest.err
 
23109
       } && test -s conftest.$ac_objext; then
21098
23110
  ac_header_compiler=yes
21099
23111
else
21100
23112
  echo "$as_me: failed program was:" >&5
21101
23113
sed 's/^/| /' conftest.$ac_ext >&5
21102
23114
 
21103
 
ac_header_compiler=no
 
23115
        ac_header_compiler=no
21104
23116
fi
21105
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21107
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
23117
 
 
23118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23119
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23120
echo "${ECHO_T}$ac_header_compiler" >&6; }
21108
23121
 
21109
23122
# Is the header present?
21110
 
echo "$as_me:$LINENO: checking popt.h presence" >&5
21111
 
echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
 
23123
{ echo "$as_me:$LINENO: checking popt.h presence" >&5
 
23124
echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21112
23125
cat >conftest.$ac_ext <<_ACEOF
21113
23126
/* confdefs.h.  */
21114
23127
_ACEOF
21117
23130
/* end confdefs.h.  */
21118
23131
#include <popt.h>
21119
23132
_ACEOF
21120
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21121
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23133
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23134
case "(($ac_try" in
 
23135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23136
  *) ac_try_echo=$ac_try;;
 
23137
esac
 
23138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23139
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21122
23140
  ac_status=$?
21123
23141
  grep -v '^ *+' conftest.er1 >conftest.err
21124
23142
  rm -f conftest.er1
21125
23143
  cat conftest.err >&5
21126
23144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127
 
  (exit $ac_status); } >/dev/null; then
21128
 
  if test -s conftest.err; then
21129
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21130
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21131
 
  else
21132
 
    ac_cpp_err=
21133
 
  fi
21134
 
else
21135
 
  ac_cpp_err=yes
21136
 
fi
21137
 
if test -z "$ac_cpp_err"; then
 
23145
  (exit $ac_status); } >/dev/null && {
 
23146
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23147
         test ! -s conftest.err
 
23148
       }; then
21138
23149
  ac_header_preproc=yes
21139
23150
else
21140
23151
  echo "$as_me: failed program was:" >&5
21142
23153
 
21143
23154
  ac_header_preproc=no
21144
23155
fi
 
23156
 
21145
23157
rm -f conftest.err conftest.$ac_ext
21146
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21147
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
23158
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23159
echo "${ECHO_T}$ac_header_preproc" >&6; }
21148
23160
 
21149
23161
# So?  What about this header?
21150
23162
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21168
23180
echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21169
23181
    { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21170
23182
echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21171
 
    (
21172
 
      cat <<\_ASBOX
21173
 
## ------------------------------------------ ##
21174
 
## Report this to the AC_PACKAGE_NAME lists.  ##
21175
 
## ------------------------------------------ ##
 
23183
    ( cat <<\_ASBOX
 
23184
## -------------------------------------------------- ##
 
23185
## Report this to libexif-devel@lists.sourceforge.net ##
 
23186
## -------------------------------------------------- ##
21176
23187
_ASBOX
21177
 
    ) |
21178
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23188
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21179
23189
    ;;
21180
23190
esac
21181
 
echo "$as_me:$LINENO: checking for popt.h" >&5
21182
 
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
 
23191
{ echo "$as_me:$LINENO: checking for popt.h" >&5
 
23192
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21183
23193
if test "${ac_cv_header_popt_h+set}" = set; then
21184
23194
  echo $ECHO_N "(cached) $ECHO_C" >&6
21185
23195
else
21186
23196
  ac_cv_header_popt_h=$ac_header_preproc
21187
23197
fi
21188
 
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21189
 
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
 
23198
{ echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
 
23199
echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21190
23200
 
21191
23201
fi
21192
23202
if test $ac_cv_header_popt_h = yes; then
21193
 
 
21194
 
                        echo "$as_me:$LINENO: checking for poptResetContext in -lpopt" >&5
21195
 
echo $ECHO_N "checking for poptResetContext in -lpopt... $ECHO_C" >&6
21196
 
if test "${ac_cv_lib_popt_poptResetContext+set}" = set; then
21197
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21198
 
else
21199
 
  ac_check_lib_save_LIBS=$LIBS
21200
 
LIBS="-lpopt  $LIBS"
21201
 
cat >conftest.$ac_ext <<_ACEOF
21202
 
/* confdefs.h.  */
21203
 
_ACEOF
21204
 
cat confdefs.h >>conftest.$ac_ext
21205
 
cat >>conftest.$ac_ext <<_ACEOF
21206
 
/* end confdefs.h.  */
21207
 
 
21208
 
/* Override any gcc2 internal prototype to avoid an error.  */
21209
 
#ifdef __cplusplus
21210
 
extern "C"
21211
 
#endif
21212
 
/* We use char because int might match the return type of a gcc2
21213
 
   builtin and then its argument prototype would still apply.  */
21214
 
char poptResetContext ();
21215
 
int
21216
 
main ()
21217
 
{
21218
 
poptResetContext ();
21219
 
  ;
21220
 
  return 0;
21221
 
}
21222
 
_ACEOF
21223
 
rm -f conftest.$ac_objext conftest$ac_exeext
21224
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225
 
  (eval $ac_link) 2>conftest.er1
21226
 
  ac_status=$?
21227
 
  grep -v '^ *+' conftest.er1 >conftest.err
21228
 
  rm -f conftest.er1
21229
 
  cat conftest.err >&5
21230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231
 
  (exit $ac_status); } &&
21232
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234
 
  (eval $ac_try) 2>&5
21235
 
  ac_status=$?
21236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237
 
  (exit $ac_status); }; } &&
21238
 
         { ac_try='test -s conftest$ac_exeext'
21239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240
 
  (eval $ac_try) 2>&5
21241
 
  ac_status=$?
21242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243
 
  (exit $ac_status); }; }; then
21244
 
  ac_cv_lib_popt_poptResetContext=yes
21245
 
else
21246
 
  echo "$as_me: failed program was:" >&5
21247
 
sed 's/^/| /' conftest.$ac_ext >&5
21248
 
 
21249
 
ac_cv_lib_popt_poptResetContext=no
21250
 
fi
21251
 
rm -f conftest.err conftest.$ac_objext \
21252
 
      conftest$ac_exeext conftest.$ac_ext
21253
 
LIBS=$ac_check_lib_save_LIBS
21254
 
fi
21255
 
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptResetContext" >&5
21256
 
echo "${ECHO_T}$ac_cv_lib_popt_poptResetContext" >&6
21257
 
if test $ac_cv_lib_popt_poptResetContext = yes; then
21258
 
 
21259
 
                        have_popt=true
21260
 
                        popt_msg=yes
21261
 
 
21262
 
cat >>confdefs.h <<\_ACEOF
21263
 
#define HAVE_POPT 1
21264
 
_ACEOF
21265
 
 
21266
 
                        POPT_LIBS="-lpopt"
21267
 
                        POPT_CFLAGS=$CPPFLAGS
21268
 
 
21269
 
else
21270
 
 
21271
 
                        LDFLAGS_save="$LDFLAGS"
21272
 
                        LDFLAGS="-L$popt_prefix/lib"
21273
 
                        echo "$as_me:$LINENO: checking for poptStuffArgs in -lpopt" >&5
21274
 
echo $ECHO_N "checking for poptStuffArgs in -lpopt... $ECHO_C" >&6
 
23203
  popth_found=yes
 
23204
fi
 
23205
 
 
23206
 
 
23207
                if test "$popth_found" = yes; then break; fi
 
23208
        done
 
23209
        CPPFLAGS="$CPPFLAGS_save"
 
23210
        if test "$popth_found" = "yes"; then
 
23211
                if test "$popt_prefix" = ""; then
 
23212
                        POPT_CFLAGS=""
 
23213
                else
 
23214
                        POPT_CFLAGS="-I${popt_prefix}/include"
 
23215
                fi
 
23216
        else
 
23217
                { { echo "$as_me:$LINENO: error:
 
23218
* Cannot autodetect popt.h
 
23219
*
 
23220
* Set POPT_CFLAGS and POPT_LIBS correctly.
 
23221
" >&5
 
23222
echo "$as_me: error:
 
23223
* Cannot autodetect popt.h
 
23224
*
 
23225
* Set POPT_CFLAGS and POPT_LIBS correctly.
 
23226
" >&2;}
 
23227
   { (exit 1); exit 1; }; }
 
23228
        fi
 
23229
 
 
23230
        # try to find options to link against popt
 
23231
        LDFLAGS_save="$LDFLAGS"
 
23232
        popt_links=no
 
23233
        for popt_prefix in /usr "" /usr/local; do
 
23234
                # We could have "/usr" and "lib64" at the beginning of the
 
23235
                # lists. Then the first tested location would
 
23236
                # incidentally be the right one on 64bit systems, and
 
23237
                # thus work around a bug in libtool on 32bit systems:
 
23238
                #
 
23239
                # 32bit libtool doesn't know about 64bit systems, and so the
 
23240
                # compilation will fail when linking a 32bit library from
 
23241
                # /usr/lib to a 64bit binary.
 
23242
                #
 
23243
                # This hack has been confirmed to workwith a
 
23244
                # 32bit Debian Sarge and 64bit Fedora Core 3 system.
 
23245
                for ldir in lib64 "" lib; do
 
23246
                        popt_libdir="${popt_prefix}/${ldir}"
 
23247
                        if test "${popt_libdir}" = "/"; then
 
23248
                                popt_libdir=""
 
23249
                        elif test -d "${popt_libdir}"; then
 
23250
                                LDFLAGS="-L${popt_libdir} ${LDFLAGS}"
 
23251
                        else
 
23252
                                continue
 
23253
                        fi
 
23254
                        # Avoid caching of results
 
23255
                        ac_cv_lib_popt_poptStuffArgs=""
 
23256
                        unset ac_cv_lib_popt_poptStuffArgs
 
23257
                        { echo "$as_me:$LINENO: checking for poptStuffArgs in -lpopt" >&5
 
23258
echo $ECHO_N "checking for poptStuffArgs in -lpopt... $ECHO_C" >&6; }
21275
23259
if test "${ac_cv_lib_popt_poptStuffArgs+set}" = set; then
21276
23260
  echo $ECHO_N "(cached) $ECHO_C" >&6
21277
23261
else
21284
23268
cat >>conftest.$ac_ext <<_ACEOF
21285
23269
/* end confdefs.h.  */
21286
23270
 
21287
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
23271
/* Override any GCC internal prototype to avoid an error.
 
23272
   Use char because int might match the return type of a GCC
 
23273
   builtin and then its argument prototype would still apply.  */
21288
23274
#ifdef __cplusplus
21289
23275
extern "C"
21290
23276
#endif
21291
 
/* We use char because int might match the return type of a gcc2
21292
 
   builtin and then its argument prototype would still apply.  */
21293
23277
char poptStuffArgs ();
21294
23278
int
21295
23279
main ()
21296
23280
{
21297
 
poptStuffArgs ();
 
23281
return poptStuffArgs ();
21298
23282
  ;
21299
23283
  return 0;
21300
23284
}
21301
23285
_ACEOF
21302
23286
rm -f conftest.$ac_objext conftest$ac_exeext
21303
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304
 
  (eval $ac_link) 2>conftest.er1
 
23287
if { (ac_try="$ac_link"
 
23288
case "(($ac_try" in
 
23289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23290
  *) ac_try_echo=$ac_try;;
 
23291
esac
 
23292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23293
  (eval "$ac_link") 2>conftest.er1
21305
23294
  ac_status=$?
21306
23295
  grep -v '^ *+' conftest.er1 >conftest.err
21307
23296
  rm -f conftest.er1
21308
23297
  cat conftest.err >&5
21309
23298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310
 
  (exit $ac_status); } &&
21311
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313
 
  (eval $ac_try) 2>&5
21314
 
  ac_status=$?
21315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
 
  (exit $ac_status); }; } &&
21317
 
         { ac_try='test -s conftest$ac_exeext'
21318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319
 
  (eval $ac_try) 2>&5
21320
 
  ac_status=$?
21321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322
 
  (exit $ac_status); }; }; then
 
23299
  (exit $ac_status); } && {
 
23300
         test -z "$ac_c_werror_flag" ||
 
23301
         test ! -s conftest.err
 
23302
       } && test -s conftest$ac_exeext &&
 
23303
       $as_test_x conftest$ac_exeext; then
21323
23304
  ac_cv_lib_popt_poptStuffArgs=yes
21324
23305
else
21325
23306
  echo "$as_me: failed program was:" >&5
21326
23307
sed 's/^/| /' conftest.$ac_ext >&5
21327
23308
 
21328
 
ac_cv_lib_popt_poptStuffArgs=no
 
23309
        ac_cv_lib_popt_poptStuffArgs=no
21329
23310
fi
21330
 
rm -f conftest.err conftest.$ac_objext \
 
23311
 
 
23312
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21331
23313
      conftest$ac_exeext conftest.$ac_ext
21332
23314
LIBS=$ac_check_lib_save_LIBS
21333
23315
fi
21334
 
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStuffArgs" >&5
21335
 
echo "${ECHO_T}$ac_cv_lib_popt_poptStuffArgs" >&6
 
23316
{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStuffArgs" >&5
 
23317
echo "${ECHO_T}$ac_cv_lib_popt_poptStuffArgs" >&6; }
21336
23318
if test $ac_cv_lib_popt_poptStuffArgs = yes; then
21337
 
 
21338
 
                                have_popt=true
21339
 
                                popt_msg="yes (in '$popt_prefix')"
 
23319
  popt_links=yes
 
23320
fi
 
23321
 
 
23322
                        if test "$popt_links" = yes; then break; fi
 
23323
                done
 
23324
                if test "$popt_links" = yes; then break; fi
 
23325
        done
 
23326
        LDFLAGS="$LDFLAGS_save"
 
23327
        if test "$popt_links" = "yes"; then
 
23328
                if test "$popt_libdir" = ""; then
 
23329
                        POPT_LIBS="-lpopt"
 
23330
                else
 
23331
                        POPT_LIBS="-L${popt_libdir} -lpopt"
 
23332
                fi
 
23333
        else
 
23334
                { { echo "$as_me:$LINENO: error:
 
23335
* Cannot autodetect library directory containing popt
 
23336
*
 
23337
* Set POPT_CFLAGS and POPT_LIBS correctly.
 
23338
" >&5
 
23339
echo "$as_me: error:
 
23340
* Cannot autodetect library directory containing popt
 
23341
*
 
23342
* Set POPT_CFLAGS and POPT_LIBS correctly.
 
23343
" >&2;}
 
23344
   { (exit 1); exit 1; }; }
 
23345
        fi
 
23346
        have_popt=yes
 
23347
elif test "x$POPT_CFLAGS" != "x" && test "x$POPT_LIBS" != "x"; then
 
23348
    # just use the user specivied option
 
23349
    popt_msg="yes (user specified)"
 
23350
    have_popt=yes
 
23351
else
 
23352
        { { echo "$as_me:$LINENO: error:
 
23353
* Fatal: Either set both POPT_CFLAGS and POPT_LIBS or neither.
 
23354
" >&5
 
23355
echo "$as_me: error:
 
23356
* Fatal: Either set both POPT_CFLAGS and POPT_LIBS or neither.
 
23357
" >&2;}
 
23358
   { (exit 1); exit 1; }; }
 
23359
fi
 
23360
 
 
23361
{ echo "$as_me:$LINENO: checking if popt is functional" >&5
 
23362
echo $ECHO_N "checking if popt is functional... $ECHO_C" >&6; }
 
23363
if test "$require_popt$have_popt" = "yesno"; then
 
23364
        { echo "$as_me:$LINENO: result: no, but required" >&5
 
23365
echo "${ECHO_T}no, but required" >&6; }
 
23366
        { { echo "$as_me:$LINENO: error:
 
23367
* popt library not found
 
23368
* Fatal: ${PACKAGE_NAME} (${PACKAGE_TARNAME}) requires popt
 
23369
* Please install it and/or set POPT_CFLAGS and POPT_LIBS.
 
23370
" >&5
 
23371
echo "$as_me: error:
 
23372
* popt library not found
 
23373
* Fatal: ${PACKAGE_NAME} (${PACKAGE_TARNAME}) requires popt
 
23374
* Please install it and/or set POPT_CFLAGS and POPT_LIBS.
 
23375
" >&2;}
 
23376
   { (exit 1); exit 1; }; }
 
23377
fi
 
23378
{ echo "$as_me:$LINENO: result: ${have_popt}" >&5
 
23379
echo "${ECHO_T}${have_popt}" >&6; }
 
23380
 
 
23381
 
 
23382
gp_config_msg_len="$(expr "use popt library" : '.*')"
 
23383
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
23384
        gp_config_msg_lhs="$(expr "use popt library" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
23385
else
 
23386
        gp_config_msg_lhs="$(expr "use popt library:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
23387
fi
 
23388
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${have_popt}
 
23389
"
 
23390
 
 
23391
if test "$have_popt" = "yes"; then
21340
23392
 
21341
23393
cat >>confdefs.h <<\_ACEOF
21342
23394
#define HAVE_POPT 1
21343
23395
_ACEOF
21344
23396
 
21345
 
                                POPT_LIBS="-L$popt_prefix/lib -lpopt"
21346
 
                                POPT_CFLAGS=$CPPFLAGS
21347
 
 
21348
 
else
21349
 
  popt_pmsg="no (couldn't link)"
21350
 
fi
21351
 
 
21352
 
                LDFLAGS=$LDFLAGS_save
21353
 
 
21354
 
fi
21355
 
 
21356
 
 
21357
 
fi
21358
 
 
21359
 
 
21360
 
        CPPFLAGS="$CPPFLAGS_save"
21361
 
fi
21362
 
 
21363
 
 
21364
 
if $have_popt; then
 
23397
 
 
23398
gp_config_msg_len="$(expr "popt libs" : '.*')"
 
23399
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
23400
        gp_config_msg_lhs="$(expr "popt libs" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
23401
else
 
23402
        gp_config_msg_lhs="$(expr "popt libs:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
23403
fi
 
23404
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${POPT_LIBS}
 
23405
"
 
23406
 
 
23407
 
 
23408
gp_config_msg_len="$(expr "popt cppflags" : '.*')"
 
23409
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
23410
        gp_config_msg_lhs="$(expr "popt cppflags" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
23411
else
 
23412
        gp_config_msg_lhs="$(expr "popt cppflags:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
23413
fi
 
23414
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${POPT_CFLAGS}
 
23415
"
 
23416
 
 
23417
fi
 
23418
 if test "$have_popt" = "yes"; then
21365
23419
  HAVE_POPT_TRUE=
21366
23420
  HAVE_POPT_FALSE='#'
21367
23421
else
21371
23425
 
21372
23426
 
21373
23427
 
21374
 
 
 
23428
# ---------------------------------------------------------------------------
 
23429
# Warnings: If we have GCC, be paranoid.
 
23430
# ---------------------------------------------------------------------------
21375
23431
if test "x$GCC" = "xyes"; then
21376
 
    CFLAGS="$CFLAGS -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
21377
 
 
 
23432
    AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
23433
    AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
21378
23434
fi
21379
23435
 
21380
 
                                                            ac_config_files="$ac_config_files Makefile exif.spec libjpeg/Makefile exif/Makefile m4/Makefile po/Makefile.in"
 
23436
 
 
23437
 
 
23438
# ---------------------------------------------------------------------------
 
23439
# Output files
 
23440
# ---------------------------------------------------------------------------
 
23441
ac_config_files="$ac_config_files po/Makefile.in Makefile m4m/Makefile exif.spec libjpeg/Makefile exif/Makefile"
 
23442
 
21381
23443
cat >confcache <<\_ACEOF
21382
23444
# This file is a shell script that caches the results of configure
21383
23445
# tests run on this system so they can be shared between configure
21396
23458
 
21397
23459
# The following way of writing the cache mishandles newlines in values,
21398
23460
# but we know of no workaround that is simple, portable, and efficient.
21399
 
# So, don't put newlines in cache variables' values.
 
23461
# So, we kill variables containing newlines.
21400
23462
# Ultrix sh set writes to stderr and can't be redirected directly,
21401
23463
# and sets the high bit in the cache file unless we assign to the vars.
21402
 
{
 
23464
(
 
23465
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
23466
    eval ac_val=\$$ac_var
 
23467
    case $ac_val in #(
 
23468
    *${as_nl}*)
 
23469
      case $ac_var in #(
 
23470
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
23471
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
23472
      esac
 
23473
      case $ac_var in #(
 
23474
      _ | IFS | as_nl) ;; #(
 
23475
      *) $as_unset $ac_var ;;
 
23476
      esac ;;
 
23477
    esac
 
23478
  done
 
23479
 
21403
23480
  (set) 2>&1 |
21404
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21405
 
    *ac_space=\ *)
 
23481
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
23482
    *${as_nl}ac_space=\ *)
21406
23483
      # `set' does not quote correctly, so add quotes (double-quote
21407
23484
      # substitution turns \\\\ into \\, and sed turns \\ into \).
21408
23485
      sed -n \
21409
23486
        "s/'/'\\\\''/g;
21410
23487
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21411
 
      ;;
 
23488
      ;; #(
21412
23489
    *)
21413
23490
      # `set' quotes correctly as required by POSIX, so do not add quotes.
21414
 
      sed -n \
21415
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
23491
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21416
23492
      ;;
21417
 
    esac;
21418
 
} |
 
23493
    esac |
 
23494
    sort
 
23495
) |
21419
23496
  sed '
 
23497
     /^ac_cv_env_/b end
21420
23498
     t clear
21421
 
     : clear
 
23499
     :clear
21422
23500
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21423
23501
     t end
21424
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21425
 
     : end' >>confcache
21426
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21427
 
  if test -w $cache_file; then
21428
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
23502
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
23503
     :end' >>confcache
 
23504
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
23505
  if test -w "$cache_file"; then
 
23506
    test "x$cache_file" != "x/dev/null" &&
 
23507
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
23508
echo "$as_me: updating cache $cache_file" >&6;}
21429
23509
    cat confcache >$cache_file
21430
23510
  else
21431
 
    echo "not updating unwritable cache $cache_file"
 
23511
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
23512
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21432
23513
  fi
21433
23514
fi
21434
23515
rm -f confcache
21437
23518
# Let make expand exec_prefix.
21438
23519
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21439
23520
 
21440
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21441
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21442
 
# trailing colons and then remove the whole line if VPATH becomes empty
21443
 
# (actually we leave an empty line to preserve line numbers).
21444
 
if test "x$srcdir" = x.; then
21445
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
21446
 
s/:*\$(srcdir):*/:/;
21447
 
s/:*\${srcdir}:*/:/;
21448
 
s/:*@srcdir@:*/:/;
21449
 
s/^\([^=]*=[     ]*\):*/\1/;
21450
 
s/:*$//;
21451
 
s/^[^=]*=[       ]*$//;
21452
 
}'
21453
 
fi
21454
 
 
21455
23521
DEFS=-DHAVE_CONFIG_H
21456
23522
 
21457
23523
ac_libobjs=
21458
23524
ac_ltlibobjs=
21459
23525
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21460
23526
  # 1. Remove the extension, and $U if already installed.
21461
 
  ac_i=`echo "$ac_i" |
21462
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21463
 
  # 2. Add them.
21464
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21465
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
23527
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
23528
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
23529
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
23530
  #    will be set to the directory where LIBOBJS objects are built.
 
23531
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
23532
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21466
23533
done
21467
23534
LIBOBJS=$ac_libobjs
21468
23535
 
21469
23536
LTLIBOBJS=$ac_ltlibobjs
21470
23537
 
21471
23538
 
21472
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21473
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21474
 
Usually this means the macro was only invoked conditionally." >&5
21475
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21476
 
Usually this means the macro was only invoked conditionally." >&2;}
21477
 
   { (exit 1); exit 1; }; }
21478
 
fi
21479
23539
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21480
23540
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21481
23541
Usually this means the macro was only invoked conditionally." >&5
21497
23557
Usually this means the macro was only invoked conditionally." >&2;}
21498
23558
   { (exit 1); exit 1; }; }
21499
23559
fi
 
23560
if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
 
23561
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXIF\" was never defined.
 
23562
Usually this means the macro was only invoked conditionally." >&5
 
23563
echo "$as_me: error: conditional \"HAVE_LIBEXIF\" was never defined.
 
23564
Usually this means the macro was only invoked conditionally." >&2;}
 
23565
   { (exit 1); exit 1; }; }
 
23566
fi
21500
23567
if test -z "${HAVE_POPT_TRUE}" && test -z "${HAVE_POPT_FALSE}"; then
21501
23568
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_POPT\" was never defined.
21502
23569
Usually this means the macro was only invoked conditionally." >&5
21528
23595
## M4sh Initialization.  ##
21529
23596
## --------------------- ##
21530
23597
 
21531
 
# Be Bourne compatible
 
23598
# Be more Bourne compatible
 
23599
DUALCASE=1; export DUALCASE # for MKS sh
21532
23600
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21533
23601
  emulate sh
21534
23602
  NULLCMD=:
21535
23603
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21536
23604
  # is contrary to our usage.  Disable this feature.
21537
23605
  alias -g '${1+"$@"}'='"$@"'
21538
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21539
 
  set -o posix
21540
 
fi
21541
 
DUALCASE=1; export DUALCASE # for MKS sh
 
23606
  setopt NO_GLOB_SUBST
 
23607
else
 
23608
  case `(set -o) 2>/dev/null` in
 
23609
  *posix*) set -o posix ;;
 
23610
esac
 
23611
 
 
23612
fi
 
23613
 
 
23614
 
 
23615
 
 
23616
 
 
23617
# PATH needs CR
 
23618
# Avoid depending upon Character Ranges.
 
23619
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23620
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23621
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23622
as_cr_digits='0123456789'
 
23623
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23624
 
 
23625
# The user is always right.
 
23626
if test "${PATH_SEPARATOR+set}" != set; then
 
23627
  echo "#! /bin/sh" >conf$$.sh
 
23628
  echo  "exit 0"   >>conf$$.sh
 
23629
  chmod +x conf$$.sh
 
23630
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23631
    PATH_SEPARATOR=';'
 
23632
  else
 
23633
    PATH_SEPARATOR=:
 
23634
  fi
 
23635
  rm -f conf$$.sh
 
23636
fi
21542
23637
 
21543
23638
# Support unset when possible.
21544
23639
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21548
23643
fi
21549
23644
 
21550
23645
 
 
23646
# IFS
 
23647
# We need space, tab and new line, in precisely that order.  Quoting is
 
23648
# there to prevent editors from complaining about space-tab.
 
23649
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
23650
# splitting by setting IFS to empty value.)
 
23651
as_nl='
 
23652
'
 
23653
IFS=" ""        $as_nl"
 
23654
 
 
23655
# Find who we are.  Look in the path if we contain no directory separator.
 
23656
case $0 in
 
23657
  *[\\/]* ) as_myself=$0 ;;
 
23658
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23659
for as_dir in $PATH
 
23660
do
 
23661
  IFS=$as_save_IFS
 
23662
  test -z "$as_dir" && as_dir=.
 
23663
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23664
done
 
23665
IFS=$as_save_IFS
 
23666
 
 
23667
     ;;
 
23668
esac
 
23669
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
23670
# in which case we are not to be found in the path.
 
23671
if test "x$as_myself" = x; then
 
23672
  as_myself=$0
 
23673
fi
 
23674
if test ! -f "$as_myself"; then
 
23675
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
23676
  { (exit 1); exit 1; }
 
23677
fi
 
23678
 
21551
23679
# Work around bugs in pre-3.0 UWIN ksh.
21552
 
$as_unset ENV MAIL MAILPATH
 
23680
for as_var in ENV MAIL MAILPATH
 
23681
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23682
done
21553
23683
PS1='$ '
21554
23684
PS2='> '
21555
23685
PS4='+ '
21563
23693
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21564
23694
    eval $as_var=C; export $as_var
21565
23695
  else
21566
 
    $as_unset $as_var
 
23696
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21567
23697
  fi
21568
23698
done
21569
23699
 
21570
23700
# Required to use basename.
21571
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23701
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23702
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21572
23703
  as_expr=expr
21573
23704
else
21574
23705
  as_expr=false
21575
23706
fi
21576
23707
 
21577
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
23708
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21578
23709
  as_basename=basename
21579
23710
else
21580
23711
  as_basename=false
21582
23713
 
21583
23714
 
21584
23715
# Name of the executable.
21585
 
as_me=`$as_basename "$0" ||
 
23716
as_me=`$as_basename -- "$0" ||
21586
23717
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21587
23718
         X"$0" : 'X\(//\)$' \| \
21588
 
         X"$0" : 'X\(/\)$' \| \
21589
 
         .     : '\(.\)' 2>/dev/null ||
 
23719
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21590
23720
echo X/"$0" |
21591
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21592
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
21593
 
          /^X\/\(\/\).*/{ s//\1/; q; }
21594
 
          s/.*/./; q'`
21595
 
 
21596
 
 
21597
 
# PATH needs CR, and LINENO needs CR and PATH.
21598
 
# Avoid depending upon Character Ranges.
21599
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21600
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21601
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21602
 
as_cr_digits='0123456789'
21603
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
21604
 
 
21605
 
# The user is always right.
21606
 
if test "${PATH_SEPARATOR+set}" != set; then
21607
 
  echo "#! /bin/sh" >conf$$.sh
21608
 
  echo  "exit 0"   >>conf$$.sh
21609
 
  chmod +x conf$$.sh
21610
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21611
 
    PATH_SEPARATOR=';'
21612
 
  else
21613
 
    PATH_SEPARATOR=:
21614
 
  fi
21615
 
  rm -f conf$$.sh
21616
 
fi
21617
 
 
21618
 
 
21619
 
  as_lineno_1=$LINENO
21620
 
  as_lineno_2=$LINENO
21621
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21622
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21623
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21624
 
  # Find who we are.  Look in the path if we contain no path at all
21625
 
  # relative or not.
21626
 
  case $0 in
21627
 
    *[\\/]* ) as_myself=$0 ;;
21628
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629
 
for as_dir in $PATH
21630
 
do
21631
 
  IFS=$as_save_IFS
21632
 
  test -z "$as_dir" && as_dir=.
21633
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21634
 
done
21635
 
 
21636
 
       ;;
21637
 
  esac
21638
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
21639
 
  # in which case we are not to be found in the path.
21640
 
  if test "x$as_myself" = x; then
21641
 
    as_myself=$0
21642
 
  fi
21643
 
  if test ! -f "$as_myself"; then
21644
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21645
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21646
 
   { (exit 1); exit 1; }; }
21647
 
  fi
21648
 
  case $CONFIG_SHELL in
21649
 
  '')
21650
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21651
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21652
 
do
21653
 
  IFS=$as_save_IFS
21654
 
  test -z "$as_dir" && as_dir=.
21655
 
  for as_base in sh bash ksh sh5; do
21656
 
         case $as_dir in
21657
 
         /*)
21658
 
           if ("$as_dir/$as_base" -c '
21659
 
  as_lineno_1=$LINENO
21660
 
  as_lineno_2=$LINENO
21661
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21662
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21663
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21664
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21665
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21666
 
             CONFIG_SHELL=$as_dir/$as_base
21667
 
             export CONFIG_SHELL
21668
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21669
 
           fi;;
21670
 
         esac
21671
 
       done
21672
 
done
21673
 
;;
21674
 
  esac
 
23721
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
23722
            s//\1/
 
23723
            q
 
23724
          }
 
23725
          /^X\/\(\/\/\)$/{
 
23726
            s//\1/
 
23727
            q
 
23728
          }
 
23729
          /^X\/\(\/\).*/{
 
23730
            s//\1/
 
23731
            q
 
23732
          }
 
23733
          s/.*/./; q'`
 
23734
 
 
23735
# CDPATH.
 
23736
$as_unset CDPATH
 
23737
 
 
23738
 
 
23739
 
 
23740
  as_lineno_1=$LINENO
 
23741
  as_lineno_2=$LINENO
 
23742
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23743
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21675
23744
 
21676
23745
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21677
23746
  # uniformly replaced by the line number.  The first 'sed' inserts a
21678
 
  # line-number line before each line; the second 'sed' does the real
21679
 
  # work.  The second script uses 'N' to pair each line-number line
21680
 
  # with the numbered line, and appends trailing '-' during
21681
 
  # substitution so that $LINENO is not a special case at line end.
 
23747
  # line-number line after each line using $LINENO; the second 'sed'
 
23748
  # does the real work.  The second script uses 'N' to pair each
 
23749
  # line-number line with the line containing $LINENO, and appends
 
23750
  # trailing '-' during substitution so that $LINENO is not a special
 
23751
  # case at line end.
21682
23752
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21683
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21684
 
  sed '=' <$as_myself |
 
23753
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
23754
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
23755
  sed -n '
 
23756
    p
 
23757
    /[$]LINENO/=
 
23758
  ' <$as_myself |
21685
23759
    sed '
 
23760
      s/[$]LINENO.*/&-/
 
23761
      t lineno
 
23762
      b
 
23763
      :lineno
21686
23764
      N
21687
 
      s,$,-,
21688
 
      : loop
21689
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
23765
      :loop
 
23766
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21690
23767
      t loop
21691
 
      s,-$,,
21692
 
      s,^['$as_cr_digits']*\n,,
 
23768
      s/-\n.*//
21693
23769
    ' >$as_me.lineno &&
21694
 
  chmod +x $as_me.lineno ||
21695
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21696
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
23770
  chmod +x "$as_me.lineno" ||
 
23771
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697
23772
   { (exit 1); exit 1; }; }
21698
23773
 
21699
23774
  # Don't try to exec as it changes $[0], causing all sort of problems
21700
23775
  # (the dirname of $[0] is not the place where we might find the
21701
 
  # original and so on.  Autoconf is especially sensible to this).
21702
 
  . ./$as_me.lineno
 
23776
  # original and so on.  Autoconf is especially sensitive to this).
 
23777
  . "./$as_me.lineno"
21703
23778
  # Exit status is that of the last command.
21704
23779
  exit
21705
23780
}
21706
23781
 
21707
23782
 
21708
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21709
 
  *c*,-n*) ECHO_N= ECHO_C='
21710
 
' ECHO_T='      ' ;;
21711
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21712
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
23783
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
23784
  as_dirname=dirname
 
23785
else
 
23786
  as_dirname=false
 
23787
fi
 
23788
 
 
23789
ECHO_C= ECHO_N= ECHO_T=
 
23790
case `echo -n x` in
 
23791
-n*)
 
23792
  case `echo 'x\c'` in
 
23793
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
23794
  *)   ECHO_C='\c';;
 
23795
  esac;;
 
23796
*)
 
23797
  ECHO_N='-n';;
21713
23798
esac
21714
23799
 
21715
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23800
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23801
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21716
23802
  as_expr=expr
21717
23803
else
21718
23804
  as_expr=false
21719
23805
fi
21720
23806
 
21721
23807
rm -f conf$$ conf$$.exe conf$$.file
 
23808
if test -d conf$$.dir; then
 
23809
  rm -f conf$$.dir/conf$$.file
 
23810
else
 
23811
  rm -f conf$$.dir
 
23812
  mkdir conf$$.dir
 
23813
fi
21722
23814
echo >conf$$.file
21723
23815
if ln -s conf$$.file conf$$ 2>/dev/null; then
21724
 
  # We could just check for DJGPP; but this test a) works b) is more generic
21725
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21726
 
  if test -f conf$$.exe; then
21727
 
    # Don't use ln at all; we don't have any links
 
23816
  as_ln_s='ln -s'
 
23817
  # ... but there are two gotchas:
 
23818
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
23819
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
23820
  # In both cases, we have to default to `cp -p'.
 
23821
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21728
23822
    as_ln_s='cp -p'
21729
 
  else
21730
 
    as_ln_s='ln -s'
21731
 
  fi
21732
23823
elif ln conf$$.file conf$$ 2>/dev/null; then
21733
23824
  as_ln_s=ln
21734
23825
else
21735
23826
  as_ln_s='cp -p'
21736
23827
fi
21737
 
rm -f conf$$ conf$$.exe conf$$.file
 
23828
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
23829
rmdir conf$$.dir 2>/dev/null
21738
23830
 
21739
23831
if mkdir -p . 2>/dev/null; then
21740
23832
  as_mkdir_p=:
21743
23835
  as_mkdir_p=false
21744
23836
fi
21745
23837
 
21746
 
as_executable_p="test -f"
 
23838
if test -x / >/dev/null 2>&1; then
 
23839
  as_test_x='test -x'
 
23840
else
 
23841
  if ls -dL / >/dev/null 2>&1; then
 
23842
    as_ls_L_option=L
 
23843
  else
 
23844
    as_ls_L_option=
 
23845
  fi
 
23846
  as_test_x='
 
23847
    eval sh -c '\''
 
23848
      if test -d "$1"; then
 
23849
        test -d "$1/.";
 
23850
      else
 
23851
        case $1 in
 
23852
        -*)set "./$1";;
 
23853
        esac;
 
23854
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
23855
        ???[sx]*):;;*)false;;esac;fi
 
23856
    '\'' sh
 
23857
  '
 
23858
fi
 
23859
as_executable_p=$as_test_x
21747
23860
 
21748
23861
# Sed expression to map a string onto a valid CPP name.
21749
23862
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21752
23865
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21753
23866
 
21754
23867
 
21755
 
# IFS
21756
 
# We need space, tab and new line, in precisely that order.
21757
 
as_nl='
21758
 
'
21759
 
IFS="   $as_nl"
21760
 
 
21761
 
# CDPATH.
21762
 
$as_unset CDPATH
21763
 
 
21764
23868
exec 6>&1
21765
23869
 
21766
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
23870
# Save the log message, to keep $[0] and so on meaningful, and to
21767
23871
# report actual input values of CONFIG_FILES etc. instead of their
21768
 
# values after options handling.  Logging --version etc. is OK.
21769
 
exec 5>>config.log
21770
 
{
21771
 
  echo
21772
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21773
 
## Running $as_me. ##
21774
 
_ASBOX
21775
 
} >&5
21776
 
cat >&5 <<_CSEOF
21777
 
 
21778
 
This file was extended by $as_me, which was
21779
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
23872
# values after options handling.
 
23873
ac_log="
 
23874
This file was extended by libexif command line interface $as_me 0.6.15, which was
 
23875
generated by GNU Autoconf 2.61.  Invocation command line was
21780
23876
 
21781
23877
  CONFIG_FILES    = $CONFIG_FILES
21782
23878
  CONFIG_HEADERS  = $CONFIG_HEADERS
21784
23880
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21785
23881
  $ $0 $@
21786
23882
 
21787
 
_CSEOF
21788
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21789
 
echo >&5
 
23883
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
23884
"
 
23885
 
21790
23886
_ACEOF
21791
23887
 
 
23888
cat >>$CONFIG_STATUS <<_ACEOF
21792
23889
# Files that config.status was made for.
21793
 
if test -n "$ac_config_files"; then
21794
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21795
 
fi
21796
 
 
21797
 
if test -n "$ac_config_headers"; then
21798
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21799
 
fi
21800
 
 
21801
 
if test -n "$ac_config_links"; then
21802
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21803
 
fi
21804
 
 
21805
 
if test -n "$ac_config_commands"; then
21806
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21807
 
fi
 
23890
config_files="$ac_config_files"
 
23891
config_headers="$ac_config_headers"
 
23892
config_commands="$ac_config_commands"
 
23893
 
 
23894
_ACEOF
21808
23895
 
21809
23896
cat >>$CONFIG_STATUS <<\_ACEOF
21810
 
 
21811
23897
ac_cs_usage="\
21812
23898
\`$as_me' instantiates files from templates according to the
21813
23899
current configuration.
21815
23901
Usage: $0 [OPTIONS] [FILE]...
21816
23902
 
21817
23903
  -h, --help       print this help, then exit
21818
 
  -V, --version    print version number, then exit
 
23904
  -V, --version    print version number and configuration settings, then exit
21819
23905
  -q, --quiet      do not print progress messages
21820
23906
  -d, --debug      don't remove temporary files
21821
23907
      --recheck    update $as_me by reconfiguring in the same conditions
21834
23920
$config_commands
21835
23921
 
21836
23922
Report bugs to <bug-autoconf@gnu.org>."
 
23923
 
21837
23924
_ACEOF
21838
 
 
21839
23925
cat >>$CONFIG_STATUS <<_ACEOF
21840
23926
ac_cs_version="\\
21841
 
config.status
21842
 
configured by $0, generated by GNU Autoconf 2.59,
21843
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
23927
libexif command line interface config.status 0.6.15
 
23928
configured by $0, generated by GNU Autoconf 2.61,
 
23929
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21844
23930
 
21845
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
23931
Copyright (C) 2006 Free Software Foundation, Inc.
21846
23932
This config.status script is free software; the Free Software Foundation
21847
23933
gives unlimited permission to copy, distribute and modify it."
21848
 
srcdir=$srcdir
21849
 
INSTALL="$INSTALL"
 
23934
 
 
23935
ac_pwd='$ac_pwd'
 
23936
srcdir='$srcdir'
 
23937
INSTALL='$INSTALL'
 
23938
MKDIR_P='$MKDIR_P'
21850
23939
_ACEOF
21851
23940
 
21852
23941
cat >>$CONFIG_STATUS <<\_ACEOF
21857
23946
do
21858
23947
  case $1 in
21859
23948
  --*=*)
21860
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21861
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
23949
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23950
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21862
23951
    ac_shift=:
21863
23952
    ;;
21864
 
  -*)
 
23953
  *)
21865
23954
    ac_option=$1
21866
23955
    ac_optarg=$2
21867
23956
    ac_shift=shift
21868
23957
    ;;
21869
 
  *) # This is not an option, so the user has probably given explicit
21870
 
     # arguments.
21871
 
     ac_option=$1
21872
 
     ac_need_defaults=false;;
21873
23958
  esac
21874
23959
 
21875
23960
  case $ac_option in
21876
23961
  # Handling of the options.
21877
 
_ACEOF
21878
 
cat >>$CONFIG_STATUS <<\_ACEOF
21879
23962
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21880
23963
    ac_cs_recheck=: ;;
21881
 
  --version | --vers* | -V )
21882
 
    echo "$ac_cs_version"; exit 0 ;;
21883
 
  --he | --h)
21884
 
    # Conflict between --help and --header
21885
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21886
 
Try \`$0 --help' for more information." >&5
21887
 
echo "$as_me: error: ambiguous option: $1
21888
 
Try \`$0 --help' for more information." >&2;}
21889
 
   { (exit 1); exit 1; }; };;
21890
 
  --help | --hel | -h )
21891
 
    echo "$ac_cs_usage"; exit 0 ;;
21892
 
  --debug | --d* | -d )
 
23964
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
23965
    echo "$ac_cs_version"; exit ;;
 
23966
  --debug | --debu | --deb | --de | --d | -d )
21893
23967
    debug=: ;;
21894
23968
  --file | --fil | --fi | --f )
21895
23969
    $ac_shift
21899
23973
    $ac_shift
21900
23974
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21901
23975
    ac_need_defaults=false;;
 
23976
  --he | --h)
 
23977
    # Conflict between --help and --header
 
23978
    { echo "$as_me: error: ambiguous option: $1
 
23979
Try \`$0 --help' for more information." >&2
 
23980
   { (exit 1); exit 1; }; };;
 
23981
  --help | --hel | -h )
 
23982
    echo "$ac_cs_usage"; exit ;;
21902
23983
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21903
23984
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21904
23985
    ac_cs_silent=: ;;
21905
23986
 
21906
23987
  # This is an error.
21907
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21908
 
Try \`$0 --help' for more information." >&5
21909
 
echo "$as_me: error: unrecognized option: $1
21910
 
Try \`$0 --help' for more information." >&2;}
 
23988
  -*) { echo "$as_me: error: unrecognized option: $1
 
23989
Try \`$0 --help' for more information." >&2
21911
23990
   { (exit 1); exit 1; }; } ;;
21912
23991
 
21913
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
23992
  *) ac_config_targets="$ac_config_targets $1"
 
23993
     ac_need_defaults=false ;;
21914
23994
 
21915
23995
  esac
21916
23996
  shift
21926
24006
_ACEOF
21927
24007
cat >>$CONFIG_STATUS <<_ACEOF
21928
24008
if \$ac_cs_recheck; then
21929
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21930
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
24009
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
24010
  CONFIG_SHELL=$SHELL
 
24011
  export CONFIG_SHELL
 
24012
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21931
24013
fi
21932
24014
 
21933
24015
_ACEOF
 
24016
cat >>$CONFIG_STATUS <<\_ACEOF
 
24017
exec 5>>config.log
 
24018
{
 
24019
  echo
 
24020
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24021
## Running $as_me. ##
 
24022
_ASBOX
 
24023
  echo "$ac_log"
 
24024
} >&5
21934
24025
 
 
24026
_ACEOF
21935
24027
cat >>$CONFIG_STATUS <<_ACEOF
21936
24028
#
21937
 
# INIT-COMMANDS section.
 
24029
# INIT-COMMANDS
21938
24030
#
21939
 
 
21940
24031
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21941
24032
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21942
24033
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21945
24036
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21946
24037
    LINGUAS="${LINGUAS-%UNSET%}"
21947
24038
 
 
24039
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
24040
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
24041
    # from automake.
 
24042
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
24043
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
24044
    LINGUAS="${LINGUAS-%UNSET%}"
 
24045
 
21948
24046
 
21949
24047
_ACEOF
21950
24048
 
21951
 
 
21952
 
 
21953
24049
cat >>$CONFIG_STATUS <<\_ACEOF
 
24050
 
 
24051
# Handling of arguments.
21954
24052
for ac_config_target in $ac_config_targets
21955
24053
do
21956
 
  case "$ac_config_target" in
21957
 
  # Handling of arguments.
21958
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21959
 
  "exif.spec" ) CONFIG_FILES="$CONFIG_FILES exif.spec" ;;
21960
 
  "libjpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES libjpeg/Makefile" ;;
21961
 
  "exif/Makefile" ) CONFIG_FILES="$CONFIG_FILES exif/Makefile" ;;
21962
 
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21963
 
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21964
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21965
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21966
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
24054
  case $ac_config_target in
 
24055
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
24056
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
24057
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
24058
    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
 
24059
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
24060
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
24061
    "m4m/Makefile") CONFIG_FILES="$CONFIG_FILES m4m/Makefile" ;;
 
24062
    "exif.spec") CONFIG_FILES="$CONFIG_FILES exif.spec" ;;
 
24063
    "libjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libjpeg/Makefile" ;;
 
24064
    "exif/Makefile") CONFIG_FILES="$CONFIG_FILES exif/Makefile" ;;
 
24065
 
21967
24066
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21968
24067
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21969
24068
   { (exit 1); exit 1; }; };;
21970
24069
  esac
21971
24070
done
21972
24071
 
 
24072
 
21973
24073
# If the user did not use the arguments to specify the items to instantiate,
21974
24074
# then the envvar interface is used.  Set only those that are not.
21975
24075
# We use the long form for the default assignment because of an extremely
21981
24081
fi
21982
24082
 
21983
24083
# Have a temporary directory for convenience.  Make it in the build tree
21984
 
# simply because there is no reason to put it here, and in addition,
 
24084
# simply because there is no reason against having it here, and in addition,
21985
24085
# creating and moving files from /tmp can sometimes cause problems.
21986
 
# Create a temporary directory, and hook for its removal unless debugging.
 
24086
# Hook for its removal unless debugging.
 
24087
# Note that there is a small window in which the directory will not be cleaned:
 
24088
# after its creation but before its name has been assigned to `$tmp'.
21987
24089
$debug ||
21988
24090
{
21989
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
24091
  tmp=
 
24092
  trap 'exit_status=$?
 
24093
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
24094
' 0
21990
24095
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21991
24096
}
21992
 
 
21993
24097
# Create a (secure) tmp directory for tmp files.
21994
24098
 
21995
24099
{
21996
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
24100
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21997
24101
  test -n "$tmp" && test -d "$tmp"
21998
24102
}  ||
21999
24103
{
22000
 
  tmp=./confstat$$-$RANDOM
22001
 
  (umask 077 && mkdir $tmp)
 
24104
  tmp=./conf$$-$RANDOM
 
24105
  (umask 077 && mkdir "$tmp")
22002
24106
} ||
22003
24107
{
22004
24108
   echo "$me: cannot create a temporary directory in ." >&2
22005
24109
   { (exit 1); exit 1; }
22006
24110
}
22007
24111
 
22008
 
_ACEOF
22009
 
 
22010
 
cat >>$CONFIG_STATUS <<_ACEOF
22011
 
 
22012
24112
#
22013
 
# CONFIG_FILES section.
 
24113
# Set up the sed scripts for CONFIG_FILES section.
22014
24114
#
22015
24115
 
22016
24116
# No need to generate the scripts if there are no CONFIG_FILES.
22017
24117
# This happens for instance when ./config.status config.h
22018
 
if test -n "\$CONFIG_FILES"; then
22019
 
  # Protect against being on the right side of a sed subst in config.status.
22020
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22021
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22022
 
s,@SHELL@,$SHELL,;t t
22023
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22024
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22025
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22026
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22027
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22028
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22029
 
s,@exec_prefix@,$exec_prefix,;t t
22030
 
s,@prefix@,$prefix,;t t
22031
 
s,@program_transform_name@,$program_transform_name,;t t
22032
 
s,@bindir@,$bindir,;t t
22033
 
s,@sbindir@,$sbindir,;t t
22034
 
s,@libexecdir@,$libexecdir,;t t
22035
 
s,@datadir@,$datadir,;t t
22036
 
s,@sysconfdir@,$sysconfdir,;t t
22037
 
s,@sharedstatedir@,$sharedstatedir,;t t
22038
 
s,@localstatedir@,$localstatedir,;t t
22039
 
s,@libdir@,$libdir,;t t
22040
 
s,@includedir@,$includedir,;t t
22041
 
s,@oldincludedir@,$oldincludedir,;t t
22042
 
s,@infodir@,$infodir,;t t
22043
 
s,@mandir@,$mandir,;t t
22044
 
s,@build_alias@,$build_alias,;t t
22045
 
s,@host_alias@,$host_alias,;t t
22046
 
s,@target_alias@,$target_alias,;t t
22047
 
s,@DEFS@,$DEFS,;t t
22048
 
s,@ECHO_C@,$ECHO_C,;t t
22049
 
s,@ECHO_N@,$ECHO_N,;t t
22050
 
s,@ECHO_T@,$ECHO_T,;t t
22051
 
s,@LIBS@,$LIBS,;t t
22052
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22053
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22054
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22055
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
22056
 
s,@PACKAGE@,$PACKAGE,;t t
22057
 
s,@VERSION@,$VERSION,;t t
22058
 
s,@ACLOCAL@,$ACLOCAL,;t t
22059
 
s,@AUTOCONF@,$AUTOCONF,;t t
22060
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
22061
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
22062
 
s,@MAKEINFO@,$MAKEINFO,;t t
22063
 
s,@AMTAR@,$AMTAR,;t t
22064
 
s,@install_sh@,$install_sh,;t t
22065
 
s,@STRIP@,$STRIP,;t t
22066
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22067
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22068
 
s,@mkdir_p@,$mkdir_p,;t t
22069
 
s,@AWK@,$AWK,;t t
22070
 
s,@SET_MAKE@,$SET_MAKE,;t t
22071
 
s,@am__leading_dot@,$am__leading_dot,;t t
22072
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22073
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22074
 
s,@MAINT@,$MAINT,;t t
22075
 
s,@build@,$build,;t t
22076
 
s,@build_cpu@,$build_cpu,;t t
22077
 
s,@build_vendor@,$build_vendor,;t t
22078
 
s,@build_os@,$build_os,;t t
22079
 
s,@host@,$host,;t t
22080
 
s,@host_cpu@,$host_cpu,;t t
22081
 
s,@host_vendor@,$host_vendor,;t t
22082
 
s,@host_os@,$host_os,;t t
22083
 
s,@CC@,$CC,;t t
22084
 
s,@CFLAGS@,$CFLAGS,;t t
22085
 
s,@LDFLAGS@,$LDFLAGS,;t t
22086
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
22087
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
22088
 
s,@EXEEXT@,$EXEEXT,;t t
22089
 
s,@OBJEXT@,$OBJEXT,;t t
22090
 
s,@DEPDIR@,$DEPDIR,;t t
22091
 
s,@am__include@,$am__include,;t t
22092
 
s,@am__quote@,$am__quote,;t t
22093
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22094
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22095
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22096
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
22097
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22098
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22099
 
s,@EGREP@,$EGREP,;t t
22100
 
s,@LN_S@,$LN_S,;t t
22101
 
s,@ECHO@,$ECHO,;t t
22102
 
s,@AR@,$AR,;t t
22103
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
22104
 
s,@RANLIB@,$RANLIB,;t t
22105
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22106
 
s,@CPP@,$CPP,;t t
22107
 
s,@CXX@,$CXX,;t t
22108
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
22109
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22110
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22111
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22112
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22113
 
s,@CXXCPP@,$CXXCPP,;t t
22114
 
s,@F77@,$F77,;t t
22115
 
s,@FFLAGS@,$FFLAGS,;t t
22116
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
22117
 
s,@LIBTOOL@,$LIBTOOL,;t t
22118
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22119
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22120
 
s,@USE_NLS@,$USE_NLS,;t t
22121
 
s,@MSGFMT@,$MSGFMT,;t t
22122
 
s,@GMSGFMT@,$GMSGFMT,;t t
22123
 
s,@XGETTEXT@,$XGETTEXT,;t t
22124
 
s,@MSGMERGE@,$MSGMERGE,;t t
22125
 
s,@LIBICONV@,$LIBICONV,;t t
22126
 
s,@LTLIBICONV@,$LTLIBICONV,;t t
22127
 
s,@INTLLIBS@,$INTLLIBS,;t t
22128
 
s,@LIBINTL@,$LIBINTL,;t t
22129
 
s,@LTLIBINTL@,$LTLIBINTL,;t t
22130
 
s,@POSUB@,$POSUB,;t t
22131
 
s,@LIBEXIF_CFLAGS@,$LIBEXIF_CFLAGS,;t t
22132
 
s,@LIBEXIF_LIBS@,$LIBEXIF_LIBS,;t t
22133
 
s,@HAVE_POPT_TRUE@,$HAVE_POPT_TRUE,;t t
22134
 
s,@HAVE_POPT_FALSE@,$HAVE_POPT_FALSE,;t t
22135
 
s,@POPT_LIBS@,$POPT_LIBS,;t t
22136
 
s,@POPT_CFLAGS@,$POPT_CFLAGS,;t t
22137
 
s,@LIBOBJS@,$LIBOBJS,;t t
22138
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22139
 
CEOF
22140
 
 
22141
 
_ACEOF
22142
 
 
22143
 
  cat >>$CONFIG_STATUS <<\_ACEOF
22144
 
  # Split the substitutions into bite-sized pieces for seds with
22145
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
22146
 
  ac_max_sed_lines=48
22147
 
  ac_sed_frag=1 # Number of current file.
22148
 
  ac_beg=1 # First line for current file.
22149
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
22150
 
  ac_more_lines=:
22151
 
  ac_sed_cmds=
22152
 
  while $ac_more_lines; do
22153
 
    if test $ac_beg -gt 1; then
22154
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22155
 
    else
22156
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22157
 
    fi
22158
 
    if test ! -s $tmp/subs.frag; then
22159
 
      ac_more_lines=false
22160
 
    else
22161
 
      # The purpose of the label and of the branching condition is to
22162
 
      # speed up the sed processing (if there are no `@' at all, there
22163
 
      # is no need to browse any of the substitutions).
22164
 
      # These are the two extra sed commands mentioned above.
22165
 
      (echo ':t
22166
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22167
 
      if test -z "$ac_sed_cmds"; then
22168
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22169
 
      else
22170
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22171
 
      fi
22172
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
22173
 
      ac_beg=$ac_end
22174
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
22175
 
    fi
22176
 
  done
22177
 
  if test -z "$ac_sed_cmds"; then
22178
 
    ac_sed_cmds=cat
22179
 
  fi
 
24118
if test -n "$CONFIG_FILES"; then
 
24119
 
 
24120
_ACEOF
 
24121
 
 
24122
 
 
24123
 
 
24124
ac_delim='%!_!# '
 
24125
for ac_last_try in false false false false false :; do
 
24126
  cat >conf$$subs.sed <<_ACEOF
 
24127
SHELL!$SHELL$ac_delim
 
24128
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
24129
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
24130
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
24131
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
24132
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
24133
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
24134
exec_prefix!$exec_prefix$ac_delim
 
24135
prefix!$prefix$ac_delim
 
24136
program_transform_name!$program_transform_name$ac_delim
 
24137
bindir!$bindir$ac_delim
 
24138
sbindir!$sbindir$ac_delim
 
24139
libexecdir!$libexecdir$ac_delim
 
24140
datarootdir!$datarootdir$ac_delim
 
24141
datadir!$datadir$ac_delim
 
24142
sysconfdir!$sysconfdir$ac_delim
 
24143
sharedstatedir!$sharedstatedir$ac_delim
 
24144
localstatedir!$localstatedir$ac_delim
 
24145
includedir!$includedir$ac_delim
 
24146
oldincludedir!$oldincludedir$ac_delim
 
24147
docdir!$docdir$ac_delim
 
24148
infodir!$infodir$ac_delim
 
24149
htmldir!$htmldir$ac_delim
 
24150
dvidir!$dvidir$ac_delim
 
24151
pdfdir!$pdfdir$ac_delim
 
24152
psdir!$psdir$ac_delim
 
24153
libdir!$libdir$ac_delim
 
24154
localedir!$localedir$ac_delim
 
24155
mandir!$mandir$ac_delim
 
24156
DEFS!$DEFS$ac_delim
 
24157
ECHO_C!$ECHO_C$ac_delim
 
24158
ECHO_N!$ECHO_N$ac_delim
 
24159
ECHO_T!$ECHO_T$ac_delim
 
24160
LIBS!$LIBS$ac_delim
 
24161
build_alias!$build_alias$ac_delim
 
24162
host_alias!$host_alias$ac_delim
 
24163
target_alias!$target_alias$ac_delim
 
24164
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
24165
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
24166
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
24167
am__isrc!$am__isrc$ac_delim
 
24168
CYGPATH_W!$CYGPATH_W$ac_delim
 
24169
PACKAGE!$PACKAGE$ac_delim
 
24170
VERSION!$VERSION$ac_delim
 
24171
ACLOCAL!$ACLOCAL$ac_delim
 
24172
AUTOCONF!$AUTOCONF$ac_delim
 
24173
AUTOMAKE!$AUTOMAKE$ac_delim
 
24174
AUTOHEADER!$AUTOHEADER$ac_delim
 
24175
MAKEINFO!$MAKEINFO$ac_delim
 
24176
install_sh!$install_sh$ac_delim
 
24177
STRIP!$STRIP$ac_delim
 
24178
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
24179
mkdir_p!$mkdir_p$ac_delim
 
24180
AWK!$AWK$ac_delim
 
24181
SET_MAKE!$SET_MAKE$ac_delim
 
24182
am__leading_dot!$am__leading_dot$ac_delim
 
24183
AMTAR!$AMTAR$ac_delim
 
24184
am__tar!$am__tar$ac_delim
 
24185
am__untar!$am__untar$ac_delim
 
24186
CC!$CC$ac_delim
 
24187
CFLAGS!$CFLAGS$ac_delim
 
24188
LDFLAGS!$LDFLAGS$ac_delim
 
24189
CPPFLAGS!$CPPFLAGS$ac_delim
 
24190
ac_ct_CC!$ac_ct_CC$ac_delim
 
24191
EXEEXT!$EXEEXT$ac_delim
 
24192
OBJEXT!$OBJEXT$ac_delim
 
24193
DEPDIR!$DEPDIR$ac_delim
 
24194
am__include!$am__include$ac_delim
 
24195
am__quote!$am__quote$ac_delim
 
24196
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
24197
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
24198
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
24199
CCDEPMODE!$CCDEPMODE$ac_delim
 
24200
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
24201
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
24202
build!$build$ac_delim
 
24203
build_cpu!$build_cpu$ac_delim
 
24204
build_vendor!$build_vendor$ac_delim
 
24205
build_os!$build_os$ac_delim
 
24206
host!$host$ac_delim
 
24207
host_cpu!$host_cpu$ac_delim
 
24208
host_vendor!$host_vendor$ac_delim
 
24209
host_os!$host_os$ac_delim
 
24210
SED!$SED$ac_delim
 
24211
GREP!$GREP$ac_delim
 
24212
EGREP!$EGREP$ac_delim
 
24213
LN_S!$LN_S$ac_delim
 
24214
ECHO!$ECHO$ac_delim
 
24215
AR!$AR$ac_delim
 
24216
RANLIB!$RANLIB$ac_delim
 
24217
CPP!$CPP$ac_delim
 
24218
CXX!$CXX$ac_delim
 
24219
CXXFLAGS!$CXXFLAGS$ac_delim
 
24220
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
24221
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
24222
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
24223
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
24224
_ACEOF
 
24225
 
 
24226
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
24227
    break
 
24228
  elif $ac_last_try; then
 
24229
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
24230
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
24231
   { (exit 1); exit 1; }; }
 
24232
  else
 
24233
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24234
  fi
 
24235
done
 
24236
 
 
24237
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
24238
if test -n "$ac_eof"; then
 
24239
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
24240
  ac_eof=`expr $ac_eof + 1`
 
24241
fi
 
24242
 
 
24243
cat >>$CONFIG_STATUS <<_ACEOF
 
24244
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
24245
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
24246
_ACEOF
 
24247
sed '
 
24248
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
24249
s/^/s,@/; s/!/@,|#_!!_#|/
 
24250
:n
 
24251
t n
 
24252
s/'"$ac_delim"'$/,g/; t
 
24253
s/$/\\/; p
 
24254
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
24255
' >>$CONFIG_STATUS <conf$$subs.sed
 
24256
rm -f conf$$subs.sed
 
24257
cat >>$CONFIG_STATUS <<_ACEOF
 
24258
CEOF$ac_eof
 
24259
_ACEOF
 
24260
 
 
24261
 
 
24262
ac_delim='%!_!# '
 
24263
for ac_last_try in false false false false false :; do
 
24264
  cat >conf$$subs.sed <<_ACEOF
 
24265
CXXCPP!$CXXCPP$ac_delim
 
24266
F77!$F77$ac_delim
 
24267
FFLAGS!$FFLAGS$ac_delim
 
24268
ac_ct_F77!$ac_ct_F77$ac_delim
 
24269
LIBTOOL!$LIBTOOL$ac_delim
 
24270
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
24271
PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
 
24272
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 
24273
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
24274
USE_NLS!$USE_NLS$ac_delim
 
24275
MSGFMT!$MSGFMT$ac_delim
 
24276
GMSGFMT!$GMSGFMT$ac_delim
 
24277
XGETTEXT!$XGETTEXT$ac_delim
 
24278
MSGMERGE!$MSGMERGE$ac_delim
 
24279
LIBICONV!$LIBICONV$ac_delim
 
24280
LTLIBICONV!$LTLIBICONV$ac_delim
 
24281
INTLLIBS!$INTLLIBS$ac_delim
 
24282
LIBINTL!$LIBINTL$ac_delim
 
24283
LTLIBINTL!$LTLIBINTL$ac_delim
 
24284
POSUB!$POSUB$ac_delim
 
24285
LIBEXIF_CFLAGS!$LIBEXIF_CFLAGS$ac_delim
 
24286
LIBEXIF_LIBS!$LIBEXIF_LIBS$ac_delim
 
24287
LIBEXIF_CONFIG_PROG!$LIBEXIF_CONFIG_PROG$ac_delim
 
24288
HAVE_LIBEXIF_TRUE!$HAVE_LIBEXIF_TRUE$ac_delim
 
24289
HAVE_LIBEXIF_FALSE!$HAVE_LIBEXIF_FALSE$ac_delim
 
24290
POPT_CFLAGS!$POPT_CFLAGS$ac_delim
 
24291
POPT_LIBS!$POPT_LIBS$ac_delim
 
24292
HAVE_POPT_TRUE!$HAVE_POPT_TRUE$ac_delim
 
24293
HAVE_POPT_FALSE!$HAVE_POPT_FALSE$ac_delim
 
24294
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
 
24295
AM_LDFLAGS!$AM_LDFLAGS$ac_delim
 
24296
LIBOBJS!$LIBOBJS$ac_delim
 
24297
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
24298
_ACEOF
 
24299
 
 
24300
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
 
24301
    break
 
24302
  elif $ac_last_try; then
 
24303
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
24304
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
24305
   { (exit 1); exit 1; }; }
 
24306
  else
 
24307
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24308
  fi
 
24309
done
 
24310
 
 
24311
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
24312
if test -n "$ac_eof"; then
 
24313
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
24314
  ac_eof=`expr $ac_eof + 1`
 
24315
fi
 
24316
 
 
24317
cat >>$CONFIG_STATUS <<_ACEOF
 
24318
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
24319
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
24320
_ACEOF
 
24321
sed '
 
24322
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
24323
s/^/s,@/; s/!/@,|#_!!_#|/
 
24324
:n
 
24325
t n
 
24326
s/'"$ac_delim"'$/,g/; t
 
24327
s/$/\\/; p
 
24328
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
24329
' >>$CONFIG_STATUS <conf$$subs.sed
 
24330
rm -f conf$$subs.sed
 
24331
cat >>$CONFIG_STATUS <<_ACEOF
 
24332
:end
 
24333
s/|#_!!_#|//g
 
24334
CEOF$ac_eof
 
24335
_ACEOF
 
24336
 
 
24337
 
 
24338
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
24339
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
24340
# trailing colons and then remove the whole line if VPATH becomes empty
 
24341
# (actually we leave an empty line to preserve line numbers).
 
24342
if test "x$srcdir" = x.; then
 
24343
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
24344
s/:*\$(srcdir):*/:/
 
24345
s/:*\${srcdir}:*/:/
 
24346
s/:*@srcdir@:*/:/
 
24347
s/^\([^=]*=[     ]*\):*/\1/
 
24348
s/:*$//
 
24349
s/^[^=]*=[       ]*$//
 
24350
}'
 
24351
fi
 
24352
 
 
24353
cat >>$CONFIG_STATUS <<\_ACEOF
22180
24354
fi # test -n "$CONFIG_FILES"
22181
24355
 
22182
 
_ACEOF
22183
 
cat >>$CONFIG_STATUS <<\_ACEOF
22184
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22185
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22186
 
  case $ac_file in
22187
 
  - | *:- | *:-:* ) # input from stdin
22188
 
        cat >$tmp/stdin
22189
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22190
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22191
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22192
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22193
 
  * )   ac_file_in=$ac_file.in ;;
22194
 
  esac
22195
 
 
22196
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22197
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24356
 
 
24357
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
24358
do
 
24359
  case $ac_tag in
 
24360
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
24361
  esac
 
24362
  case $ac_mode$ac_tag in
 
24363
  :[FHL]*:*);;
 
24364
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
24365
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
24366
   { (exit 1); exit 1; }; };;
 
24367
  :[FH]-) ac_tag=-:-;;
 
24368
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
24369
  esac
 
24370
  ac_save_IFS=$IFS
 
24371
  IFS=:
 
24372
  set x $ac_tag
 
24373
  IFS=$ac_save_IFS
 
24374
  shift
 
24375
  ac_file=$1
 
24376
  shift
 
24377
 
 
24378
  case $ac_mode in
 
24379
  :L) ac_source=$1;;
 
24380
  :[FH])
 
24381
    ac_file_inputs=
 
24382
    for ac_f
 
24383
    do
 
24384
      case $ac_f in
 
24385
      -) ac_f="$tmp/stdin";;
 
24386
      *) # Look for the file first in the build tree, then in the source tree
 
24387
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
24388
         # because $ac_f cannot contain `:'.
 
24389
         test -f "$ac_f" ||
 
24390
           case $ac_f in
 
24391
           [\\/$]*) false;;
 
24392
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
24393
           esac ||
 
24394
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
24395
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
24396
   { (exit 1); exit 1; }; };;
 
24397
      esac
 
24398
      ac_file_inputs="$ac_file_inputs $ac_f"
 
24399
    done
 
24400
 
 
24401
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
24402
    # use $as_me), people would be surprised to read:
 
24403
    #    /* config.h.  Generated by config.status.  */
 
24404
    configure_input="Generated from "`IFS=:
 
24405
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
24406
    if test x"$ac_file" != x-; then
 
24407
      configure_input="$ac_file.  $configure_input"
 
24408
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
24409
echo "$as_me: creating $ac_file" >&6;}
 
24410
    fi
 
24411
 
 
24412
    case $ac_tag in
 
24413
    *:-:* | *:-) cat >"$tmp/stdin";;
 
24414
    esac
 
24415
    ;;
 
24416
  esac
 
24417
 
 
24418
  ac_dir=`$as_dirname -- "$ac_file" ||
22198
24419
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22199
24420
         X"$ac_file" : 'X\(//\)[^/]' \| \
22200
24421
         X"$ac_file" : 'X\(//\)$' \| \
22201
 
         X"$ac_file" : 'X\(/\)' \| \
22202
 
         .     : '\(.\)' 2>/dev/null ||
 
24422
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22203
24423
echo X"$ac_file" |
22204
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22205
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22206
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22207
 
          /^X\(\/\).*/{ s//\1/; q; }
22208
 
          s/.*/./; q'`
22209
 
  { if $as_mkdir_p; then
22210
 
    mkdir -p "$ac_dir"
22211
 
  else
22212
 
    as_dir="$ac_dir"
 
24424
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24425
            s//\1/
 
24426
            q
 
24427
          }
 
24428
          /^X\(\/\/\)[^/].*/{
 
24429
            s//\1/
 
24430
            q
 
24431
          }
 
24432
          /^X\(\/\/\)$/{
 
24433
            s//\1/
 
24434
            q
 
24435
          }
 
24436
          /^X\(\/\).*/{
 
24437
            s//\1/
 
24438
            q
 
24439
          }
 
24440
          s/.*/./; q'`
 
24441
  { as_dir="$ac_dir"
 
24442
  case $as_dir in #(
 
24443
  -*) as_dir=./$as_dir;;
 
24444
  esac
 
24445
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22213
24446
    as_dirs=
22214
 
    while test ! -d "$as_dir"; do
22215
 
      as_dirs="$as_dir $as_dirs"
22216
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24447
    while :; do
 
24448
      case $as_dir in #(
 
24449
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
24450
      *) as_qdir=$as_dir;;
 
24451
      esac
 
24452
      as_dirs="'$as_qdir' $as_dirs"
 
24453
      as_dir=`$as_dirname -- "$as_dir" ||
22217
24454
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218
24455
         X"$as_dir" : 'X\(//\)[^/]' \| \
22219
24456
         X"$as_dir" : 'X\(//\)$' \| \
22220
 
         X"$as_dir" : 'X\(/\)' \| \
22221
 
         .     : '\(.\)' 2>/dev/null ||
 
24457
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22222
24458
echo X"$as_dir" |
22223
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22224
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22225
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22226
 
          /^X\(\/\).*/{ s//\1/; q; }
22227
 
          s/.*/./; q'`
 
24459
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24460
            s//\1/
 
24461
            q
 
24462
          }
 
24463
          /^X\(\/\/\)[^/].*/{
 
24464
            s//\1/
 
24465
            q
 
24466
          }
 
24467
          /^X\(\/\/\)$/{
 
24468
            s//\1/
 
24469
            q
 
24470
          }
 
24471
          /^X\(\/\).*/{
 
24472
            s//\1/
 
24473
            q
 
24474
          }
 
24475
          s/.*/./; q'`
 
24476
      test -d "$as_dir" && break
22228
24477
    done
22229
 
    test ! -n "$as_dirs" || mkdir $as_dirs
22230
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22231
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24478
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24479
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
24480
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22232
24481
   { (exit 1); exit 1; }; }; }
22233
 
 
22234
24482
  ac_builddir=.
22235
24483
 
22236
 
if test "$ac_dir" != .; then
 
24484
case "$ac_dir" in
 
24485
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
24486
*)
22237
24487
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22238
 
  # A "../" for each directory in $ac_dir_suffix.
22239
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22240
 
else
22241
 
  ac_dir_suffix= ac_top_builddir=
22242
 
fi
 
24488
  # A ".." for each directory in $ac_dir_suffix.
 
24489
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
24490
  case $ac_top_builddir_sub in
 
24491
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
24492
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
24493
  esac ;;
 
24494
esac
 
24495
ac_abs_top_builddir=$ac_pwd
 
24496
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
24497
# for backward compatibility:
 
24498
ac_top_builddir=$ac_top_build_prefix
22243
24499
 
22244
24500
case $srcdir in
22245
 
  .)  # No --srcdir option.  We are building in place.
 
24501
  .)  # We are building in place.
22246
24502
    ac_srcdir=.
22247
 
    if test -z "$ac_top_builddir"; then
22248
 
       ac_top_srcdir=.
22249
 
    else
22250
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22251
 
    fi ;;
22252
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24503
    ac_top_srcdir=$ac_top_builddir_sub
 
24504
    ac_abs_top_srcdir=$ac_pwd ;;
 
24505
  [\\/]* | ?:[\\/]* )  # Absolute name.
22253
24506
    ac_srcdir=$srcdir$ac_dir_suffix;
22254
 
    ac_top_srcdir=$srcdir ;;
22255
 
  *) # Relative path.
22256
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22257
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22258
 
esac
22259
 
 
22260
 
# Do not use `cd foo && pwd` to compute absolute paths, because
22261
 
# the directories may not exist.
22262
 
case `pwd` in
22263
 
.) ac_abs_builddir="$ac_dir";;
22264
 
*)
22265
 
  case "$ac_dir" in
22266
 
  .) ac_abs_builddir=`pwd`;;
22267
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22268
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22269
 
  esac;;
22270
 
esac
22271
 
case $ac_abs_builddir in
22272
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22273
 
*)
22274
 
  case ${ac_top_builddir}. in
22275
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22276
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22277
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22278
 
  esac;;
22279
 
esac
22280
 
case $ac_abs_builddir in
22281
 
.) ac_abs_srcdir=$ac_srcdir;;
22282
 
*)
22283
 
  case $ac_srcdir in
22284
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
22285
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22286
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22287
 
  esac;;
22288
 
esac
22289
 
case $ac_abs_builddir in
22290
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22291
 
*)
22292
 
  case $ac_top_srcdir in
22293
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22294
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22295
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22296
 
  esac;;
22297
 
esac
22298
 
 
 
24507
    ac_top_srcdir=$srcdir
 
24508
    ac_abs_top_srcdir=$srcdir ;;
 
24509
  *) # Relative name.
 
24510
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
24511
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
24512
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
24513
esac
 
24514
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
24515
 
 
24516
 
 
24517
  case $ac_mode in
 
24518
  :F)
 
24519
  #
 
24520
  # CONFIG_FILE
 
24521
  #
22299
24522
 
22300
24523
  case $INSTALL in
22301
24524
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22302
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22303
 
  esac
22304
 
 
22305
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
22306
 
  # use $as_me), people would be surprised to read:
22307
 
  #    /* config.h.  Generated by config.status.  */
22308
 
  if test x"$ac_file" = x-; then
22309
 
    configure_input=
22310
 
  else
22311
 
    configure_input="$ac_file.  "
22312
 
  fi
22313
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
22314
 
                                     sed 's,.*/,,'` by configure."
22315
 
 
22316
 
  # First look for the input files in the build tree, otherwise in the
22317
 
  # src tree.
22318
 
  ac_file_inputs=`IFS=:
22319
 
    for f in $ac_file_in; do
22320
 
      case $f in
22321
 
      -) echo $tmp/stdin ;;
22322
 
      [\\/$]*)
22323
 
         # Absolute (can't be DOS-style, as IFS=:)
22324
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22325
 
echo "$as_me: error: cannot find input file: $f" >&2;}
22326
 
   { (exit 1); exit 1; }; }
22327
 
         echo "$f";;
22328
 
      *) # Relative
22329
 
         if test -f "$f"; then
22330
 
           # Build tree
22331
 
           echo "$f"
22332
 
         elif test -f "$srcdir/$f"; then
22333
 
           # Source tree
22334
 
           echo "$srcdir/$f"
22335
 
         else
22336
 
           # /dev/null tree
22337
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22338
 
echo "$as_me: error: cannot find input file: $f" >&2;}
22339
 
   { (exit 1); exit 1; }; }
22340
 
         fi;;
22341
 
      esac
22342
 
    done` || { (exit 1); exit 1; }
22343
 
 
22344
 
  if test x"$ac_file" != x-; then
22345
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
22346
 
echo "$as_me: creating $ac_file" >&6;}
22347
 
    rm -f "$ac_file"
22348
 
  fi
22349
 
_ACEOF
 
24525
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
24526
  esac
 
24527
  ac_MKDIR_P=$MKDIR_P
 
24528
  case $MKDIR_P in
 
24529
  [\\/$]* | ?:[\\/]* ) ;;
 
24530
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
24531
  esac
 
24532
_ACEOF
 
24533
 
 
24534
cat >>$CONFIG_STATUS <<\_ACEOF
 
24535
# If the template does not know about datarootdir, expand it.
 
24536
# FIXME: This hack should be removed a few years after 2.60.
 
24537
ac_datarootdir_hack=; ac_datarootdir_seen=
 
24538
 
 
24539
case `sed -n '/datarootdir/ {
 
24540
  p
 
24541
  q
 
24542
}
 
24543
/@datadir@/p
 
24544
/@docdir@/p
 
24545
/@infodir@/p
 
24546
/@localedir@/p
 
24547
/@mandir@/p
 
24548
' $ac_file_inputs` in
 
24549
*datarootdir*) ac_datarootdir_seen=yes;;
 
24550
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
24551
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
24552
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
24553
_ACEOF
 
24554
cat >>$CONFIG_STATUS <<_ACEOF
 
24555
  ac_datarootdir_hack='
 
24556
  s&@datadir@&$datadir&g
 
24557
  s&@docdir@&$docdir&g
 
24558
  s&@infodir@&$infodir&g
 
24559
  s&@localedir@&$localedir&g
 
24560
  s&@mandir@&$mandir&g
 
24561
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
24562
esac
 
24563
_ACEOF
 
24564
 
 
24565
# Neutralize VPATH when `$srcdir' = `.'.
 
24566
# Shell code in configure.ac might set extrasub.
 
24567
# FIXME: do we really want to maintain this feature?
22350
24568
cat >>$CONFIG_STATUS <<_ACEOF
22351
24569
  sed "$ac_vpsub
22352
24570
$extrasub
22354
24572
cat >>$CONFIG_STATUS <<\_ACEOF
22355
24573
:t
22356
24574
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22357
 
s,@configure_input@,$configure_input,;t t
22358
 
s,@srcdir@,$ac_srcdir,;t t
22359
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22360
 
s,@top_srcdir@,$ac_top_srcdir,;t t
22361
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22362
 
s,@builddir@,$ac_builddir,;t t
22363
 
s,@abs_builddir@,$ac_abs_builddir,;t t
22364
 
s,@top_builddir@,$ac_top_builddir,;t t
22365
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22366
 
s,@INSTALL@,$ac_INSTALL,;t t
22367
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22368
 
  rm -f $tmp/stdin
22369
 
  if test x"$ac_file" != x-; then
22370
 
    mv $tmp/out $ac_file
22371
 
  else
22372
 
    cat $tmp/out
22373
 
    rm -f $tmp/out
22374
 
  fi
22375
 
 
22376
 
done
 
24575
s&@configure_input@&$configure_input&;t t
 
24576
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
24577
s&@srcdir@&$ac_srcdir&;t t
 
24578
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
24579
s&@top_srcdir@&$ac_top_srcdir&;t t
 
24580
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
24581
s&@builddir@&$ac_builddir&;t t
 
24582
s&@abs_builddir@&$ac_abs_builddir&;t t
 
24583
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
24584
s&@INSTALL@&$ac_INSTALL&;t t
 
24585
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
24586
$ac_datarootdir_hack
 
24587
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
24588
 
 
24589
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
24590
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
24591
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
24592
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24593
which seems to be undefined.  Please make sure it is defined." >&5
 
24594
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24595
which seems to be undefined.  Please make sure it is defined." >&2;}
 
24596
 
 
24597
  rm -f "$tmp/stdin"
 
24598
  case $ac_file in
 
24599
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
24600
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
24601
  esac
 
24602
 ;;
 
24603
  :H)
 
24604
  #
 
24605
  # CONFIG_HEADER
 
24606
  #
22377
24607
_ACEOF
22378
 
cat >>$CONFIG_STATUS <<\_ACEOF
22379
 
 
22380
 
#
22381
 
# CONFIG_HEADER section.
22382
 
#
22383
 
 
22384
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22385
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22386
 
#
22387
 
# ac_d sets the value in "#define NAME VALUE" lines.
22388
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22389
 
ac_dB='[         ].*$,\1#\2'
 
24608
 
 
24609
# Transform confdefs.h into a sed script `conftest.defines', that
 
24610
# substitutes the proper values into config.h.in to produce config.h.
 
24611
rm -f conftest.defines conftest.tail
 
24612
# First, append a space to every undef/define line, to ease matching.
 
24613
echo 's/$/ /' >conftest.defines
 
24614
# Then, protect against being on the right side of a sed subst, or in
 
24615
# an unquoted here document, in config.status.  If some macros were
 
24616
# called several times there might be several #defines for the same
 
24617
# symbol, which is useless.  But do not sort them, since the last
 
24618
# AC_DEFINE must be honored.
 
24619
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
24620
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
24621
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
24622
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
24623
# just an empty string.
 
24624
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
24625
ac_dB='\\)[      (].*,\\1define\\2'
22390
24626
ac_dC=' '
22391
 
ac_dD=',;t'
22392
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22393
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22394
 
ac_uB='$,\1#\2define\3'
22395
 
ac_uC=' '
22396
 
ac_uD=',;t'
22397
 
 
22398
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22399
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22400
 
  case $ac_file in
22401
 
  - | *:- | *:-:* ) # input from stdin
22402
 
        cat >$tmp/stdin
22403
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22404
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22405
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22406
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22407
 
  * )   ac_file_in=$ac_file.in ;;
22408
 
  esac
22409
 
 
22410
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22411
 
echo "$as_me: creating $ac_file" >&6;}
22412
 
 
22413
 
  # First look for the input files in the build tree, otherwise in the
22414
 
  # src tree.
22415
 
  ac_file_inputs=`IFS=:
22416
 
    for f in $ac_file_in; do
22417
 
      case $f in
22418
 
      -) echo $tmp/stdin ;;
22419
 
      [\\/$]*)
22420
 
         # Absolute (can't be DOS-style, as IFS=:)
22421
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22422
 
echo "$as_me: error: cannot find input file: $f" >&2;}
22423
 
   { (exit 1); exit 1; }; }
22424
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
22425
 
         echo "$f";;
22426
 
      *) # Relative
22427
 
         if test -f "$f"; then
22428
 
           # Build tree
22429
 
           echo "$f"
22430
 
         elif test -f "$srcdir/$f"; then
22431
 
           # Source tree
22432
 
           echo "$srcdir/$f"
22433
 
         else
22434
 
           # /dev/null tree
22435
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22436
 
echo "$as_me: error: cannot find input file: $f" >&2;}
22437
 
   { (exit 1); exit 1; }; }
22438
 
         fi;;
22439
 
      esac
22440
 
    done` || { (exit 1); exit 1; }
22441
 
  # Remove the trailing spaces.
22442
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22443
 
 
22444
 
_ACEOF
22445
 
 
22446
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22447
 
# `conftest.undefs', that substitutes the proper values into
22448
 
# config.h.in to produce config.h.  The first handles `#define'
22449
 
# templates, and the second `#undef' templates.
22450
 
# And first: Protect against being on the right side of a sed subst in
22451
 
# config.status.  Protect against being in an unquoted here document
22452
 
# in config.status.
22453
 
rm -f conftest.defines conftest.undefs
22454
 
# Using a here document instead of a string reduces the quoting nightmare.
22455
 
# Putting comments in sed scripts is not portable.
22456
 
#
22457
 
# `end' is used to avoid that the second main sed command (meant for
22458
 
# 0-ary CPP macros) applies to n-ary macro definitions.
22459
 
# See the Autoconf documentation for `clear'.
22460
 
cat >confdef2sed.sed <<\_ACEOF
22461
 
s/[\\&,]/\\&/g
22462
 
s,[\\$`],\\&,g
22463
 
t clear
22464
 
: clear
22465
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22466
 
t end
22467
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22468
 
: end
22469
 
_ACEOF
22470
 
# If some macros were called several times there might be several times
22471
 
# the same #defines, which is useless.  Nevertheless, we may not want to
22472
 
# sort them, since we want the *last* AC-DEFINE to be honored.
22473
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22474
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22475
 
rm -f confdef2sed.sed
22476
 
 
22477
 
# This sed command replaces #undef with comments.  This is necessary, for
 
24627
ac_dD=' ,'
 
24628
 
 
24629
uniq confdefs.h |
 
24630
  sed -n '
 
24631
        t rset
 
24632
        :rset
 
24633
        s/^[     ]*#[    ]*define[       ][      ]*//
 
24634
        t ok
 
24635
        d
 
24636
        :ok
 
24637
        s/[\\&,]/\\&/g
 
24638
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
24639
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
24640
  ' >>conftest.defines
 
24641
 
 
24642
# Remove the space that was appended to ease matching.
 
24643
# Then replace #undef with comments.  This is necessary, for
22478
24644
# example, in the case of _POSIX_SOURCE, which is predefined and required
22479
24645
# on some systems where configure will not decide to define it.
22480
 
cat >>conftest.undefs <<\_ACEOF
22481
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
24646
# (The regexp can be short, since the line contains either #define or #undef.)
 
24647
echo 's/ $//
 
24648
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
24649
 
 
24650
# Break up conftest.defines:
 
24651
ac_max_sed_lines=50
 
24652
 
 
24653
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
24654
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
24655
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
24656
# et cetera.
 
24657
ac_in='$ac_file_inputs'
 
24658
ac_out='"$tmp/out1"'
 
24659
ac_nxt='"$tmp/out2"'
 
24660
 
 
24661
while :
 
24662
do
 
24663
  # Write a here document:
 
24664
    cat >>$CONFIG_STATUS <<_ACEOF
 
24665
    # First, check the format of the line:
 
24666
    cat >"\$tmp/defines.sed" <<\\CEOF
 
24667
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
24668
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
24669
b
 
24670
:def
22482
24671
_ACEOF
22483
 
 
22484
 
# Break up conftest.defines because some shells have a limit on the size
22485
 
# of here documents, and old seds have small limits too (100 cmds).
22486
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22487
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22488
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22489
 
echo '  :' >>$CONFIG_STATUS
22490
 
rm -f conftest.tail
22491
 
while grep . conftest.defines >/dev/null
22492
 
do
22493
 
  # Write a limited-size here document to $tmp/defines.sed.
22494
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22495
 
  # Speed up: don't consider the non `#define' lines.
22496
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22497
 
  # Work around the forget-to-reset-the-flag bug.
22498
 
  echo 't clr' >>$CONFIG_STATUS
22499
 
  echo ': clr' >>$CONFIG_STATUS
22500
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
24672
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22501
24673
  echo 'CEOF
22502
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22503
 
  rm -f $tmp/in
22504
 
  mv $tmp/out $tmp/in
22505
 
' >>$CONFIG_STATUS
22506
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
24674
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
24675
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
24676
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
24677
  grep . conftest.tail >/dev/null || break
22507
24678
  rm -f conftest.defines
22508
24679
  mv conftest.tail conftest.defines
22509
24680
done
22510
 
rm -f conftest.defines
22511
 
echo '  fi # grep' >>$CONFIG_STATUS
22512
 
echo >>$CONFIG_STATUS
22513
 
 
22514
 
# Break up conftest.undefs because some shells have a limit on the size
22515
 
# of here documents, and old seds have small limits too (100 cmds).
22516
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22517
 
rm -f conftest.tail
22518
 
while grep . conftest.undefs >/dev/null
22519
 
do
22520
 
  # Write a limited-size here document to $tmp/undefs.sed.
22521
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22522
 
  # Speed up: don't consider the non `#undef'
22523
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22524
 
  # Work around the forget-to-reset-the-flag bug.
22525
 
  echo 't clr' >>$CONFIG_STATUS
22526
 
  echo ': clr' >>$CONFIG_STATUS
22527
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22528
 
  echo 'CEOF
22529
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22530
 
  rm -f $tmp/in
22531
 
  mv $tmp/out $tmp/in
22532
 
' >>$CONFIG_STATUS
22533
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22534
 
  rm -f conftest.undefs
22535
 
  mv conftest.tail conftest.undefs
22536
 
done
22537
 
rm -f conftest.undefs
22538
 
 
 
24681
rm -f conftest.defines conftest.tail
 
24682
 
 
24683
echo "ac_result=$ac_in" >>$CONFIG_STATUS
22539
24684
cat >>$CONFIG_STATUS <<\_ACEOF
22540
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
22541
 
  # use $as_me), people would be surprised to read:
22542
 
  #    /* config.h.  Generated by config.status.  */
22543
 
  if test x"$ac_file" = x-; then
22544
 
    echo "/* Generated by configure.  */" >$tmp/config.h
22545
 
  else
22546
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22547
 
  fi
22548
 
  cat $tmp/in >>$tmp/config.h
22549
 
  rm -f $tmp/in
22550
24685
  if test x"$ac_file" != x-; then
22551
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
24686
    echo "/* $configure_input  */" >"$tmp/config.h"
 
24687
    cat "$ac_result" >>"$tmp/config.h"
 
24688
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22552
24689
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22553
24690
echo "$as_me: $ac_file is unchanged" >&6;}
22554
24691
    else
22555
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22556
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
22558
 
         X"$ac_file" : 'X\(//\)$' \| \
22559
 
         X"$ac_file" : 'X\(/\)' \| \
22560
 
         .     : '\(.\)' 2>/dev/null ||
22561
 
echo X"$ac_file" |
22562
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22563
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22564
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22565
 
          /^X\(\/\).*/{ s//\1/; q; }
22566
 
          s/.*/./; q'`
22567
 
      { if $as_mkdir_p; then
22568
 
    mkdir -p "$ac_dir"
22569
 
  else
22570
 
    as_dir="$ac_dir"
22571
 
    as_dirs=
22572
 
    while test ! -d "$as_dir"; do
22573
 
      as_dirs="$as_dir $as_dirs"
22574
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22575
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
22577
 
         X"$as_dir" : 'X\(//\)$' \| \
22578
 
         X"$as_dir" : 'X\(/\)' \| \
22579
 
         .     : '\(.\)' 2>/dev/null ||
22580
 
echo X"$as_dir" |
22581
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22582
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22583
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22584
 
          /^X\(\/\).*/{ s//\1/; q; }
22585
 
          s/.*/./; q'`
22586
 
    done
22587
 
    test ! -n "$as_dirs" || mkdir $as_dirs
22588
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22589
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22590
 
   { (exit 1); exit 1; }; }; }
22591
 
 
22592
24692
      rm -f $ac_file
22593
 
      mv $tmp/config.h $ac_file
 
24693
      mv "$tmp/config.h" $ac_file
22594
24694
    fi
22595
24695
  else
22596
 
    cat $tmp/config.h
22597
 
    rm -f $tmp/config.h
 
24696
    echo "/* $configure_input  */"
 
24697
    cat "$ac_result"
22598
24698
  fi
 
24699
  rm -f "$tmp/out12"
22599
24700
# Compute $ac_file's index in $config_headers.
22600
24701
_am_stamp_count=1
22601
24702
for _am_header in $config_headers :; do
22606
24707
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22607
24708
  esac
22608
24709
done
22609
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
24710
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22610
24711
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22611
24712
         X$ac_file : 'X\(//\)[^/]' \| \
22612
24713
         X$ac_file : 'X\(//\)$' \| \
22613
 
         X$ac_file : 'X\(/\)' \| \
22614
 
         .     : '\(.\)' 2>/dev/null ||
 
24714
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22615
24715
echo X$ac_file |
22616
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22617
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22618
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22619
 
          /^X\(\/\).*/{ s//\1/; q; }
22620
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
22621
 
done
22622
 
_ACEOF
22623
 
cat >>$CONFIG_STATUS <<\_ACEOF
22624
 
 
22625
 
#
22626
 
# CONFIG_COMMANDS section.
22627
 
#
22628
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22629
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22630
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22631
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22632
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22633
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
22634
 
         X"$ac_dest" : 'X\(//\)$' \| \
22635
 
         X"$ac_dest" : 'X\(/\)' \| \
22636
 
         .     : '\(.\)' 2>/dev/null ||
22637
 
echo X"$ac_dest" |
22638
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22639
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22640
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22641
 
          /^X\(\/\).*/{ s//\1/; q; }
22642
 
          s/.*/./; q'`
22643
 
  { if $as_mkdir_p; then
22644
 
    mkdir -p "$ac_dir"
22645
 
  else
22646
 
    as_dir="$ac_dir"
22647
 
    as_dirs=
22648
 
    while test ! -d "$as_dir"; do
22649
 
      as_dirs="$as_dir $as_dirs"
22650
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22651
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22652
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
22653
 
         X"$as_dir" : 'X\(//\)$' \| \
22654
 
         X"$as_dir" : 'X\(/\)' \| \
22655
 
         .     : '\(.\)' 2>/dev/null ||
22656
 
echo X"$as_dir" |
22657
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22658
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22659
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22660
 
          /^X\(\/\).*/{ s//\1/; q; }
22661
 
          s/.*/./; q'`
22662
 
    done
22663
 
    test ! -n "$as_dirs" || mkdir $as_dirs
22664
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22665
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22666
 
   { (exit 1); exit 1; }; }; }
22667
 
 
22668
 
  ac_builddir=.
22669
 
 
22670
 
if test "$ac_dir" != .; then
22671
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22672
 
  # A "../" for each directory in $ac_dir_suffix.
22673
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22674
 
else
22675
 
  ac_dir_suffix= ac_top_builddir=
22676
 
fi
22677
 
 
22678
 
case $srcdir in
22679
 
  .)  # No --srcdir option.  We are building in place.
22680
 
    ac_srcdir=.
22681
 
    if test -z "$ac_top_builddir"; then
22682
 
       ac_top_srcdir=.
22683
 
    else
22684
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22685
 
    fi ;;
22686
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
22687
 
    ac_srcdir=$srcdir$ac_dir_suffix;
22688
 
    ac_top_srcdir=$srcdir ;;
22689
 
  *) # Relative path.
22690
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22691
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22692
 
esac
22693
 
 
22694
 
# Do not use `cd foo && pwd` to compute absolute paths, because
22695
 
# the directories may not exist.
22696
 
case `pwd` in
22697
 
.) ac_abs_builddir="$ac_dir";;
22698
 
*)
22699
 
  case "$ac_dir" in
22700
 
  .) ac_abs_builddir=`pwd`;;
22701
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22702
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22703
 
  esac;;
22704
 
esac
22705
 
case $ac_abs_builddir in
22706
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22707
 
*)
22708
 
  case ${ac_top_builddir}. in
22709
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22710
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22711
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22712
 
  esac;;
22713
 
esac
22714
 
case $ac_abs_builddir in
22715
 
.) ac_abs_srcdir=$ac_srcdir;;
22716
 
*)
22717
 
  case $ac_srcdir in
22718
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
22719
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22720
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22721
 
  esac;;
22722
 
esac
22723
 
case $ac_abs_builddir in
22724
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22725
 
*)
22726
 
  case $ac_top_srcdir in
22727
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22728
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22729
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22730
 
  esac;;
22731
 
esac
22732
 
 
22733
 
 
22734
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22735
 
echo "$as_me: executing $ac_dest commands" >&6;}
22736
 
  case $ac_dest in
22737
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24717
            s//\1/
 
24718
            q
 
24719
          }
 
24720
          /^X\(\/\/\)[^/].*/{
 
24721
            s//\1/
 
24722
            q
 
24723
          }
 
24724
          /^X\(\/\/\)$/{
 
24725
            s//\1/
 
24726
            q
 
24727
          }
 
24728
          /^X\(\/\).*/{
 
24729
            s//\1/
 
24730
            q
 
24731
          }
 
24732
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
24733
 ;;
 
24734
 
 
24735
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
24736
echo "$as_me: executing $ac_file commands" >&6;}
 
24737
 ;;
 
24738
  esac
 
24739
 
 
24740
 
 
24741
  case $ac_file$ac_mode in
 
24742
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22738
24743
  # Strip MF so we end up with the name of the file.
22739
24744
  mf=`echo "$mf" | sed -e 's/:.*$//'`
22740
24745
  # Check whether this is an Automake generated Makefile or not.
22742
24747
  # some people rename them; so instead we look at the file content.
22743
24748
  # Grep'ing the first line is not enough: some people post-process
22744
24749
  # each Makefile.in and add a new line on top of each file to say so.
22745
 
  # So let's grep whole file.
22746
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22747
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
24750
  # Grep'ing the whole file is not good either: AIX grep has a line
 
24751
  # limit of 2048, but all sed's we know have understand at least 4000.
 
24752
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
24753
    dirpart=`$as_dirname -- "$mf" ||
22748
24754
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22749
24755
         X"$mf" : 'X\(//\)[^/]' \| \
22750
24756
         X"$mf" : 'X\(//\)$' \| \
22751
 
         X"$mf" : 'X\(/\)' \| \
22752
 
         .     : '\(.\)' 2>/dev/null ||
 
24757
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22753
24758
echo X"$mf" |
22754
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22755
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22756
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22757
 
          /^X\(\/\).*/{ s//\1/; q; }
22758
 
          s/.*/./; q'`
 
24759
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24760
            s//\1/
 
24761
            q
 
24762
          }
 
24763
          /^X\(\/\/\)[^/].*/{
 
24764
            s//\1/
 
24765
            q
 
24766
          }
 
24767
          /^X\(\/\/\)$/{
 
24768
            s//\1/
 
24769
            q
 
24770
          }
 
24771
          /^X\(\/\).*/{
 
24772
            s//\1/
 
24773
            q
 
24774
          }
 
24775
          s/.*/./; q'`
22759
24776
  else
22760
24777
    continue
22761
24778
  fi
22762
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22763
 
  # Extract the definition of DEP_FILES from the Makefile without
22764
 
  # running `make'.
 
24779
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24780
  # from the Makefile without running `make'.
22765
24781
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22766
24782
  test -z "$DEPDIR" && continue
 
24783
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24784
  test -z "am__include" && continue
 
24785
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22767
24786
  # When using ansi2knr, U may be empty or an underscore; expand it
22768
24787
  U=`sed -n 's/^U = //p' < "$mf"`
22769
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22770
 
  # We invoke sed twice because it is the simplest approach to
22771
 
  # changing $(DEPDIR) to its actual value in the expansion.
22772
 
  for file in `sed -n '
22773
 
    /^DEP_FILES = .*\\\\$/ {
22774
 
      s/^DEP_FILES = //
22775
 
      :loop
22776
 
        s/\\\\$//
22777
 
        p
22778
 
        n
22779
 
        /\\\\$/ b loop
22780
 
      p
22781
 
    }
22782
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24788
  # Find all dependency output files, they are included files with
 
24789
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24790
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24791
  # expansion.
 
24792
  for file in `sed -n "
 
24793
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22783
24794
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22784
24795
    # Make sure the directory exists.
22785
24796
    test -f "$dirpart/$file" && continue
22786
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
24797
    fdir=`$as_dirname -- "$file" ||
22787
24798
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22788
24799
         X"$file" : 'X\(//\)[^/]' \| \
22789
24800
         X"$file" : 'X\(//\)$' \| \
22790
 
         X"$file" : 'X\(/\)' \| \
22791
 
         .     : '\(.\)' 2>/dev/null ||
 
24801
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22792
24802
echo X"$file" |
22793
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22794
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22795
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22796
 
          /^X\(\/\).*/{ s//\1/; q; }
22797
 
          s/.*/./; q'`
22798
 
    { if $as_mkdir_p; then
22799
 
    mkdir -p $dirpart/$fdir
22800
 
  else
22801
 
    as_dir=$dirpart/$fdir
 
24803
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24804
            s//\1/
 
24805
            q
 
24806
          }
 
24807
          /^X\(\/\/\)[^/].*/{
 
24808
            s//\1/
 
24809
            q
 
24810
          }
 
24811
          /^X\(\/\/\)$/{
 
24812
            s//\1/
 
24813
            q
 
24814
          }
 
24815
          /^X\(\/\).*/{
 
24816
            s//\1/
 
24817
            q
 
24818
          }
 
24819
          s/.*/./; q'`
 
24820
    { as_dir=$dirpart/$fdir
 
24821
  case $as_dir in #(
 
24822
  -*) as_dir=./$as_dir;;
 
24823
  esac
 
24824
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22802
24825
    as_dirs=
22803
 
    while test ! -d "$as_dir"; do
22804
 
      as_dirs="$as_dir $as_dirs"
22805
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24826
    while :; do
 
24827
      case $as_dir in #(
 
24828
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
24829
      *) as_qdir=$as_dir;;
 
24830
      esac
 
24831
      as_dirs="'$as_qdir' $as_dirs"
 
24832
      as_dir=`$as_dirname -- "$as_dir" ||
22806
24833
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22807
24834
         X"$as_dir" : 'X\(//\)[^/]' \| \
22808
24835
         X"$as_dir" : 'X\(//\)$' \| \
22809
 
         X"$as_dir" : 'X\(/\)' \| \
22810
 
         .     : '\(.\)' 2>/dev/null ||
 
24836
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22811
24837
echo X"$as_dir" |
22812
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22813
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22814
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22815
 
          /^X\(\/\).*/{ s//\1/; q; }
22816
 
          s/.*/./; q'`
 
24838
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24839
            s//\1/
 
24840
            q
 
24841
          }
 
24842
          /^X\(\/\/\)[^/].*/{
 
24843
            s//\1/
 
24844
            q
 
24845
          }
 
24846
          /^X\(\/\/\)$/{
 
24847
            s//\1/
 
24848
            q
 
24849
          }
 
24850
          /^X\(\/\).*/{
 
24851
            s//\1/
 
24852
            q
 
24853
          }
 
24854
          s/.*/./; q'`
 
24855
      test -d "$as_dir" && break
22817
24856
    done
22818
 
    test ! -n "$as_dirs" || mkdir $as_dirs
22819
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22820
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24857
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24858
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
24859
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22821
24860
   { (exit 1); exit 1; }; }; }
22822
 
 
22823
24861
    # echo "creating $dirpart/$file"
22824
24862
    echo '# dummy' > "$dirpart/$file"
22825
24863
  done
22826
24864
done
22827
24865
 ;;
22828
 
    default-1 )
22829
 
    for ac_file in $CONFIG_FILES; do
22830
 
      # Support "outfile[:infile[:infile...]]"
22831
 
      case "$ac_file" in
22832
 
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22833
 
      esac
22834
 
      # PO directories have a Makefile.in generated from Makefile.in.in.
22835
 
      case "$ac_file" in */Makefile.in)
22836
 
        # Adjust a relative srcdir.
22837
 
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22838
 
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22839
 
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22840
 
        # In autoconf-2.13 it is called $ac_given_srcdir.
22841
 
        # In autoconf-2.50 it is called $srcdir.
22842
 
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22843
 
        case "$ac_given_srcdir" in
22844
 
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22845
 
          /*) top_srcdir="$ac_given_srcdir" ;;
22846
 
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22847
 
        esac
22848
 
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22849
 
          rm -f "$ac_dir/POTFILES"
22850
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22851
 
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22852
 
          POMAKEFILEDEPS="POTFILES.in"
22853
 
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22854
 
          # on $ac_dir but don't depend on user-specified configuration
22855
 
          # parameters.
22856
 
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22857
 
            # The LINGUAS file contains the set of available languages.
22858
 
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22859
 
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22860
 
            fi
22861
 
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22862
 
            # Hide the ALL_LINGUAS assigment from automake.
22863
 
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22864
 
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22865
 
          else
22866
 
            # The set of available languages was given in configure.in.
22867
 
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22868
 
          fi
22869
 
          # Compute POFILES
22870
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22871
 
          # Compute UPDATEPOFILES
22872
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22873
 
          # Compute DUMMYPOFILES
22874
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22875
 
          # Compute GMOFILES
22876
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22877
 
          case "$ac_given_srcdir" in
22878
 
            .) srcdirpre= ;;
22879
 
            *) srcdirpre='$(srcdir)/' ;;
22880
 
          esac
22881
 
          POFILES=
22882
 
          UPDATEPOFILES=
22883
 
          DUMMYPOFILES=
22884
 
          GMOFILES=
22885
 
          for lang in $ALL_LINGUAS; do
22886
 
            POFILES="$POFILES $srcdirpre$lang.po"
22887
 
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22888
 
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22889
 
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22890
 
          done
22891
 
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22892
 
          # environment variable.
22893
 
          INST_LINGUAS=
22894
 
          if test -n "$ALL_LINGUAS"; then
22895
 
            for presentlang in $ALL_LINGUAS; do
22896
 
              useit=no
22897
 
              if test "%UNSET%" != "$LINGUAS"; then
22898
 
                desiredlanguages="$LINGUAS"
22899
 
              else
22900
 
                desiredlanguages="$ALL_LINGUAS"
22901
 
              fi
22902
 
              for desiredlang in $desiredlanguages; do
22903
 
                # Use the presentlang catalog if desiredlang is
22904
 
                #   a. equal to presentlang, or
22905
 
                #   b. a variant of presentlang (because in this case,
22906
 
                #      presentlang can be used as a fallback for messages
22907
 
                #      which are not translated in the desiredlang catalog).
22908
 
                case "$desiredlang" in
22909
 
                  "$presentlang"*) useit=yes;;
22910
 
                esac
22911
 
              done
22912
 
              if test $useit = yes; then
22913
 
                INST_LINGUAS="$INST_LINGUAS $presentlang"
22914
 
              fi
22915
 
            done
22916
 
          fi
22917
 
          CATALOGS=
22918
 
          if test -n "$INST_LINGUAS"; then
22919
 
            for lang in $INST_LINGUAS; do
22920
 
              CATALOGS="$CATALOGS $lang.gmo"
22921
 
            done
22922
 
          fi
22923
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22924
 
          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"
22925
 
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22926
 
            if test -f "$f"; then
22927
 
              case "$f" in
22928
 
                *.orig | *.bak | *~) ;;
22929
 
                *) cat "$f" >> "$ac_dir/Makefile" ;;
22930
 
              esac
22931
 
            fi
22932
 
          done
22933
 
        fi
22934
 
        ;;
22935
 
      esac
22936
 
    done ;;
 
24866
    "default-1":C)
 
24867
    for ac_file in $CONFIG_FILES; do
 
24868
      # Support "outfile[:infile[:infile...]]"
 
24869
      case "$ac_file" in
 
24870
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
24871
      esac
 
24872
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
24873
      case "$ac_file" in */Makefile.in)
 
24874
        # Adjust a relative srcdir.
 
24875
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
24876
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
24877
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
24878
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
24879
        # In autoconf-2.50 it is called $srcdir.
 
24880
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
24881
        case "$ac_given_srcdir" in
 
24882
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
24883
          /*) top_srcdir="$ac_given_srcdir" ;;
 
24884
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
24885
        esac
 
24886
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
24887
          rm -f "$ac_dir/POTFILES"
 
24888
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
24889
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
24890
          POMAKEFILEDEPS="POTFILES.in"
 
24891
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
24892
          # on $ac_dir but don't depend on user-specified configuration
 
24893
          # parameters.
 
24894
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
24895
            # The LINGUAS file contains the set of available languages.
 
24896
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
24897
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
24898
            fi
 
24899
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
24900
            # Hide the ALL_LINGUAS assigment from automake.
 
24901
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
24902
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
24903
          else
 
24904
            # The set of available languages was given in configure.in.
 
24905
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
24906
          fi
 
24907
          # Compute POFILES
 
24908
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
24909
          # Compute UPDATEPOFILES
 
24910
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
24911
          # Compute DUMMYPOFILES
 
24912
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
24913
          # Compute GMOFILES
 
24914
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
24915
          case "$ac_given_srcdir" in
 
24916
            .) srcdirpre= ;;
 
24917
            *) srcdirpre='$(srcdir)/' ;;
 
24918
          esac
 
24919
          POFILES=
 
24920
          UPDATEPOFILES=
 
24921
          DUMMYPOFILES=
 
24922
          GMOFILES=
 
24923
          for lang in $ALL_LINGUAS; do
 
24924
            POFILES="$POFILES $srcdirpre$lang.po"
 
24925
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
24926
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
24927
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
24928
          done
 
24929
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
24930
          # environment variable.
 
24931
          INST_LINGUAS=
 
24932
          if test -n "$ALL_LINGUAS"; then
 
24933
            for presentlang in $ALL_LINGUAS; do
 
24934
              useit=no
 
24935
              if test "%UNSET%" != "$LINGUAS"; then
 
24936
                desiredlanguages="$LINGUAS"
 
24937
              else
 
24938
                desiredlanguages="$ALL_LINGUAS"
 
24939
              fi
 
24940
              for desiredlang in $desiredlanguages; do
 
24941
                # Use the presentlang catalog if desiredlang is
 
24942
                #   a. equal to presentlang, or
 
24943
                #   b. a variant of presentlang (because in this case,
 
24944
                #      presentlang can be used as a fallback for messages
 
24945
                #      which are not translated in the desiredlang catalog).
 
24946
                case "$desiredlang" in
 
24947
                  "$presentlang"*) useit=yes;;
 
24948
                esac
 
24949
              done
 
24950
              if test $useit = yes; then
 
24951
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
24952
              fi
 
24953
            done
 
24954
          fi
 
24955
          CATALOGS=
 
24956
          if test -n "$INST_LINGUAS"; then
 
24957
            for lang in $INST_LINGUAS; do
 
24958
              CATALOGS="$CATALOGS $lang.gmo"
 
24959
            done
 
24960
          fi
 
24961
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
24962
          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"
 
24963
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
24964
            if test -f "$f"; then
 
24965
              case "$f" in
 
24966
                *.orig | *.bak | *~) ;;
 
24967
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
24968
              esac
 
24969
            fi
 
24970
          done
 
24971
        fi
 
24972
        ;;
 
24973
      esac
 
24974
    done ;;
 
24975
    "default-2":C)
 
24976
    for ac_file in $CONFIG_FILES; do
 
24977
      # Support "outfile[:infile[:infile...]]"
 
24978
      case "$ac_file" in
 
24979
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
24980
      esac
 
24981
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
24982
      case "$ac_file" in */Makefile.in)
 
24983
        # Adjust a relative srcdir.
 
24984
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
24985
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
24986
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
24987
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
24988
        # In autoconf-2.50 it is called $srcdir.
 
24989
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
24990
        case "$ac_given_srcdir" in
 
24991
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
24992
          /*) top_srcdir="$ac_given_srcdir" ;;
 
24993
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
24994
        esac
 
24995
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
24996
          rm -f "$ac_dir/POTFILES"
 
24997
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
24998
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
24999
          POMAKEFILEDEPS="POTFILES.in"
 
25000
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
25001
          # on $ac_dir but don't depend on user-specified configuration
 
25002
          # parameters.
 
25003
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
25004
            # The LINGUAS file contains the set of available languages.
 
25005
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
25006
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
25007
            fi
 
25008
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
25009
            # Hide the ALL_LINGUAS assigment from automake.
 
25010
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
25011
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
25012
          else
 
25013
            # The set of available languages was given in configure.in.
 
25014
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
25015
          fi
 
25016
          # Compute POFILES
 
25017
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
25018
          # Compute UPDATEPOFILES
 
25019
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
25020
          # Compute DUMMYPOFILES
 
25021
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
25022
          # Compute GMOFILES
 
25023
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
25024
          case "$ac_given_srcdir" in
 
25025
            .) srcdirpre= ;;
 
25026
            *) srcdirpre='$(srcdir)/' ;;
 
25027
          esac
 
25028
          POFILES=
 
25029
          UPDATEPOFILES=
 
25030
          DUMMYPOFILES=
 
25031
          GMOFILES=
 
25032
          for lang in $ALL_LINGUAS; do
 
25033
            POFILES="$POFILES $srcdirpre$lang.po"
 
25034
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
25035
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
25036
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
25037
          done
 
25038
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
25039
          # environment variable.
 
25040
          INST_LINGUAS=
 
25041
          if test -n "$ALL_LINGUAS"; then
 
25042
            for presentlang in $ALL_LINGUAS; do
 
25043
              useit=no
 
25044
              if test "%UNSET%" != "$LINGUAS"; then
 
25045
                desiredlanguages="$LINGUAS"
 
25046
              else
 
25047
                desiredlanguages="$ALL_LINGUAS"
 
25048
              fi
 
25049
              for desiredlang in $desiredlanguages; do
 
25050
                # Use the presentlang catalog if desiredlang is
 
25051
                #   a. equal to presentlang, or
 
25052
                #   b. a variant of presentlang (because in this case,
 
25053
                #      presentlang can be used as a fallback for messages
 
25054
                #      which are not translated in the desiredlang catalog).
 
25055
                case "$desiredlang" in
 
25056
                  "$presentlang"*) useit=yes;;
 
25057
                esac
 
25058
              done
 
25059
              if test $useit = yes; then
 
25060
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
25061
              fi
 
25062
            done
 
25063
          fi
 
25064
          CATALOGS=
 
25065
          if test -n "$INST_LINGUAS"; then
 
25066
            for lang in $INST_LINGUAS; do
 
25067
              CATALOGS="$CATALOGS $lang.gmo"
 
25068
            done
 
25069
          fi
 
25070
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
25071
          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"
 
25072
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
25073
            if test -f "$f"; then
 
25074
              case "$f" in
 
25075
                *.orig | *.bak | *~) ;;
 
25076
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
25077
              esac
 
25078
            fi
 
25079
          done
 
25080
        fi
 
25081
        ;;
 
25082
      esac
 
25083
    done ;;
 
25084
 
22937
25085
  esac
22938
 
done
22939
 
_ACEOF
 
25086
done # for ac_tag
22940
25087
 
22941
 
cat >>$CONFIG_STATUS <<\_ACEOF
22942
25088
 
22943
25089
{ (exit 0); exit 0; }
22944
25090
_ACEOF
22968
25114
fi
22969
25115
 
22970
25116
 
22971
 
echo "
22972
 
 
22973
 
Configuration:
22974
 
 
22975
 
        Source code location:      ${srcdir}
22976
 
        Compiler:                  ${CC}
22977
 
"
 
25117
# Message about configured subprojects
 
25118
if test "x$subdirs" != "x"; then
 
25119
 
 
25120
gp_config_msg="${gp_config_msg}
 
25121
"
 
25122
        _subdirs=""
 
25123
        for sd in $subdirs; do
 
25124
                ssd="$(basename "$sd")"
 
25125
                if test "x$_subdirs" = "x"; then
 
25126
                        _subdirs="$ssd";
 
25127
                else
 
25128
                        _subdirs="$_subdirs $ssd"
 
25129
                fi
 
25130
        done
 
25131
 
 
25132
gp_config_msg_len="$(expr "Subprojects" : '.*')"
 
25133
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
 
25134
        gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
 
25135
else
 
25136
        gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
 
25137
fi
 
25138
gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
 
25139
"
 
25140
fi
 
25141
 
 
25142
echo "${gp_config_msg}
 
25143
You may run \"make\" and \"make install\" now."