~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to oRTP/configure

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

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.
 
3
# Generated by GNU Autoconf 2.60a for ortp 0.12.0.
4
4
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
7
# This configure script is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy, distribute and modify it.
8
9
## --------------------- ##
16
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
18
  # is contrary to our usage.  Disable this feature.
18
19
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
 
20
  setopt NO_GLOB_SUBST
 
21
else
 
22
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21
23
fi
 
24
BIN_SH=xpg4; export BIN_SH # for Tru64
22
25
DUALCASE=1; export DUALCASE # for MKS sh
23
26
 
 
27
 
 
28
# PATH needs CR
 
29
# Avoid depending upon Character Ranges.
 
30
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
31
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
32
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
33
as_cr_digits='0123456789'
 
34
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
35
 
 
36
# The user is always right.
 
37
if test "${PATH_SEPARATOR+set}" != set; then
 
38
  echo "#! /bin/sh" >conf$$.sh
 
39
  echo  "exit 0"   >>conf$$.sh
 
40
  chmod +x conf$$.sh
 
41
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
42
    PATH_SEPARATOR=';'
 
43
  else
 
44
    PATH_SEPARATOR=:
 
45
  fi
 
46
  rm -f conf$$.sh
 
47
fi
 
48
 
24
49
# Support unset when possible.
25
50
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
51
  as_unset=unset
29
54
fi
30
55
 
31
56
 
 
57
# IFS
 
58
# We need space, tab and new line, in precisely that order.  Quoting is
 
59
# there to prevent editors from complaining about space-tab.
 
60
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
61
# splitting by setting IFS to empty value.)
 
62
as_nl='
 
63
'
 
64
IFS=" ""        $as_nl"
 
65
 
 
66
# Find who we are.  Look in the path if we contain no directory separator.
 
67
case $0 in
 
68
  *[\\/]* ) as_myself=$0 ;;
 
69
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
70
for as_dir in $PATH
 
71
do
 
72
  IFS=$as_save_IFS
 
73
  test -z "$as_dir" && as_dir=.
 
74
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
75
done
 
76
IFS=$as_save_IFS
 
77
 
 
78
     ;;
 
79
esac
 
80
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
81
# in which case we are not to be found in the path.
 
82
if test "x$as_myself" = x; then
 
83
  as_myself=$0
 
84
fi
 
85
if test ! -f "$as_myself"; then
 
86
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
87
  { (exit 1); exit 1; }
 
88
fi
 
89
 
32
90
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
91
for as_var in ENV MAIL MAILPATH
 
92
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
93
done
34
94
PS1='$ '
35
95
PS2='> '
36
96
PS4='+ '
44
104
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
105
    eval $as_var=C; export $as_var
46
106
  else
47
 
    $as_unset $as_var
 
107
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48
108
  fi
49
109
done
50
110
 
51
111
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
112
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
113
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
114
  as_expr=expr
54
115
else
55
116
  as_expr=false
56
117
fi
57
118
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
119
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
120
  as_basename=basename
60
121
else
61
122
  as_basename=false
63
124
 
64
125
 
65
126
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
127
as_me=`$as_basename -- "$0" ||
67
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
129
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
 
130
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
131
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
 
  '')
 
132
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
133
            s//\1/
 
134
            q
 
135
          }
 
136
          /^X\/\(\/\/\)$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\).*/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          s/.*/./; q'`
 
145
 
 
146
# CDPATH.
 
147
$as_unset CDPATH
 
148
 
 
149
 
 
150
if test "x$CONFIG_SHELL" = x; then
 
151
  if (eval ":") 2>/dev/null; then
 
152
  as_have_required=yes
 
153
else
 
154
  as_have_required=no
 
155
fi
 
156
 
 
157
  if test $as_have_required = yes &&     (eval ":
 
158
(as_func_return () {
 
159
  (exit \$1)
 
160
}
 
161
as_func_success () {
 
162
  as_func_return 0
 
163
}
 
164
as_func_failure () {
 
165
  as_func_return 1
 
166
}
 
167
as_func_ret_success () {
 
168
  return 0
 
169
}
 
170
as_func_ret_failure () {
 
171
  return 1
 
172
}
 
173
 
 
174
exitcode=0
 
175
if as_func_success; then
 
176
  :
 
177
else
 
178
  exitcode=1
 
179
  echo as_func_success failed.
 
180
fi
 
181
 
 
182
if as_func_failure; then
 
183
  exitcode=1
 
184
  echo as_func_failure succeeded.
 
185
fi
 
186
 
 
187
if as_func_ret_success; then
 
188
  :
 
189
else
 
190
  exitcode=1
 
191
  echo as_func_ret_success failed.
 
192
fi
 
193
 
 
194
if as_func_ret_failure; then
 
195
  exitcode=1
 
196
  echo as_func_ret_failure succeeded.
 
197
fi
 
198
 
 
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
200
  :
 
201
else
 
202
  exitcode=1
 
203
  echo positional parameters were not saved.
 
204
fi
 
205
 
 
206
test \$exitcode = 0) || { (exit 1); exit 1; }
 
207
 
 
208
(
 
209
  as_lineno_1=\$LINENO
 
210
  as_lineno_2=\$LINENO
 
211
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
212
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
213
") 2> /dev/null; then
 
214
  :
 
215
else
 
216
  as_candidate_shells=
130
217
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
219
do
133
220
  IFS=$as_save_IFS
134
221
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
 
222
  case $as_dir in
137
223
         /*)
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
 
224
           for as_base in sh bash ksh sh5; do
 
225
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
226
           done;;
 
227
       esac
152
228
done
153
 
;;
154
 
  esac
 
229
IFS=$as_save_IFS
 
230
 
 
231
 
 
232
      for as_shell in $as_candidate_shells $SHELL; do
 
233
         # Try only shells that exist, to save several forks.
 
234
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
235
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
236
# Be Bourne compatible
 
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
238
  emulate sh
 
239
  NULLCMD=:
 
240
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
241
  # is contrary to our usage.  Disable this feature.
 
242
  alias -g '${1+"$@"}'='"$@"'
 
243
  setopt NO_GLOB_SUBST
 
244
else
 
245
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
246
fi
 
247
BIN_SH=xpg4; export BIN_SH # for Tru64
 
248
DUALCASE=1; export DUALCASE # for MKS sh
 
249
 
 
250
:
 
251
_ASEOF
 
252
}; then
 
253
  CONFIG_SHELL=$as_shell
 
254
               as_have_required=yes
 
255
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
256
# Be Bourne compatible
 
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
258
  emulate sh
 
259
  NULLCMD=:
 
260
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
261
  # is contrary to our usage.  Disable this feature.
 
262
  alias -g '${1+"$@"}'='"$@"'
 
263
  setopt NO_GLOB_SUBST
 
264
else
 
265
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
266
fi
 
267
BIN_SH=xpg4; export BIN_SH # for Tru64
 
268
DUALCASE=1; export DUALCASE # for MKS sh
 
269
 
 
270
:
 
271
(as_func_return () {
 
272
  (exit $1)
 
273
}
 
274
as_func_success () {
 
275
  as_func_return 0
 
276
}
 
277
as_func_failure () {
 
278
  as_func_return 1
 
279
}
 
280
as_func_ret_success () {
 
281
  return 0
 
282
}
 
283
as_func_ret_failure () {
 
284
  return 1
 
285
}
 
286
 
 
287
exitcode=0
 
288
if as_func_success; then
 
289
  :
 
290
else
 
291
  exitcode=1
 
292
  echo as_func_success failed.
 
293
fi
 
294
 
 
295
if as_func_failure; then
 
296
  exitcode=1
 
297
  echo as_func_failure succeeded.
 
298
fi
 
299
 
 
300
if as_func_ret_success; then
 
301
  :
 
302
else
 
303
  exitcode=1
 
304
  echo as_func_ret_success failed.
 
305
fi
 
306
 
 
307
if as_func_ret_failure; then
 
308
  exitcode=1
 
309
  echo as_func_ret_failure succeeded.
 
310
fi
 
311
 
 
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
313
  :
 
314
else
 
315
  exitcode=1
 
316
  echo positional parameters were not saved.
 
317
fi
 
318
 
 
319
test $exitcode = 0) || { (exit 1); exit 1; }
 
320
 
 
321
(
 
322
  as_lineno_1=$LINENO
 
323
  as_lineno_2=$LINENO
 
324
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
325
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
326
 
 
327
_ASEOF
 
328
}; then
 
329
  break
 
330
fi
 
331
 
 
332
fi
 
333
 
 
334
      done
 
335
 
 
336
      if test "x$CONFIG_SHELL" != x; then
 
337
  for as_var in BASH_ENV ENV
 
338
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
339
        done
 
340
        export CONFIG_SHELL
 
341
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
342
fi
 
343
 
 
344
 
 
345
    if test $as_have_required = no; then
 
346
  echo This script requires a shell more modern than all the
 
347
      echo shells that I found on your system.  Please install a
 
348
      echo modern shell, or manually run the script under such a
 
349
      echo shell if you do have one.
 
350
      { (exit 1); exit 1; }
 
351
fi
 
352
 
 
353
 
 
354
fi
 
355
 
 
356
fi
 
357
 
 
358
 
 
359
 
 
360
(eval "as_func_return () {
 
361
  (exit \$1)
 
362
}
 
363
as_func_success () {
 
364
  as_func_return 0
 
365
}
 
366
as_func_failure () {
 
367
  as_func_return 1
 
368
}
 
369
as_func_ret_success () {
 
370
  return 0
 
371
}
 
372
as_func_ret_failure () {
 
373
  return 1
 
374
}
 
375
 
 
376
exitcode=0
 
377
if as_func_success; then
 
378
  :
 
379
else
 
380
  exitcode=1
 
381
  echo as_func_success failed.
 
382
fi
 
383
 
 
384
if as_func_failure; then
 
385
  exitcode=1
 
386
  echo as_func_failure succeeded.
 
387
fi
 
388
 
 
389
if as_func_ret_success; then
 
390
  :
 
391
else
 
392
  exitcode=1
 
393
  echo as_func_ret_success failed.
 
394
fi
 
395
 
 
396
if as_func_ret_failure; then
 
397
  exitcode=1
 
398
  echo as_func_ret_failure succeeded.
 
399
fi
 
400
 
 
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
402
  :
 
403
else
 
404
  exitcode=1
 
405
  echo positional parameters were not saved.
 
406
fi
 
407
 
 
408
test \$exitcode = 0") || {
 
409
  echo No shell found that supports shell functions.
 
410
  echo Please tell autoconf@gnu.org about your system,
 
411
  echo including any error possibly output before this
 
412
  echo message
 
413
}
 
414
 
 
415
 
 
416
 
 
417
  as_lineno_1=$LINENO
 
418
  as_lineno_2=$LINENO
 
419
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
420
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
421
 
156
422
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
423
  # 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.
 
424
  # line-number line after each line using $LINENO; the second 'sed'
 
425
  # does the real work.  The second script uses 'N' to pair each
 
426
  # line-number line with the line containing $LINENO, and appends
 
427
  # trailing '-' during substitution so that $LINENO is not a special
 
428
  # case at line end.
162
429
  # (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 |
 
430
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
431
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
432
  sed -n '
 
433
    p
 
434
    /[$]LINENO/=
 
435
  ' <$as_myself |
165
436
    sed '
 
437
      s/[$]LINENO.*/&-/
 
438
      t lineno
 
439
      b
 
440
      :lineno
166
441
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
442
      :loop
 
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
444
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
445
      s/-\n.*//
173
446
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
 
447
  chmod +x "$as_me.lineno" ||
175
448
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
449
   { (exit 1); exit 1; }; }
177
450
 
178
451
  # Don't try to exec as it changes $[0], causing all sort of problems
179
452
  # (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
 
453
  # original and so on.  Autoconf is especially sensitive to this).
 
454
  . "./$as_me.lineno"
182
455
  # Exit status is that of the last command.
183
456
  exit
184
457
}
185
458
 
186
459
 
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= ;;
 
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
461
  as_dirname=dirname
 
462
else
 
463
  as_dirname=false
 
464
fi
 
465
 
 
466
ECHO_C= ECHO_N= ECHO_T=
 
467
case `echo -n x` in
 
468
-n*)
 
469
  case `echo 'x\c'` in
 
470
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
471
  *)   ECHO_C='\c';;
 
472
  esac;;
 
473
*)
 
474
  ECHO_N='-n';;
192
475
esac
193
476
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
478
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
479
  as_expr=expr
196
480
else
197
481
  as_expr=false
198
482
fi
199
483
 
200
484
rm -f conf$$ conf$$.exe conf$$.file
 
485
if test -d conf$$.dir; then
 
486
  rm -f conf$$.dir/conf$$.file
 
487
else
 
488
  rm -f conf$$.dir
 
489
  mkdir conf$$.dir
 
490
fi
201
491
echo >conf$$.file
202
492
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
 
493
  as_ln_s='ln -s'
 
494
  # ... but there are two gotchas:
 
495
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
496
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
497
  # In both cases, we have to default to `cp -p'.
 
498
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207
499
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
500
elif ln conf$$.file conf$$ 2>/dev/null; then
212
501
  as_ln_s=ln
213
502
else
214
503
  as_ln_s='cp -p'
215
504
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
506
rmdir conf$$.dir 2>/dev/null
217
507
 
218
508
if mkdir -p . 2>/dev/null; then
219
509
  as_mkdir_p=:
222
512
  as_mkdir_p=false
223
513
fi
224
514
 
225
 
as_executable_p="test -f"
 
515
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
516
# systems may use methods other than mode bits to determine executability.
 
517
cat >conf$$.file <<_ASEOF
 
518
#! /bin/sh
 
519
exit 0
 
520
_ASEOF
 
521
chmod +x conf$$.file
 
522
if test -x conf$$.file >/dev/null 2>&1; then
 
523
  as_executable_p="test -x"
 
524
else
 
525
  as_executable_p=:
 
526
fi
 
527
rm -f conf$$.file
226
528
 
227
529
# Sed expression to map a string onto a valid CPP name.
228
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
534
 
233
535
 
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
536
 
244
537
 
245
538
# Check that we are running under the correct shell.
278
571
 
279
572
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
573
# if CDPATH is set.
281
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
575
 
283
576
if test -z "$ECHO"; then
284
577
if test "X${echo_test_string+set}" != Xset; then
285
578
# find a string as large as possible, as long as the shell can cope with it
286
579
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
580
    # 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`" &&
 
581
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
582
       echo_test_string=`eval $cmd` &&
290
583
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
584
    then
292
585
      break
395
688
 
396
689
tagnames=${tagnames+${tagnames},}F77
397
690
 
 
691
exec 7<&0 </dev/null 6>&1
 
692
 
398
693
# Name of the host.
399
694
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
695
# so uname gets run too.
401
696
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
697
 
403
 
exec 6>&1
404
 
 
405
698
#
406
699
# Initializations.
407
700
#
408
701
ac_default_prefix=/usr/local
 
702
ac_clean_files=
409
703
ac_config_libobj_dir=.
 
704
LIBOBJS=
410
705
cross_compiling=no
411
706
subdirs=
412
707
MFLAGS=
413
708
MAKEFLAGS=
414
709
SHELL=${CONFIG_SHELL-/bin/sh}
415
710
 
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
711
# Identity of this package.
422
 
PACKAGE_NAME=
423
 
PACKAGE_TARNAME=
424
 
PACKAGE_VERSION=
425
 
PACKAGE_STRING=
426
 
PACKAGE_BUGREPORT=
 
712
PACKAGE_NAME='ortp'
 
713
PACKAGE_TARNAME='ortp'
 
714
PACKAGE_VERSION='0.12.0'
 
715
PACKAGE_STRING='ortp 0.12.0'
 
716
PACKAGE_BUGREPORT=''
427
717
 
428
 
ac_unique_file="src/rtpmod.c"
429
718
# Factoring default headers for most tests.
430
719
ac_includes_default="\
431
720
#include <stdio.h>
432
 
#if HAVE_SYS_TYPES_H
 
721
#ifdef HAVE_SYS_TYPES_H
433
722
# include <sys/types.h>
434
723
#endif
435
 
#if HAVE_SYS_STAT_H
 
724
#ifdef HAVE_SYS_STAT_H
436
725
# include <sys/stat.h>
437
726
#endif
438
 
#if STDC_HEADERS
 
727
#ifdef STDC_HEADERS
439
728
# include <stdlib.h>
440
729
# include <stddef.h>
441
730
#else
442
 
# if HAVE_STDLIB_H
 
731
# ifdef HAVE_STDLIB_H
443
732
#  include <stdlib.h>
444
733
# endif
445
734
#endif
446
 
#if HAVE_STRING_H
447
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
735
#ifdef HAVE_STRING_H
 
736
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
448
737
#  include <memory.h>
449
738
# endif
450
739
# include <string.h>
451
740
#endif
452
 
#if HAVE_STRINGS_H
 
741
#ifdef HAVE_STRINGS_H
453
742
# include <strings.h>
454
743
#endif
455
 
#if HAVE_INTTYPES_H
 
744
#ifdef HAVE_INTTYPES_H
456
745
# include <inttypes.h>
457
 
#else
458
 
# if HAVE_STDINT_H
459
 
#  include <stdint.h>
460
 
# endif
461
 
#endif
462
 
#if HAVE_UNISTD_H
 
746
#endif
 
747
#ifdef HAVE_STDINT_H
 
748
# include <stdint.h>
 
749
#endif
 
750
#ifdef HAVE_UNISTD_H
463
751
# include <unistd.h>
464
752
#endif"
465
753
 
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os IPV6_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GLIB_SUPPORT_TRUE GLIB_SUPPORT_FALSE PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_LDFLAGS HPUXKERNEL_TRUE HPUXKERNEL_FALSE HTML_DIR GTKDOC ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE LIBOBJS LTLIBOBJS'
 
754
ac_subst_vars='SHELL
 
755
PATH_SEPARATOR
 
756
PACKAGE_NAME
 
757
PACKAGE_TARNAME
 
758
PACKAGE_VERSION
 
759
PACKAGE_STRING
 
760
PACKAGE_BUGREPORT
 
761
exec_prefix
 
762
prefix
 
763
program_transform_name
 
764
bindir
 
765
sbindir
 
766
libexecdir
 
767
datarootdir
 
768
datadir
 
769
sysconfdir
 
770
sharedstatedir
 
771
localstatedir
 
772
includedir
 
773
oldincludedir
 
774
docdir
 
775
infodir
 
776
htmldir
 
777
dvidir
 
778
pdfdir
 
779
psdir
 
780
libdir
 
781
localedir
 
782
mandir
 
783
DEFS
 
784
ECHO_C
 
785
ECHO_N
 
786
ECHO_T
 
787
LIBS
 
788
build_alias
 
789
host_alias
 
790
target_alias
 
791
build
 
792
build_cpu
 
793
build_vendor
 
794
build_os
 
795
host
 
796
host_cpu
 
797
host_vendor
 
798
host_os
 
799
target
 
800
target_cpu
 
801
target_vendor
 
802
target_os
 
803
LIBORTP_SO_VERSION
 
804
ORTP_VERSION
 
805
ORTP_PKGCONFIG_VERSION
 
806
INSTALL_PROGRAM
 
807
INSTALL_SCRIPT
 
808
INSTALL_DATA
 
809
CYGPATH_W
 
810
PACKAGE
 
811
VERSION
 
812
ACLOCAL
 
813
AUTOCONF
 
814
AUTOMAKE
 
815
AUTOHEADER
 
816
MAKEINFO
 
817
install_sh
 
818
STRIP
 
819
INSTALL_STRIP_PROGRAM
 
820
mkdir_p
 
821
AWK
 
822
SET_MAKE
 
823
am__leading_dot
 
824
AMTAR
 
825
am__tar
 
826
am__untar
 
827
CC
 
828
CFLAGS
 
829
LDFLAGS
 
830
CPPFLAGS
 
831
ac_ct_CC
 
832
EXEEXT
 
833
OBJEXT
 
834
DEPDIR
 
835
am__include
 
836
am__quote
 
837
AMDEP_TRUE
 
838
AMDEP_FALSE
 
839
AMDEPBACKSLASH
 
840
CCDEPMODE
 
841
am__fastdepCC_TRUE
 
842
am__fastdepCC_FALSE
 
843
GREP
 
844
EGREP
 
845
LN_S
 
846
ECHO
 
847
AR
 
848
RANLIB
 
849
CPP
 
850
CXX
 
851
CXXFLAGS
 
852
ac_ct_CXX
 
853
CXXDEPMODE
 
854
am__fastdepCXX_TRUE
 
855
am__fastdepCXX_FALSE
 
856
CXXCPP
 
857
F77
 
858
FFLAGS
 
859
ac_ct_F77
 
860
LIBTOOL
 
861
PTHREAD_CFLAGS
 
862
PTHREAD_LIBS
 
863
PTHREAD_LDFLAGS
 
864
HAVE_GTK_DOC_TRUE
 
865
HAVE_GTK_DOC_FALSE
 
866
HTML_DIR
 
867
PKG_CONFIG
 
868
ENABLE_GTK_DOC_TRUE
 
869
ENABLE_GTK_DOC_FALSE
 
870
GTK_DOC_USE_LIBTOOL_TRUE
 
871
GTK_DOC_USE_LIBTOOL_FALSE
 
872
EPM
 
873
MKEPMLIST
 
874
EPMINSTALL
 
875
WITH_EPM_TRUE
 
876
WITH_EPM_FALSE
 
877
EPM_PKG_EXT
 
878
SYS_USER
 
879
SYS_GROUP
 
880
ARCH
 
881
SUMMARY
 
882
PACKAGER
 
883
LICENSE
 
884
VENDOR
 
885
RELEASE
 
886
ORTPDEPS_CFLAGS
 
887
ORTPDEPS_LIBS
 
888
ORTPDEPS_LDFLAGS
 
889
LIBOBJS
 
890
LTLIBOBJS'
467
891
ac_subst_files=''
 
892
      ac_precious_vars='build_alias
 
893
host_alias
 
894
target_alias
 
895
CC
 
896
CFLAGS
 
897
LDFLAGS
 
898
CPPFLAGS
 
899
CPP
 
900
CXX
 
901
CXXFLAGS
 
902
CCC
 
903
CXXCPP
 
904
F77
 
905
FFLAGS'
 
906
 
468
907
 
469
908
# Initialize some variables set by options.
470
909
ac_init_help=
491
930
# and all the variables that are supposed to be based on exec_prefix
492
931
# by default will actually change.
493
932
# Use braces instead of parens because sh, perl, etc. also accept them.
 
933
# (The list follows the same order as the GNU Coding Standards.)
494
934
bindir='${exec_prefix}/bin'
495
935
sbindir='${exec_prefix}/sbin'
496
936
libexecdir='${exec_prefix}/libexec'
497
 
datadir='${prefix}/share'
 
937
datarootdir='${prefix}/share'
 
938
datadir='${datarootdir}'
498
939
sysconfdir='${prefix}/etc'
499
940
sharedstatedir='${prefix}/com'
500
941
localstatedir='${prefix}/var'
501
 
libdir='${exec_prefix}/lib'
502
942
includedir='${prefix}/include'
503
943
oldincludedir='/usr/include'
504
 
infodir='${prefix}/info'
505
 
mandir='${prefix}/man'
 
944
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
945
infodir='${datarootdir}/info'
 
946
htmldir='${docdir}'
 
947
dvidir='${docdir}'
 
948
pdfdir='${docdir}'
 
949
psdir='${docdir}'
 
950
libdir='${exec_prefix}/lib'
 
951
localedir='${datarootdir}/locale'
 
952
mandir='${datarootdir}/man'
506
953
 
507
954
ac_prev=
 
955
ac_dashdash=
508
956
for ac_option
509
957
do
510
958
  # If the previous option needs an argument, assign it.
511
959
  if test -n "$ac_prev"; then
512
 
    eval "$ac_prev=\$ac_option"
 
960
    eval $ac_prev=\$ac_option
513
961
    ac_prev=
514
962
    continue
515
963
  fi
516
964
 
517
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
965
  case $ac_option in
 
966
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
967
  *)    ac_optarg=yes ;;
 
968
  esac
518
969
 
519
970
  # Accept the important Cygnus configure options, so we can diagnose typos.
520
971
 
521
 
  case $ac_option in
 
972
  case $ac_dashdash$ac_option in
 
973
  --)
 
974
    ac_dashdash=yes ;;
522
975
 
523
976
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524
977
    ac_prev=bindir ;;
540
993
  --config-cache | -C)
541
994
    cache_file=config.cache ;;
542
995
 
543
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
996
  -datadir | --datadir | --datadi | --datad)
544
997
    ac_prev=datadir ;;
545
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
 
  | --da=*)
 
998
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
547
999
    datadir=$ac_optarg ;;
548
1000
 
 
1001
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1002
  | --dataroo | --dataro | --datar)
 
1003
    ac_prev=datarootdir ;;
 
1004
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1005
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1006
    datarootdir=$ac_optarg ;;
 
1007
 
549
1008
  -disable-* | --disable-*)
550
1009
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
1010
    # Reject names that are not valid shell variable names.
553
1012
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
1013
   { (exit 1); exit 1; }; }
555
1014
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
 
    eval "enable_$ac_feature=no" ;;
 
1015
    eval enable_$ac_feature=no ;;
 
1016
 
 
1017
  -docdir | --docdir | --docdi | --doc | --do)
 
1018
    ac_prev=docdir ;;
 
1019
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1020
    docdir=$ac_optarg ;;
 
1021
 
 
1022
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1023
    ac_prev=dvidir ;;
 
1024
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1025
    dvidir=$ac_optarg ;;
557
1026
 
558
1027
  -enable-* | --enable-*)
559
1028
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
1031
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
1032
   { (exit 1); exit 1; }; }
564
1033
    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'" ;;
 
1034
    eval enable_$ac_feature=\$ac_optarg ;;
570
1035
 
571
1036
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
1037
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593
1058
  -host=* | --host=* | --hos=* | --ho=*)
594
1059
    host_alias=$ac_optarg ;;
595
1060
 
 
1061
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1062
    ac_prev=htmldir ;;
 
1063
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1064
  | --ht=*)
 
1065
    htmldir=$ac_optarg ;;
 
1066
 
596
1067
  -includedir | --includedir | --includedi | --included | --include \
597
1068
  | --includ | --inclu | --incl | --inc)
598
1069
    ac_prev=includedir ;;
617
1088
  | --libexe=* | --libex=* | --libe=*)
618
1089
    libexecdir=$ac_optarg ;;
619
1090
 
 
1091
  -localedir | --localedir | --localedi | --localed | --locale)
 
1092
    ac_prev=localedir ;;
 
1093
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1094
    localedir=$ac_optarg ;;
 
1095
 
620
1096
  -localstatedir | --localstatedir | --localstatedi | --localstated \
621
 
  | --localstate | --localstat | --localsta | --localst \
622
 
  | --locals | --local | --loca | --loc | --lo)
 
1097
  | --localstate | --localstat | --localsta | --localst | --locals)
623
1098
    ac_prev=localstatedir ;;
624
1099
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1100
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
627
1101
    localstatedir=$ac_optarg ;;
628
1102
 
629
1103
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
688
1162
  | --progr-tra=* | --program-tr=* | --program-t=*)
689
1163
    program_transform_name=$ac_optarg ;;
690
1164
 
 
1165
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1166
    ac_prev=pdfdir ;;
 
1167
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1168
    pdfdir=$ac_optarg ;;
 
1169
 
 
1170
  -psdir | --psdir | --psdi | --psd | --ps)
 
1171
    ac_prev=psdir ;;
 
1172
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1173
    psdir=$ac_optarg ;;
 
1174
 
691
1175
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
1176
  | -silent | --silent | --silen | --sile | --sil)
693
1177
    silent=yes ;;
744
1228
      { echo "$as_me: error: invalid package name: $ac_package" >&2
745
1229
   { (exit 1); exit 1; }; }
746
1230
    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'" ;;
 
1231
    eval with_$ac_package=\$ac_optarg ;;
752
1232
 
753
1233
  -without-* | --without-*)
754
1234
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
1237
      { echo "$as_me: error: invalid package name: $ac_package" >&2
758
1238
   { (exit 1); exit 1; }; }
759
1239
    ac_package=`echo $ac_package | sed 's/-/_/g'`
760
 
    eval "with_$ac_package=no" ;;
 
1240
    eval with_$ac_package=no ;;
761
1241
 
762
1242
  --x)
763
1243
    # Obsolete; use --with-x.
788
1268
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
1269
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
1270
   { (exit 1); exit 1; }; }
791
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
 
    eval "$ac_envvar='$ac_optarg'"
 
1271
    eval $ac_envvar=\$ac_optarg
793
1272
    export $ac_envvar ;;
794
1273
 
795
1274
  *)
809
1288
   { (exit 1); exit 1; }; }
810
1289
fi
811
1290
 
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
 
1291
# Be sure to have absolute directory names.
 
1292
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1293
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1294
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1295
                libdir localedir mandir
 
1296
do
 
1297
  eval ac_val=\$$ac_var
 
1298
  case $ac_val in
 
1299
    [\\/$]* | ?:[\\/]* )  continue;;
 
1300
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1301
  esac
 
1302
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1303
   { (exit 1); exit 1; }; }
833
1304
done
834
1305
 
835
1306
# There might be people who depend on the old broken behavior: `$host'
856
1327
test "$silent" = yes && exec 6>/dev/null
857
1328
 
858
1329
 
 
1330
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1331
ac_ls_di=`ls -di .` &&
 
1332
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1333
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1334
   { (exit 1); exit 1; }; }
 
1335
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1336
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1337
   { (exit 1); exit 1; }; }
 
1338
 
 
1339
 
859
1340
# Find the source files, if location was not specified.
860
1341
if test -z "$srcdir"; then
861
1342
  ac_srcdir_defaulted=yes
862
 
  # Try the directory containing this script, then its parent.
863
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1343
  # Try the directory containing this script, then the parent directory.
 
1344
  ac_confdir=`$as_dirname -- "$0" ||
864
1345
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
1346
         X"$0" : 'X\(//\)[^/]' \| \
866
1347
         X"$0" : 'X\(//\)$' \| \
867
 
         X"$0" : 'X\(/\)' \| \
868
 
         .     : '\(.\)' 2>/dev/null ||
 
1348
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
869
1349
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'`
 
1350
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1351
            s//\1/
 
1352
            q
 
1353
          }
 
1354
          /^X\(\/\/\)[^/].*/{
 
1355
            s//\1/
 
1356
            q
 
1357
          }
 
1358
          /^X\(\/\/\)$/{
 
1359
            s//\1/
 
1360
            q
 
1361
          }
 
1362
          /^X\(\/\).*/{
 
1363
            s//\1/
 
1364
            q
 
1365
          }
 
1366
          s/.*/./; q'`
875
1367
  srcdir=$ac_confdir
876
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1368
  if test ! -r "$srcdir/$ac_unique_file"; then
877
1369
    srcdir=..
878
1370
  fi
879
1371
else
880
1372
  ac_srcdir_defaulted=no
881
1373
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
 
1374
if test ! -r "$srcdir/$ac_unique_file"; then
 
1375
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1376
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1377
   { (exit 1); exit 1; }; }
 
1378
fi
 
1379
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1380
ac_abs_confdir=`(
 
1381
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
        pwd)`
 
1384
# When building in place, set srcdir=.
 
1385
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1386
  srcdir=.
 
1387
fi
 
1388
# Remove unnecessary trailing slashes from srcdir.
 
1389
# Double slashes in file names in object file debugging info
 
1390
# mess up M-x gdb in Emacs.
 
1391
case $srcdir in
 
1392
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1393
esac
 
1394
for ac_var in $ac_precious_vars; do
 
1395
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1396
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1397
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1398
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1399
done
947
1400
 
948
1401
#
949
1402
# Report the --help message.
952
1405
  # Omit some internal or obsolete options to make the list less imposing.
953
1406
  # This message is too long to be a string in the A/UX 3.1 sh.
954
1407
  cat <<_ACEOF
955
 
\`configure' configures this package to adapt to many kinds of systems.
 
1408
\`configure' configures ortp 0.12.0 to adapt to many kinds of systems.
956
1409
 
957
1410
Usage: $0 [OPTION]... [VAR=VALUE]...
958
1411
 
972
1425
  -n, --no-create         do not create output files
973
1426
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
1427
 
975
 
_ACEOF
976
 
 
977
 
  cat <<_ACEOF
978
1428
Installation directories:
979
1429
  --prefix=PREFIX         install architecture-independent files in PREFIX
980
1430
                          [$ac_default_prefix]
992
1442
  --bindir=DIR           user executables [EPREFIX/bin]
993
1443
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994
1444
  --libexecdir=DIR       program executables [EPREFIX/libexec]
995
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996
1445
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997
1446
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998
1447
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999
1448
  --libdir=DIR           object code libraries [EPREFIX/lib]
1000
1449
  --includedir=DIR       C header files [PREFIX/include]
1001
1450
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002
 
  --infodir=DIR          info documentation [PREFIX/info]
1003
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1451
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1452
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1453
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1454
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1455
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1456
  --docdir=DIR           documentation root [DATAROOTDIR/doc/ortp]
 
1457
  --htmldir=DIR          html documentation [DOCDIR]
 
1458
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1459
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1460
  --psdir=DIR            ps documentation [DOCDIR]
1004
1461
_ACEOF
1005
1462
 
1006
1463
  cat <<\_ACEOF
1013
1470
System types:
1014
1471
  --build=BUILD     configure for building on BUILD [guessed]
1015
1472
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1473
  --target=TARGET   configure for building compilers for TARGET [HOST]
1016
1474
_ACEOF
1017
1475
fi
1018
1476
 
1019
1477
if test -n "$ac_init_help"; then
1020
 
 
 
1478
  case $ac_init_help in
 
1479
     short | recursive ) echo "Configuration of ortp 0.12.0:";;
 
1480
   esac
1021
1481
  cat <<\_ACEOF
1022
1482
 
1023
1483
Optional Features:
1024
1484
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025
1485
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1486
  --enable-strict       Enable error on compilation warning default=yes
1026
1487
  --enable-ipv6    Turn on ipv6 support
1027
1488
  --enable-mode64bit=yes/no   produce a 64-bit library. default=no
1028
1489
  --enable-debug=yes/no   enables the display of traces showing the execution of the library. default=yes
1029
 
  --enable-rtcp=yes/no   enables rtcp protocol. default=no
1030
 
  --disable-dependency-tracking Speeds up one-time builds
1031
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1032
 
  --enable-shared[=PKGS]
1033
 
                          build shared libraries [default=yes]
1034
 
  --enable-static[=PKGS]
1035
 
                          build static libraries [default=yes]
 
1490
  --disable-dependency-tracking  speeds up one-time build
 
1491
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1492
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1493
  --enable-static[=PKGS]  build static libraries [default=yes]
1036
1494
  --enable-fast-install[=PKGS]
1037
1495
                          optimize for fast installation [default=yes]
1038
1496
  --disable-libtool-lock  avoid locking (might break parallel builds)
1039
 
  --disable-glib         do not compile with glib.
1040
 
  --disable-glibtest      do not try to compile and run a test GLIB program
1041
1497
  --enable-memcheck=yes/no   enables memory leak detection (HPUX only).
1042
 
  --enable-hpuxkernel   compile the library as kernel module for HP-UX
1043
 
  --enable-gtk-doc  Use gtk-doc to build documentation default=auto
 
1498
  --enable-gtk-doc        use gtk-doc to build documentation default=no
1044
1499
 
1045
1500
Optional Packages:
1046
1501
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048
1503
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049
1504
  --with-pic              try to use only PIC/non-PIC objects [default=use
1050
1505
                          both]
1051
 
  --with-tags[=TAGS]
1052
 
                          include additional configurations [automatic]
1053
 
  --with-html-dir=PATH path to installed docs
 
1506
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1507
  --with-html-dir=PATH    path to installed docs
1054
1508
 
1055
1509
Some influential environment variables:
1056
1510
  CC          C compiler command
1057
1511
  CFLAGS      C compiler flags
1058
1512
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059
1513
              nonstandard directory <lib dir>
1060
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061
 
              headers in a nonstandard directory <include dir>
 
1514
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1515
              you have headers in a nonstandard directory <include dir>
1062
1516
  CPP         C preprocessor
1063
1517
  CXX         C++ compiler command
1064
1518
  CXXFLAGS    C++ compiler flags
1070
1524
it to find libraries and programs with nonstandard names/locations.
1071
1525
 
1072
1526
_ACEOF
 
1527
ac_status=$?
1073
1528
fi
1074
1529
 
1075
1530
if test "$ac_init_help" = "recursive"; then
1076
1531
  # If there are subdirs, report their specific --help.
1077
 
  ac_popdir=`pwd`
1078
1532
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079
 
    test -d $ac_dir || continue
 
1533
    test -d "$ac_dir" || continue
1080
1534
    ac_builddir=.
1081
1535
 
1082
 
if test "$ac_dir" != .; then
 
1536
case "$ac_dir" in
 
1537
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1538
*)
1083
1539
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084
 
  # A "../" for each directory in $ac_dir_suffix.
1085
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086
 
else
1087
 
  ac_dir_suffix= ac_top_builddir=
1088
 
fi
 
1540
  # A ".." for each directory in $ac_dir_suffix.
 
1541
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1542
  case $ac_top_builddir_sub in
 
1543
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1544
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1545
  esac ;;
 
1546
esac
 
1547
ac_abs_top_builddir=$ac_pwd
 
1548
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1549
# for backward compatibility:
 
1550
ac_top_builddir=$ac_top_build_prefix
1089
1551
 
1090
1552
case $srcdir in
1091
 
  .)  # No --srcdir option.  We are building in place.
 
1553
  .)  # We are building in place.
1092
1554
    ac_srcdir=.
1093
 
    if test -z "$ac_top_builddir"; then
1094
 
       ac_top_srcdir=.
1095
 
    else
1096
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097
 
    fi ;;
1098
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1555
    ac_top_srcdir=$ac_top_builddir_sub
 
1556
    ac_abs_top_srcdir=$ac_pwd ;;
 
1557
  [\\/]* | ?:[\\/]* )  # Absolute name.
1099
1558
    ac_srcdir=$srcdir$ac_dir_suffix;
1100
 
    ac_top_srcdir=$srcdir ;;
1101
 
  *) # Relative path.
1102
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104
 
esac
1105
 
 
1106
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1107
 
# the directories may not exist.
1108
 
case `pwd` in
1109
 
.) ac_abs_builddir="$ac_dir";;
1110
 
*)
1111
 
  case "$ac_dir" in
1112
 
  .) ac_abs_builddir=`pwd`;;
1113
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115
 
  esac;;
1116
 
esac
1117
 
case $ac_abs_builddir in
1118
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1119
 
*)
1120
 
  case ${ac_top_builddir}. in
1121
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1122
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124
 
  esac;;
1125
 
esac
1126
 
case $ac_abs_builddir in
1127
 
.) ac_abs_srcdir=$ac_srcdir;;
1128
 
*)
1129
 
  case $ac_srcdir in
1130
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1131
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133
 
  esac;;
1134
 
esac
1135
 
case $ac_abs_builddir in
1136
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1137
 
*)
1138
 
  case $ac_top_srcdir in
1139
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142
 
  esac;;
1143
 
esac
1144
 
 
1145
 
    cd $ac_dir
1146
 
    # Check for guested configure; otherwise get Cygnus style configure.
1147
 
    if test -f $ac_srcdir/configure.gnu; then
1148
 
      echo
1149
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1150
 
    elif test -f $ac_srcdir/configure; then
1151
 
      echo
1152
 
      $SHELL $ac_srcdir/configure  --help=recursive
1153
 
    elif test -f $ac_srcdir/configure.ac ||
1154
 
           test -f $ac_srcdir/configure.in; then
1155
 
      echo
1156
 
      $ac_configure --help
 
1559
    ac_top_srcdir=$srcdir
 
1560
    ac_abs_top_srcdir=$srcdir ;;
 
1561
  *) # Relative name.
 
1562
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1563
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1564
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1565
esac
 
1566
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1567
 
 
1568
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1569
    # Check for guested configure.
 
1570
    if test -f "$ac_srcdir/configure.gnu"; then
 
1571
      echo &&
 
1572
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1573
    elif test -f "$ac_srcdir/configure"; then
 
1574
      echo &&
 
1575
      $SHELL "$ac_srcdir/configure" --help=recursive
1157
1576
    else
1158
1577
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159
 
    fi
1160
 
    cd "$ac_popdir"
 
1578
    fi || ac_status=$?
 
1579
    cd "$ac_pwd" || { ac_status=$?; break; }
1161
1580
  done
1162
1581
fi
1163
1582
 
1164
 
test -n "$ac_init_help" && exit 0
 
1583
test -n "$ac_init_help" && exit $ac_status
1165
1584
if $ac_init_version; then
1166
1585
  cat <<\_ACEOF
 
1586
ortp configure 0.12.0
 
1587
generated by GNU Autoconf 2.60a
1167
1588
 
1168
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1589
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1590
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1169
1591
This configure script is free software; the Free Software Foundation
1170
1592
gives unlimited permission to copy, distribute and modify it.
1171
1593
_ACEOF
1172
 
  exit 0
 
1594
  exit
1173
1595
fi
1174
 
exec 5>config.log
1175
 
cat >&5 <<_ACEOF
 
1596
cat >config.log <<_ACEOF
1176
1597
This file contains any messages produced by compilers while
1177
1598
running configure, to aid debugging if configure makes a mistake.
1178
1599
 
1179
 
It was created by $as_me, which was
1180
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1600
It was created by ortp $as_me 0.12.0, which was
 
1601
generated by GNU Autoconf 2.60a.  Invocation command line was
1181
1602
 
1182
1603
  $ $0 $@
1183
1604
 
1184
1605
_ACEOF
 
1606
exec 5>>config.log
1185
1607
{
1186
1608
cat <<_ASUNAME
1187
1609
## --------- ##
1200
1622
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201
1623
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202
1624
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1625
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1204
1626
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205
1627
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206
1628
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1214
1636
  test -z "$as_dir" && as_dir=.
1215
1637
  echo "PATH: $as_dir"
1216
1638
done
 
1639
IFS=$as_save_IFS
1217
1640
 
1218
1641
} >&5
1219
1642
 
1235
1658
ac_configure_args=
1236
1659
ac_configure_args0=
1237
1660
ac_configure_args1=
1238
 
ac_sep=
1239
1661
ac_must_keep_next=false
1240
1662
for ac_pass in 1 2
1241
1663
do
1246
1668
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247
1669
    | -silent | --silent | --silen | --sile | --sil)
1248
1670
      continue ;;
1249
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1671
    *\'*)
1250
1672
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251
1673
    esac
1252
1674
    case $ac_pass in
1268
1690
          -* ) ac_must_keep_next=true ;;
1269
1691
        esac
1270
1692
      fi
1271
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272
 
      # Get rid of the leading space.
1273
 
      ac_sep=" "
 
1693
      ac_configure_args="$ac_configure_args '$ac_arg'"
1274
1694
      ;;
1275
1695
    esac
1276
1696
  done
1281
1701
# When interrupted or exit'd, cleanup temporary files, and complete
1282
1702
# config.log.  We remove comments because anyway the quotes in there
1283
1703
# would cause problems or look ugly.
1284
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1285
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1704
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1705
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1286
1706
trap 'exit_status=$?
1287
1707
  # Save into config.log some information that might help in debugging.
1288
1708
  {
1295
1715
_ASBOX
1296
1716
    echo
1297
1717
    # The following way of writing the cache mishandles newlines in values,
1298
 
{
 
1718
(
 
1719
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1720
    eval ac_val=\$$ac_var
 
1721
    case $ac_val in #(
 
1722
    *${as_nl}*)
 
1723
      case $ac_var in #(
 
1724
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1725
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1726
      esac
 
1727
      case $ac_var in #(
 
1728
      _ | IFS | as_nl) ;; #(
 
1729
      *) $as_unset $ac_var ;;
 
1730
      esac ;;
 
1731
    esac
 
1732
  done
1299
1733
  (set) 2>&1 |
1300
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301
 
    *ac_space=\ *)
 
1734
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1735
    *${as_nl}ac_space=\ *)
1302
1736
      sed -n \
1303
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305
 
      ;;
 
1737
        "s/'\''/'\''\\\\'\'''\''/g;
 
1738
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1739
      ;; #(
1306
1740
    *)
1307
 
      sed -n \
1308
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1741
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1309
1742
      ;;
1310
 
    esac;
1311
 
}
 
1743
    esac |
 
1744
    sort
 
1745
)
1312
1746
    echo
1313
1747
 
1314
1748
    cat <<\_ASBOX
1319
1753
    echo
1320
1754
    for ac_var in $ac_subst_vars
1321
1755
    do
1322
 
      eval ac_val=$`echo $ac_var`
1323
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1756
      eval ac_val=\$$ac_var
 
1757
      case $ac_val in
 
1758
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1759
      esac
 
1760
      echo "$ac_var='\''$ac_val'\''"
1324
1761
    done | sort
1325
1762
    echo
1326
1763
 
1327
1764
    if test -n "$ac_subst_files"; then
1328
1765
      cat <<\_ASBOX
1329
 
## ------------- ##
1330
 
## Output files. ##
1331
 
## ------------- ##
 
1766
## ------------------- ##
 
1767
## File substitutions. ##
 
1768
## ------------------- ##
1332
1769
_ASBOX
1333
1770
      echo
1334
1771
      for ac_var in $ac_subst_files
1335
1772
      do
1336
 
        eval ac_val=$`echo $ac_var`
1337
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1773
        eval ac_val=\$$ac_var
 
1774
        case $ac_val in
 
1775
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1776
        esac
 
1777
        echo "$ac_var='\''$ac_val'\''"
1338
1778
      done | sort
1339
1779
      echo
1340
1780
    fi
1346
1786
## ----------- ##
1347
1787
_ASBOX
1348
1788
      echo
1349
 
      sed "/^$/d" confdefs.h | sort
 
1789
      cat confdefs.h
1350
1790
      echo
1351
1791
    fi
1352
1792
    test "$ac_signal" != 0 &&
1353
1793
      echo "$as_me: caught signal $ac_signal"
1354
1794
    echo "$as_me: exit $exit_status"
1355
1795
  } >&5
1356
 
  rm -f core *.core &&
1357
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1796
  rm -f core *.core core.conftest.* &&
 
1797
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1358
1798
    exit $exit_status
1359
 
     ' 0
 
1799
' 0
1360
1800
for ac_signal in 1 2 13 15; do
1361
1801
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362
1802
done
1363
1803
ac_signal=0
1364
1804
 
1365
1805
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366
 
rm -rf conftest* confdefs.h
1367
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368
 
echo >confdefs.h
 
1806
rm -f -r conftest* confdefs.h
1369
1807
 
1370
1808
# Predefined preprocessor variables.
1371
1809
 
1396
1834
 
1397
1835
# Let the site file select an alternate cache file if it wants to.
1398
1836
# Prefer explicitly selected file to automatically selected ones.
1399
 
if test -z "$CONFIG_SITE"; then
1400
 
  if test "x$prefix" != xNONE; then
1401
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402
 
  else
1403
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404
 
  fi
 
1837
if test -n "$CONFIG_SITE"; then
 
1838
  set x "$CONFIG_SITE"
 
1839
elif test "x$prefix" != xNONE; then
 
1840
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1841
else
 
1842
  set x "$ac_default_prefix/share/config.site" \
 
1843
        "$ac_default_prefix/etc/config.site"
1405
1844
fi
1406
 
for ac_site_file in $CONFIG_SITE; do
 
1845
shift
 
1846
for ac_site_file
 
1847
do
1407
1848
  if test -r "$ac_site_file"; then
1408
1849
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409
1850
echo "$as_me: loading site script $ac_site_file" >&6;}
1419
1860
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420
1861
echo "$as_me: loading cache $cache_file" >&6;}
1421
1862
    case $cache_file in
1422
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1423
 
      *)                      . ./$cache_file;;
 
1863
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1864
      *)                      . "./$cache_file";;
1424
1865
    esac
1425
1866
  fi
1426
1867
else
1432
1873
# Check that the precious variables saved in the cache have kept the same
1433
1874
# value.
1434
1875
ac_cache_corrupted=false
1435
 
for ac_var in `(set) 2>&1 |
1436
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1876
for ac_var in $ac_precious_vars; do
1437
1877
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438
1878
  eval ac_new_set=\$ac_env_${ac_var}_set
1439
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1879
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1880
  eval ac_new_val=\$ac_env_${ac_var}_value
1441
1881
  case $ac_old_set,$ac_new_set in
1442
1882
    set,)
1443
1883
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462
1902
  # Pass precious variables to config.status.
1463
1903
  if test "$ac_new_set" = set; then
1464
1904
    case $ac_new_val in
1465
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1905
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467
1906
    *) ac_arg=$ac_var=$ac_new_val ;;
1468
1907
    esac
1469
1908
    case " $ac_configure_args " in
1480
1919
   { (exit 1); exit 1; }; }
1481
1920
fi
1482
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
1483
1946
ac_ext=c
1484
1947
ac_cpp='$CPP $CPPFLAGS'
1485
1948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487
1950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1951
 
1489
1952
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
VERSION=0.6.3pre5
1509
 
PACKAGE=ortp
1510
 
 
1511
 
am__api_version="1.6"
1512
1953
ac_aux_dir=
1513
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1514
 
  if test -f $ac_dir/install-sh; then
 
1954
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1955
  if test -f "$ac_dir/install-sh"; then
1515
1956
    ac_aux_dir=$ac_dir
1516
1957
    ac_install_sh="$ac_aux_dir/install-sh -c"
1517
1958
    break
1518
 
  elif test -f $ac_dir/install.sh; then
 
1959
  elif test -f "$ac_dir/install.sh"; then
1519
1960
    ac_aux_dir=$ac_dir
1520
1961
    ac_install_sh="$ac_aux_dir/install.sh -c"
1521
1962
    break
1522
 
  elif test -f $ac_dir/shtool; then
 
1963
  elif test -f "$ac_dir/shtool"; then
1523
1964
    ac_aux_dir=$ac_dir
1524
1965
    ac_install_sh="$ac_aux_dir/shtool install -c"
1525
1966
    break
1526
1967
  fi
1527
1968
done
1528
1969
if test -z "$ac_aux_dir"; then
1529
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1530
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1531
 
   { (exit 1); exit 1; }; }
1532
 
fi
1533
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1534
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1535
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536
 
 
 
1970
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1971
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1972
   { (exit 1); exit 1; }; }
 
1973
fi
 
1974
 
 
1975
# These three variables are undocumented and unsupported,
 
1976
# and are intended to be withdrawn in a future Autoconf release.
 
1977
# They can cause serious problems if a builder's source tree is in a directory
 
1978
# whose full name contains unusual characters.
 
1979
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1980
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1981
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1982
 
 
1983
 
 
1984
# Make sure we can run config.sub.
 
1985
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1986
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1987
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1988
   { (exit 1); exit 1; }; }
 
1989
 
 
1990
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1991
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1992
if test "${ac_cv_build+set}" = set; then
 
1993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1994
else
 
1995
  ac_build_alias=$build_alias
 
1996
test "x$ac_build_alias" = x &&
 
1997
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
1998
test "x$ac_build_alias" = x &&
 
1999
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2000
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2001
   { (exit 1); exit 1; }; }
 
2002
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2003
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2004
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2005
   { (exit 1); exit 1; }; }
 
2006
 
 
2007
fi
 
2008
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2009
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2010
case $ac_cv_build in
 
2011
*-*-*) ;;
 
2012
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2013
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2014
   { (exit 1); exit 1; }; };;
 
2015
esac
 
2016
build=$ac_cv_build
 
2017
ac_save_IFS=$IFS; IFS='-'
 
2018
set x $ac_cv_build
 
2019
shift
 
2020
build_cpu=$1
 
2021
build_vendor=$2
 
2022
shift; shift
 
2023
# Remember, the first character of IFS is used to create $*,
 
2024
# except with old shells:
 
2025
build_os=$*
 
2026
IFS=$ac_save_IFS
 
2027
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2028
 
 
2029
 
 
2030
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2031
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2032
if test "${ac_cv_host+set}" = set; then
 
2033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2034
else
 
2035
  if test "x$host_alias" = x; then
 
2036
  ac_cv_host=$ac_cv_build
 
2037
else
 
2038
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2039
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2040
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2041
   { (exit 1); exit 1; }; }
 
2042
fi
 
2043
 
 
2044
fi
 
2045
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2046
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2047
case $ac_cv_host in
 
2048
*-*-*) ;;
 
2049
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2050
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2051
   { (exit 1); exit 1; }; };;
 
2052
esac
 
2053
host=$ac_cv_host
 
2054
ac_save_IFS=$IFS; IFS='-'
 
2055
set x $ac_cv_host
 
2056
shift
 
2057
host_cpu=$1
 
2058
host_vendor=$2
 
2059
shift; shift
 
2060
# Remember, the first character of IFS is used to create $*,
 
2061
# except with old shells:
 
2062
host_os=$*
 
2063
IFS=$ac_save_IFS
 
2064
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2065
 
 
2066
 
 
2067
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2068
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2069
if test "${ac_cv_target+set}" = set; then
 
2070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2071
else
 
2072
  if test "x$target_alias" = x; then
 
2073
  ac_cv_target=$ac_cv_host
 
2074
else
 
2075
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2076
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2077
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2078
   { (exit 1); exit 1; }; }
 
2079
fi
 
2080
 
 
2081
fi
 
2082
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2083
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2084
case $ac_cv_target in
 
2085
*-*-*) ;;
 
2086
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2087
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2088
   { (exit 1); exit 1; }; };;
 
2089
esac
 
2090
target=$ac_cv_target
 
2091
ac_save_IFS=$IFS; IFS='-'
 
2092
set x $ac_cv_target
 
2093
shift
 
2094
target_cpu=$1
 
2095
target_vendor=$2
 
2096
shift; shift
 
2097
# Remember, the first character of IFS is used to create $*,
 
2098
# except with old shells:
 
2099
target_os=$*
 
2100
IFS=$ac_save_IFS
 
2101
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2102
 
 
2103
 
 
2104
# The aliases save the names the user supplied, while $host etc.
 
2105
# will get canonicalized.
 
2106
test -n "$target_alias" &&
 
2107
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2108
    NONENONEs,x,x, &&
 
2109
  program_prefix=${target_alias}-
 
2110
 
 
2111
ORTP_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
 
2112
ORTP_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
 
2113
ORTP_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
 
2114
ORTP_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4)
 
2115
 
 
2116
LIBORTP_SO_CURRENT=5 LIBORTP_SO_REVISION=0 LIBORTP_SO_AGE=0
 
2117
LIBORTP_SO_VERSION=$LIBORTP_SO_CURRENT:$LIBORTP_SO_REVISION:$LIBORTP_SO_AGE
 
2118
ORTP_VERSION=${ORTP_MAJOR_VERSION}.${ORTP_MINOR_VERSION}.${ORTP_MICRO_VERSION}
 
2119
 
 
2120
if test -n "$ORTP_EXTRA_VERSION" ; then
 
2121
        ORTP_VERSION="${ORTP_VERSION}.${ORTP_EXTRA_VERSION}"
 
2122
fi
 
2123
 
 
2124
ORTP_PKGCONFIG_VERSION=${ORTP_VERSION}
 
2125
 
 
2126
 
 
2127
 
 
2128
 
 
2129
 
 
2130
 
 
2131
PACKAGE=ortp
 
2132
 
 
2133
am__api_version="1.9"
1537
2134
# Find a good install program.  We prefer a C program (faster),
1538
2135
# so one script is as good as another.  But avoid the broken or
1539
2136
# incompatible versions:
1547
2144
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1548
2145
# OS/2's system install, which has a completely different semantic
1549
2146
# ./install, which can be erroneously created by make from ./install.sh.
1550
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1551
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2147
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2148
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1552
2149
if test -z "$INSTALL"; then
1553
2150
if test "${ac_cv_path_install+set}" = set; then
1554
2151
  echo $ECHO_N "(cached) $ECHO_C" >&6
1570
2167
    # by default.
1571
2168
    for ac_prog in ginstall scoinst install; do
1572
2169
      for ac_exec_ext in '' $ac_executable_extensions; do
1573
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2170
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1574
2171
          if test $ac_prog = install &&
1575
2172
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1576
2173
            # AIX install.  It has an incompatible calling convention.
1589
2186
    ;;
1590
2187
esac
1591
2188
done
 
2189
IFS=$as_save_IFS
1592
2190
 
1593
2191
 
1594
2192
fi
1595
2193
  if test "${ac_cv_path_install+set}" = set; then
1596
2194
    INSTALL=$ac_cv_path_install
1597
2195
  else
1598
 
    # As a last resort, use the slow shell script.  We don't cache a
1599
 
    # path for INSTALL within a source directory, because that will
 
2196
    # As a last resort, use the slow shell script.  Don't cache a
 
2197
    # value for INSTALL within a source directory, because that will
1600
2198
    # break other packages using the cache if that directory is
1601
 
    # removed, or if the path is relative.
 
2199
    # removed, or if the value is a relative name.
1602
2200
    INSTALL=$ac_install_sh
1603
2201
  fi
1604
2202
fi
1605
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1606
 
echo "${ECHO_T}$INSTALL" >&6
 
2203
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2204
echo "${ECHO_T}$INSTALL" >&6; }
1607
2205
 
1608
2206
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1609
2207
# It thinks the first close brace ends the variable substitution.
1613
2211
 
1614
2212
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1615
2213
 
1616
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1617
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2214
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2215
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1618
2216
# Just in case
1619
2217
sleep 1
1620
2218
echo timestamp > conftest.file
1656
2254
Check your system clock" >&2;}
1657
2255
   { (exit 1); exit 1; }; }
1658
2256
fi
1659
 
echo "$as_me:$LINENO: result: yes" >&5
1660
 
echo "${ECHO_T}yes" >&6
 
2257
{ echo "$as_me:$LINENO: result: yes" >&5
 
2258
echo "${ECHO_T}yes" >&6; }
1661
2259
test "$program_prefix" != NONE &&
1662
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2260
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1663
2261
# Use a double $ so make ignores it.
1664
2262
test "$program_suffix" != NONE &&
1665
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2263
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1666
2264
# Double any \ or $.  echo might interpret backslashes.
1667
2265
# By default was `s,x,x', remove it if useless.
1668
2266
cat <<\_ACEOF >conftest.sed
1669
2267
s/[\\$]/&&/g;s/;s,x,x,$//
1670
2268
_ACEOF
1671
2269
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1672
 
rm conftest.sed
1673
 
 
 
2270
rm -f conftest.sed
1674
2271
 
1675
2272
# expand $ac_aux_dir to an absolute path
1676
2273
am_aux_dir=`cd $ac_aux_dir && pwd`
1685
2282
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1686
2283
fi
1687
2284
 
 
2285
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2286
  # We used to keeping the `.' as first argument, in order to
 
2287
  # allow $(mkdir_p) to be used without argument.  As in
 
2288
  #   $(mkdir_p) $(somedir)
 
2289
  # where $(somedir) is conditionally defined.  However this is wrong
 
2290
  # for two reasons:
 
2291
  #  1. if the package is installed by a user who cannot write `.'
 
2292
  #     make install will fail,
 
2293
  #  2. the above comment should most certainly read
 
2294
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2295
  #     so it does not work when $(somedir) is undefined and
 
2296
  #     $(DESTDIR) is not.
 
2297
  #  To support the latter case, we have to write
 
2298
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2299
  #  so the `.' trick is pointless.
 
2300
  mkdir_p='mkdir -p --'
 
2301
else
 
2302
  # On NextStep and OpenStep, the `mkdir' command does not
 
2303
  # recognize any option.  It will interpret all options as
 
2304
  # directories to create, and then abort because `.' already
 
2305
  # exists.
 
2306
  for d in ./-p ./--version;
 
2307
  do
 
2308
    test -d $d && rmdir $d
 
2309
  done
 
2310
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2311
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2312
    mkdir_p='$(mkinstalldirs)'
 
2313
  else
 
2314
    mkdir_p='$(install_sh) -d'
 
2315
  fi
 
2316
fi
 
2317
 
1688
2318
for ac_prog in gawk mawk nawk awk
1689
2319
do
1690
2320
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1691
2321
set dummy $ac_prog; ac_word=$2
1692
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1693
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2322
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1694
2324
if test "${ac_cv_prog_AWK+set}" = set; then
1695
2325
  echo $ECHO_N "(cached) $ECHO_C" >&6
1696
2326
else
1703
2333
  IFS=$as_save_IFS
1704
2334
  test -z "$as_dir" && as_dir=.
1705
2335
  for ac_exec_ext in '' $ac_executable_extensions; do
1706
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2336
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1707
2337
    ac_cv_prog_AWK="$ac_prog"
1708
2338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709
2339
    break 2
1710
2340
  fi
1711
2341
done
1712
2342
done
 
2343
IFS=$as_save_IFS
1713
2344
 
1714
2345
fi
1715
2346
fi
1716
2347
AWK=$ac_cv_prog_AWK
1717
2348
if test -n "$AWK"; then
1718
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1719
 
echo "${ECHO_T}$AWK" >&6
 
2349
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2350
echo "${ECHO_T}$AWK" >&6; }
1720
2351
else
1721
 
  echo "$as_me:$LINENO: result: no" >&5
1722
 
echo "${ECHO_T}no" >&6
 
2352
  { echo "$as_me:$LINENO: result: no" >&5
 
2353
echo "${ECHO_T}no" >&6; }
1723
2354
fi
1724
2355
 
 
2356
 
1725
2357
  test -n "$AWK" && break
1726
2358
done
1727
2359
 
1728
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1729
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1730
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1731
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2360
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2361
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2362
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2363
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1732
2364
  echo $ECHO_N "(cached) $ECHO_C" >&6
1733
2365
else
1734
2366
  cat >conftest.make <<\_ACEOF
 
2367
SHELL = /bin/sh
1735
2368
all:
1736
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2369
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1737
2370
_ACEOF
1738
2371
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1739
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1740
 
if test -n "$ac_maketemp"; then
1741
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1742
 
else
1743
 
  eval ac_cv_prog_make_${ac_make}_set=no
1744
 
fi
 
2372
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2373
  *@@@%%%=?*=@@@%%%*)
 
2374
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2375
  *)
 
2376
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2377
esac
1745
2378
rm -f conftest.make
1746
2379
fi
1747
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1748
 
  echo "$as_me:$LINENO: result: yes" >&5
1749
 
echo "${ECHO_T}yes" >&6
 
2380
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2381
  { echo "$as_me:$LINENO: result: yes" >&5
 
2382
echo "${ECHO_T}yes" >&6; }
1750
2383
  SET_MAKE=
1751
2384
else
1752
 
  echo "$as_me:$LINENO: result: no" >&5
1753
 
echo "${ECHO_T}no" >&6
 
2385
  { echo "$as_me:$LINENO: result: no" >&5
 
2386
echo "${ECHO_T}no" >&6; }
1754
2387
  SET_MAKE="MAKE=${MAKE-make}"
1755
2388
fi
1756
2389
 
1757
 
 # test to see if srcdir already configured
 
2390
rm -rf .tst 2>/dev/null
 
2391
mkdir .tst 2>/dev/null
 
2392
if test -d .tst; then
 
2393
  am__leading_dot=.
 
2394
else
 
2395
  am__leading_dot=_
 
2396
fi
 
2397
rmdir .tst 2>/dev/null
 
2398
 
 
2399
# test to see if srcdir already configured
1758
2400
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1759
2401
   test -f $srcdir/config.status; then
1760
2402
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1762
2404
   { (exit 1); exit 1; }; }
1763
2405
fi
1764
2406
 
 
2407
# test whether we have cygpath
 
2408
if test -z "$CYGPATH_W"; then
 
2409
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2410
    CYGPATH_W='cygpath -w'
 
2411
  else
 
2412
    CYGPATH_W=echo
 
2413
  fi
 
2414
fi
 
2415
 
 
2416
 
1765
2417
# Define the identity of the package.
1766
 
 PACKAGE=$PACKAGE
1767
 
 VERSION=$VERSION
1768
 
 
 
2418
 PACKAGE='ortp'
 
2419
 VERSION='0.12.0'
 
2420
 
 
2421
 
 
2422
cat >>confdefs.h <<_ACEOF
 
2423
#define PACKAGE "$PACKAGE"
 
2424
_ACEOF
 
2425
 
 
2426
 
 
2427
cat >>confdefs.h <<_ACEOF
 
2428
#define VERSION "$VERSION"
 
2429
_ACEOF
1769
2430
 
1770
2431
# Some tools Automake needs.
1771
2432
 
1783
2444
 
1784
2445
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1785
2446
 
1786
 
 
1787
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1788
 
 
1789
2447
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1790
2448
 
1791
2449
# Installed binaries are usually stripped using `strip' when the user
1796
2454
  if test -n "$ac_tool_prefix"; then
1797
2455
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1798
2456
set dummy ${ac_tool_prefix}strip; ac_word=$2
1799
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1800
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2457
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2458
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1801
2459
if test "${ac_cv_prog_STRIP+set}" = set; then
1802
2460
  echo $ECHO_N "(cached) $ECHO_C" >&6
1803
2461
else
1810
2468
  IFS=$as_save_IFS
1811
2469
  test -z "$as_dir" && as_dir=.
1812
2470
  for ac_exec_ext in '' $ac_executable_extensions; do
1813
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1814
2472
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1815
2473
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816
2474
    break 2
1817
2475
  fi
1818
2476
done
1819
2477
done
 
2478
IFS=$as_save_IFS
1820
2479
 
1821
2480
fi
1822
2481
fi
1823
2482
STRIP=$ac_cv_prog_STRIP
1824
2483
if test -n "$STRIP"; then
1825
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1826
 
echo "${ECHO_T}$STRIP" >&6
 
2484
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2485
echo "${ECHO_T}$STRIP" >&6; }
1827
2486
else
1828
 
  echo "$as_me:$LINENO: result: no" >&5
1829
 
echo "${ECHO_T}no" >&6
 
2487
  { echo "$as_me:$LINENO: result: no" >&5
 
2488
echo "${ECHO_T}no" >&6; }
1830
2489
fi
 
2490
 
1831
2491
 
1832
2492
fi
1833
2493
if test -z "$ac_cv_prog_STRIP"; then
1834
2494
  ac_ct_STRIP=$STRIP
1835
2495
  # Extract the first word of "strip", so it can be a program name with args.
1836
2496
set dummy strip; ac_word=$2
1837
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1838
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2497
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839
2499
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1840
2500
  echo $ECHO_N "(cached) $ECHO_C" >&6
1841
2501
else
1848
2508
  IFS=$as_save_IFS
1849
2509
  test -z "$as_dir" && as_dir=.
1850
2510
  for ac_exec_ext in '' $ac_executable_extensions; do
1851
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1852
2512
    ac_cv_prog_ac_ct_STRIP="strip"
1853
2513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854
2514
    break 2
1855
2515
  fi
1856
2516
done
1857
2517
done
 
2518
IFS=$as_save_IFS
1858
2519
 
1859
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1860
2520
fi
1861
2521
fi
1862
2522
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1863
2523
if test -n "$ac_ct_STRIP"; then
1864
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1865
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2524
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2525
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1866
2526
else
1867
 
  echo "$as_me:$LINENO: result: no" >&5
1868
 
echo "${ECHO_T}no" >&6
 
2527
  { echo "$as_me:$LINENO: result: no" >&5
 
2528
echo "${ECHO_T}no" >&6; }
1869
2529
fi
1870
2530
 
1871
 
  STRIP=$ac_ct_STRIP
 
2531
  if test "x$ac_ct_STRIP" = x; then
 
2532
    STRIP=":"
 
2533
  else
 
2534
    case $cross_compiling:$ac_tool_warned in
 
2535
yes:)
 
2536
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2537
whose name does not start with the host triplet.  If you think this
 
2538
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2539
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2540
whose name does not start with the host triplet.  If you think this
 
2541
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2542
ac_tool_warned=yes ;;
 
2543
esac
 
2544
    STRIP=$ac_ct_STRIP
 
2545
  fi
1872
2546
else
1873
2547
  STRIP="$ac_cv_prog_STRIP"
1874
2548
fi
1878
2552
 
1879
2553
# We need awk for the "check" target.  The system "awk" is bad on
1880
2554
# some platforms.
1881
 
 
1882
 
 
1883
 
 
1884
 
# Add the stamp file to the list of files AC keeps track of,
1885
 
# along with our hook.
1886
 
          ac_config_headers="$ac_config_headers ortp-config.h"
1887
 
 
1888
 
 
1889
 
 
1890
 
 
1891
 
# Make sure we can run config.sub.
1892
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1893
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1894
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1895
 
   { (exit 1); exit 1; }; }
1896
 
 
1897
 
echo "$as_me:$LINENO: checking build system type" >&5
1898
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1899
 
if test "${ac_cv_build+set}" = set; then
1900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1901
 
else
1902
 
  ac_cv_build_alias=$build_alias
1903
 
test -z "$ac_cv_build_alias" &&
1904
 
  ac_cv_build_alias=`$ac_config_guess`
1905
 
test -z "$ac_cv_build_alias" &&
1906
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908
 
   { (exit 1); exit 1; }; }
1909
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1910
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1911
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1912
 
   { (exit 1); exit 1; }; }
1913
 
 
1914
 
fi
1915
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916
 
echo "${ECHO_T}$ac_cv_build" >&6
1917
 
build=$ac_cv_build
1918
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1919
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1920
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1921
 
 
1922
 
 
1923
 
echo "$as_me:$LINENO: checking host system type" >&5
1924
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1925
 
if test "${ac_cv_host+set}" = set; then
1926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1927
 
else
1928
 
  ac_cv_host_alias=$host_alias
1929
 
test -z "$ac_cv_host_alias" &&
1930
 
  ac_cv_host_alias=$ac_cv_build_alias
1931
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1933
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1934
 
   { (exit 1); exit 1; }; }
1935
 
 
1936
 
fi
1937
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1938
 
echo "${ECHO_T}$ac_cv_host" >&6
1939
 
host=$ac_cv_host
1940
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1941
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1942
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1943
 
 
1944
 
 
1945
 
 
1946
 
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
2555
# Always define AMTAR for backward compatibility.
 
2556
 
 
2557
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2558
 
 
2559
 
 
2560
{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
 
2561
echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
 
2562
# Loop over all known methods to create a tar archive until one works.
 
2563
_am_tools='gnutar plaintar pax cpio none'
 
2564
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 
2565
# Do not fold the above two line into one, because Tru64 sh and
 
2566
# Solaris sh will not grok spaces in the rhs of `-'.
 
2567
for _am_tool in $_am_tools
 
2568
do
 
2569
  case $_am_tool in
 
2570
  gnutar)
 
2571
    for _am_tar in tar gnutar gtar;
 
2572
    do
 
2573
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
2574
   ($_am_tar --version) >&5 2>&5
 
2575
   ac_status=$?
 
2576
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2577
   (exit $ac_status); } && break
 
2578
    done
 
2579
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 
2580
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 
2581
    am__untar="$_am_tar -xf -"
 
2582
    ;;
 
2583
  plaintar)
 
2584
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
2585
    # ustar tarball either.
 
2586
    (tar --version) >/dev/null 2>&1 && continue
 
2587
    am__tar='tar chf - "$$tardir"'
 
2588
    am__tar_='tar chf - "$tardir"'
 
2589
    am__untar='tar xf -'
 
2590
    ;;
 
2591
  pax)
 
2592
    am__tar='pax -L -x ustar -w "$$tardir"'
 
2593
    am__tar_='pax -L -x ustar -w "$tardir"'
 
2594
    am__untar='pax -r'
 
2595
    ;;
 
2596
  cpio)
 
2597
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 
2598
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 
2599
    am__untar='cpio -i -H ustar -d'
 
2600
    ;;
 
2601
  none)
 
2602
    am__tar=false
 
2603
    am__tar_=false
 
2604
    am__untar=false
 
2605
    ;;
 
2606
  esac
 
2607
 
 
2608
  # If the value was cached, stop now.  We just wanted to have am__tar
 
2609
  # and am__untar set.
 
2610
  test -n "${am_cv_prog_tar_ustar}" && break
 
2611
 
 
2612
  # tar/untar a dummy directory, and stop if the command works
 
2613
  rm -rf conftest.dir
 
2614
  mkdir conftest.dir
 
2615
  echo GrepMe > conftest.dir/file
 
2616
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
2617
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
2618
   ac_status=$?
 
2619
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2620
   (exit $ac_status); }
 
2621
  rm -rf conftest.dir
 
2622
  if test -s conftest.tar; then
 
2623
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
2624
   ($am__untar <conftest.tar) >&5 2>&5
 
2625
   ac_status=$?
 
2626
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2627
   (exit $ac_status); }
 
2628
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
2629
  fi
 
2630
done
 
2631
rm -rf conftest.dir
 
2632
 
 
2633
if test "${am_cv_prog_tar_ustar+set}" = set; then
 
2634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2635
else
 
2636
  am_cv_prog_tar_ustar=$_am_tool
 
2637
fi
 
2638
 
 
2639
{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
 
2640
echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
 
2641
 
 
2642
 
 
2643
 
 
2644
 
 
2645
 
 
2646
ac_config_headers="$ac_config_headers ortp-config.h"
 
2647
 
 
2648
 
 
2649
cat >>confdefs.h <<_ACEOF
 
2650
#define ORTP_MAJOR_VERSION $ORTP_MAJOR_VERSION
 
2651
_ACEOF
 
2652
 
 
2653
 
 
2654
cat >>confdefs.h <<_ACEOF
 
2655
#define ORTP_MINOR_VERSION $ORTP_MINOR_VERSION
 
2656
_ACEOF
 
2657
 
 
2658
 
 
2659
cat >>confdefs.h <<_ACEOF
 
2660
#define ORTP_MICRO_VERSION $ORTP_MICRO_VERSION
 
2661
_ACEOF
 
2662
 
 
2663
 
 
2664
cat >>confdefs.h <<_ACEOF
 
2665
#define ORTP_VERSION "$ORTP_VERSION"
 
2666
_ACEOF
 
2667
 
 
2668
 
 
2669
 
 
2670
 
 
2671
{ echo "$as_me:$LINENO: checking warning make an error on compilation" >&5
 
2672
echo $ECHO_N "checking warning make an error on compilation... $ECHO_C" >&6; }
 
2673
# Check whether --enable-strict was given.
 
2674
if test "${enable_strict+set}" = set; then
 
2675
  enableval=$enable_strict; wall_werror=$enableval
 
2676
else
 
2677
  wall_werror=yes
 
2678
 
 
2679
fi
 
2680
 
 
2681
 
 
2682
ORTP_DEFS=
 
2683
 
 
2684
# Check whether --enable-ipv6 was given.
1947
2685
if test "${enable_ipv6+set}" = set; then
1948
 
  enableval="$enable_ipv6"
1949
 
  case "${enableval}" in
 
2686
  enableval=$enable_ipv6; case "${enableval}" in
1950
2687
        yes)  ipv6=true;;
1951
2688
        no)   ipv6=false;;
1952
2689
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
1955
2692
      esac
1956
2693
else
1957
2694
  ipv6=true
1958
 
fi;
1959
 
IPV6_CFLAGS=
 
2695
fi
 
2696
 
1960
2697
if test x$ipv6 = xtrue ; then
1961
 
        IPV6_CFLAGS=-DINET6
 
2698
        ORTP_DEFS="$ORTP_DEFS -DORTP_INET6"
1962
2699
fi
1963
2700
 
1964
 
 
1965
 
# Check whether --enable-mode64bit or --disable-mode64bit was given.
 
2701
# Check whether --enable-mode64bit was given.
1966
2702
if test "${enable_mode64bit+set}" = set; then
1967
 
  enableval="$enable_mode64bit"
1968
 
  case "${enableval}" in
 
2703
  enableval=$enable_mode64bit; case "${enableval}" in
1969
2704
                                yes) mode64bit_enabled=yes;;
1970
2705
                                no) mode64bit_enabled=no;;
1971
2706
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-mode64bit\"" >&5
1974
2709
                        esac
1975
2710
else
1976
2711
  mode64bit_enabled=no
1977
 
fi;
1978
 
 
1979
 
# Check whether --enable-debug or --disable-debug was given.
 
2712
fi
 
2713
 
 
2714
 
 
2715
# Check whether --enable-debug was given.
1980
2716
if test "${enable_debug+set}" = set; then
1981
 
  enableval="$enable_debug"
1982
 
  case "${enableval}" in
 
2717
  enableval=$enable_debug; case "${enableval}" in
1983
2718
                                yes) debug_enabled=yes;;
1984
2719
                                no) debug_enabled=no;;
1985
2720
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-debug\"" >&5
1988
2723
                        esac
1989
2724
else
1990
2725
  debug_enabled=no
1991
 
fi;
1992
 
 
1993
 
# Check whether --enable-rtcp or --disable-rtcp was given.
1994
 
if test "${enable_rtcp+set}" = set; then
1995
 
  enableval="$enable_rtcp"
1996
 
  case "${enableval}" in
1997
 
                                yes) rtcp_enabled=yes;;
1998
 
                                no) rtcp_enabled=no;;
1999
 
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-rtcp\"" >&5
2000
 
echo "$as_me: error: \"Bad value for --enable-rtcp\"" >&2;}
2001
 
   { (exit 1); exit 1; }; };;
2002
 
                        esac
2003
 
else
2004
 
  rtcp_enabled=no
2005
 
fi;
 
2726
fi
2006
2727
 
2007
2728
 
2008
2729
 
2015
2736
                hpux_host=yes
2016
2737
 
2017
2738
cat >>confdefs.h <<\_ACEOF
2018
 
#define HOST_IS_HPUX 1
2019
 
_ACEOF
2020
 
 
2021
 
 
2022
 
cat >>confdefs.h <<\_ACEOF
2023
2739
#define NOCONNECT 1
2024
2740
_ACEOF
2025
2741
 
 
2742
                CFLAGS="$CFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L"
 
2743
                LIBS="$LIBS -lxnet"
2026
2744
                ;;
2027
2745
        *freebsd*)
2028
2746
 
2042
2760
if test -n "$ac_tool_prefix"; then
2043
2761
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044
2762
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2046
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2763
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2764
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047
2765
if test "${ac_cv_prog_CC+set}" = set; then
2048
2766
  echo $ECHO_N "(cached) $ECHO_C" >&6
2049
2767
else
2056
2774
  IFS=$as_save_IFS
2057
2775
  test -z "$as_dir" && as_dir=.
2058
2776
  for ac_exec_ext in '' $ac_executable_extensions; do
2059
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2777
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060
2778
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061
2779
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062
2780
    break 2
2063
2781
  fi
2064
2782
done
2065
2783
done
 
2784
IFS=$as_save_IFS
2066
2785
 
2067
2786
fi
2068
2787
fi
2069
2788
CC=$ac_cv_prog_CC
2070
2789
if test -n "$CC"; then
2071
 
  echo "$as_me:$LINENO: result: $CC" >&5
2072
 
echo "${ECHO_T}$CC" >&6
 
2790
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2791
echo "${ECHO_T}$CC" >&6; }
2073
2792
else
2074
 
  echo "$as_me:$LINENO: result: no" >&5
2075
 
echo "${ECHO_T}no" >&6
 
2793
  { echo "$as_me:$LINENO: result: no" >&5
 
2794
echo "${ECHO_T}no" >&6; }
2076
2795
fi
 
2796
 
2077
2797
 
2078
2798
fi
2079
2799
if test -z "$ac_cv_prog_CC"; then
2080
2800
  ac_ct_CC=$CC
2081
2801
  # Extract the first word of "gcc", so it can be a program name with args.
2082
2802
set dummy gcc; ac_word=$2
2083
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2084
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2803
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085
2805
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086
2806
  echo $ECHO_N "(cached) $ECHO_C" >&6
2087
2807
else
2094
2814
  IFS=$as_save_IFS
2095
2815
  test -z "$as_dir" && as_dir=.
2096
2816
  for ac_exec_ext in '' $ac_executable_extensions; do
2097
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2817
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2098
2818
    ac_cv_prog_ac_ct_CC="gcc"
2099
2819
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100
2820
    break 2
2101
2821
  fi
2102
2822
done
2103
2823
done
 
2824
IFS=$as_save_IFS
2104
2825
 
2105
2826
fi
2106
2827
fi
2107
2828
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108
2829
if test -n "$ac_ct_CC"; then
2109
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2830
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2831
echo "${ECHO_T}$ac_ct_CC" >&6; }
2111
2832
else
2112
 
  echo "$as_me:$LINENO: result: no" >&5
2113
 
echo "${ECHO_T}no" >&6
 
2833
  { echo "$as_me:$LINENO: result: no" >&5
 
2834
echo "${ECHO_T}no" >&6; }
2114
2835
fi
2115
2836
 
2116
 
  CC=$ac_ct_CC
 
2837
  if test "x$ac_ct_CC" = x; then
 
2838
    CC=""
 
2839
  else
 
2840
    case $cross_compiling:$ac_tool_warned in
 
2841
yes:)
 
2842
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2843
whose name does not start with the host triplet.  If you think this
 
2844
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2845
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2846
whose name does not start with the host triplet.  If you think this
 
2847
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2848
ac_tool_warned=yes ;;
 
2849
esac
 
2850
    CC=$ac_ct_CC
 
2851
  fi
2117
2852
else
2118
2853
  CC="$ac_cv_prog_CC"
2119
2854
fi
2120
2855
 
2121
2856
if test -z "$CC"; then
2122
 
  if test -n "$ac_tool_prefix"; then
2123
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2857
          if test -n "$ac_tool_prefix"; then
 
2858
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124
2859
set dummy ${ac_tool_prefix}cc; ac_word=$2
2125
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2126
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2860
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2127
2862
if test "${ac_cv_prog_CC+set}" = set; then
2128
2863
  echo $ECHO_N "(cached) $ECHO_C" >&6
2129
2864
else
2136
2871
  IFS=$as_save_IFS
2137
2872
  test -z "$as_dir" && as_dir=.
2138
2873
  for ac_exec_ext in '' $ac_executable_extensions; do
2139
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2140
2875
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2141
2876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142
2877
    break 2
2143
2878
  fi
2144
2879
done
2145
2880
done
 
2881
IFS=$as_save_IFS
2146
2882
 
2147
2883
fi
2148
2884
fi
2149
2885
CC=$ac_cv_prog_CC
2150
2886
if test -n "$CC"; then
2151
 
  echo "$as_me:$LINENO: result: $CC" >&5
2152
 
echo "${ECHO_T}$CC" >&6
2153
 
else
2154
 
  echo "$as_me:$LINENO: result: no" >&5
2155
 
echo "${ECHO_T}no" >&6
2156
 
fi
2157
 
 
2158
 
fi
2159
 
if test -z "$ac_cv_prog_CC"; then
2160
 
  ac_ct_CC=$CC
2161
 
  # Extract the first word of "cc", so it can be a program name with args.
2162
 
set dummy cc; ac_word=$2
2163
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2164
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2167
 
else
2168
 
  if test -n "$ac_ct_CC"; then
2169
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170
 
else
2171
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172
 
for as_dir in $PATH
2173
 
do
2174
 
  IFS=$as_save_IFS
2175
 
  test -z "$as_dir" && as_dir=.
2176
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2177
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178
 
    ac_cv_prog_ac_ct_CC="cc"
2179
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180
 
    break 2
 
2887
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2888
echo "${ECHO_T}$CC" >&6; }
 
2889
else
 
2890
  { echo "$as_me:$LINENO: result: no" >&5
 
2891
echo "${ECHO_T}no" >&6; }
 
2892
fi
 
2893
 
 
2894
 
2181
2895
  fi
2182
 
done
2183
 
done
2184
 
 
2185
 
fi
2186
 
fi
2187
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188
 
if test -n "$ac_ct_CC"; then
2189
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190
 
echo "${ECHO_T}$ac_ct_CC" >&6
2191
 
else
2192
 
  echo "$as_me:$LINENO: result: no" >&5
2193
 
echo "${ECHO_T}no" >&6
2194
 
fi
2195
 
 
2196
 
  CC=$ac_ct_CC
2197
 
else
2198
 
  CC="$ac_cv_prog_CC"
2199
 
fi
2200
 
 
2201
2896
fi
2202
2897
if test -z "$CC"; then
2203
2898
  # Extract the first word of "cc", so it can be a program name with args.
2204
2899
set dummy cc; ac_word=$2
2205
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2206
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2900
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2901
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207
2902
if test "${ac_cv_prog_CC+set}" = set; then
2208
2903
  echo $ECHO_N "(cached) $ECHO_C" >&6
2209
2904
else
2217
2912
  IFS=$as_save_IFS
2218
2913
  test -z "$as_dir" && as_dir=.
2219
2914
  for ac_exec_ext in '' $ac_executable_extensions; do
2220
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2221
2916
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222
2917
       ac_prog_rejected=yes
2223
2918
       continue
2228
2923
  fi
2229
2924
done
2230
2925
done
 
2926
IFS=$as_save_IFS
2231
2927
 
2232
2928
if test $ac_prog_rejected = yes; then
2233
2929
  # We found a bogon in the path, so make sure we never use it.
2245
2941
fi
2246
2942
CC=$ac_cv_prog_CC
2247
2943
if test -n "$CC"; then
2248
 
  echo "$as_me:$LINENO: result: $CC" >&5
2249
 
echo "${ECHO_T}$CC" >&6
 
2944
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2945
echo "${ECHO_T}$CC" >&6; }
2250
2946
else
2251
 
  echo "$as_me:$LINENO: result: no" >&5
2252
 
echo "${ECHO_T}no" >&6
 
2947
  { echo "$as_me:$LINENO: result: no" >&5
 
2948
echo "${ECHO_T}no" >&6; }
2253
2949
fi
 
2950
 
2254
2951
 
2255
2952
fi
2256
2953
if test -z "$CC"; then
2257
2954
  if test -n "$ac_tool_prefix"; then
2258
 
  for ac_prog in cl
 
2955
  for ac_prog in cl.exe
2259
2956
  do
2260
2957
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261
2958
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2263
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2959
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264
2961
if test "${ac_cv_prog_CC+set}" = set; then
2265
2962
  echo $ECHO_N "(cached) $ECHO_C" >&6
2266
2963
else
2273
2970
  IFS=$as_save_IFS
2274
2971
  test -z "$as_dir" && as_dir=.
2275
2972
  for ac_exec_ext in '' $ac_executable_extensions; do
2276
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2277
2974
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278
2975
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279
2976
    break 2
2280
2977
  fi
2281
2978
done
2282
2979
done
 
2980
IFS=$as_save_IFS
2283
2981
 
2284
2982
fi
2285
2983
fi
2286
2984
CC=$ac_cv_prog_CC
2287
2985
if test -n "$CC"; then
2288
 
  echo "$as_me:$LINENO: result: $CC" >&5
2289
 
echo "${ECHO_T}$CC" >&6
 
2986
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2987
echo "${ECHO_T}$CC" >&6; }
2290
2988
else
2291
 
  echo "$as_me:$LINENO: result: no" >&5
2292
 
echo "${ECHO_T}no" >&6
 
2989
  { echo "$as_me:$LINENO: result: no" >&5
 
2990
echo "${ECHO_T}no" >&6; }
2293
2991
fi
2294
2992
 
 
2993
 
2295
2994
    test -n "$CC" && break
2296
2995
  done
2297
2996
fi
2298
2997
if test -z "$CC"; then
2299
2998
  ac_ct_CC=$CC
2300
 
  for ac_prog in cl
 
2999
  for ac_prog in cl.exe
2301
3000
do
2302
3001
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2303
3002
set dummy $ac_prog; ac_word=$2
2304
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2305
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3003
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3004
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306
3005
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307
3006
  echo $ECHO_N "(cached) $ECHO_C" >&6
2308
3007
else
2315
3014
  IFS=$as_save_IFS
2316
3015
  test -z "$as_dir" && as_dir=.
2317
3016
  for ac_exec_ext in '' $ac_executable_extensions; do
2318
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3017
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
3018
    ac_cv_prog_ac_ct_CC="$ac_prog"
2320
3019
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
3020
    break 2
2322
3021
  fi
2323
3022
done
2324
3023
done
 
3024
IFS=$as_save_IFS
2325
3025
 
2326
3026
fi
2327
3027
fi
2328
3028
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329
3029
if test -n "$ac_ct_CC"; then
2330
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3030
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3031
echo "${ECHO_T}$ac_ct_CC" >&6; }
2332
3032
else
2333
 
  echo "$as_me:$LINENO: result: no" >&5
2334
 
echo "${ECHO_T}no" >&6
 
3033
  { echo "$as_me:$LINENO: result: no" >&5
 
3034
echo "${ECHO_T}no" >&6; }
2335
3035
fi
2336
3036
 
 
3037
 
2337
3038
  test -n "$ac_ct_CC" && break
2338
3039
done
2339
3040
 
2340
 
  CC=$ac_ct_CC
 
3041
  if test "x$ac_ct_CC" = x; then
 
3042
    CC=""
 
3043
  else
 
3044
    case $cross_compiling:$ac_tool_warned in
 
3045
yes:)
 
3046
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3047
whose name does not start with the host triplet.  If you think this
 
3048
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3049
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3050
whose name does not start with the host triplet.  If you think this
 
3051
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3052
ac_tool_warned=yes ;;
 
3053
esac
 
3054
    CC=$ac_ct_CC
 
3055
  fi
2341
3056
fi
2342
3057
 
2343
3058
fi
2350
3065
   { (exit 1); exit 1; }; }
2351
3066
 
2352
3067
# Provide some information about the compiler.
2353
 
echo "$as_me:$LINENO:" \
2354
 
     "checking for C compiler version" >&5
 
3068
echo "$as_me:$LINENO: checking for C compiler version" >&5
2355
3069
ac_compiler=`set X $ac_compile; echo $2`
2356
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2358
 
  ac_status=$?
2359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360
 
  (exit $ac_status); }
2361
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2363
 
  ac_status=$?
2364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365
 
  (exit $ac_status); }
2366
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3070
{ (ac_try="$ac_compiler --version >&5"
 
3071
case "(($ac_try" in
 
3072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3073
  *) ac_try_echo=$ac_try;;
 
3074
esac
 
3075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3076
  (eval "$ac_compiler --version >&5") 2>&5
 
3077
  ac_status=$?
 
3078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3079
  (exit $ac_status); }
 
3080
{ (ac_try="$ac_compiler -v >&5"
 
3081
case "(($ac_try" in
 
3082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3083
  *) ac_try_echo=$ac_try;;
 
3084
esac
 
3085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3086
  (eval "$ac_compiler -v >&5") 2>&5
 
3087
  ac_status=$?
 
3088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3089
  (exit $ac_status); }
 
3090
{ (ac_try="$ac_compiler -V >&5"
 
3091
case "(($ac_try" in
 
3092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3093
  *) ac_try_echo=$ac_try;;
 
3094
esac
 
3095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3096
  (eval "$ac_compiler -V >&5") 2>&5
2368
3097
  ac_status=$?
2369
3098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370
3099
  (exit $ac_status); }
2389
3118
# Try to create an executable without -o first, disregard a.out.
2390
3119
# It will help us diagnose broken compilers, and finding out an intuition
2391
3120
# of exeext.
2392
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3121
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3122
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394
3123
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396
 
  (eval $ac_link_default) 2>&5
 
3124
#
 
3125
# List of possible output files, starting from the most likely.
 
3126
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3127
# only as a last resort.  b.out is created by i960 compilers.
 
3128
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3129
#
 
3130
# The IRIX 6 linker writes into existing files which may not be
 
3131
# executable, retaining their permissions.  Remove them first so a
 
3132
# subsequent execution test works.
 
3133
ac_rmfiles=
 
3134
for ac_file in $ac_files
 
3135
do
 
3136
  case $ac_file in
 
3137
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3138
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3139
  esac
 
3140
done
 
3141
rm -f $ac_rmfiles
 
3142
 
 
3143
if { (ac_try="$ac_link_default"
 
3144
case "(($ac_try" in
 
3145
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3146
  *) ac_try_echo=$ac_try;;
 
3147
esac
 
3148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3149
  (eval "$ac_link_default") 2>&5
2397
3150
  ac_status=$?
2398
3151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
3152
  (exit $ac_status); }; then
2400
 
  # Find the output, starting from the most likely.  This scheme is
2401
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2402
 
# resort.
2403
 
 
2404
 
# Be careful to initialize this variable, since it used to be cached.
2405
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2406
 
ac_cv_exeext=
2407
 
# b.out is created by i960 compilers.
2408
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3153
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3154
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3155
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3156
# so that the user can short-circuit this test for compilers unknown to
 
3157
# Autoconf.
 
3158
for ac_file in $ac_files ''
2409
3159
do
2410
3160
  test -f "$ac_file" || continue
2411
3161
  case $ac_file in
2412
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2413
 
        ;;
2414
 
    conftest.$ac_ext )
2415
 
        # This is the source file.
 
3162
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2416
3163
        ;;
2417
3164
    [ab].out )
2418
3165
        # We found the default executable, but exeext='' is most
2419
3166
        # certainly right.
2420
3167
        break;;
2421
3168
    *.* )
2422
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2424
 
        # but it would be cool to find out if it's true.  Does anybody
2425
 
        # maintain Libtool? --akim.
2426
 
        export ac_cv_exeext
 
3169
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3170
        then :; else
 
3171
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3172
        fi
 
3173
        # We set ac_cv_exeext here because the later test for it is not
 
3174
        # safe: cross compilers may not add the suffix if given an `-o'
 
3175
        # argument, so we may need to know it at that point already.
 
3176
        # Even if this section looks crufty: it has the advantage of
 
3177
        # actually working.
2427
3178
        break;;
2428
3179
    * )
2429
3180
        break;;
2430
3181
  esac
2431
3182
done
 
3183
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3184
 
2432
3185
else
 
3186
  ac_file=''
 
3187
fi
 
3188
 
 
3189
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3190
echo "${ECHO_T}$ac_file" >&6; }
 
3191
if test -z "$ac_file"; then
2433
3192
  echo "$as_me: failed program was:" >&5
2434
3193
sed 's/^/| /' conftest.$ac_ext >&5
2435
3194
 
2441
3200
fi
2442
3201
 
2443
3202
ac_exeext=$ac_cv_exeext
2444
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2445
 
echo "${ECHO_T}$ac_file" >&6
2446
3203
 
2447
 
# Check the compiler produces executables we can run.  If not, either
 
3204
# Check that the compiler produces executables we can run.  If not, either
2448
3205
# the compiler is broken, or we cross compile.
2449
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3206
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3207
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2451
3208
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452
3209
# If not cross compiling, check that we can run a simple program.
2453
3210
if test "$cross_compiling" != yes; then
2454
3211
  if { ac_try='./$ac_file'
2455
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456
 
  (eval $ac_try) 2>&5
 
3212
  { (case "(($ac_try" in
 
3213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3214
  *) ac_try_echo=$ac_try;;
 
3215
esac
 
3216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3217
  (eval "$ac_try") 2>&5
2457
3218
  ac_status=$?
2458
3219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459
3220
  (exit $ac_status); }; }; then
2472
3233
    fi
2473
3234
  fi
2474
3235
fi
2475
 
echo "$as_me:$LINENO: result: yes" >&5
2476
 
echo "${ECHO_T}yes" >&6
 
3236
{ echo "$as_me:$LINENO: result: yes" >&5
 
3237
echo "${ECHO_T}yes" >&6; }
2477
3238
 
2478
3239
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479
3240
ac_clean_files=$ac_clean_files_save
2480
 
# Check the compiler produces executables we can run.  If not, either
 
3241
# Check that the compiler produces executables we can run.  If not, either
2481
3242
# the compiler is broken, or we cross compile.
2482
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485
 
echo "${ECHO_T}$cross_compiling" >&6
 
3243
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3244
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3245
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3246
echo "${ECHO_T}$cross_compiling" >&6; }
2486
3247
 
2487
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490
 
  (eval $ac_link) 2>&5
 
3248
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3249
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3250
if { (ac_try="$ac_link"
 
3251
case "(($ac_try" in
 
3252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3253
  *) ac_try_echo=$ac_try;;
 
3254
esac
 
3255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3256
  (eval "$ac_link") 2>&5
2491
3257
  ac_status=$?
2492
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
3259
  (exit $ac_status); }; then
2498
3264
for ac_file in conftest.exe conftest conftest.*; do
2499
3265
  test -f "$ac_file" || continue
2500
3266
  case $ac_file in
2501
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3267
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2502
3268
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503
 
          export ac_cv_exeext
2504
3269
          break;;
2505
3270
    * ) break;;
2506
3271
  esac
2514
3279
fi
2515
3280
 
2516
3281
rm -f conftest$ac_cv_exeext
2517
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3282
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3283
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2519
3284
 
2520
3285
rm -f conftest.$ac_ext
2521
3286
EXEEXT=$ac_cv_exeext
2522
3287
ac_exeext=$EXEEXT
2523
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3288
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3289
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525
3290
if test "${ac_cv_objext+set}" = set; then
2526
3291
  echo $ECHO_N "(cached) $ECHO_C" >&6
2527
3292
else
2541
3306
}
2542
3307
_ACEOF
2543
3308
rm -f conftest.o conftest.obj
2544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
 
  (eval $ac_compile) 2>&5
 
3309
if { (ac_try="$ac_compile"
 
3310
case "(($ac_try" in
 
3311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3312
  *) ac_try_echo=$ac_try;;
 
3313
esac
 
3314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3315
  (eval "$ac_compile") 2>&5
2546
3316
  ac_status=$?
2547
3317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
3318
  (exit $ac_status); }; then
2549
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3319
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3320
  test -f "$ac_file" || continue;
2550
3321
  case $ac_file in
2551
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3322
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2552
3323
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553
3324
       break;;
2554
3325
  esac
2566
3337
 
2567
3338
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568
3339
fi
2569
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3340
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3341
echo "${ECHO_T}$ac_cv_objext" >&6; }
2571
3342
OBJEXT=$ac_cv_objext
2572
3343
ac_objext=$OBJEXT
2573
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3344
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3345
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2575
3346
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576
3347
  echo $ECHO_N "(cached) $ECHO_C" >&6
2577
3348
else
2594
3365
}
2595
3366
_ACEOF
2596
3367
rm -f conftest.$ac_objext
2597
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598
 
  (eval $ac_compile) 2>conftest.er1
 
3368
if { (ac_try="$ac_compile"
 
3369
case "(($ac_try" in
 
3370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3371
  *) ac_try_echo=$ac_try;;
 
3372
esac
 
3373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3374
  (eval "$ac_compile") 2>conftest.er1
2599
3375
  ac_status=$?
2600
3376
  grep -v '^ *+' conftest.er1 >conftest.err
2601
3377
  rm -f conftest.er1
2602
3378
  cat conftest.err >&5
2603
3379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604
3380
  (exit $ac_status); } &&
2605
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2606
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607
 
  (eval $ac_try) 2>&5
 
3381
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3382
  { (case "(($ac_try" in
 
3383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3384
  *) ac_try_echo=$ac_try;;
 
3385
esac
 
3386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3387
  (eval "$ac_try") 2>&5
2608
3388
  ac_status=$?
2609
3389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610
3390
  (exit $ac_status); }; } &&
2611
3391
         { ac_try='test -s conftest.$ac_objext'
2612
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613
 
  (eval $ac_try) 2>&5
 
3392
  { (case "(($ac_try" in
 
3393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3394
  *) ac_try_echo=$ac_try;;
 
3395
esac
 
3396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3397
  (eval "$ac_try") 2>&5
2614
3398
  ac_status=$?
2615
3399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616
3400
  (exit $ac_status); }; }; then
2619
3403
  echo "$as_me: failed program was:" >&5
2620
3404
sed 's/^/| /' conftest.$ac_ext >&5
2621
3405
 
2622
 
ac_compiler_gnu=no
 
3406
        ac_compiler_gnu=no
2623
3407
fi
2624
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3408
 
 
3409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625
3410
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2626
3411
 
2627
3412
fi
2628
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3413
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3414
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2630
3415
GCC=`test $ac_compiler_gnu = yes && echo yes`
2631
3416
ac_test_CFLAGS=${CFLAGS+set}
2632
3417
ac_save_CFLAGS=$CFLAGS
2633
 
CFLAGS="-g"
2634
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3418
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3419
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2636
3420
if test "${ac_cv_prog_cc_g+set}" = set; then
2637
3421
  echo $ECHO_N "(cached) $ECHO_C" >&6
2638
3422
else
2639
 
  cat >conftest.$ac_ext <<_ACEOF
2640
 
/* confdefs.h.  */
2641
 
_ACEOF
2642
 
cat confdefs.h >>conftest.$ac_ext
2643
 
cat >>conftest.$ac_ext <<_ACEOF
2644
 
/* end confdefs.h.  */
2645
 
 
2646
 
int
2647
 
main ()
2648
 
{
2649
 
 
2650
 
  ;
2651
 
  return 0;
2652
 
}
2653
 
_ACEOF
2654
 
rm -f conftest.$ac_objext
2655
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656
 
  (eval $ac_compile) 2>conftest.er1
2657
 
  ac_status=$?
2658
 
  grep -v '^ *+' conftest.er1 >conftest.err
2659
 
  rm -f conftest.er1
2660
 
  cat conftest.err >&5
2661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662
 
  (exit $ac_status); } &&
2663
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665
 
  (eval $ac_try) 2>&5
2666
 
  ac_status=$?
2667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668
 
  (exit $ac_status); }; } &&
2669
 
         { ac_try='test -s conftest.$ac_objext'
2670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671
 
  (eval $ac_try) 2>&5
2672
 
  ac_status=$?
2673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674
 
  (exit $ac_status); }; }; then
2675
 
  ac_cv_prog_cc_g=yes
2676
 
else
2677
 
  echo "$as_me: failed program was:" >&5
2678
 
sed 's/^/| /' conftest.$ac_ext >&5
2679
 
 
2680
 
ac_cv_prog_cc_g=no
2681
 
fi
2682
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683
 
fi
2684
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3423
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3424
   ac_c_werror_flag=yes
 
3425
   ac_cv_prog_cc_g=no
 
3426
   CFLAGS="-g"
 
3427
   cat >conftest.$ac_ext <<_ACEOF
 
3428
/* confdefs.h.  */
 
3429
_ACEOF
 
3430
cat confdefs.h >>conftest.$ac_ext
 
3431
cat >>conftest.$ac_ext <<_ACEOF
 
3432
/* end confdefs.h.  */
 
3433
 
 
3434
int
 
3435
main ()
 
3436
{
 
3437
 
 
3438
  ;
 
3439
  return 0;
 
3440
}
 
3441
_ACEOF
 
3442
rm -f conftest.$ac_objext
 
3443
if { (ac_try="$ac_compile"
 
3444
case "(($ac_try" in
 
3445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3446
  *) ac_try_echo=$ac_try;;
 
3447
esac
 
3448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3449
  (eval "$ac_compile") 2>conftest.er1
 
3450
  ac_status=$?
 
3451
  grep -v '^ *+' conftest.er1 >conftest.err
 
3452
  rm -f conftest.er1
 
3453
  cat conftest.err >&5
 
3454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3455
  (exit $ac_status); } &&
 
3456
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3457
  { (case "(($ac_try" in
 
3458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3459
  *) ac_try_echo=$ac_try;;
 
3460
esac
 
3461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3462
  (eval "$ac_try") 2>&5
 
3463
  ac_status=$?
 
3464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3465
  (exit $ac_status); }; } &&
 
3466
         { ac_try='test -s conftest.$ac_objext'
 
3467
  { (case "(($ac_try" in
 
3468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3469
  *) ac_try_echo=$ac_try;;
 
3470
esac
 
3471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3472
  (eval "$ac_try") 2>&5
 
3473
  ac_status=$?
 
3474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3475
  (exit $ac_status); }; }; then
 
3476
  ac_cv_prog_cc_g=yes
 
3477
else
 
3478
  echo "$as_me: failed program was:" >&5
 
3479
sed 's/^/| /' conftest.$ac_ext >&5
 
3480
 
 
3481
        CFLAGS=""
 
3482
      cat >conftest.$ac_ext <<_ACEOF
 
3483
/* confdefs.h.  */
 
3484
_ACEOF
 
3485
cat confdefs.h >>conftest.$ac_ext
 
3486
cat >>conftest.$ac_ext <<_ACEOF
 
3487
/* end confdefs.h.  */
 
3488
 
 
3489
int
 
3490
main ()
 
3491
{
 
3492
 
 
3493
  ;
 
3494
  return 0;
 
3495
}
 
3496
_ACEOF
 
3497
rm -f conftest.$ac_objext
 
3498
if { (ac_try="$ac_compile"
 
3499
case "(($ac_try" in
 
3500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3501
  *) ac_try_echo=$ac_try;;
 
3502
esac
 
3503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3504
  (eval "$ac_compile") 2>conftest.er1
 
3505
  ac_status=$?
 
3506
  grep -v '^ *+' conftest.er1 >conftest.err
 
3507
  rm -f conftest.er1
 
3508
  cat conftest.err >&5
 
3509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3510
  (exit $ac_status); } &&
 
3511
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3512
  { (case "(($ac_try" in
 
3513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3514
  *) ac_try_echo=$ac_try;;
 
3515
esac
 
3516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3517
  (eval "$ac_try") 2>&5
 
3518
  ac_status=$?
 
3519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3520
  (exit $ac_status); }; } &&
 
3521
         { ac_try='test -s conftest.$ac_objext'
 
3522
  { (case "(($ac_try" in
 
3523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3524
  *) ac_try_echo=$ac_try;;
 
3525
esac
 
3526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3527
  (eval "$ac_try") 2>&5
 
3528
  ac_status=$?
 
3529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3530
  (exit $ac_status); }; }; then
 
3531
  :
 
3532
else
 
3533
  echo "$as_me: failed program was:" >&5
 
3534
sed 's/^/| /' conftest.$ac_ext >&5
 
3535
 
 
3536
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3537
         CFLAGS="-g"
 
3538
         cat >conftest.$ac_ext <<_ACEOF
 
3539
/* confdefs.h.  */
 
3540
_ACEOF
 
3541
cat confdefs.h >>conftest.$ac_ext
 
3542
cat >>conftest.$ac_ext <<_ACEOF
 
3543
/* end confdefs.h.  */
 
3544
 
 
3545
int
 
3546
main ()
 
3547
{
 
3548
 
 
3549
  ;
 
3550
  return 0;
 
3551
}
 
3552
_ACEOF
 
3553
rm -f conftest.$ac_objext
 
3554
if { (ac_try="$ac_compile"
 
3555
case "(($ac_try" in
 
3556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3557
  *) ac_try_echo=$ac_try;;
 
3558
esac
 
3559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3560
  (eval "$ac_compile") 2>conftest.er1
 
3561
  ac_status=$?
 
3562
  grep -v '^ *+' conftest.er1 >conftest.err
 
3563
  rm -f conftest.er1
 
3564
  cat conftest.err >&5
 
3565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3566
  (exit $ac_status); } &&
 
3567
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3568
  { (case "(($ac_try" in
 
3569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3570
  *) ac_try_echo=$ac_try;;
 
3571
esac
 
3572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3573
  (eval "$ac_try") 2>&5
 
3574
  ac_status=$?
 
3575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3576
  (exit $ac_status); }; } &&
 
3577
         { ac_try='test -s conftest.$ac_objext'
 
3578
  { (case "(($ac_try" in
 
3579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3580
  *) ac_try_echo=$ac_try;;
 
3581
esac
 
3582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3583
  (eval "$ac_try") 2>&5
 
3584
  ac_status=$?
 
3585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3586
  (exit $ac_status); }; }; then
 
3587
  ac_cv_prog_cc_g=yes
 
3588
else
 
3589
  echo "$as_me: failed program was:" >&5
 
3590
sed 's/^/| /' conftest.$ac_ext >&5
 
3591
 
 
3592
 
 
3593
fi
 
3594
 
 
3595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3596
fi
 
3597
 
 
3598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3599
fi
 
3600
 
 
3601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3602
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3603
fi
 
3604
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3605
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2686
3606
if test "$ac_test_CFLAGS" = set; then
2687
3607
  CFLAGS=$ac_save_CFLAGS
2688
3608
elif test $ac_cv_prog_cc_g = yes; then
2698
3618
    CFLAGS=
2699
3619
  fi
2700
3620
fi
2701
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2702
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2703
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3621
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3622
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3623
if test "${ac_cv_prog_cc_c89+set}" = set; then
2704
3624
  echo $ECHO_N "(cached) $ECHO_C" >&6
2705
3625
else
2706
 
  ac_cv_prog_cc_stdc=no
 
3626
  ac_cv_prog_cc_c89=no
2707
3627
ac_save_CC=$CC
2708
3628
cat >conftest.$ac_ext <<_ACEOF
2709
3629
/* confdefs.h.  */
2737
3657
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2738
3658
   function prototypes and stuff, but not '\xHH' hex character constants.
2739
3659
   These don't provoke an error unfortunately, instead are silently treated
2740
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3660
   as 'x'.  The following induces an error, until -std is added to get
2741
3661
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2742
3662
   array size at least.  It's necessary to write '\x00'==0 to get something
2743
 
   that's true only with -std1.  */
 
3663
   that's true only with -std.  */
2744
3664
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2745
3665
 
 
3666
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3667
   inside strings and character constants.  */
 
3668
#define FOO(x) 'x'
 
3669
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3670
 
2746
3671
int test (int i, double x);
2747
3672
struct s1 {int (*f) (int a);};
2748
3673
struct s2 {int (*f) (double a);};
2757
3682
  return 0;
2758
3683
}
2759
3684
_ACEOF
2760
 
# Don't try gcc -ansi; that turns off useful extensions and
2761
 
# breaks some systems' header files.
2762
 
# AIX                   -qlanglvl=ansi
2763
 
# Ultrix and OSF/1      -std1
2764
 
# HP-UX 10.20 and later -Ae
2765
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2766
 
# SVR4                  -Xc -D__EXTENSIONS__
2767
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3685
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3686
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768
3687
do
2769
3688
  CC="$ac_save_CC $ac_arg"
2770
3689
  rm -f conftest.$ac_objext
2771
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772
 
  (eval $ac_compile) 2>conftest.er1
 
3690
if { (ac_try="$ac_compile"
 
3691
case "(($ac_try" in
 
3692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3693
  *) ac_try_echo=$ac_try;;
 
3694
esac
 
3695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3696
  (eval "$ac_compile") 2>conftest.er1
2773
3697
  ac_status=$?
2774
3698
  grep -v '^ *+' conftest.er1 >conftest.err
2775
3699
  rm -f conftest.er1
2776
3700
  cat conftest.err >&5
2777
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
3702
  (exit $ac_status); } &&
2779
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781
 
  (eval $ac_try) 2>&5
 
3703
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3704
  { (case "(($ac_try" in
 
3705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3706
  *) ac_try_echo=$ac_try;;
 
3707
esac
 
3708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3709
  (eval "$ac_try") 2>&5
2782
3710
  ac_status=$?
2783
3711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
3712
  (exit $ac_status); }; } &&
2785
3713
         { ac_try='test -s conftest.$ac_objext'
2786
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787
 
  (eval $ac_try) 2>&5
 
3714
  { (case "(($ac_try" in
 
3715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3716
  *) ac_try_echo=$ac_try;;
 
3717
esac
 
3718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3719
  (eval "$ac_try") 2>&5
2788
3720
  ac_status=$?
2789
3721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
3722
  (exit $ac_status); }; }; then
2791
 
  ac_cv_prog_cc_stdc=$ac_arg
2792
 
break
 
3723
  ac_cv_prog_cc_c89=$ac_arg
2793
3724
else
2794
3725
  echo "$as_me: failed program was:" >&5
2795
3726
sed 's/^/| /' conftest.$ac_ext >&5
2796
3727
 
 
3728
 
2797
3729
fi
2798
 
rm -f conftest.err conftest.$ac_objext
 
3730
 
 
3731
rm -f core conftest.err conftest.$ac_objext
 
3732
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2799
3733
done
2800
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3734
rm -f conftest.$ac_ext
2801
3735
CC=$ac_save_CC
2802
3736
 
2803
3737
fi
2804
 
 
2805
 
case "x$ac_cv_prog_cc_stdc" in
2806
 
  x|xno)
2807
 
    echo "$as_me:$LINENO: result: none needed" >&5
2808
 
echo "${ECHO_T}none needed" >&6 ;;
 
3738
# AC_CACHE_VAL
 
3739
case "x$ac_cv_prog_cc_c89" in
 
3740
  x)
 
3741
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3742
echo "${ECHO_T}none needed" >&6; } ;;
 
3743
  xno)
 
3744
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3745
echo "${ECHO_T}unsupported" >&6; } ;;
2809
3746
  *)
2810
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2811
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2812
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3747
    CC="$CC $ac_cv_prog_cc_c89"
 
3748
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3749
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2813
3750
esac
2814
3751
 
2815
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2816
 
# in C++ we need to declare it.  In case someone uses the same compiler
2817
 
# for both compiling C and C++ we need to have the C++ compiler decide
2818
 
# the declaration of exit, since it's the most demanding environment.
2819
 
cat >conftest.$ac_ext <<_ACEOF
2820
 
#ifndef __cplusplus
2821
 
  choke me
2822
 
#endif
2823
 
_ACEOF
2824
 
rm -f conftest.$ac_objext
2825
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826
 
  (eval $ac_compile) 2>conftest.er1
2827
 
  ac_status=$?
2828
 
  grep -v '^ *+' conftest.er1 >conftest.err
2829
 
  rm -f conftest.er1
2830
 
  cat conftest.err >&5
2831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
 
  (exit $ac_status); } &&
2833
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835
 
  (eval $ac_try) 2>&5
2836
 
  ac_status=$?
2837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838
 
  (exit $ac_status); }; } &&
2839
 
         { ac_try='test -s conftest.$ac_objext'
2840
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841
 
  (eval $ac_try) 2>&5
2842
 
  ac_status=$?
2843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
 
  (exit $ac_status); }; }; then
2845
 
  for ac_declaration in \
2846
 
   '' \
2847
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2848
 
   'extern "C" void std::exit (int); using std::exit;' \
2849
 
   'extern "C" void exit (int) throw ();' \
2850
 
   'extern "C" void exit (int);' \
2851
 
   'void exit (int);'
2852
 
do
2853
 
  cat >conftest.$ac_ext <<_ACEOF
2854
 
/* confdefs.h.  */
2855
 
_ACEOF
2856
 
cat confdefs.h >>conftest.$ac_ext
2857
 
cat >>conftest.$ac_ext <<_ACEOF
2858
 
/* end confdefs.h.  */
2859
 
$ac_declaration
2860
 
#include <stdlib.h>
2861
 
int
2862
 
main ()
2863
 
{
2864
 
exit (42);
2865
 
  ;
2866
 
  return 0;
2867
 
}
2868
 
_ACEOF
2869
 
rm -f conftest.$ac_objext
2870
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871
 
  (eval $ac_compile) 2>conftest.er1
2872
 
  ac_status=$?
2873
 
  grep -v '^ *+' conftest.er1 >conftest.err
2874
 
  rm -f conftest.er1
2875
 
  cat conftest.err >&5
2876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
 
  (exit $ac_status); } &&
2878
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2879
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880
 
  (eval $ac_try) 2>&5
2881
 
  ac_status=$?
2882
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883
 
  (exit $ac_status); }; } &&
2884
 
         { ac_try='test -s conftest.$ac_objext'
2885
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886
 
  (eval $ac_try) 2>&5
2887
 
  ac_status=$?
2888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
 
  (exit $ac_status); }; }; then
2890
 
  :
2891
 
else
2892
 
  echo "$as_me: failed program was:" >&5
2893
 
sed 's/^/| /' conftest.$ac_ext >&5
2894
 
 
2895
 
continue
2896
 
fi
2897
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898
 
  cat >conftest.$ac_ext <<_ACEOF
2899
 
/* confdefs.h.  */
2900
 
_ACEOF
2901
 
cat confdefs.h >>conftest.$ac_ext
2902
 
cat >>conftest.$ac_ext <<_ACEOF
2903
 
/* end confdefs.h.  */
2904
 
$ac_declaration
2905
 
int
2906
 
main ()
2907
 
{
2908
 
exit (42);
2909
 
  ;
2910
 
  return 0;
2911
 
}
2912
 
_ACEOF
2913
 
rm -f conftest.$ac_objext
2914
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915
 
  (eval $ac_compile) 2>conftest.er1
2916
 
  ac_status=$?
2917
 
  grep -v '^ *+' conftest.er1 >conftest.err
2918
 
  rm -f conftest.er1
2919
 
  cat conftest.err >&5
2920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
 
  (exit $ac_status); } &&
2922
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924
 
  (eval $ac_try) 2>&5
2925
 
  ac_status=$?
2926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927
 
  (exit $ac_status); }; } &&
2928
 
         { ac_try='test -s conftest.$ac_objext'
2929
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930
 
  (eval $ac_try) 2>&5
2931
 
  ac_status=$?
2932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
 
  (exit $ac_status); }; }; then
2934
 
  break
2935
 
else
2936
 
  echo "$as_me: failed program was:" >&5
2937
 
sed 's/^/| /' conftest.$ac_ext >&5
2938
 
 
2939
 
fi
2940
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941
 
done
2942
 
rm -f conftest*
2943
 
if test -n "$ac_declaration"; then
2944
 
  echo '#ifdef __cplusplus' >>confdefs.h
2945
 
  echo $ac_declaration      >>confdefs.h
2946
 
  echo '#endif'             >>confdefs.h
2947
 
fi
2948
 
 
2949
 
else
2950
 
  echo "$as_me: failed program was:" >&5
2951
 
sed 's/^/| /' conftest.$ac_ext >&5
2952
 
 
2953
 
fi
2954
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3752
 
2955
3753
ac_ext=c
2956
3754
ac_cpp='$CPP $CPPFLAGS'
2957
3755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958
3756
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959
3757
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
 
rm -f .deps 2>/dev/null
2961
 
mkdir .deps 2>/dev/null
2962
 
if test -d .deps; then
2963
 
  DEPDIR=.deps
2964
 
else
2965
 
  # MS-DOS does not allow filenames that begin with a dot.
2966
 
  DEPDIR=_deps
2967
 
fi
2968
 
rmdir .deps 2>/dev/null
2969
 
 
2970
 
 
2971
 
          ac_config_commands="$ac_config_commands depfiles"
 
3758
DEPDIR="${am__leading_dot}deps"
 
3759
 
 
3760
ac_config_commands="$ac_config_commands depfiles"
2972
3761
 
2973
3762
 
2974
3763
am_make=${MAKE-make}
2975
3764
cat > confinc << 'END'
2976
 
doit:
 
3765
am__doit:
2977
3766
        @echo done
 
3767
.PHONY: am__doit
2978
3768
END
2979
3769
# If we don't find an include directive, just comment out the code.
2980
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2981
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3770
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3771
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2982
3772
am__include="#"
2983
3773
am__quote=
2984
3774
_am_result=none
2989
3779
# In particular we don't look at `^make:' because GNU make might
2990
3780
# be invoked under some other name (usually "gmake"), in which
2991
3781
# case it prints its new name instead of `make'.
2992
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
3782
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2993
3783
   am__include=include
2994
3784
   am__quote=
2995
3785
   _am_result=GNU
3005
3795
fi
3006
3796
 
3007
3797
 
3008
 
echo "$as_me:$LINENO: result: $_am_result" >&5
3009
 
echo "${ECHO_T}$_am_result" >&6
 
3798
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3799
echo "${ECHO_T}$_am_result" >&6; }
3010
3800
rm -f confinc confmf
3011
3801
 
3012
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3802
# Check whether --enable-dependency-tracking was given.
3013
3803
if test "${enable_dependency_tracking+set}" = set; then
3014
 
  enableval="$enable_dependency_tracking"
 
3804
  enableval=$enable_dependency_tracking;
 
3805
fi
3015
3806
 
3016
 
fi;
3017
3807
if test "x$enable_dependency_tracking" != xno; then
3018
3808
  am_depcomp="$ac_aux_dir/depcomp"
3019
3809
  AMDEPBACKSLASH='\'
3033
3823
 
3034
3824
depcc="$CC"   am_compiler_list=
3035
3825
 
3036
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3037
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3826
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3827
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3038
3828
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3039
3829
  echo $ECHO_N "(cached) $ECHO_C" >&6
3040
3830
else
3049
3839
  # using a relative directory.
3050
3840
  cp "$am_depcomp" conftest.dir
3051
3841
  cd conftest.dir
 
3842
  # We will build objects and dependencies in a subdirectory because
 
3843
  # it helps to detect inapplicable dependency modes.  For instance
 
3844
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3845
  # side effect of compilation, but ICC will put the dependencies in
 
3846
  # the current directory while Tru64 will put them in the object
 
3847
  # directory.
 
3848
  mkdir sub
3052
3849
 
3053
3850
  am_cv_CC_dependencies_compiler_type=none
3054
3851
  if test "$am_compiler_list" = ""; then
3055
3852
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3056
3853
  fi
3057
3854
  for depmode in $am_compiler_list; do
 
3855
    # Setup a source with many dependencies, because some compilers
 
3856
    # like to wrap large dependency lists on column 80 (with \), and
 
3857
    # we should not choose a depcomp mode which is confused by this.
 
3858
    #
3058
3859
    # We need to recreate these files for each test, as the compiler may
3059
3860
    # overwrite some of them when testing with obscure command lines.
3060
3861
    # This happens at least with the AIX C compiler.
3061
 
    echo '#include "conftest.h"' > conftest.c
3062
 
    echo 'int i;' > conftest.h
3063
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3862
    : > sub/conftest.c
 
3863
    for i in 1 2 3 4 5 6; do
 
3864
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3865
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3866
      # Solaris 8's {/usr,}/bin/sh.
 
3867
      touch sub/conftst$i.h
 
3868
    done
 
3869
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3064
3870
 
3065
3871
    case $depmode in
3066
3872
    nosideeffect)
3078
3884
    # mode.  It turns out that the SunPro C++ compiler does not properly
3079
3885
    # handle `-M -o', and we need to detect this.
3080
3886
    if depmode=$depmode \
3081
 
       source=conftest.c object=conftest.o \
3082
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3083
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3084
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3887
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3888
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3889
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3890
         >/dev/null 2>conftest.err &&
 
3891
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3892
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3085
3893
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3086
 
      am_cv_CC_dependencies_compiler_type=$depmode
3087
 
      break
 
3894
      # icc doesn't choke on unknown options, it will just issue warnings
 
3895
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3896
      # that says an option was ignored or not supported.
 
3897
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3898
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3899
      # The diagnosis changed in icc 8.0:
 
3900
      #   icc: Command line remark: option '-MP' not supported
 
3901
      if (grep 'ignoring option' conftest.err ||
 
3902
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3903
        am_cv_CC_dependencies_compiler_type=$depmode
 
3904
        break
 
3905
      fi
3088
3906
    fi
3089
3907
  done
3090
3908
 
3095
3913
fi
3096
3914
 
3097
3915
fi
3098
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3099
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3916
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3917
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3100
3918
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3101
3919
 
3102
3920
 
3103
 
# Check whether --enable-shared or --disable-shared was given.
 
3921
 
 
3922
if
 
3923
  test "x$enable_dependency_tracking" != xno \
 
3924
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3925
  am__fastdepCC_TRUE=
 
3926
  am__fastdepCC_FALSE='#'
 
3927
else
 
3928
  am__fastdepCC_TRUE='#'
 
3929
  am__fastdepCC_FALSE=
 
3930
fi
 
3931
 
 
3932
 
 
3933
# Check whether --enable-shared was given.
3104
3934
if test "${enable_shared+set}" = set; then
3105
 
  enableval="$enable_shared"
3106
 
  p=${PACKAGE-default}
 
3935
  enableval=$enable_shared; p=${PACKAGE-default}
3107
3936
    case $enableval in
3108
3937
    yes) enable_shared=yes ;;
3109
3938
    no) enable_shared=no ;;
3122
3951
    esac
3123
3952
else
3124
3953
  enable_shared=yes
3125
 
fi;
3126
 
 
3127
 
# Check whether --enable-static or --disable-static was given.
 
3954
fi
 
3955
 
 
3956
 
 
3957
# Check whether --enable-static was given.
3128
3958
if test "${enable_static+set}" = set; then
3129
 
  enableval="$enable_static"
3130
 
  p=${PACKAGE-default}
 
3959
  enableval=$enable_static; p=${PACKAGE-default}
3131
3960
    case $enableval in
3132
3961
    yes) enable_static=yes ;;
3133
3962
    no) enable_static=no ;;
3146
3975
    esac
3147
3976
else
3148
3977
  enable_static=yes
3149
 
fi;
3150
 
 
3151
 
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3978
fi
 
3979
 
 
3980
 
 
3981
# Check whether --enable-fast-install was given.
3152
3982
if test "${enable_fast_install+set}" = set; then
3153
 
  enableval="$enable_fast_install"
3154
 
  p=${PACKAGE-default}
 
3983
  enableval=$enable_fast_install; p=${PACKAGE-default}
3155
3984
    case $enableval in
3156
3985
    yes) enable_fast_install=yes ;;
3157
3986
    no) enable_fast_install=no ;;
3170
3999
    esac
3171
4000
else
3172
4001
  enable_fast_install=yes
3173
 
fi;
3174
 
 
3175
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3176
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4002
fi
 
4003
 
 
4004
 
 
4005
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4006
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3177
4007
if test "${lt_cv_path_SED+set}" = set; then
3178
4008
  echo $ECHO_N "(cached) $ECHO_C" >&6
3179
4009
else
3197
4027
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3198
4028
# along with /bin/sed that truncates output.
3199
4029
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3200
 
  test ! -f $lt_ac_sed && break
 
4030
  test ! -f $lt_ac_sed && continue
3201
4031
  cat /dev/null > conftest.in
3202
4032
  lt_ac_count=0
3203
4033
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222
4052
    fi
3223
4053
  done
3224
4054
done
 
4055
 
 
4056
fi
 
4057
 
3225
4058
SED=$lt_cv_path_SED
3226
 
 
3227
 
fi
3228
 
 
3229
 
echo "$as_me:$LINENO: result: $SED" >&5
3230
 
echo "${ECHO_T}$SED" >&6
3231
 
 
3232
 
echo "$as_me:$LINENO: checking for egrep" >&5
3233
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234
 
if test "${ac_cv_prog_egrep+set}" = set; then
3235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3236
 
else
3237
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3238
 
    then ac_cv_prog_egrep='grep -E'
3239
 
    else ac_cv_prog_egrep='egrep'
3240
 
    fi
3241
 
fi
3242
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244
 
 EGREP=$ac_cv_prog_egrep
3245
 
 
3246
 
 
3247
 
 
3248
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4059
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4060
echo "${ECHO_T}$SED" >&6; }
 
4061
 
 
4062
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4063
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4064
if test "${ac_cv_path_GREP+set}" = set; then
 
4065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4066
else
 
4067
  # Extract the first word of "grep ggrep" to use in msg output
 
4068
if test -z "$GREP"; then
 
4069
set dummy grep ggrep; ac_prog_name=$2
 
4070
if test "${ac_cv_path_GREP+set}" = set; then
 
4071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4072
else
 
4073
  ac_path_GREP_found=false
 
4074
# Loop through the user's path and test for each of PROGNAME-LIST
 
4075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4076
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4077
do
 
4078
  IFS=$as_save_IFS
 
4079
  test -z "$as_dir" && as_dir=.
 
4080
  for ac_prog in grep ggrep; do
 
4081
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4082
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4083
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
 
4084
    # Check for GNU ac_path_GREP and select it if it is found.
 
4085
  # Check for GNU $ac_path_GREP
 
4086
case `"$ac_path_GREP" --version 2>&1` in
 
4087
*GNU*)
 
4088
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4089
*)
 
4090
  ac_count=0
 
4091
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4092
  while :
 
4093
  do
 
4094
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4095
    mv "conftest.tmp" "conftest.in"
 
4096
    cp "conftest.in" "conftest.nl"
 
4097
    echo 'GREP' >> "conftest.nl"
 
4098
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4099
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4100
    ac_count=`expr $ac_count + 1`
 
4101
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4102
      # Best one so far, save it but keep looking for a better one
 
4103
      ac_cv_path_GREP="$ac_path_GREP"
 
4104
      ac_path_GREP_max=$ac_count
 
4105
    fi
 
4106
    # 10*(2^10) chars as input seems more than enough
 
4107
    test $ac_count -gt 10 && break
 
4108
  done
 
4109
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4110
esac
 
4111
 
 
4112
 
 
4113
    $ac_path_GREP_found && break 3
 
4114
  done
 
4115
done
 
4116
 
 
4117
done
 
4118
IFS=$as_save_IFS
 
4119
 
 
4120
 
 
4121
fi
 
4122
 
 
4123
GREP="$ac_cv_path_GREP"
 
4124
if test -z "$GREP"; then
 
4125
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4126
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4127
   { (exit 1); exit 1; }; }
 
4128
fi
 
4129
 
 
4130
else
 
4131
  ac_cv_path_GREP=$GREP
 
4132
fi
 
4133
 
 
4134
 
 
4135
fi
 
4136
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4137
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4138
 GREP="$ac_cv_path_GREP"
 
4139
 
 
4140
 
 
4141
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4142
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4143
if test "${ac_cv_path_EGREP+set}" = set; then
 
4144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4145
else
 
4146
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4147
   then ac_cv_path_EGREP="$GREP -E"
 
4148
   else
 
4149
     # Extract the first word of "egrep" to use in msg output
 
4150
if test -z "$EGREP"; then
 
4151
set dummy egrep; ac_prog_name=$2
 
4152
if test "${ac_cv_path_EGREP+set}" = set; then
 
4153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4154
else
 
4155
  ac_path_EGREP_found=false
 
4156
# Loop through the user's path and test for each of PROGNAME-LIST
 
4157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4158
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4159
do
 
4160
  IFS=$as_save_IFS
 
4161
  test -z "$as_dir" && as_dir=.
 
4162
  for ac_prog in egrep; do
 
4163
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4164
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4165
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
 
4166
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4167
  # Check for GNU $ac_path_EGREP
 
4168
case `"$ac_path_EGREP" --version 2>&1` in
 
4169
*GNU*)
 
4170
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4171
*)
 
4172
  ac_count=0
 
4173
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4174
  while :
 
4175
  do
 
4176
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4177
    mv "conftest.tmp" "conftest.in"
 
4178
    cp "conftest.in" "conftest.nl"
 
4179
    echo 'EGREP' >> "conftest.nl"
 
4180
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4181
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4182
    ac_count=`expr $ac_count + 1`
 
4183
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4184
      # Best one so far, save it but keep looking for a better one
 
4185
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4186
      ac_path_EGREP_max=$ac_count
 
4187
    fi
 
4188
    # 10*(2^10) chars as input seems more than enough
 
4189
    test $ac_count -gt 10 && break
 
4190
  done
 
4191
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4192
esac
 
4193
 
 
4194
 
 
4195
    $ac_path_EGREP_found && break 3
 
4196
  done
 
4197
done
 
4198
 
 
4199
done
 
4200
IFS=$as_save_IFS
 
4201
 
 
4202
 
 
4203
fi
 
4204
 
 
4205
EGREP="$ac_cv_path_EGREP"
 
4206
if test -z "$EGREP"; then
 
4207
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4208
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4209
   { (exit 1); exit 1; }; }
 
4210
fi
 
4211
 
 
4212
else
 
4213
  ac_cv_path_EGREP=$EGREP
 
4214
fi
 
4215
 
 
4216
 
 
4217
   fi
 
4218
fi
 
4219
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4220
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4221
 EGREP="$ac_cv_path_EGREP"
 
4222
 
 
4223
 
 
4224
 
 
4225
# Check whether --with-gnu-ld was given.
3249
4226
if test "${with_gnu_ld+set}" = set; then
3250
 
  withval="$with_gnu_ld"
3251
 
  test "$withval" = no || with_gnu_ld=yes
 
4227
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3252
4228
else
3253
4229
  with_gnu_ld=no
3254
 
fi;
 
4230
fi
 
4231
 
3255
4232
ac_prog=ld
3256
4233
if test "$GCC" = yes; then
3257
4234
  # Check if gcc -print-prog-name=ld gives a path.
3258
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3259
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4235
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4236
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3260
4237
  case $host in
3261
4238
  *-*-mingw*)
3262
4239
    # gcc leaves a trailing carriage return which upsets mingw
3285
4262
    ;;
3286
4263
  esac
3287
4264
elif test "$with_gnu_ld" = yes; then
3288
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3289
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4265
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4266
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3290
4267
else
3291
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3292
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4268
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4269
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3293
4270
fi
3294
4271
if test "${lt_cv_path_LD+set}" = set; then
3295
4272
  echo $ECHO_N "(cached) $ECHO_C" >&6
3302
4279
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3303
4280
      lt_cv_path_LD="$ac_dir/$ac_prog"
3304
4281
      # Check to see if the program is GNU ld.  I'd rather use --version,
3305
 
      # but apparently some GNU ld's only accept -v.
 
4282
      # but apparently some variants of GNU ld only accept -v.
3306
4283
      # Break only if it was the GNU/non-GNU ld that we prefer.
3307
4284
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3308
4285
      *GNU* | *'with BFD'*)
3322
4299
 
3323
4300
LD="$lt_cv_path_LD"
3324
4301
if test -n "$LD"; then
3325
 
  echo "$as_me:$LINENO: result: $LD" >&5
3326
 
echo "${ECHO_T}$LD" >&6
 
4302
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4303
echo "${ECHO_T}$LD" >&6; }
3327
4304
else
3328
 
  echo "$as_me:$LINENO: result: no" >&5
3329
 
echo "${ECHO_T}no" >&6
 
4305
  { echo "$as_me:$LINENO: result: no" >&5
 
4306
echo "${ECHO_T}no" >&6; }
3330
4307
fi
3331
4308
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3332
4309
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3333
4310
   { (exit 1); exit 1; }; }
3334
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3335
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4311
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4312
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3336
4313
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3337
4314
  echo $ECHO_N "(cached) $ECHO_C" >&6
3338
4315
else
3339
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4316
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3340
4317
case `$LD -v 2>&1 </dev/null` in
3341
4318
*GNU* | *'with BFD'*)
3342
4319
  lt_cv_prog_gnu_ld=yes
3346
4323
  ;;
3347
4324
esac
3348
4325
fi
3349
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3350
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4326
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4327
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3351
4328
with_gnu_ld=$lt_cv_prog_gnu_ld
3352
4329
 
3353
4330
 
3354
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3355
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4331
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4332
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3356
4333
if test "${lt_cv_ld_reload_flag+set}" = set; then
3357
4334
  echo $ECHO_N "(cached) $ECHO_C" >&6
3358
4335
else
3359
4336
  lt_cv_ld_reload_flag='-r'
3360
4337
fi
3361
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3362
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4338
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4339
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3363
4340
reload_flag=$lt_cv_ld_reload_flag
3364
4341
case $reload_flag in
3365
4342
"" | " "*) ;;
3366
4343
*) reload_flag=" $reload_flag" ;;
3367
4344
esac
3368
4345
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4346
case $host_os in
 
4347
  darwin*)
 
4348
    if test "$GCC" = yes; then
 
4349
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4350
    else
 
4351
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4352
    fi
 
4353
    ;;
 
4354
esac
3369
4355
 
3370
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3371
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4356
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4357
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3372
4358
if test "${lt_cv_path_NM+set}" = set; then
3373
4359
  echo $ECHO_N "(cached) $ECHO_C" >&6
3374
4360
else
3376
4362
  # Let the user override the test.
3377
4363
  lt_cv_path_NM="$NM"
3378
4364
else
3379
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3380
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3381
 
    IFS="$lt_save_ifs"
3382
 
    test -z "$ac_dir" && ac_dir=.
3383
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3384
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3385
 
      # Check to see if the nm accepts a BSD-compat flag.
3386
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3387
 
      #   nm: unknown option "B" ignored
3388
 
      # Tru64's nm complains that /dev/null is an invalid object file
3389
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3390
 
      */dev/null* | *'Invalid file or object type'*)
3391
 
        lt_cv_path_NM="$tmp_nm -B"
3392
 
        break
3393
 
        ;;
3394
 
      *)
3395
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3396
 
        */dev/null*)
3397
 
          lt_cv_path_NM="$tmp_nm -p"
 
4365
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4366
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4367
    lt_nm_to_check="$lt_nm_to_check nm"
 
4368
  fi
 
4369
  for lt_tmp_nm in $lt_nm_to_check; do
 
4370
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4371
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4372
      IFS="$lt_save_ifs"
 
4373
      test -z "$ac_dir" && ac_dir=.
 
4374
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4375
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4376
        # Check to see if the nm accepts a BSD-compat flag.
 
4377
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4378
        #   nm: unknown option "B" ignored
 
4379
        # Tru64's nm complains that /dev/null is an invalid object file
 
4380
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4381
        */dev/null* | *'Invalid file or object type'*)
 
4382
          lt_cv_path_NM="$tmp_nm -B"
3398
4383
          break
3399
4384
          ;;
3400
4385
        *)
3401
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3402
 
          continue # so that we can try to find one that supports BSD flags
 
4386
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4387
          */dev/null*)
 
4388
            lt_cv_path_NM="$tmp_nm -p"
 
4389
            break
 
4390
            ;;
 
4391
          *)
 
4392
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4393
            continue # so that we can try to find one that supports BSD flags
 
4394
            ;;
 
4395
          esac
3403
4396
          ;;
3404
4397
        esac
3405
 
      esac
3406
 
    fi
 
4398
      fi
 
4399
    done
 
4400
    IFS="$lt_save_ifs"
3407
4401
  done
3408
 
  IFS="$lt_save_ifs"
3409
4402
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3410
4403
fi
3411
4404
fi
3412
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3413
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4405
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4406
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3414
4407
NM="$lt_cv_path_NM"
3415
4408
 
3416
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3417
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4409
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4410
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3418
4411
LN_S=$as_ln_s
3419
4412
if test "$LN_S" = "ln -s"; then
3420
 
  echo "$as_me:$LINENO: result: yes" >&5
3421
 
echo "${ECHO_T}yes" >&6
 
4413
  { echo "$as_me:$LINENO: result: yes" >&5
 
4414
echo "${ECHO_T}yes" >&6; }
3422
4415
else
3423
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3424
 
echo "${ECHO_T}no, using $LN_S" >&6
 
4416
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4417
echo "${ECHO_T}no, using $LN_S" >&6; }
3425
4418
fi
3426
4419
 
3427
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3428
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4420
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4421
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3429
4422
if test "${lt_cv_deplibs_check_method+set}" = set; then
3430
4423
  echo $ECHO_N "(cached) $ECHO_C" >&6
3431
4424
else
3452
4445
  lt_cv_deplibs_check_method=pass_all
3453
4446
  ;;
3454
4447
 
3455
 
bsdi4*)
 
4448
bsdi[45]*)
3456
4449
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3457
4450
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3458
4451
  lt_cv_file_magic_test_file=/shlib/libc.so
3459
4452
  ;;
3460
4453
 
3461
4454
cygwin*)
3462
 
  # win32_libid is a shell function defined in ltmain.sh
 
4455
  # func_win32_libid is a shell function defined in ltmain.sh
3463
4456
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3464
 
  lt_cv_file_magic_cmd='win32_libid'
 
4457
  lt_cv_file_magic_cmd='func_win32_libid'
3465
4458
  ;;
3466
4459
 
3467
4460
mingw* | pw32*)
3468
4461
  # Base MSYS/MinGW do not provide the 'file' command needed by
3469
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
4462
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3470
4463
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3471
4464
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3472
4465
  ;;
3475
4468
  lt_cv_deplibs_check_method=pass_all
3476
4469
  ;;
3477
4470
 
3478
 
freebsd* | kfreebsd*-gnu)
 
4471
freebsd* | dragonfly*)
3479
4472
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3480
4473
    case $host_cpu in
3481
4474
    i*86 )
3482
4475
      # Not sure whether the presence of OpenBSD here was a mistake.
3483
4476
      # Let's accept both of them until this is cleared up.
3484
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4477
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3485
4478
      lt_cv_file_magic_cmd=/usr/bin/file
3486
4479
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3487
4480
      ;;
3497
4490
 
3498
4491
hpux10.20* | hpux11*)
3499
4492
  lt_cv_file_magic_cmd=/usr/bin/file
3500
 
  case "$host_cpu" in
 
4493
  case $host_cpu in
3501
4494
  ia64*)
3502
4495
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3503
4496
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3513
4506
  esac
3514
4507
  ;;
3515
4508
 
 
4509
interix3*)
 
4510
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4511
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4512
  ;;
 
4513
 
3516
4514
irix5* | irix6* | nonstopux*)
3517
4515
  case $LD in
3518
4516
  *-32|*"-32 ") libmagic=32-bit;;
3524
4522
  ;;
3525
4523
 
3526
4524
# This must be Linux ELF.
3527
 
linux*)
 
4525
linux* | k*bsd*-gnu)
3528
4526
  lt_cv_deplibs_check_method=pass_all
3529
4527
  ;;
3530
4528
 
3531
 
netbsd* | knetbsd*-gnu)
 
4529
netbsd* | netbsdelf*-gnu)
3532
4530
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3533
4531
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3534
4532
  else
3547
4545
  ;;
3548
4546
 
3549
4547
openbsd*)
3550
 
  lt_cv_file_magic_cmd=/usr/bin/file
3551
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3552
4548
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3553
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4549
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3554
4550
  else
3555
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4551
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3556
4552
  fi
3557
4553
  ;;
3558
4554
 
3560
4556
  lt_cv_deplibs_check_method=pass_all
3561
4557
  ;;
3562
4558
 
3563
 
sco3.2v5*)
3564
 
  lt_cv_deplibs_check_method=pass_all
3565
 
  ;;
3566
 
 
3567
4559
solaris*)
3568
4560
  lt_cv_deplibs_check_method=pass_all
3569
4561
  ;;
3570
4562
 
3571
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4563
sysv4 | sysv4.3*)
3572
4564
  case $host_vendor in
3573
4565
  motorola)
3574
4566
    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]'
3589
4581
  siemens)
3590
4582
    lt_cv_deplibs_check_method=pass_all
3591
4583
    ;;
 
4584
  pc)
 
4585
    lt_cv_deplibs_check_method=pass_all
 
4586
    ;;
3592
4587
  esac
3593
4588
  ;;
3594
4589
 
3595
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4590
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3596
4591
  lt_cv_deplibs_check_method=pass_all
3597
4592
  ;;
3598
4593
esac
3599
4594
 
3600
4595
fi
3601
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3602
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4596
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4597
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3603
4598
file_magic_cmd=$lt_cv_file_magic_cmd
3604
4599
deplibs_check_method=$lt_cv_deplibs_check_method
3605
4600
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3610
4605
# If no C compiler was specified, use CC.
3611
4606
LTCC=${LTCC-"$CC"}
3612
4607
 
 
4608
# If no C compiler flags were specified, use CFLAGS.
 
4609
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4610
 
3613
4611
# Allow CC to be a program name with arguments.
3614
4612
compiler=$CC
3615
4613
 
3616
4614
 
3617
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4615
# Check whether --enable-libtool-lock was given.
3618
4616
if test "${enable_libtool_lock+set}" = set; then
3619
 
  enableval="$enable_libtool_lock"
 
4617
  enableval=$enable_libtool_lock;
 
4618
fi
3620
4619
 
3621
 
fi;
3622
4620
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3623
4621
 
3624
4622
# Some flags need to be propagated to the compiler or linker for good
3645
4643
  ;;
3646
4644
*-*-irix6*)
3647
4645
  # Find out which ABI we are using.
3648
 
  echo '#line 3648 "configure"' > conftest.$ac_ext
 
4646
  echo '#line 4646 "configure"' > conftest.$ac_ext
3649
4647
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650
4648
  (eval $ac_compile) 2>&5
3651
4649
  ac_status=$?
3688
4686
  ac_status=$?
3689
4687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
4688
  (exit $ac_status); }; then
3691
 
    case "`/usr/bin/file conftest.o`" in
 
4689
    case `/usr/bin/file conftest.o` in
3692
4690
    *32-bit*)
3693
4691
      case $host in
3694
4692
        x86_64-*linux*)
3730
4728
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3731
4729
  SAVE_CFLAGS="$CFLAGS"
3732
4730
  CFLAGS="$CFLAGS -belf"
3733
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3734
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4731
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4732
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3735
4733
if test "${lt_cv_cc_needs_belf+set}" = set; then
3736
4734
  echo $ECHO_N "(cached) $ECHO_C" >&6
3737
4735
else
3757
4755
}
3758
4756
_ACEOF
3759
4757
rm -f conftest.$ac_objext conftest$ac_exeext
3760
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761
 
  (eval $ac_link) 2>conftest.er1
 
4758
if { (ac_try="$ac_link"
 
4759
case "(($ac_try" in
 
4760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4761
  *) ac_try_echo=$ac_try;;
 
4762
esac
 
4763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4764
  (eval "$ac_link") 2>conftest.er1
3762
4765
  ac_status=$?
3763
4766
  grep -v '^ *+' conftest.er1 >conftest.err
3764
4767
  rm -f conftest.er1
3765
4768
  cat conftest.err >&5
3766
4769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767
4770
  (exit $ac_status); } &&
3768
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3769
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770
 
  (eval $ac_try) 2>&5
 
4771
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4772
  { (case "(($ac_try" in
 
4773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4774
  *) ac_try_echo=$ac_try;;
 
4775
esac
 
4776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4777
  (eval "$ac_try") 2>&5
3771
4778
  ac_status=$?
3772
4779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
4780
  (exit $ac_status); }; } &&
3774
4781
         { ac_try='test -s conftest$ac_exeext'
3775
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776
 
  (eval $ac_try) 2>&5
 
4782
  { (case "(($ac_try" in
 
4783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4784
  *) ac_try_echo=$ac_try;;
 
4785
esac
 
4786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4787
  (eval "$ac_try") 2>&5
3777
4788
  ac_status=$?
3778
4789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
4790
  (exit $ac_status); }; }; then
3782
4793
  echo "$as_me: failed program was:" >&5
3783
4794
sed 's/^/| /' conftest.$ac_ext >&5
3784
4795
 
3785
 
lt_cv_cc_needs_belf=no
 
4796
        lt_cv_cc_needs_belf=no
3786
4797
fi
3787
 
rm -f conftest.err conftest.$ac_objext \
 
4798
 
 
4799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3788
4800
      conftest$ac_exeext conftest.$ac_ext
3789
4801
     ac_ext=c
3790
4802
ac_cpp='$CPP $CPPFLAGS'
3793
4805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
4806
 
3795
4807
fi
3796
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3797
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4808
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4809
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3798
4810
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3799
4811
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3800
4812
    CFLAGS="$SAVE_CFLAGS"
3801
4813
  fi
3802
4814
  ;;
 
4815
sparc*-*solaris*)
 
4816
  # Find out which ABI we are using.
 
4817
  echo 'int i;' > conftest.$ac_ext
 
4818
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4819
  (eval $ac_compile) 2>&5
 
4820
  ac_status=$?
 
4821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4822
  (exit $ac_status); }; then
 
4823
    case `/usr/bin/file conftest.o` in
 
4824
    *64-bit*)
 
4825
      case $lt_cv_prog_gnu_ld in
 
4826
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4827
      *)    LD="${LD-ld} -64" ;;
 
4828
      esac
 
4829
      ;;
 
4830
    esac
 
4831
  fi
 
4832
  rm -rf conftest*
 
4833
  ;;
 
4834
 
3803
4835
 
3804
4836
esac
3805
4837
 
3811
4843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812
4844
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813
4845
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3815
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4846
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4847
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3816
4848
# On Suns, sometimes $CPP names a directory.
3817
4849
if test -n "$CPP" && test -d "$CPP"; then
3818
4850
  CPP=
3846
4878
#endif
3847
4879
                     Syntax error
3848
4880
_ACEOF
3849
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4881
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4882
case "(($ac_try" in
 
4883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4884
  *) ac_try_echo=$ac_try;;
 
4885
esac
 
4886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4887
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851
4888
  ac_status=$?
3852
4889
  grep -v '^ *+' conftest.er1 >conftest.err
3853
4890
  rm -f conftest.er1
3872
4909
  # Broken: fails on valid input.
3873
4910
continue
3874
4911
fi
 
4912
 
3875
4913
rm -f conftest.err conftest.$ac_ext
3876
4914
 
3877
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4915
  # OK, works on sane cases.  Now check whether nonexistent headers
3878
4916
  # can be detected and how.
3879
4917
  cat >conftest.$ac_ext <<_ACEOF
3880
4918
/* confdefs.h.  */
3884
4922
/* end confdefs.h.  */
3885
4923
#include <ac_nonexistent.h>
3886
4924
_ACEOF
3887
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3888
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4925
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4926
case "(($ac_try" in
 
4927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4928
  *) ac_try_echo=$ac_try;;
 
4929
esac
 
4930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4931
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3889
4932
  ac_status=$?
3890
4933
  grep -v '^ *+' conftest.er1 >conftest.err
3891
4934
  rm -f conftest.er1
3912
4955
ac_preproc_ok=:
3913
4956
break
3914
4957
fi
 
4958
 
3915
4959
rm -f conftest.err conftest.$ac_ext
3916
4960
 
3917
4961
done
3929
4973
else
3930
4974
  ac_cv_prog_CPP=$CPP
3931
4975
fi
3932
 
echo "$as_me:$LINENO: result: $CPP" >&5
3933
 
echo "${ECHO_T}$CPP" >&6
 
4976
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4977
echo "${ECHO_T}$CPP" >&6; }
3934
4978
ac_preproc_ok=false
3935
4979
for ac_c_preproc_warn_flag in '' yes
3936
4980
do
3953
4997
#endif
3954
4998
                     Syntax error
3955
4999
_ACEOF
3956
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5000
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5001
case "(($ac_try" in
 
5002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5003
  *) ac_try_echo=$ac_try;;
 
5004
esac
 
5005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5006
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958
5007
  ac_status=$?
3959
5008
  grep -v '^ *+' conftest.er1 >conftest.err
3960
5009
  rm -f conftest.er1
3979
5028
  # Broken: fails on valid input.
3980
5029
continue
3981
5030
fi
 
5031
 
3982
5032
rm -f conftest.err conftest.$ac_ext
3983
5033
 
3984
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
5034
  # OK, works on sane cases.  Now check whether nonexistent headers
3985
5035
  # can be detected and how.
3986
5036
  cat >conftest.$ac_ext <<_ACEOF
3987
5037
/* confdefs.h.  */
3991
5041
/* end confdefs.h.  */
3992
5042
#include <ac_nonexistent.h>
3993
5043
_ACEOF
3994
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3995
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5044
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5045
case "(($ac_try" in
 
5046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5047
  *) ac_try_echo=$ac_try;;
 
5048
esac
 
5049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5050
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3996
5051
  ac_status=$?
3997
5052
  grep -v '^ *+' conftest.er1 >conftest.err
3998
5053
  rm -f conftest.er1
4019
5074
ac_preproc_ok=:
4020
5075
break
4021
5076
fi
 
5077
 
4022
5078
rm -f conftest.err conftest.$ac_ext
4023
5079
 
4024
5080
done
4041
5097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
5098
 
4043
5099
 
4044
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4045
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5100
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5101
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4046
5102
if test "${ac_cv_header_stdc+set}" = set; then
4047
5103
  echo $ECHO_N "(cached) $ECHO_C" >&6
4048
5104
else
4066
5122
}
4067
5123
_ACEOF
4068
5124
rm -f conftest.$ac_objext
4069
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070
 
  (eval $ac_compile) 2>conftest.er1
 
5125
if { (ac_try="$ac_compile"
 
5126
case "(($ac_try" in
 
5127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5128
  *) ac_try_echo=$ac_try;;
 
5129
esac
 
5130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5131
  (eval "$ac_compile") 2>conftest.er1
4071
5132
  ac_status=$?
4072
5133
  grep -v '^ *+' conftest.er1 >conftest.err
4073
5134
  rm -f conftest.er1
4074
5135
  cat conftest.err >&5
4075
5136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
5137
  (exit $ac_status); } &&
4077
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
 
  (eval $ac_try) 2>&5
 
5138
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5139
  { (case "(($ac_try" in
 
5140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5141
  *) ac_try_echo=$ac_try;;
 
5142
esac
 
5143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5144
  (eval "$ac_try") 2>&5
4080
5145
  ac_status=$?
4081
5146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
5147
  (exit $ac_status); }; } &&
4083
5148
         { ac_try='test -s conftest.$ac_objext'
4084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085
 
  (eval $ac_try) 2>&5
 
5149
  { (case "(($ac_try" in
 
5150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5151
  *) ac_try_echo=$ac_try;;
 
5152
esac
 
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5154
  (eval "$ac_try") 2>&5
4086
5155
  ac_status=$?
4087
5156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
5157
  (exit $ac_status); }; }; then
4091
5160
  echo "$as_me: failed program was:" >&5
4092
5161
sed 's/^/| /' conftest.$ac_ext >&5
4093
5162
 
4094
 
ac_cv_header_stdc=no
 
5163
        ac_cv_header_stdc=no
4095
5164
fi
4096
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5165
 
 
5166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097
5167
 
4098
5168
if test $ac_cv_header_stdc = yes; then
4099
5169
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149
5219
cat >>conftest.$ac_ext <<_ACEOF
4150
5220
/* end confdefs.h.  */
4151
5221
#include <ctype.h>
 
5222
#include <stdlib.h>
4152
5223
#if ((' ' & 0x0FF) == 0x020)
4153
5224
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4154
5225
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168
5239
  for (i = 0; i < 256; i++)
4169
5240
    if (XOR (islower (i), ISLOWER (i))
4170
5241
        || toupper (i) != TOUPPER (i))
4171
 
      exit(2);
4172
 
  exit (0);
 
5242
      return 2;
 
5243
  return 0;
4173
5244
}
4174
5245
_ACEOF
4175
5246
rm -f conftest$ac_exeext
4176
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177
 
  (eval $ac_link) 2>&5
 
5247
if { (ac_try="$ac_link"
 
5248
case "(($ac_try" in
 
5249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5250
  *) ac_try_echo=$ac_try;;
 
5251
esac
 
5252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5253
  (eval "$ac_link") 2>&5
4178
5254
  ac_status=$?
4179
5255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
5256
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4181
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182
 
  (eval $ac_try) 2>&5
 
5257
  { (case "(($ac_try" in
 
5258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5259
  *) ac_try_echo=$ac_try;;
 
5260
esac
 
5261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5262
  (eval "$ac_try") 2>&5
4183
5263
  ac_status=$?
4184
5264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185
5265
  (exit $ac_status); }; }; then
4192
5272
( exit $ac_status )
4193
5273
ac_cv_header_stdc=no
4194
5274
fi
4195
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4196
 
fi
4197
 
fi
4198
 
fi
4199
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4200
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5275
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5276
fi
 
5277
 
 
5278
 
 
5279
fi
 
5280
fi
 
5281
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5282
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4201
5283
if test $ac_cv_header_stdc = yes; then
4202
5284
 
4203
5285
cat >>confdefs.h <<\_ACEOF
4220
5302
                  inttypes.h stdint.h unistd.h
4221
5303
do
4222
5304
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4224
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4225
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5305
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5306
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5307
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226
5308
  echo $ECHO_N "(cached) $ECHO_C" >&6
4227
5309
else
4228
5310
  cat >conftest.$ac_ext <<_ACEOF
4236
5318
#include <$ac_header>
4237
5319
_ACEOF
4238
5320
rm -f conftest.$ac_objext
4239
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4240
 
  (eval $ac_compile) 2>conftest.er1
 
5321
if { (ac_try="$ac_compile"
 
5322
case "(($ac_try" in
 
5323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5324
  *) ac_try_echo=$ac_try;;
 
5325
esac
 
5326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5327
  (eval "$ac_compile") 2>conftest.er1
4241
5328
  ac_status=$?
4242
5329
  grep -v '^ *+' conftest.er1 >conftest.err
4243
5330
  rm -f conftest.er1
4244
5331
  cat conftest.err >&5
4245
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246
5333
  (exit $ac_status); } &&
4247
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4248
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249
 
  (eval $ac_try) 2>&5
 
5334
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5335
  { (case "(($ac_try" in
 
5336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5337
  *) ac_try_echo=$ac_try;;
 
5338
esac
 
5339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5340
  (eval "$ac_try") 2>&5
4250
5341
  ac_status=$?
4251
5342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252
5343
  (exit $ac_status); }; } &&
4253
5344
         { ac_try='test -s conftest.$ac_objext'
4254
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255
 
  (eval $ac_try) 2>&5
 
5345
  { (case "(($ac_try" in
 
5346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5347
  *) ac_try_echo=$ac_try;;
 
5348
esac
 
5349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5350
  (eval "$ac_try") 2>&5
4256
5351
  ac_status=$?
4257
5352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
5353
  (exit $ac_status); }; }; then
4261
5356
  echo "$as_me: failed program was:" >&5
4262
5357
sed 's/^/| /' conftest.$ac_ext >&5
4263
5358
 
4264
 
eval "$as_ac_Header=no"
4265
 
fi
4266
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267
 
fi
4268
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4269
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5359
        eval "$as_ac_Header=no"
 
5360
fi
 
5361
 
 
5362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5363
fi
 
5364
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5365
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5366
echo "${ECHO_T}$ac_res" >&6; }
4270
5367
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4271
5368
  cat >>confdefs.h <<_ACEOF
4272
5369
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281
5378
for ac_header in dlfcn.h
4282
5379
do
4283
5380
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4286
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4287
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5381
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5382
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5383
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5384
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
4289
5386
fi
4290
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5387
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5388
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5389
echo "${ECHO_T}$ac_res" >&6; }
4292
5390
else
4293
5391
  # Is the header compilable?
4294
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4295
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5392
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5393
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4296
5394
cat >conftest.$ac_ext <<_ACEOF
4297
5395
/* confdefs.h.  */
4298
5396
_ACEOF
4303
5401
#include <$ac_header>
4304
5402
_ACEOF
4305
5403
rm -f conftest.$ac_objext
4306
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307
 
  (eval $ac_compile) 2>conftest.er1
 
5404
if { (ac_try="$ac_compile"
 
5405
case "(($ac_try" in
 
5406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5407
  *) ac_try_echo=$ac_try;;
 
5408
esac
 
5409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5410
  (eval "$ac_compile") 2>conftest.er1
4308
5411
  ac_status=$?
4309
5412
  grep -v '^ *+' conftest.er1 >conftest.err
4310
5413
  rm -f conftest.er1
4311
5414
  cat conftest.err >&5
4312
5415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
5416
  (exit $ac_status); } &&
4314
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316
 
  (eval $ac_try) 2>&5
 
5417
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5418
  { (case "(($ac_try" in
 
5419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5420
  *) ac_try_echo=$ac_try;;
 
5421
esac
 
5422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5423
  (eval "$ac_try") 2>&5
4317
5424
  ac_status=$?
4318
5425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
5426
  (exit $ac_status); }; } &&
4320
5427
         { ac_try='test -s conftest.$ac_objext'
4321
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322
 
  (eval $ac_try) 2>&5
 
5428
  { (case "(($ac_try" in
 
5429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5430
  *) ac_try_echo=$ac_try;;
 
5431
esac
 
5432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5433
  (eval "$ac_try") 2>&5
4323
5434
  ac_status=$?
4324
5435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
5436
  (exit $ac_status); }; }; then
4328
5439
  echo "$as_me: failed program was:" >&5
4329
5440
sed 's/^/| /' conftest.$ac_ext >&5
4330
5441
 
4331
 
ac_header_compiler=no
 
5442
        ac_header_compiler=no
4332
5443
fi
4333
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4335
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
5444
 
 
5445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5446
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5447
echo "${ECHO_T}$ac_header_compiler" >&6; }
4336
5448
 
4337
5449
# Is the header present?
4338
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4339
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5450
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4340
5452
cat >conftest.$ac_ext <<_ACEOF
4341
5453
/* confdefs.h.  */
4342
5454
_ACEOF
4345
5457
/* end confdefs.h.  */
4346
5458
#include <$ac_header>
4347
5459
_ACEOF
4348
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4349
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5460
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5461
case "(($ac_try" in
 
5462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5463
  *) ac_try_echo=$ac_try;;
 
5464
esac
 
5465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5466
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4350
5467
  ac_status=$?
4351
5468
  grep -v '^ *+' conftest.er1 >conftest.err
4352
5469
  rm -f conftest.er1
4370
5487
 
4371
5488
  ac_header_preproc=no
4372
5489
fi
 
5490
 
4373
5491
rm -f conftest.err conftest.$ac_ext
4374
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4375
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
5492
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5493
echo "${ECHO_T}$ac_header_preproc" >&6; }
4376
5494
 
4377
5495
# So?  What about this header?
4378
5496
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4396
5514
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4397
5515
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4398
5516
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4399
 
    (
4400
 
      cat <<\_ASBOX
4401
 
## ------------------------------------------ ##
4402
 
## Report this to the AC_PACKAGE_NAME lists.  ##
4403
 
## ------------------------------------------ ##
4404
 
_ASBOX
4405
 
    ) |
4406
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5517
 
4407
5518
    ;;
4408
5519
esac
4409
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4410
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5520
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5521
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5522
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4412
5523
  echo $ECHO_N "(cached) $ECHO_C" >&6
4413
5524
else
4414
5525
  eval "$as_ac_Header=\$ac_header_preproc"
4415
5526
fi
4416
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5527
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5528
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5529
echo "${ECHO_T}$ac_res" >&6; }
4418
5530
 
4419
5531
fi
4420
5532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426
5538
 
4427
5539
done
4428
5540
 
4429
 
ac_ext=cc
 
5541
ac_ext=cpp
4430
5542
ac_cpp='$CXXCPP $CPPFLAGS'
4431
5543
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432
5544
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433
5545
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4434
 
if test -n "$ac_tool_prefix"; then
4435
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5546
if test -z "$CXX"; then
 
5547
  if test -n "$CCC"; then
 
5548
    CXX=$CCC
 
5549
  else
 
5550
    if test -n "$ac_tool_prefix"; then
 
5551
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4436
5552
  do
4437
5553
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4438
5554
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4439
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4440
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5555
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4441
5557
if test "${ac_cv_prog_CXX+set}" = set; then
4442
5558
  echo $ECHO_N "(cached) $ECHO_C" >&6
4443
5559
else
4450
5566
  IFS=$as_save_IFS
4451
5567
  test -z "$as_dir" && as_dir=.
4452
5568
  for ac_exec_ext in '' $ac_executable_extensions; do
4453
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5569
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4454
5570
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4455
5571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456
5572
    break 2
4457
5573
  fi
4458
5574
done
4459
5575
done
 
5576
IFS=$as_save_IFS
4460
5577
 
4461
5578
fi
4462
5579
fi
4463
5580
CXX=$ac_cv_prog_CXX
4464
5581
if test -n "$CXX"; then
4465
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4466
 
echo "${ECHO_T}$CXX" >&6
 
5582
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5583
echo "${ECHO_T}$CXX" >&6; }
4467
5584
else
4468
 
  echo "$as_me:$LINENO: result: no" >&5
4469
 
echo "${ECHO_T}no" >&6
 
5585
  { echo "$as_me:$LINENO: result: no" >&5
 
5586
echo "${ECHO_T}no" >&6; }
4470
5587
fi
4471
5588
 
 
5589
 
4472
5590
    test -n "$CXX" && break
4473
5591
  done
4474
5592
fi
4475
5593
if test -z "$CXX"; then
4476
5594
  ac_ct_CXX=$CXX
4477
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5595
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4478
5596
do
4479
5597
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4480
5598
set dummy $ac_prog; ac_word=$2
4481
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4482
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5599
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483
5601
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4484
5602
  echo $ECHO_N "(cached) $ECHO_C" >&6
4485
5603
else
4492
5610
  IFS=$as_save_IFS
4493
5611
  test -z "$as_dir" && as_dir=.
4494
5612
  for ac_exec_ext in '' $ac_executable_extensions; do
4495
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5613
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4496
5614
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4497
5615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498
5616
    break 2
4499
5617
  fi
4500
5618
done
4501
5619
done
 
5620
IFS=$as_save_IFS
4502
5621
 
4503
5622
fi
4504
5623
fi
4505
5624
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4506
5625
if test -n "$ac_ct_CXX"; then
4507
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4508
 
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5626
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5627
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4509
5628
else
4510
 
  echo "$as_me:$LINENO: result: no" >&5
4511
 
echo "${ECHO_T}no" >&6
 
5629
  { echo "$as_me:$LINENO: result: no" >&5
 
5630
echo "${ECHO_T}no" >&6; }
4512
5631
fi
4513
5632
 
 
5633
 
4514
5634
  test -n "$ac_ct_CXX" && break
4515
5635
done
4516
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4517
 
 
4518
 
  CXX=$ac_ct_CXX
4519
 
fi
4520
 
 
4521
 
 
 
5636
 
 
5637
  if test "x$ac_ct_CXX" = x; then
 
5638
    CXX="g++"
 
5639
  else
 
5640
    case $cross_compiling:$ac_tool_warned in
 
5641
yes:)
 
5642
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5643
whose name does not start with the host triplet.  If you think this
 
5644
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5645
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5646
whose name does not start with the host triplet.  If you think this
 
5647
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5648
ac_tool_warned=yes ;;
 
5649
esac
 
5650
    CXX=$ac_ct_CXX
 
5651
  fi
 
5652
fi
 
5653
 
 
5654
  fi
 
5655
fi
4522
5656
# Provide some information about the compiler.
4523
 
echo "$as_me:$LINENO:" \
4524
 
     "checking for C++ compiler version" >&5
 
5657
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4525
5658
ac_compiler=`set X $ac_compile; echo $2`
4526
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4527
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4528
 
  ac_status=$?
4529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
 
  (exit $ac_status); }
4531
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4532
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4533
 
  ac_status=$?
4534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535
 
  (exit $ac_status); }
4536
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4537
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5659
{ (ac_try="$ac_compiler --version >&5"
 
5660
case "(($ac_try" in
 
5661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5662
  *) ac_try_echo=$ac_try;;
 
5663
esac
 
5664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5665
  (eval "$ac_compiler --version >&5") 2>&5
 
5666
  ac_status=$?
 
5667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5668
  (exit $ac_status); }
 
5669
{ (ac_try="$ac_compiler -v >&5"
 
5670
case "(($ac_try" in
 
5671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5672
  *) ac_try_echo=$ac_try;;
 
5673
esac
 
5674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5675
  (eval "$ac_compiler -v >&5") 2>&5
 
5676
  ac_status=$?
 
5677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5678
  (exit $ac_status); }
 
5679
{ (ac_try="$ac_compiler -V >&5"
 
5680
case "(($ac_try" in
 
5681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5682
  *) ac_try_echo=$ac_try;;
 
5683
esac
 
5684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5685
  (eval "$ac_compiler -V >&5") 2>&5
4538
5686
  ac_status=$?
4539
5687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540
5688
  (exit $ac_status); }
4541
5689
 
4542
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4543
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5690
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5691
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4544
5692
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4545
5693
  echo $ECHO_N "(cached) $ECHO_C" >&6
4546
5694
else
4563
5711
}
4564
5712
_ACEOF
4565
5713
rm -f conftest.$ac_objext
4566
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567
 
  (eval $ac_compile) 2>conftest.er1
 
5714
if { (ac_try="$ac_compile"
 
5715
case "(($ac_try" in
 
5716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5717
  *) ac_try_echo=$ac_try;;
 
5718
esac
 
5719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5720
  (eval "$ac_compile") 2>conftest.er1
4568
5721
  ac_status=$?
4569
5722
  grep -v '^ *+' conftest.er1 >conftest.err
4570
5723
  rm -f conftest.er1
4571
5724
  cat conftest.err >&5
4572
5725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
5726
  (exit $ac_status); } &&
4574
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
 
  (eval $ac_try) 2>&5
 
5727
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5728
  { (case "(($ac_try" in
 
5729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5730
  *) ac_try_echo=$ac_try;;
 
5731
esac
 
5732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5733
  (eval "$ac_try") 2>&5
4577
5734
  ac_status=$?
4578
5735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
5736
  (exit $ac_status); }; } &&
4580
5737
         { ac_try='test -s conftest.$ac_objext'
4581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582
 
  (eval $ac_try) 2>&5
 
5738
  { (case "(($ac_try" in
 
5739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5740
  *) ac_try_echo=$ac_try;;
 
5741
esac
 
5742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5743
  (eval "$ac_try") 2>&5
4583
5744
  ac_status=$?
4584
5745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
5746
  (exit $ac_status); }; }; then
4588
5749
  echo "$as_me: failed program was:" >&5
4589
5750
sed 's/^/| /' conftest.$ac_ext >&5
4590
5751
 
4591
 
ac_compiler_gnu=no
 
5752
        ac_compiler_gnu=no
4592
5753
fi
4593
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5754
 
 
5755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
5756
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4595
5757
 
4596
5758
fi
4597
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4598
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5759
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5760
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4599
5761
GXX=`test $ac_compiler_gnu = yes && echo yes`
4600
5762
ac_test_CXXFLAGS=${CXXFLAGS+set}
4601
5763
ac_save_CXXFLAGS=$CXXFLAGS
4602
 
CXXFLAGS="-g"
4603
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4604
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5764
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5765
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4605
5766
if test "${ac_cv_prog_cxx_g+set}" = set; then
4606
5767
  echo $ECHO_N "(cached) $ECHO_C" >&6
4607
5768
else
4608
 
  cat >conftest.$ac_ext <<_ACEOF
4609
 
/* confdefs.h.  */
4610
 
_ACEOF
4611
 
cat confdefs.h >>conftest.$ac_ext
4612
 
cat >>conftest.$ac_ext <<_ACEOF
4613
 
/* end confdefs.h.  */
4614
 
 
4615
 
int
4616
 
main ()
4617
 
{
4618
 
 
4619
 
  ;
4620
 
  return 0;
4621
 
}
4622
 
_ACEOF
4623
 
rm -f conftest.$ac_objext
4624
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625
 
  (eval $ac_compile) 2>conftest.er1
4626
 
  ac_status=$?
4627
 
  grep -v '^ *+' conftest.er1 >conftest.err
4628
 
  rm -f conftest.er1
4629
 
  cat conftest.err >&5
4630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
 
  (exit $ac_status); } &&
4632
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4633
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634
 
  (eval $ac_try) 2>&5
4635
 
  ac_status=$?
4636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637
 
  (exit $ac_status); }; } &&
4638
 
         { ac_try='test -s conftest.$ac_objext'
4639
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640
 
  (eval $ac_try) 2>&5
4641
 
  ac_status=$?
4642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
 
  (exit $ac_status); }; }; then
4644
 
  ac_cv_prog_cxx_g=yes
4645
 
else
4646
 
  echo "$as_me: failed program was:" >&5
4647
 
sed 's/^/| /' conftest.$ac_ext >&5
4648
 
 
4649
 
ac_cv_prog_cxx_g=no
4650
 
fi
4651
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652
 
fi
4653
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4654
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5769
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5770
   ac_cxx_werror_flag=yes
 
5771
   ac_cv_prog_cxx_g=no
 
5772
   CXXFLAGS="-g"
 
5773
   cat >conftest.$ac_ext <<_ACEOF
 
5774
/* confdefs.h.  */
 
5775
_ACEOF
 
5776
cat confdefs.h >>conftest.$ac_ext
 
5777
cat >>conftest.$ac_ext <<_ACEOF
 
5778
/* end confdefs.h.  */
 
5779
 
 
5780
int
 
5781
main ()
 
5782
{
 
5783
 
 
5784
  ;
 
5785
  return 0;
 
5786
}
 
5787
_ACEOF
 
5788
rm -f conftest.$ac_objext
 
5789
if { (ac_try="$ac_compile"
 
5790
case "(($ac_try" in
 
5791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5792
  *) ac_try_echo=$ac_try;;
 
5793
esac
 
5794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5795
  (eval "$ac_compile") 2>conftest.er1
 
5796
  ac_status=$?
 
5797
  grep -v '^ *+' conftest.er1 >conftest.err
 
5798
  rm -f conftest.er1
 
5799
  cat conftest.err >&5
 
5800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5801
  (exit $ac_status); } &&
 
5802
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5803
  { (case "(($ac_try" in
 
5804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5805
  *) ac_try_echo=$ac_try;;
 
5806
esac
 
5807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5808
  (eval "$ac_try") 2>&5
 
5809
  ac_status=$?
 
5810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5811
  (exit $ac_status); }; } &&
 
5812
         { ac_try='test -s conftest.$ac_objext'
 
5813
  { (case "(($ac_try" in
 
5814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5815
  *) ac_try_echo=$ac_try;;
 
5816
esac
 
5817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5818
  (eval "$ac_try") 2>&5
 
5819
  ac_status=$?
 
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); }; }; then
 
5822
  ac_cv_prog_cxx_g=yes
 
5823
else
 
5824
  echo "$as_me: failed program was:" >&5
 
5825
sed 's/^/| /' conftest.$ac_ext >&5
 
5826
 
 
5827
        CXXFLAGS=""
 
5828
      cat >conftest.$ac_ext <<_ACEOF
 
5829
/* confdefs.h.  */
 
5830
_ACEOF
 
5831
cat confdefs.h >>conftest.$ac_ext
 
5832
cat >>conftest.$ac_ext <<_ACEOF
 
5833
/* end confdefs.h.  */
 
5834
 
 
5835
int
 
5836
main ()
 
5837
{
 
5838
 
 
5839
  ;
 
5840
  return 0;
 
5841
}
 
5842
_ACEOF
 
5843
rm -f conftest.$ac_objext
 
5844
if { (ac_try="$ac_compile"
 
5845
case "(($ac_try" in
 
5846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5847
  *) ac_try_echo=$ac_try;;
 
5848
esac
 
5849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5850
  (eval "$ac_compile") 2>conftest.er1
 
5851
  ac_status=$?
 
5852
  grep -v '^ *+' conftest.er1 >conftest.err
 
5853
  rm -f conftest.er1
 
5854
  cat conftest.err >&5
 
5855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5856
  (exit $ac_status); } &&
 
5857
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5858
  { (case "(($ac_try" in
 
5859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5860
  *) ac_try_echo=$ac_try;;
 
5861
esac
 
5862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5863
  (eval "$ac_try") 2>&5
 
5864
  ac_status=$?
 
5865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5866
  (exit $ac_status); }; } &&
 
5867
         { ac_try='test -s conftest.$ac_objext'
 
5868
  { (case "(($ac_try" in
 
5869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5870
  *) ac_try_echo=$ac_try;;
 
5871
esac
 
5872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5873
  (eval "$ac_try") 2>&5
 
5874
  ac_status=$?
 
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5876
  (exit $ac_status); }; }; then
 
5877
  :
 
5878
else
 
5879
  echo "$as_me: failed program was:" >&5
 
5880
sed 's/^/| /' conftest.$ac_ext >&5
 
5881
 
 
5882
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5883
         CXXFLAGS="-g"
 
5884
         cat >conftest.$ac_ext <<_ACEOF
 
5885
/* confdefs.h.  */
 
5886
_ACEOF
 
5887
cat confdefs.h >>conftest.$ac_ext
 
5888
cat >>conftest.$ac_ext <<_ACEOF
 
5889
/* end confdefs.h.  */
 
5890
 
 
5891
int
 
5892
main ()
 
5893
{
 
5894
 
 
5895
  ;
 
5896
  return 0;
 
5897
}
 
5898
_ACEOF
 
5899
rm -f conftest.$ac_objext
 
5900
if { (ac_try="$ac_compile"
 
5901
case "(($ac_try" in
 
5902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5903
  *) ac_try_echo=$ac_try;;
 
5904
esac
 
5905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5906
  (eval "$ac_compile") 2>conftest.er1
 
5907
  ac_status=$?
 
5908
  grep -v '^ *+' conftest.er1 >conftest.err
 
5909
  rm -f conftest.er1
 
5910
  cat conftest.err >&5
 
5911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5912
  (exit $ac_status); } &&
 
5913
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5914
  { (case "(($ac_try" in
 
5915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5916
  *) ac_try_echo=$ac_try;;
 
5917
esac
 
5918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5919
  (eval "$ac_try") 2>&5
 
5920
  ac_status=$?
 
5921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5922
  (exit $ac_status); }; } &&
 
5923
         { ac_try='test -s conftest.$ac_objext'
 
5924
  { (case "(($ac_try" in
 
5925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5926
  *) ac_try_echo=$ac_try;;
 
5927
esac
 
5928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5929
  (eval "$ac_try") 2>&5
 
5930
  ac_status=$?
 
5931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5932
  (exit $ac_status); }; }; then
 
5933
  ac_cv_prog_cxx_g=yes
 
5934
else
 
5935
  echo "$as_me: failed program was:" >&5
 
5936
sed 's/^/| /' conftest.$ac_ext >&5
 
5937
 
 
5938
 
 
5939
fi
 
5940
 
 
5941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5942
fi
 
5943
 
 
5944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5945
fi
 
5946
 
 
5947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5948
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5949
fi
 
5950
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5951
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4655
5952
if test "$ac_test_CXXFLAGS" = set; then
4656
5953
  CXXFLAGS=$ac_save_CXXFLAGS
4657
5954
elif test $ac_cv_prog_cxx_g = yes; then
4667
5964
    CXXFLAGS=
4668
5965
  fi
4669
5966
fi
4670
 
for ac_declaration in \
4671
 
   '' \
4672
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4673
 
   'extern "C" void std::exit (int); using std::exit;' \
4674
 
   'extern "C" void exit (int) throw ();' \
4675
 
   'extern "C" void exit (int);' \
4676
 
   'void exit (int);'
4677
 
do
4678
 
  cat >conftest.$ac_ext <<_ACEOF
4679
 
/* confdefs.h.  */
4680
 
_ACEOF
4681
 
cat confdefs.h >>conftest.$ac_ext
4682
 
cat >>conftest.$ac_ext <<_ACEOF
4683
 
/* end confdefs.h.  */
4684
 
$ac_declaration
4685
 
#include <stdlib.h>
4686
 
int
4687
 
main ()
4688
 
{
4689
 
exit (42);
4690
 
  ;
4691
 
  return 0;
4692
 
}
4693
 
_ACEOF
4694
 
rm -f conftest.$ac_objext
4695
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696
 
  (eval $ac_compile) 2>conftest.er1
4697
 
  ac_status=$?
4698
 
  grep -v '^ *+' conftest.er1 >conftest.err
4699
 
  rm -f conftest.er1
4700
 
  cat conftest.err >&5
4701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
 
  (exit $ac_status); } &&
4703
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4704
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705
 
  (eval $ac_try) 2>&5
4706
 
  ac_status=$?
4707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
 
  (exit $ac_status); }; } &&
4709
 
         { ac_try='test -s conftest.$ac_objext'
4710
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711
 
  (eval $ac_try) 2>&5
4712
 
  ac_status=$?
4713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
 
  (exit $ac_status); }; }; then
4715
 
  :
4716
 
else
4717
 
  echo "$as_me: failed program was:" >&5
4718
 
sed 's/^/| /' conftest.$ac_ext >&5
4719
 
 
4720
 
continue
4721
 
fi
4722
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723
 
  cat >conftest.$ac_ext <<_ACEOF
4724
 
/* confdefs.h.  */
4725
 
_ACEOF
4726
 
cat confdefs.h >>conftest.$ac_ext
4727
 
cat >>conftest.$ac_ext <<_ACEOF
4728
 
/* end confdefs.h.  */
4729
 
$ac_declaration
4730
 
int
4731
 
main ()
4732
 
{
4733
 
exit (42);
4734
 
  ;
4735
 
  return 0;
4736
 
}
4737
 
_ACEOF
4738
 
rm -f conftest.$ac_objext
4739
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740
 
  (eval $ac_compile) 2>conftest.er1
4741
 
  ac_status=$?
4742
 
  grep -v '^ *+' conftest.er1 >conftest.err
4743
 
  rm -f conftest.er1
4744
 
  cat conftest.err >&5
4745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
 
  (exit $ac_status); } &&
4747
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4748
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749
 
  (eval $ac_try) 2>&5
4750
 
  ac_status=$?
4751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752
 
  (exit $ac_status); }; } &&
4753
 
         { ac_try='test -s conftest.$ac_objext'
4754
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755
 
  (eval $ac_try) 2>&5
4756
 
  ac_status=$?
4757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758
 
  (exit $ac_status); }; }; then
4759
 
  break
4760
 
else
4761
 
  echo "$as_me: failed program was:" >&5
4762
 
sed 's/^/| /' conftest.$ac_ext >&5
4763
 
 
4764
 
fi
4765
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766
 
done
4767
 
rm -f conftest*
4768
 
if test -n "$ac_declaration"; then
4769
 
  echo '#ifdef __cplusplus' >>confdefs.h
4770
 
  echo $ac_declaration      >>confdefs.h
4771
 
  echo '#endif'             >>confdefs.h
4772
 
fi
4773
 
 
4774
 
ac_ext=cc
 
5967
ac_ext=cpp
4775
5968
ac_cpp='$CXXCPP $CPPFLAGS'
4776
5969
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777
5970
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779
5972
 
4780
5973
depcc="$CXX"  am_compiler_list=
4781
5974
 
4782
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4783
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5975
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5976
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4784
5977
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4785
5978
  echo $ECHO_N "(cached) $ECHO_C" >&6
4786
5979
else
4795
5988
  # using a relative directory.
4796
5989
  cp "$am_depcomp" conftest.dir
4797
5990
  cd conftest.dir
 
5991
  # We will build objects and dependencies in a subdirectory because
 
5992
  # it helps to detect inapplicable dependency modes.  For instance
 
5993
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5994
  # side effect of compilation, but ICC will put the dependencies in
 
5995
  # the current directory while Tru64 will put them in the object
 
5996
  # directory.
 
5997
  mkdir sub
4798
5998
 
4799
5999
  am_cv_CXX_dependencies_compiler_type=none
4800
6000
  if test "$am_compiler_list" = ""; then
4801
6001
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4802
6002
  fi
4803
6003
  for depmode in $am_compiler_list; do
 
6004
    # Setup a source with many dependencies, because some compilers
 
6005
    # like to wrap large dependency lists on column 80 (with \), and
 
6006
    # we should not choose a depcomp mode which is confused by this.
 
6007
    #
4804
6008
    # We need to recreate these files for each test, as the compiler may
4805
6009
    # overwrite some of them when testing with obscure command lines.
4806
6010
    # This happens at least with the AIX C compiler.
4807
 
    echo '#include "conftest.h"' > conftest.c
4808
 
    echo 'int i;' > conftest.h
4809
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
6011
    : > sub/conftest.c
 
6012
    for i in 1 2 3 4 5 6; do
 
6013
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6014
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6015
      # Solaris 8's {/usr,}/bin/sh.
 
6016
      touch sub/conftst$i.h
 
6017
    done
 
6018
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810
6019
 
4811
6020
    case $depmode in
4812
6021
    nosideeffect)
4824
6033
    # mode.  It turns out that the SunPro C++ compiler does not properly
4825
6034
    # handle `-M -o', and we need to detect this.
4826
6035
    if depmode=$depmode \
4827
 
       source=conftest.c object=conftest.o \
4828
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
4829
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4830
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
6036
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6037
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6038
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6039
         >/dev/null 2>conftest.err &&
 
6040
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6041
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4831
6042
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4832
 
      am_cv_CXX_dependencies_compiler_type=$depmode
4833
 
      break
 
6043
      # icc doesn't choke on unknown options, it will just issue warnings
 
6044
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6045
      # that says an option was ignored or not supported.
 
6046
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6047
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6048
      # The diagnosis changed in icc 8.0:
 
6049
      #   icc: Command line remark: option '-MP' not supported
 
6050
      if (grep 'ignoring option' conftest.err ||
 
6051
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6052
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6053
        break
 
6054
      fi
4834
6055
    fi
4835
6056
  done
4836
6057
 
4841
6062
fi
4842
6063
 
4843
6064
fi
4844
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4845
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6065
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6066
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4846
6067
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4847
6068
 
4848
6069
 
4849
 
ac_ext=cc
 
6070
 
 
6071
if
 
6072
  test "x$enable_dependency_tracking" != xno \
 
6073
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6074
  am__fastdepCXX_TRUE=
 
6075
  am__fastdepCXX_FALSE='#'
 
6076
else
 
6077
  am__fastdepCXX_TRUE='#'
 
6078
  am__fastdepCXX_FALSE=
 
6079
fi
 
6080
 
 
6081
 
 
6082
 
 
6083
 
 
6084
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6085
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6086
    (test "X$CXX" != "Xg++"))) ; then
 
6087
  ac_ext=cpp
4850
6088
ac_cpp='$CXXCPP $CPPFLAGS'
4851
6089
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852
6090
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853
6091
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4854
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4855
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6092
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6093
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4856
6094
if test -z "$CXXCPP"; then
4857
6095
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4858
6096
  echo $ECHO_N "(cached) $ECHO_C" >&6
4882
6120
#endif
4883
6121
                     Syntax error
4884
6122
_ACEOF
4885
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6123
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6124
case "(($ac_try" in
 
6125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6126
  *) ac_try_echo=$ac_try;;
 
6127
esac
 
6128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6129
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887
6130
  ac_status=$?
4888
6131
  grep -v '^ *+' conftest.er1 >conftest.err
4889
6132
  rm -f conftest.er1
4908
6151
  # Broken: fails on valid input.
4909
6152
continue
4910
6153
fi
 
6154
 
4911
6155
rm -f conftest.err conftest.$ac_ext
4912
6156
 
4913
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
6157
  # OK, works on sane cases.  Now check whether nonexistent headers
4914
6158
  # can be detected and how.
4915
6159
  cat >conftest.$ac_ext <<_ACEOF
4916
6160
/* confdefs.h.  */
4920
6164
/* end confdefs.h.  */
4921
6165
#include <ac_nonexistent.h>
4922
6166
_ACEOF
4923
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6167
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6168
case "(($ac_try" in
 
6169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6170
  *) ac_try_echo=$ac_try;;
 
6171
esac
 
6172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6173
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925
6174
  ac_status=$?
4926
6175
  grep -v '^ *+' conftest.er1 >conftest.err
4927
6176
  rm -f conftest.er1
4948
6197
ac_preproc_ok=:
4949
6198
break
4950
6199
fi
 
6200
 
4951
6201
rm -f conftest.err conftest.$ac_ext
4952
6202
 
4953
6203
done
4965
6215
else
4966
6216
  ac_cv_prog_CXXCPP=$CXXCPP
4967
6217
fi
4968
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4969
 
echo "${ECHO_T}$CXXCPP" >&6
 
6218
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6219
echo "${ECHO_T}$CXXCPP" >&6; }
4970
6220
ac_preproc_ok=false
4971
6221
for ac_cxx_preproc_warn_flag in '' yes
4972
6222
do
4989
6239
#endif
4990
6240
                     Syntax error
4991
6241
_ACEOF
4992
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6242
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6243
case "(($ac_try" in
 
6244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6245
  *) ac_try_echo=$ac_try;;
 
6246
esac
 
6247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6248
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994
6249
  ac_status=$?
4995
6250
  grep -v '^ *+' conftest.er1 >conftest.err
4996
6251
  rm -f conftest.er1
5015
6270
  # Broken: fails on valid input.
5016
6271
continue
5017
6272
fi
 
6273
 
5018
6274
rm -f conftest.err conftest.$ac_ext
5019
6275
 
5020
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
6276
  # OK, works on sane cases.  Now check whether nonexistent headers
5021
6277
  # can be detected and how.
5022
6278
  cat >conftest.$ac_ext <<_ACEOF
5023
6279
/* confdefs.h.  */
5027
6283
/* end confdefs.h.  */
5028
6284
#include <ac_nonexistent.h>
5029
6285
_ACEOF
5030
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6286
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6287
case "(($ac_try" in
 
6288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6289
  *) ac_try_echo=$ac_try;;
 
6290
esac
 
6291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6292
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032
6293
  ac_status=$?
5033
6294
  grep -v '^ *+' conftest.er1 >conftest.err
5034
6295
  rm -f conftest.er1
5055
6316
ac_preproc_ok=:
5056
6317
break
5057
6318
fi
 
6319
 
5058
6320
rm -f conftest.err conftest.$ac_ext
5059
6321
 
5060
6322
done
5070
6332
   { (exit 1); exit 1; }; }
5071
6333
fi
5072
6334
 
5073
 
ac_ext=cc
 
6335
ac_ext=cpp
5074
6336
ac_cpp='$CXXCPP $CPPFLAGS'
5075
6337
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076
6338
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077
6339
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5078
6340
 
 
6341
fi
 
6342
 
5079
6343
 
5080
6344
ac_ext=f
5081
6345
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5082
6346
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083
6347
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5084
6348
if test -n "$ac_tool_prefix"; then
5085
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6349
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5086
6350
  do
5087
6351
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088
6352
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5089
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5090
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6353
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091
6355
if test "${ac_cv_prog_F77+set}" = set; then
5092
6356
  echo $ECHO_N "(cached) $ECHO_C" >&6
5093
6357
else
5100
6364
  IFS=$as_save_IFS
5101
6365
  test -z "$as_dir" && as_dir=.
5102
6366
  for ac_exec_ext in '' $ac_executable_extensions; do
5103
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6367
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5104
6368
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5105
6369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106
6370
    break 2
5107
6371
  fi
5108
6372
done
5109
6373
done
 
6374
IFS=$as_save_IFS
5110
6375
 
5111
6376
fi
5112
6377
fi
5113
6378
F77=$ac_cv_prog_F77
5114
6379
if test -n "$F77"; then
5115
 
  echo "$as_me:$LINENO: result: $F77" >&5
5116
 
echo "${ECHO_T}$F77" >&6
 
6380
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6381
echo "${ECHO_T}$F77" >&6; }
5117
6382
else
5118
 
  echo "$as_me:$LINENO: result: no" >&5
5119
 
echo "${ECHO_T}no" >&6
 
6383
  { echo "$as_me:$LINENO: result: no" >&5
 
6384
echo "${ECHO_T}no" >&6; }
5120
6385
fi
5121
6386
 
 
6387
 
5122
6388
    test -n "$F77" && break
5123
6389
  done
5124
6390
fi
5125
6391
if test -z "$F77"; then
5126
6392
  ac_ct_F77=$F77
5127
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6393
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5128
6394
do
5129
6395
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5130
6396
set dummy $ac_prog; ac_word=$2
5131
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5132
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6397
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6398
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133
6399
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5134
6400
  echo $ECHO_N "(cached) $ECHO_C" >&6
5135
6401
else
5142
6408
  IFS=$as_save_IFS
5143
6409
  test -z "$as_dir" && as_dir=.
5144
6410
  for ac_exec_ext in '' $ac_executable_extensions; do
5145
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6411
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5146
6412
    ac_cv_prog_ac_ct_F77="$ac_prog"
5147
6413
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148
6414
    break 2
5149
6415
  fi
5150
6416
done
5151
6417
done
 
6418
IFS=$as_save_IFS
5152
6419
 
5153
6420
fi
5154
6421
fi
5155
6422
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5156
6423
if test -n "$ac_ct_F77"; then
5157
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5158
 
echo "${ECHO_T}$ac_ct_F77" >&6
 
6424
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6425
echo "${ECHO_T}$ac_ct_F77" >&6; }
5159
6426
else
5160
 
  echo "$as_me:$LINENO: result: no" >&5
5161
 
echo "${ECHO_T}no" >&6
 
6427
  { echo "$as_me:$LINENO: result: no" >&5
 
6428
echo "${ECHO_T}no" >&6; }
5162
6429
fi
5163
6430
 
 
6431
 
5164
6432
  test -n "$ac_ct_F77" && break
5165
6433
done
5166
6434
 
5167
 
  F77=$ac_ct_F77
 
6435
  if test "x$ac_ct_F77" = x; then
 
6436
    F77=""
 
6437
  else
 
6438
    case $cross_compiling:$ac_tool_warned in
 
6439
yes:)
 
6440
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6441
whose name does not start with the host triplet.  If you think this
 
6442
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6443
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6444
whose name does not start with the host triplet.  If you think this
 
6445
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6446
ac_tool_warned=yes ;;
 
6447
esac
 
6448
    F77=$ac_ct_F77
 
6449
  fi
5168
6450
fi
5169
6451
 
5170
6452
 
5171
6453
# Provide some information about the compiler.
5172
 
echo "$as_me:5172:" \
5173
 
     "checking for Fortran 77 compiler version" >&5
 
6454
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5174
6455
ac_compiler=`set X $ac_compile; echo $2`
5175
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5176
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5177
 
  ac_status=$?
5178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179
 
  (exit $ac_status); }
5180
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5181
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5182
 
  ac_status=$?
5183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184
 
  (exit $ac_status); }
5185
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5186
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6456
{ (ac_try="$ac_compiler --version >&5"
 
6457
case "(($ac_try" in
 
6458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6459
  *) ac_try_echo=$ac_try;;
 
6460
esac
 
6461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6462
  (eval "$ac_compiler --version >&5") 2>&5
 
6463
  ac_status=$?
 
6464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6465
  (exit $ac_status); }
 
6466
{ (ac_try="$ac_compiler -v >&5"
 
6467
case "(($ac_try" in
 
6468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6469
  *) ac_try_echo=$ac_try;;
 
6470
esac
 
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6472
  (eval "$ac_compiler -v >&5") 2>&5
 
6473
  ac_status=$?
 
6474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6475
  (exit $ac_status); }
 
6476
{ (ac_try="$ac_compiler -V >&5"
 
6477
case "(($ac_try" in
 
6478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6479
  *) ac_try_echo=$ac_try;;
 
6480
esac
 
6481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6482
  (eval "$ac_compiler -V >&5") 2>&5
5187
6483
  ac_status=$?
5188
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
6485
  (exit $ac_status); }
5193
6489
# input file.  (Note that this only needs to work for GNU compilers.)
5194
6490
ac_save_ext=$ac_ext
5195
6491
ac_ext=F
5196
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5197
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6492
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6493
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5198
6494
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5199
6495
  echo $ECHO_N "(cached) $ECHO_C" >&6
5200
6496
else
5207
6503
      end
5208
6504
_ACEOF
5209
6505
rm -f conftest.$ac_objext
5210
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211
 
  (eval $ac_compile) 2>conftest.er1
 
6506
if { (ac_try="$ac_compile"
 
6507
case "(($ac_try" in
 
6508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6509
  *) ac_try_echo=$ac_try;;
 
6510
esac
 
6511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6512
  (eval "$ac_compile") 2>conftest.er1
5212
6513
  ac_status=$?
5213
6514
  grep -v '^ *+' conftest.er1 >conftest.err
5214
6515
  rm -f conftest.er1
5215
6516
  cat conftest.err >&5
5216
6517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217
6518
  (exit $ac_status); } &&
5218
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220
 
  (eval $ac_try) 2>&5
 
6519
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6520
  { (case "(($ac_try" in
 
6521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6522
  *) ac_try_echo=$ac_try;;
 
6523
esac
 
6524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6525
  (eval "$ac_try") 2>&5
5221
6526
  ac_status=$?
5222
6527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
6528
  (exit $ac_status); }; } &&
5224
6529
         { ac_try='test -s conftest.$ac_objext'
5225
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226
 
  (eval $ac_try) 2>&5
 
6530
  { (case "(($ac_try" in
 
6531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6532
  *) ac_try_echo=$ac_try;;
 
6533
esac
 
6534
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6535
  (eval "$ac_try") 2>&5
5227
6536
  ac_status=$?
5228
6537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229
6538
  (exit $ac_status); }; }; then
5232
6541
  echo "$as_me: failed program was:" >&5
5233
6542
sed 's/^/| /' conftest.$ac_ext >&5
5234
6543
 
5235
 
ac_compiler_gnu=no
 
6544
        ac_compiler_gnu=no
5236
6545
fi
5237
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6546
 
 
6547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238
6548
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5239
6549
 
5240
6550
fi
5241
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5242
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6551
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6552
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5243
6553
ac_ext=$ac_save_ext
5244
6554
ac_test_FFLAGS=${FFLAGS+set}
5245
6555
ac_save_FFLAGS=$FFLAGS
5246
6556
FFLAGS=
5247
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5248
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6557
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6558
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5249
6559
if test "${ac_cv_prog_f77_g+set}" = set; then
5250
6560
  echo $ECHO_N "(cached) $ECHO_C" >&6
5251
6561
else
5256
6566
      end
5257
6567
_ACEOF
5258
6568
rm -f conftest.$ac_objext
5259
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260
 
  (eval $ac_compile) 2>conftest.er1
 
6569
if { (ac_try="$ac_compile"
 
6570
case "(($ac_try" in
 
6571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6572
  *) ac_try_echo=$ac_try;;
 
6573
esac
 
6574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6575
  (eval "$ac_compile") 2>conftest.er1
5261
6576
  ac_status=$?
5262
6577
  grep -v '^ *+' conftest.er1 >conftest.err
5263
6578
  rm -f conftest.er1
5264
6579
  cat conftest.err >&5
5265
6580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
6581
  (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
 
6582
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6583
  { (case "(($ac_try" in
 
6584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6585
  *) ac_try_echo=$ac_try;;
 
6586
esac
 
6587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6588
  (eval "$ac_try") 2>&5
5270
6589
  ac_status=$?
5271
6590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
6591
  (exit $ac_status); }; } &&
5273
6592
         { ac_try='test -s conftest.$ac_objext'
5274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275
 
  (eval $ac_try) 2>&5
 
6593
  { (case "(($ac_try" in
 
6594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6595
  *) ac_try_echo=$ac_try;;
 
6596
esac
 
6597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6598
  (eval "$ac_try") 2>&5
5276
6599
  ac_status=$?
5277
6600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278
6601
  (exit $ac_status); }; }; then
5281
6604
  echo "$as_me: failed program was:" >&5
5282
6605
sed 's/^/| /' conftest.$ac_ext >&5
5283
6606
 
5284
 
ac_cv_prog_f77_g=no
5285
 
fi
5286
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5287
 
 
5288
 
fi
5289
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5290
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6607
        ac_cv_prog_f77_g=no
 
6608
fi
 
6609
 
 
6610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6611
 
 
6612
fi
 
6613
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6614
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5291
6615
if test "$ac_test_FFLAGS" = set; then
5292
6616
  FFLAGS=$ac_save_FFLAGS
5293
6617
elif test $ac_cv_prog_f77_g = yes; then
5316
6640
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5317
6641
 
5318
6642
# find the maximum length of command line arguments
5319
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5320
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6643
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6644
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5321
6645
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5322
6646
  echo $ECHO_N "(cached) $ECHO_C" >&6
5323
6647
else
5324
6648
    i=0
5325
 
  testring="ABCD"
 
6649
  teststring="ABCD"
5326
6650
 
5327
6651
  case $build_os in
5328
6652
  msdosdjgpp*)
5357
6681
    lt_cv_sys_max_cmd_len=8192;
5358
6682
    ;;
5359
6683
 
5360
 
 *)
 
6684
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6685
    # This has been around since 386BSD, at least.  Likely further.
 
6686
    if test -x /sbin/sysctl; then
 
6687
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6688
    elif test -x /usr/sbin/sysctl; then
 
6689
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6690
    else
 
6691
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6692
    fi
 
6693
    # And add a safety zone
 
6694
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6695
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6696
    ;;
 
6697
 
 
6698
  interix*)
 
6699
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6700
    lt_cv_sys_max_cmd_len=196608
 
6701
    ;;
 
6702
 
 
6703
  osf*)
 
6704
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6705
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6706
    # nice to cause kernel panics so lets avoid the loop below.
 
6707
    # First set a reasonable default.
 
6708
    lt_cv_sys_max_cmd_len=16384
 
6709
    #
 
6710
    if test -x /sbin/sysconfig; then
 
6711
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6712
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6713
      esac
 
6714
    fi
 
6715
    ;;
 
6716
  sco3.2v5*)
 
6717
    lt_cv_sys_max_cmd_len=102400
 
6718
    ;;
 
6719
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6720
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6721
    if test -n "$kargmax"; then
 
6722
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6723
    else
 
6724
      lt_cv_sys_max_cmd_len=32768
 
6725
    fi
 
6726
    ;;
 
6727
  *)
5361
6728
    # If test is not a shell built-in, we'll probably end up computing a
5362
6729
    # maximum length that is only half of the actual maximum length, but
5363
6730
    # we can't tell.
5364
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5365
 
               = "XX$testring") >/dev/null 2>&1 &&
5366
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
6731
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6732
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6733
               = "XX$teststring") >/dev/null 2>&1 &&
 
6734
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5367
6735
            lt_cv_sys_max_cmd_len=$new_result &&
5368
6736
            test $i != 17 # 1/2 MB should be enough
5369
6737
    do
5370
6738
      i=`expr $i + 1`
5371
 
      testring=$testring$testring
 
6739
      teststring=$teststring$teststring
5372
6740
    done
5373
 
    testring=
 
6741
    teststring=
5374
6742
    # Add a significant safety factor because C++ compilers can tack on massive
5375
6743
    # amounts of additional arguments before passing them to the linker.
5376
6744
    # It appears as though 1/2 is a usable value.
5381
6749
fi
5382
6750
 
5383
6751
if test -n $lt_cv_sys_max_cmd_len ; then
5384
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5385
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6752
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6753
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5386
6754
else
5387
 
  echo "$as_me:$LINENO: result: none" >&5
5388
 
echo "${ECHO_T}none" >&6
 
6755
  { echo "$as_me:$LINENO: result: none" >&5
 
6756
echo "${ECHO_T}none" >&6; }
5389
6757
fi
5390
6758
 
5391
6759
 
5392
6760
 
5393
6761
 
5394
6762
# Check for command to grab the raw symbol name followed by C symbol from nm.
5395
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5396
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6763
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6764
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5397
6765
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5398
6766
  echo $ECHO_N "(cached) $ECHO_C" >&6
5399
6767
else
5407
6775
# Regexp to match symbols that can be accessed directly from C.
5408
6776
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5409
6777
 
5410
 
# Transform the above into a raw symbol and a C symbol.
5411
 
symxfrm='\1 \2\3 \3'
5412
 
 
5413
6778
# Transform an extracted symbol line into a proper C declaration
5414
6779
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5415
6780
 
5431
6796
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5432
6797
  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'"
5433
6798
  ;;
 
6799
linux* | k*bsd*-gnu)
 
6800
  if test "$host_cpu" = ia64; then
 
6801
    symcode='[ABCDGIRSTW]'
 
6802
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6803
    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'"
 
6804
  fi
 
6805
  ;;
5434
6806
irix* | nonstopux*)
5435
6807
  symcode='[BCDEGRST]'
5436
6808
  ;;
5437
6809
osf*)
5438
6810
  symcode='[BCDEGQRST]'
5439
6811
  ;;
5440
 
solaris* | sysv5*)
 
6812
solaris*)
5441
6813
  symcode='[BDRT]'
5442
6814
  ;;
 
6815
sco3.2v5*)
 
6816
  symcode='[DT]'
 
6817
  ;;
 
6818
sysv4.2uw2*)
 
6819
  symcode='[DT]'
 
6820
  ;;
 
6821
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6822
  symcode='[ABDT]'
 
6823
  ;;
5443
6824
sysv4)
5444
6825
  symcode='[DFNSTU]'
5445
6826
  ;;
5462
6843
# Try without a prefix undercore, then with it.
5463
6844
for ac_symprfx in "" "_"; do
5464
6845
 
 
6846
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6847
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6848
 
5465
6849
  # Write the raw and C identifiers.
5466
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6850
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5467
6851
 
5468
6852
  # Check to see that the pipe works correctly.
5469
6853
  pipe_works=no
5581
6965
  lt_cv_sys_global_symbol_to_cdecl=
5582
6966
fi
5583
6967
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5584
 
  echo "$as_me:$LINENO: result: failed" >&5
5585
 
echo "${ECHO_T}failed" >&6
 
6968
  { echo "$as_me:$LINENO: result: failed" >&5
 
6969
echo "${ECHO_T}failed" >&6; }
5586
6970
else
5587
 
  echo "$as_me:$LINENO: result: ok" >&5
5588
 
echo "${ECHO_T}ok" >&6
 
6971
  { echo "$as_me:$LINENO: result: ok" >&5
 
6972
echo "${ECHO_T}ok" >&6; }
5589
6973
fi
5590
6974
 
5591
 
echo "$as_me:$LINENO: checking for objdir" >&5
5592
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6975
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6976
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5593
6977
if test "${lt_cv_objdir+set}" = set; then
5594
6978
  echo $ECHO_N "(cached) $ECHO_C" >&6
5595
6979
else
5603
6987
fi
5604
6988
rmdir .libs 2>/dev/null
5605
6989
fi
5606
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5607
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6990
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6991
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5608
6992
objdir=$lt_cv_objdir
5609
6993
 
5610
6994
 
5625
7009
 
5626
7010
# Sed substitution that helps us do robust quoting.  It backslashifies
5627
7011
# metacharacters that are still active within double-quoted strings.
5628
 
Xsed='sed -e s/^X//'
 
7012
Xsed='sed -e 1s/^X//'
5629
7013
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5630
7014
 
5631
7015
# Same as above, but do not quote variable references.
5645
7029
default_ofile=libtool
5646
7030
can_build_shared=yes
5647
7031
 
5648
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7032
# All known linkers require a `.a' archive for static linking (except MSVC,
5649
7033
# which needs '.lib').
5650
7034
libext=a
5651
7035
ltmain="$ac_aux_dir/ltmain.sh"
5655
7039
if test -n "$ac_tool_prefix"; then
5656
7040
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5657
7041
set dummy ${ac_tool_prefix}ar; ac_word=$2
5658
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5659
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7042
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7043
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660
7044
if test "${ac_cv_prog_AR+set}" = set; then
5661
7045
  echo $ECHO_N "(cached) $ECHO_C" >&6
5662
7046
else
5669
7053
  IFS=$as_save_IFS
5670
7054
  test -z "$as_dir" && as_dir=.
5671
7055
  for ac_exec_ext in '' $ac_executable_extensions; do
5672
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7056
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5673
7057
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5674
7058
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675
7059
    break 2
5676
7060
  fi
5677
7061
done
5678
7062
done
 
7063
IFS=$as_save_IFS
5679
7064
 
5680
7065
fi
5681
7066
fi
5682
7067
AR=$ac_cv_prog_AR
5683
7068
if test -n "$AR"; then
5684
 
  echo "$as_me:$LINENO: result: $AR" >&5
5685
 
echo "${ECHO_T}$AR" >&6
 
7069
  { echo "$as_me:$LINENO: result: $AR" >&5
 
7070
echo "${ECHO_T}$AR" >&6; }
5686
7071
else
5687
 
  echo "$as_me:$LINENO: result: no" >&5
5688
 
echo "${ECHO_T}no" >&6
 
7072
  { echo "$as_me:$LINENO: result: no" >&5
 
7073
echo "${ECHO_T}no" >&6; }
5689
7074
fi
 
7075
 
5690
7076
 
5691
7077
fi
5692
7078
if test -z "$ac_cv_prog_AR"; then
5693
7079
  ac_ct_AR=$AR
5694
7080
  # Extract the first word of "ar", so it can be a program name with args.
5695
7081
set dummy ar; ac_word=$2
5696
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5697
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7082
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698
7084
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5699
7085
  echo $ECHO_N "(cached) $ECHO_C" >&6
5700
7086
else
5707
7093
  IFS=$as_save_IFS
5708
7094
  test -z "$as_dir" && as_dir=.
5709
7095
  for ac_exec_ext in '' $ac_executable_extensions; do
5710
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7096
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711
7097
    ac_cv_prog_ac_ct_AR="ar"
5712
7098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713
7099
    break 2
5714
7100
  fi
5715
7101
done
5716
7102
done
 
7103
IFS=$as_save_IFS
5717
7104
 
5718
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5719
7105
fi
5720
7106
fi
5721
7107
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722
7108
if test -n "$ac_ct_AR"; then
5723
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5724
 
echo "${ECHO_T}$ac_ct_AR" >&6
 
7109
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7110
echo "${ECHO_T}$ac_ct_AR" >&6; }
5725
7111
else
5726
 
  echo "$as_me:$LINENO: result: no" >&5
5727
 
echo "${ECHO_T}no" >&6
 
7112
  { echo "$as_me:$LINENO: result: no" >&5
 
7113
echo "${ECHO_T}no" >&6; }
5728
7114
fi
5729
7115
 
5730
 
  AR=$ac_ct_AR
 
7116
  if test "x$ac_ct_AR" = x; then
 
7117
    AR="false"
 
7118
  else
 
7119
    case $cross_compiling:$ac_tool_warned in
 
7120
yes:)
 
7121
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7122
whose name does not start with the host triplet.  If you think this
 
7123
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7124
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7125
whose name does not start with the host triplet.  If you think this
 
7126
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7127
ac_tool_warned=yes ;;
 
7128
esac
 
7129
    AR=$ac_ct_AR
 
7130
  fi
5731
7131
else
5732
7132
  AR="$ac_cv_prog_AR"
5733
7133
fi
5735
7135
if test -n "$ac_tool_prefix"; then
5736
7136
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5737
7137
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5738
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5739
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7138
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740
7140
if test "${ac_cv_prog_RANLIB+set}" = set; then
5741
7141
  echo $ECHO_N "(cached) $ECHO_C" >&6
5742
7142
else
5749
7149
  IFS=$as_save_IFS
5750
7150
  test -z "$as_dir" && as_dir=.
5751
7151
  for ac_exec_ext in '' $ac_executable_extensions; do
5752
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7152
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5753
7153
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5754
7154
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755
7155
    break 2
5756
7156
  fi
5757
7157
done
5758
7158
done
 
7159
IFS=$as_save_IFS
5759
7160
 
5760
7161
fi
5761
7162
fi
5762
7163
RANLIB=$ac_cv_prog_RANLIB
5763
7164
if test -n "$RANLIB"; then
5764
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5765
 
echo "${ECHO_T}$RANLIB" >&6
 
7165
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7166
echo "${ECHO_T}$RANLIB" >&6; }
5766
7167
else
5767
 
  echo "$as_me:$LINENO: result: no" >&5
5768
 
echo "${ECHO_T}no" >&6
 
7168
  { echo "$as_me:$LINENO: result: no" >&5
 
7169
echo "${ECHO_T}no" >&6; }
5769
7170
fi
 
7171
 
5770
7172
 
5771
7173
fi
5772
7174
if test -z "$ac_cv_prog_RANLIB"; then
5773
7175
  ac_ct_RANLIB=$RANLIB
5774
7176
  # Extract the first word of "ranlib", so it can be a program name with args.
5775
7177
set dummy ranlib; ac_word=$2
5776
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5777
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7178
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5778
7180
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5779
7181
  echo $ECHO_N "(cached) $ECHO_C" >&6
5780
7182
else
5787
7189
  IFS=$as_save_IFS
5788
7190
  test -z "$as_dir" && as_dir=.
5789
7191
  for ac_exec_ext in '' $ac_executable_extensions; do
5790
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7192
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791
7193
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5792
7194
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793
7195
    break 2
5794
7196
  fi
5795
7197
done
5796
7198
done
 
7199
IFS=$as_save_IFS
5797
7200
 
5798
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5799
7201
fi
5800
7202
fi
5801
7203
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5802
7204
if test -n "$ac_ct_RANLIB"; then
5803
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5804
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7205
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7206
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5805
7207
else
5806
 
  echo "$as_me:$LINENO: result: no" >&5
5807
 
echo "${ECHO_T}no" >&6
 
7208
  { echo "$as_me:$LINENO: result: no" >&5
 
7209
echo "${ECHO_T}no" >&6; }
5808
7210
fi
5809
7211
 
5810
 
  RANLIB=$ac_ct_RANLIB
 
7212
  if test "x$ac_ct_RANLIB" = x; then
 
7213
    RANLIB=":"
 
7214
  else
 
7215
    case $cross_compiling:$ac_tool_warned in
 
7216
yes:)
 
7217
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7218
whose name does not start with the host triplet.  If you think this
 
7219
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7220
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7221
whose name does not start with the host triplet.  If you think this
 
7222
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7223
ac_tool_warned=yes ;;
 
7224
esac
 
7225
    RANLIB=$ac_ct_RANLIB
 
7226
  fi
5811
7227
else
5812
7228
  RANLIB="$ac_cv_prog_RANLIB"
5813
7229
fi
5815
7231
if test -n "$ac_tool_prefix"; then
5816
7232
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5817
7233
set dummy ${ac_tool_prefix}strip; ac_word=$2
5818
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5819
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7234
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820
7236
if test "${ac_cv_prog_STRIP+set}" = set; then
5821
7237
  echo $ECHO_N "(cached) $ECHO_C" >&6
5822
7238
else
5829
7245
  IFS=$as_save_IFS
5830
7246
  test -z "$as_dir" && as_dir=.
5831
7247
  for ac_exec_ext in '' $ac_executable_extensions; do
5832
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7248
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5833
7249
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5834
7250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835
7251
    break 2
5836
7252
  fi
5837
7253
done
5838
7254
done
 
7255
IFS=$as_save_IFS
5839
7256
 
5840
7257
fi
5841
7258
fi
5842
7259
STRIP=$ac_cv_prog_STRIP
5843
7260
if test -n "$STRIP"; then
5844
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5845
 
echo "${ECHO_T}$STRIP" >&6
 
7261
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7262
echo "${ECHO_T}$STRIP" >&6; }
5846
7263
else
5847
 
  echo "$as_me:$LINENO: result: no" >&5
5848
 
echo "${ECHO_T}no" >&6
 
7264
  { echo "$as_me:$LINENO: result: no" >&5
 
7265
echo "${ECHO_T}no" >&6; }
5849
7266
fi
 
7267
 
5850
7268
 
5851
7269
fi
5852
7270
if test -z "$ac_cv_prog_STRIP"; then
5853
7271
  ac_ct_STRIP=$STRIP
5854
7272
  # Extract the first word of "strip", so it can be a program name with args.
5855
7273
set dummy strip; ac_word=$2
5856
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5857
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7274
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858
7276
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5859
7277
  echo $ECHO_N "(cached) $ECHO_C" >&6
5860
7278
else
5867
7285
  IFS=$as_save_IFS
5868
7286
  test -z "$as_dir" && as_dir=.
5869
7287
  for ac_exec_ext in '' $ac_executable_extensions; do
5870
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7288
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871
7289
    ac_cv_prog_ac_ct_STRIP="strip"
5872
7290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873
7291
    break 2
5874
7292
  fi
5875
7293
done
5876
7294
done
 
7295
IFS=$as_save_IFS
5877
7296
 
5878
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5879
7297
fi
5880
7298
fi
5881
7299
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5882
7300
if test -n "$ac_ct_STRIP"; then
5883
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5884
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7301
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7302
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5885
7303
else
5886
 
  echo "$as_me:$LINENO: result: no" >&5
5887
 
echo "${ECHO_T}no" >&6
 
7304
  { echo "$as_me:$LINENO: result: no" >&5
 
7305
echo "${ECHO_T}no" >&6; }
5888
7306
fi
5889
7307
 
5890
 
  STRIP=$ac_ct_STRIP
 
7308
  if test "x$ac_ct_STRIP" = x; then
 
7309
    STRIP=":"
 
7310
  else
 
7311
    case $cross_compiling:$ac_tool_warned in
 
7312
yes:)
 
7313
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7314
whose name does not start with the host triplet.  If you think this
 
7315
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7316
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7317
whose name does not start with the host triplet.  If you think this
 
7318
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7319
ac_tool_warned=yes ;;
 
7320
esac
 
7321
    STRIP=$ac_ct_STRIP
 
7322
  fi
5891
7323
else
5892
7324
  STRIP="$ac_cv_prog_STRIP"
5893
7325
fi
5902
7334
test -z "$AS" && AS=as
5903
7335
test -z "$CC" && CC=cc
5904
7336
test -z "$LTCC" && LTCC=$CC
 
7337
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5905
7338
test -z "$DLLTOOL" && DLLTOOL=dlltool
5906
7339
test -z "$LD" && LD=ld
5907
7340
test -z "$LN_S" && LN_S="ln -s"
5921
7354
if test -n "$RANLIB"; then
5922
7355
  case $host_os in
5923
7356
  openbsd*)
5924
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7357
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5925
7358
    ;;
5926
7359
  *)
5927
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7360
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5928
7361
    ;;
5929
7362
  esac
5930
7363
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5931
7364
fi
5932
7365
 
 
7366
for cc_temp in $compiler""; do
 
7367
  case $cc_temp in
 
7368
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7369
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7370
    \-*) ;;
 
7371
    *) break;;
 
7372
  esac
 
7373
done
 
7374
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7375
 
 
7376
 
5933
7377
# Only perform the check for file, if the check method requires it
5934
7378
case $deplibs_check_method in
5935
7379
file_magic*)
5936
7380
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5937
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5938
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7381
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7382
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5939
7383
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5940
7384
  echo $ECHO_N "(cached) $ECHO_C" >&6
5941
7385
else
5955
7399
      if test -n "$file_magic_test_file"; then
5956
7400
        case $deplibs_check_method in
5957
7401
        "file_magic "*)
5958
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7402
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5959
7403
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960
7404
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5961
7405
            $EGREP "$file_magic_regex" > /dev/null; then
5987
7431
 
5988
7432
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989
7433
if test -n "$MAGIC_CMD"; then
5990
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5991
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7434
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7435
echo "${ECHO_T}$MAGIC_CMD" >&6; }
5992
7436
else
5993
 
  echo "$as_me:$LINENO: result: no" >&5
5994
 
echo "${ECHO_T}no" >&6
 
7437
  { echo "$as_me:$LINENO: result: no" >&5
 
7438
echo "${ECHO_T}no" >&6; }
5995
7439
fi
5996
7440
 
5997
7441
if test -z "$lt_cv_path_MAGIC_CMD"; then
5998
7442
  if test -n "$ac_tool_prefix"; then
5999
 
    echo "$as_me:$LINENO: checking for file" >&5
6000
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7443
    { echo "$as_me:$LINENO: checking for file" >&5
 
7444
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6001
7445
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6002
7446
  echo $ECHO_N "(cached) $ECHO_C" >&6
6003
7447
else
6017
7461
      if test -n "$file_magic_test_file"; then
6018
7462
        case $deplibs_check_method in
6019
7463
        "file_magic "*)
6020
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7464
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6021
7465
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6022
7466
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6023
7467
            $EGREP "$file_magic_regex" > /dev/null; then
6049
7493
 
6050
7494
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6051
7495
if test -n "$MAGIC_CMD"; then
6052
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6053
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7496
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7497
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6054
7498
else
6055
 
  echo "$as_me:$LINENO: result: no" >&5
6056
 
echo "${ECHO_T}no" >&6
 
7499
  { echo "$as_me:$LINENO: result: no" >&5
 
7500
echo "${ECHO_T}no" >&6; }
6057
7501
fi
6058
7502
 
6059
7503
  else
6068
7512
enable_dlopen=no
6069
7513
enable_win32_dll=no
6070
7514
 
6071
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7515
# Check whether --enable-libtool-lock was given.
6072
7516
if test "${enable_libtool_lock+set}" = set; then
6073
 
  enableval="$enable_libtool_lock"
 
7517
  enableval=$enable_libtool_lock;
 
7518
fi
6074
7519
 
6075
 
fi;
6076
7520
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6077
7521
 
6078
7522
 
6079
 
# Check whether --with-pic or --without-pic was given.
 
7523
# Check whether --with-pic was given.
6080
7524
if test "${with_pic+set}" = set; then
6081
 
  withval="$with_pic"
6082
 
  pic_mode="$withval"
 
7525
  withval=$with_pic; pic_mode="$withval"
6083
7526
else
6084
7527
  pic_mode=default
6085
 
fi;
 
7528
fi
 
7529
 
6086
7530
test -z "$pic_mode" && pic_mode=default
6087
7531
 
6088
7532
# Use C for the default configuration in the libtool script
6112
7556
# If no C compiler was specified, use CC.
6113
7557
LTCC=${LTCC-"$CC"}
6114
7558
 
 
7559
# If no C compiler flags were specified, use CFLAGS.
 
7560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7561
 
6115
7562
# Allow CC to be a program name with arguments.
6116
7563
compiler=$CC
6117
7564
 
6118
7565
 
6119
 
#
6120
 
# Check for any special shared library compilation flags.
6121
 
#
6122
 
lt_prog_cc_shlib=
6123
 
if test "$GCC" = no; then
6124
 
  case $host_os in
6125
 
  sco3.2v5*)
6126
 
    lt_prog_cc_shlib='-belf'
6127
 
    ;;
6128
 
  esac
6129
 
fi
6130
 
if test -n "$lt_prog_cc_shlib"; then
6131
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6132
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6133
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6134
 
  else
6135
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6136
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6137
 
    lt_cv_prog_cc_can_build_shared=no
6138
 
  fi
6139
 
fi
6140
 
 
6141
 
 
6142
 
#
6143
 
# Check to make sure the static flag actually works.
6144
 
#
6145
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6146
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6147
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6148
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6149
 
else
6150
 
  lt_prog_compiler_static_works=no
6151
 
   save_LDFLAGS="$LDFLAGS"
6152
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6153
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6154
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6155
 
     # The compiler can only warn and ignore the option if not recognized
6156
 
     # So say no if there are warnings
6157
 
     if test -s conftest.err; then
6158
 
       # Append any errors to the config.log.
6159
 
       cat conftest.err 1>&5
6160
 
     else
6161
 
       lt_prog_compiler_static_works=yes
6162
 
     fi
6163
 
   fi
6164
 
   $rm conftest*
6165
 
   LDFLAGS="$save_LDFLAGS"
6166
 
 
6167
 
fi
6168
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6169
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6170
 
 
6171
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6172
 
    :
6173
 
else
6174
 
    lt_prog_compiler_static=
6175
 
fi
6176
 
 
 
7566
# save warnings/boilerplate of simple test code
 
7567
ac_outfile=conftest.$ac_objext
 
7568
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7569
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7570
_lt_compiler_boilerplate=`cat conftest.err`
 
7571
$rm conftest*
 
7572
 
 
7573
ac_outfile=conftest.$ac_objext
 
7574
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7575
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7576
_lt_linker_boilerplate=`cat conftest.err`
 
7577
$rm conftest*
6177
7578
 
6178
7579
 
6179
7580
 
6183
7584
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6184
7585
 
6185
7586
 
6186
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6187
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7587
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7588
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6188
7589
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6189
7590
  echo $ECHO_N "(cached) $ECHO_C" >&6
6190
7591
else
6198
7599
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6199
7600
   # The option is referenced via a variable to avoid confusing sed.
6200
7601
   lt_compile=`echo "$ac_compile" | $SED \
6201
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7602
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6202
7603
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203
7604
   -e 's:$: $lt_compiler_flag:'`
6204
 
   (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
 
7605
   (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
6205
7606
   (eval "$lt_compile" 2>conftest.err)
6206
7607
   ac_status=$?
6207
7608
   cat conftest.err >&5
6208
 
   echo "$as_me:6208: \$? = $ac_status" >&5
 
7609
   echo "$as_me:7609: \$? = $ac_status" >&5
6209
7610
   if (exit $ac_status) && test -s "$ac_outfile"; then
6210
7611
     # The compiler can only warn and ignore the option if not recognized
6211
 
     # So say no if there are warnings
6212
 
     if test ! -s conftest.err; then
 
7612
     # So say no if there are warnings other than the usual output.
 
7613
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7614
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7615
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6213
7616
       lt_cv_prog_compiler_rtti_exceptions=yes
6214
7617
     fi
6215
7618
   fi
6216
7619
   $rm conftest*
6217
7620
 
6218
7621
fi
6219
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6220
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7622
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7623
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6221
7624
 
6222
7625
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6223
7626
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6231
7634
lt_prog_compiler_pic=
6232
7635
lt_prog_compiler_static=
6233
7636
 
6234
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6235
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7637
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7638
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6236
7639
 
6237
7640
  if test "$GCC" = yes; then
6238
7641
    lt_prog_compiler_wl='-Wl,'
6270
7673
      lt_prog_compiler_pic='-fno-common'
6271
7674
      ;;
6272
7675
 
 
7676
    interix3*)
 
7677
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7678
      # Instead, we relocate shared libraries at runtime.
 
7679
      ;;
 
7680
 
6273
7681
    msdosdjgpp*)
6274
7682
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6275
7683
      # on systems that don't support them.
6286
7694
    hpux*)
6287
7695
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6288
7696
      # not for PA HP-UX.
6289
 
      case "$host_cpu" in
 
7697
      case $host_cpu in
6290
7698
      hppa*64*|ia64*)
6291
7699
        # +Z the default
6292
7700
        ;;
6312
7720
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6313
7721
      fi
6314
7722
      ;;
 
7723
      darwin*)
 
7724
        # PIC is the default on this platform
 
7725
        # Common symbols not allowed in MH_DYLIB files
 
7726
       case $cc_basename in
 
7727
         xlc*)
 
7728
         lt_prog_compiler_pic='-qnocommon'
 
7729
         lt_prog_compiler_wl='-Wl,'
 
7730
         ;;
 
7731
       esac
 
7732
       ;;
6315
7733
 
6316
7734
    mingw* | pw32* | os2*)
6317
7735
      # This hack is so that the source file can tell whether it is being
6323
7741
      lt_prog_compiler_wl='-Wl,'
6324
7742
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6325
7743
      # not for PA HP-UX.
6326
 
      case "$host_cpu" in
 
7744
      case $host_cpu in
6327
7745
      hppa*64*|ia64*)
6328
7746
        # +Z the default
6329
7747
        ;;
6346
7764
      lt_prog_compiler_static='-Bstatic'
6347
7765
      ;;
6348
7766
 
6349
 
    linux*)
6350
 
      case $CC in
 
7767
    linux* | k*bsd*-gnu)
 
7768
      case $cc_basename in
6351
7769
      icc* | ecc*)
6352
7770
        lt_prog_compiler_wl='-Wl,'
6353
7771
        lt_prog_compiler_pic='-KPIC'
6354
7772
        lt_prog_compiler_static='-static'
6355
7773
        ;;
 
7774
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7775
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7776
        # which looks to be a dead project)
 
7777
        lt_prog_compiler_wl='-Wl,'
 
7778
        lt_prog_compiler_pic='-fpic'
 
7779
        lt_prog_compiler_static='-Bstatic'
 
7780
        ;;
6356
7781
      ccc*)
6357
7782
        lt_prog_compiler_wl='-Wl,'
6358
7783
        # All Alpha code is PIC.
6367
7792
      lt_prog_compiler_static='-non_shared'
6368
7793
      ;;
6369
7794
 
6370
 
    sco3.2v5*)
6371
 
      lt_prog_compiler_pic='-Kpic'
6372
 
      lt_prog_compiler_static='-dn'
6373
 
      ;;
6374
 
 
6375
7795
    solaris*)
6376
 
      lt_prog_compiler_wl='-Wl,'
6377
7796
      lt_prog_compiler_pic='-KPIC'
6378
7797
      lt_prog_compiler_static='-Bstatic'
 
7798
      case $cc_basename in
 
7799
      f77* | f90* | f95*)
 
7800
        lt_prog_compiler_wl='-Qoption ld ';;
 
7801
      *)
 
7802
        lt_prog_compiler_wl='-Wl,';;
 
7803
      esac
6379
7804
      ;;
6380
7805
 
6381
7806
    sunos4*)
6384
7809
      lt_prog_compiler_static='-Bstatic'
6385
7810
      ;;
6386
7811
 
6387
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7812
    sysv4 | sysv4.2uw2* | sysv4.3*)
6388
7813
      lt_prog_compiler_wl='-Wl,'
6389
7814
      lt_prog_compiler_pic='-KPIC'
6390
7815
      lt_prog_compiler_static='-Bstatic'
6397
7822
      fi
6398
7823
      ;;
6399
7824
 
 
7825
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7826
      lt_prog_compiler_wl='-Wl,'
 
7827
      lt_prog_compiler_pic='-KPIC'
 
7828
      lt_prog_compiler_static='-Bstatic'
 
7829
      ;;
 
7830
 
 
7831
    unicos*)
 
7832
      lt_prog_compiler_wl='-Wl,'
 
7833
      lt_prog_compiler_can_build_shared=no
 
7834
      ;;
 
7835
 
6400
7836
    uts4*)
6401
7837
      lt_prog_compiler_pic='-pic'
6402
7838
      lt_prog_compiler_static='-Bstatic'
6408
7844
    esac
6409
7845
  fi
6410
7846
 
6411
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6412
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7847
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7848
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6413
7849
 
6414
7850
#
6415
7851
# Check to make sure the PIC flag actually works.
6416
7852
#
6417
7853
if test -n "$lt_prog_compiler_pic"; then
6418
7854
 
6419
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6420
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7855
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7856
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6421
7857
if test "${lt_prog_compiler_pic_works+set}" = set; then
6422
7858
  echo $ECHO_N "(cached) $ECHO_C" >&6
6423
7859
else
6431
7867
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6432
7868
   # The option is referenced via a variable to avoid confusing sed.
6433
7869
   lt_compile=`echo "$ac_compile" | $SED \
6434
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7870
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6435
7871
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6436
7872
   -e 's:$: $lt_compiler_flag:'`
6437
 
   (eval echo "\"\$as_me:6437: $lt_compile\"" >&5)
 
7873
   (eval echo "\"\$as_me:7873: $lt_compile\"" >&5)
6438
7874
   (eval "$lt_compile" 2>conftest.err)
6439
7875
   ac_status=$?
6440
7876
   cat conftest.err >&5
6441
 
   echo "$as_me:6441: \$? = $ac_status" >&5
 
7877
   echo "$as_me:7877: \$? = $ac_status" >&5
6442
7878
   if (exit $ac_status) && test -s "$ac_outfile"; then
6443
7879
     # The compiler can only warn and ignore the option if not recognized
6444
 
     # So say no if there are warnings
6445
 
     if test ! -s conftest.err; then
 
7880
     # So say no if there are warnings other than the usual output.
 
7881
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7882
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7883
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6446
7884
       lt_prog_compiler_pic_works=yes
6447
7885
     fi
6448
7886
   fi
6449
7887
   $rm conftest*
6450
7888
 
6451
7889
fi
6452
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6453
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7890
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7891
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6454
7892
 
6455
7893
if test x"$lt_prog_compiler_pic_works" = xyes; then
6456
7894
    case $lt_prog_compiler_pic in
6463
7901
fi
6464
7902
 
6465
7903
fi
6466
 
case "$host_os" in
 
7904
case $host_os in
6467
7905
  # For platforms which do not support PIC, -DPIC is meaningless:
6468
7906
  *djgpp*)
6469
7907
    lt_prog_compiler_pic=
6473
7911
    ;;
6474
7912
esac
6475
7913
 
6476
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6477
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7914
#
 
7915
# Check to make sure the static flag actually works.
 
7916
#
 
7917
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7918
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7919
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7920
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7922
else
 
7923
  lt_prog_compiler_static_works=no
 
7924
   save_LDFLAGS="$LDFLAGS"
 
7925
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7926
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7927
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7928
     # The linker can only warn and ignore the option if not recognized
 
7929
     # So say no if there are warnings
 
7930
     if test -s conftest.err; then
 
7931
       # Append any errors to the config.log.
 
7932
       cat conftest.err 1>&5
 
7933
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7934
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7935
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7936
         lt_prog_compiler_static_works=yes
 
7937
       fi
 
7938
     else
 
7939
       lt_prog_compiler_static_works=yes
 
7940
     fi
 
7941
   fi
 
7942
   $rm conftest*
 
7943
   LDFLAGS="$save_LDFLAGS"
 
7944
 
 
7945
fi
 
7946
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7947
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7948
 
 
7949
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7950
    :
 
7951
else
 
7952
    lt_prog_compiler_static=
 
7953
fi
 
7954
 
 
7955
 
 
7956
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7957
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6478
7958
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6479
7959
  echo $ECHO_N "(cached) $ECHO_C" >&6
6480
7960
else
6491
7971
   # Note that $ac_compile itself does not contain backslashes and begins
6492
7972
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6493
7973
   lt_compile=`echo "$ac_compile" | $SED \
6494
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7974
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6495
7975
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6496
7976
   -e 's:$: $lt_compiler_flag:'`
6497
 
   (eval echo "\"\$as_me:6497: $lt_compile\"" >&5)
 
7977
   (eval echo "\"\$as_me:7977: $lt_compile\"" >&5)
6498
7978
   (eval "$lt_compile" 2>out/conftest.err)
6499
7979
   ac_status=$?
6500
7980
   cat out/conftest.err >&5
6501
 
   echo "$as_me:6501: \$? = $ac_status" >&5
 
7981
   echo "$as_me:7981: \$? = $ac_status" >&5
6502
7982
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6503
7983
   then
6504
7984
     # The compiler can only warn and ignore the option if not recognized
6505
7985
     # So say no if there are warnings
6506
 
     if test ! -s out/conftest.err; then
 
7986
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7987
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7988
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6507
7989
       lt_cv_prog_compiler_c_o=yes
6508
7990
     fi
6509
7991
   fi
6510
 
   chmod u+w .
 
7992
   chmod u+w . 2>&5
6511
7993
   $rm conftest*
6512
7994
   # SGI C++ compiler will create directory out/ii_files/ for
6513
7995
   # template instantiation
6518
8000
   $rm conftest*
6519
8001
 
6520
8002
fi
6521
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6522
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8003
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8004
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6523
8005
 
6524
8006
 
6525
8007
hard_links="nottested"
6526
8008
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6527
8009
  # do not overwrite the value of need_locks provided by the user
6528
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6529
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8010
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8011
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6530
8012
  hard_links=yes
6531
8013
  $rm conftest*
6532
8014
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6533
8015
  touch conftest.a
6534
8016
  ln conftest.a conftest.b 2>&5 || hard_links=no
6535
8017
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6536
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6537
 
echo "${ECHO_T}$hard_links" >&6
 
8018
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8019
echo "${ECHO_T}$hard_links" >&6; }
6538
8020
  if test "$hard_links" = no; then
6539
8021
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6540
8022
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6544
8026
  need_locks=no
6545
8027
fi
6546
8028
 
6547
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6548
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8029
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8030
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6549
8031
 
6550
8032
  runpath_var=
6551
8033
  allow_undefined_flag=
6583
8065
  # rely on this symbol name, it's probably fine to never include it in
6584
8066
  # preloaded symbol tables.
6585
8067
  extract_expsyms_cmds=
 
8068
  # Just being paranoid about ensuring that cc_basename is set.
 
8069
  for cc_temp in $compiler""; do
 
8070
  case $cc_temp in
 
8071
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8072
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8073
    \-*) ;;
 
8074
    *) break;;
 
8075
  esac
 
8076
done
 
8077
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6586
8078
 
6587
8079
  case $host_os in
6588
8080
  cygwin* | mingw* | pw32*)
6593
8085
      with_gnu_ld=no
6594
8086
    fi
6595
8087
    ;;
 
8088
  interix*)
 
8089
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8090
    with_gnu_ld=yes
 
8091
    ;;
6596
8092
  openbsd*)
6597
8093
    with_gnu_ld=no
6598
8094
    ;;
6603
8099
    # If archive_cmds runs LD, not CC, wlarc should be empty
6604
8100
    wlarc='${wl}'
6605
8101
 
 
8102
    # Set some defaults for GNU ld with shared library support. These
 
8103
    # are reset later if shared libraries are not supported. Putting them
 
8104
    # here allows them to be overridden if necessary.
 
8105
    runpath_var=LD_RUN_PATH
 
8106
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8107
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8108
    # ancient GNU ld didn't support --whole-archive et. al.
 
8109
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8110
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8111
      else
 
8112
        whole_archive_flag_spec=
 
8113
    fi
 
8114
    supports_anon_versioning=no
 
8115
    case `$LD -v 2>/dev/null` in
 
8116
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8117
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8118
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8119
      *\ 2.11.*) ;; # other 2.11 versions
 
8120
      *) supports_anon_versioning=yes ;;
 
8121
    esac
 
8122
 
6606
8123
    # See if GNU ld supports shared libraries.
6607
8124
    case $host_os in
6608
8125
    aix3* | aix4* | aix5*)
6653
8170
      allow_undefined_flag=unsupported
6654
8171
      always_export_symbols=no
6655
8172
      enable_shared_with_static_runtimes=yes
6656
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8173
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6657
8174
 
6658
8175
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6659
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8176
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6660
8177
        # If the export-symbols file already is a .def file (1st line
6661
8178
        # is EXPORTS), use it as is; otherwise, prepend...
6662
8179
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6665
8182
          echo EXPORTS > $output_objdir/$soname.def;
6666
8183
          cat $export_symbols >> $output_objdir/$soname.def;
6667
8184
        fi~
6668
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6669
 
      else
6670
 
        ld_shlibs=no
6671
 
      fi
6672
 
      ;;
6673
 
 
6674
 
    netbsd* | knetbsd*-gnu)
 
8185
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8186
      else
 
8187
        ld_shlibs=no
 
8188
      fi
 
8189
      ;;
 
8190
 
 
8191
    interix3*)
 
8192
      hardcode_direct=no
 
8193
      hardcode_shlibpath_var=no
 
8194
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8195
      export_dynamic_flag_spec='${wl}-E'
 
8196
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8197
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8198
      # default) and relocated if they conflict, which is a slow very memory
 
8199
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8200
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8201
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8202
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8203
      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'
 
8204
      ;;
 
8205
 
 
8206
    linux* | k*bsd*-gnu)
 
8207
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8208
        tmp_addflag=
 
8209
        case $cc_basename,$host_cpu in
 
8210
        pgcc*)                          # Portland Group C compiler
 
8211
          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'
 
8212
          tmp_addflag=' $pic_flag'
 
8213
          ;;
 
8214
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8215
          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'
 
8216
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8217
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8218
          tmp_addflag=' -i_dynamic' ;;
 
8219
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8220
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8221
        ifc* | ifort*)                  # Intel Fortran compiler
 
8222
          tmp_addflag=' -nofor_main' ;;
 
8223
        esac
 
8224
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8225
 
 
8226
        if test $supports_anon_versioning = yes; then
 
8227
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8228
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8229
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8230
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8231
        fi
 
8232
        link_all_deplibs=no
 
8233
      else
 
8234
        ld_shlibs=no
 
8235
      fi
 
8236
      ;;
 
8237
 
 
8238
    netbsd* | netbsdelf*-gnu)
6675
8239
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6676
8240
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6677
8241
        wlarc=
6681
8245
      fi
6682
8246
      ;;
6683
8247
 
6684
 
    solaris* | sysv5*)
 
8248
    solaris*)
6685
8249
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6686
8250
        ld_shlibs=no
6687
8251
        cat <<EOF 1>&2
6702
8266
      fi
6703
8267
      ;;
6704
8268
 
 
8269
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8270
      case `$LD -v 2>&1` in
 
8271
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8272
        ld_shlibs=no
 
8273
        cat <<_LT_EOF 1>&2
 
8274
 
 
8275
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8276
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8277
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8278
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8279
*** your PATH or compiler configuration so that the native linker is
 
8280
*** used, and then restart.
 
8281
 
 
8282
_LT_EOF
 
8283
        ;;
 
8284
        *)
 
8285
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8286
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8287
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8288
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8289
          else
 
8290
            ld_shlibs=no
 
8291
          fi
 
8292
        ;;
 
8293
      esac
 
8294
      ;;
 
8295
 
6705
8296
    sunos4*)
6706
8297
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6707
8298
      wlarc=
6709
8300
      hardcode_shlibpath_var=no
6710
8301
      ;;
6711
8302
 
6712
 
  linux*)
6713
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6714
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715
 
        archive_cmds="$tmp_archive_cmds"
6716
 
      supports_anon_versioning=no
6717
 
      case `$LD -v 2>/dev/null` in
6718
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6719
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6720
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6721
 
        *\ 2.11.*) ;; # other 2.11 versions
6722
 
        *) supports_anon_versioning=yes ;;
6723
 
      esac
6724
 
      if test $supports_anon_versioning = yes; then
6725
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6726
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6727
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6728
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6729
 
      else
6730
 
        archive_expsym_cmds="$tmp_archive_cmds"
6731
 
      fi
6732
 
    else
6733
 
      ld_shlibs=no
6734
 
    fi
6735
 
    ;;
6736
 
 
6737
8303
    *)
6738
8304
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6739
8305
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744
8310
      ;;
6745
8311
    esac
6746
8312
 
6747
 
    if test "$ld_shlibs" = yes; then
6748
 
      runpath_var=LD_RUN_PATH
6749
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6750
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6751
 
      # ancient GNU ld didn't support --whole-archive et. al.
6752
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6753
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6754
 
      else
6755
 
        whole_archive_flag_spec=
6756
 
      fi
 
8313
    if test "$ld_shlibs" = no; then
 
8314
      runpath_var=
 
8315
      hardcode_libdir_flag_spec=
 
8316
      export_dynamic_flag_spec=
 
8317
      whole_archive_flag_spec=
6757
8318
    fi
6758
8319
  else
6759
8320
    # PORTME fill in a description of your system's linker (not GNU ld)
6765
8326
      # Note: this linker hardcodes the directories in LIBPATH if there
6766
8327
      # are no directories specified by -L.
6767
8328
      hardcode_minus_L=yes
6768
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8329
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6769
8330
        # Neither direct hardcoding nor static linking is supported with a
6770
8331
        # broken collect2.
6771
8332
        hardcode_direct=unsupported
6799
8360
            break
6800
8361
          fi
6801
8362
          done
 
8363
          ;;
6802
8364
        esac
6803
8365
 
6804
8366
        exp_sym_flag='-bexport'
6817
8379
      link_all_deplibs=yes
6818
8380
 
6819
8381
      if test "$GCC" = yes; then
6820
 
        case $host_os in aix4.012|aix4.012.*)
 
8382
        case $host_os in aix4.[012]|aix4.[012].*)
6821
8383
        # We only want to do this on AIX 4.2 and lower, the check
6822
8384
        # below for broken collect2 doesn't work under 4.3+
6823
8385
          collect2name=`${CC} -print-prog-name=collect2`
6836
8398
          hardcode_libdir_flag_spec='-L$libdir'
6837
8399
          hardcode_libdir_separator=
6838
8400
          fi
 
8401
          ;;
6839
8402
        esac
6840
8403
        shared_flag='-shared'
 
8404
        if test "$aix_use_runtimelinking" = yes; then
 
8405
          shared_flag="$shared_flag "'${wl}-G'
 
8406
        fi
6841
8407
      else
6842
8408
        # not using gcc
6843
8409
        if test "$host_cpu" = ia64; then
6845
8411
        # chokes on -Wl,-G. The following line is correct:
6846
8412
          shared_flag='-G'
6847
8413
        else
6848
 
        if test "$aix_use_runtimelinking" = yes; then
 
8414
          if test "$aix_use_runtimelinking" = yes; then
6849
8415
            shared_flag='${wl}-G'
6850
8416
          else
6851
8417
            shared_flag='${wl}-bM:SRE'
6852
 
        fi
 
8418
          fi
6853
8419
        fi
6854
8420
      fi
6855
8421
 
6877
8443
}
6878
8444
_ACEOF
6879
8445
rm -f conftest.$ac_objext conftest$ac_exeext
6880
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881
 
  (eval $ac_link) 2>conftest.er1
 
8446
if { (ac_try="$ac_link"
 
8447
case "(($ac_try" in
 
8448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8449
  *) ac_try_echo=$ac_try;;
 
8450
esac
 
8451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8452
  (eval "$ac_link") 2>conftest.er1
6882
8453
  ac_status=$?
6883
8454
  grep -v '^ *+' conftest.er1 >conftest.err
6884
8455
  rm -f conftest.er1
6885
8456
  cat conftest.err >&5
6886
8457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887
8458
  (exit $ac_status); } &&
6888
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6889
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890
 
  (eval $ac_try) 2>&5
 
8459
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8460
  { (case "(($ac_try" in
 
8461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8462
  *) ac_try_echo=$ac_try;;
 
8463
esac
 
8464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8465
  (eval "$ac_try") 2>&5
6891
8466
  ac_status=$?
6892
8467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
8468
  (exit $ac_status); }; } &&
6894
8469
         { ac_try='test -s conftest$ac_exeext'
6895
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896
 
  (eval $ac_try) 2>&5
 
8470
  { (case "(($ac_try" in
 
8471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8472
  *) ac_try_echo=$ac_try;;
 
8473
esac
 
8474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8475
  (eval "$ac_try") 2>&5
6897
8476
  ac_status=$?
6898
8477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
8478
  (exit $ac_status); }; }; then
6907
8486
  echo "$as_me: failed program was:" >&5
6908
8487
sed 's/^/| /' conftest.$ac_ext >&5
6909
8488
 
 
8489
 
6910
8490
fi
6911
 
rm -f conftest.err conftest.$ac_objext \
 
8491
 
 
8492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6912
8493
      conftest$ac_exeext conftest.$ac_ext
6913
8494
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6914
8495
 
6915
8496
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6916
 
        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"
 
8497
        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"
6917
8498
       else
6918
8499
        if test "$host_cpu" = ia64; then
6919
8500
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6920
8501
          allow_undefined_flag="-z nodefs"
6921
 
          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"
 
8502
          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"
6922
8503
        else
6923
8504
         # Determine the default libpath from the value encoded in an empty executable.
6924
8505
         cat >conftest.$ac_ext <<_ACEOF
6937
8518
}
6938
8519
_ACEOF
6939
8520
rm -f conftest.$ac_objext conftest$ac_exeext
6940
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941
 
  (eval $ac_link) 2>conftest.er1
 
8521
if { (ac_try="$ac_link"
 
8522
case "(($ac_try" in
 
8523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8524
  *) ac_try_echo=$ac_try;;
 
8525
esac
 
8526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8527
  (eval "$ac_link") 2>conftest.er1
6942
8528
  ac_status=$?
6943
8529
  grep -v '^ *+' conftest.er1 >conftest.err
6944
8530
  rm -f conftest.er1
6945
8531
  cat conftest.err >&5
6946
8532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947
8533
  (exit $ac_status); } &&
6948
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950
 
  (eval $ac_try) 2>&5
 
8534
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8535
  { (case "(($ac_try" in
 
8536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8537
  *) ac_try_echo=$ac_try;;
 
8538
esac
 
8539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8540
  (eval "$ac_try") 2>&5
6951
8541
  ac_status=$?
6952
8542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953
8543
  (exit $ac_status); }; } &&
6954
8544
         { ac_try='test -s conftest$ac_exeext'
6955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956
 
  (eval $ac_try) 2>&5
 
8545
  { (case "(($ac_try" in
 
8546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8547
  *) ac_try_echo=$ac_try;;
 
8548
esac
 
8549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8550
  (eval "$ac_try") 2>&5
6957
8551
  ac_status=$?
6958
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
8553
  (exit $ac_status); }; }; then
6967
8561
  echo "$as_me: failed program was:" >&5
6968
8562
sed 's/^/| /' conftest.$ac_ext >&5
6969
8563
 
 
8564
 
6970
8565
fi
6971
 
rm -f conftest.err conftest.$ac_objext \
 
8566
 
 
8567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6972
8568
      conftest$ac_exeext conftest.$ac_ext
6973
8569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6974
8570
 
6977
8573
          # -berok will link without error, but may produce a broken library.
6978
8574
          no_undefined_flag=' ${wl}-bernotok'
6979
8575
          allow_undefined_flag=' ${wl}-berok'
6980
 
          # -bexpall does not export symbols beginning with underscore (_)
6981
 
          always_export_symbols=yes
6982
8576
          # Exported symbols can be pulled into shared objects from archives
6983
 
          whole_archive_flag_spec=' '
 
8577
          whole_archive_flag_spec='$convenience'
6984
8578
          archive_cmds_need_lc=yes
6985
 
          # This is similar to how AIX traditionally builds it's shared libraries.
6986
 
          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'
 
8579
          # This is similar to how AIX traditionally builds its shared libraries.
 
8580
          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'
6987
8581
        fi
6988
8582
      fi
6989
8583
      ;;
6996
8590
      ld_shlibs=no
6997
8591
      ;;
6998
8592
 
6999
 
    bsdi4*)
 
8593
    bsdi[45]*)
7000
8594
      export_dynamic_flag_spec=-rdynamic
7001
8595
      ;;
7002
8596
 
7010
8604
      # Tell ltmain to make .lib files, not .a files.
7011
8605
      libext=lib
7012
8606
      # Tell ltmain to make .dll files, not .so files.
7013
 
      shrext=".dll"
 
8607
      shrext_cmds=".dll"
7014
8608
      # FIXME: Setting linknames here is a bad hack.
7015
8609
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7016
8610
      # The linker will automatically build a .lib file if we build a DLL.
7022
8616
      ;;
7023
8617
 
7024
8618
    darwin* | rhapsody*)
7025
 
    if test "$GXX" = yes ; then
 
8619
      case $host_os in
 
8620
        rhapsody* | darwin1.[012])
 
8621
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8622
         ;;
 
8623
       *) # Darwin 1.3 on
 
8624
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8625
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8626
         else
 
8627
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8628
             10.[012])
 
8629
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8630
               ;;
 
8631
             10.*)
 
8632
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8633
               ;;
 
8634
           esac
 
8635
         fi
 
8636
         ;;
 
8637
      esac
7026
8638
      archive_cmds_need_lc=no
7027
 
      case "$host_os" in
7028
 
      rhapsody* | darwin1.[012])
7029
 
        allow_undefined_flag='-undefined suppress'
7030
 
        ;;
7031
 
      *) # Darwin 1.3 on
7032
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7033
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7034
 
      else
7035
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7036
 
          10.[012])
7037
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7038
 
            ;;
7039
 
          10.*)
7040
 
            allow_undefined_flag='-undefined dynamic_lookup'
7041
 
            ;;
7042
 
        esac
7043
 
      fi
7044
 
        ;;
7045
 
      esac
7046
 
        lt_int_apple_cc_single_mod=no
7047
 
        output_verbose_link_cmd='echo'
7048
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7049
 
          lt_int_apple_cc_single_mod=yes
7050
 
        fi
7051
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7052
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7053
 
        else
7054
 
        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'
7055
 
      fi
7056
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7057
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7058
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7059
 
          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}'
7060
 
        else
7061
 
          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}'
7062
 
        fi
7063
 
          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}'
7064
8639
      hardcode_direct=no
7065
8640
      hardcode_automatic=yes
7066
8641
      hardcode_shlibpath_var=unsupported
7067
 
      whole_archive_flag_spec='-all_load $convenience'
 
8642
      whole_archive_flag_spec=''
7068
8643
      link_all_deplibs=yes
 
8644
    if test "$GCC" = yes ; then
 
8645
        output_verbose_link_cmd='echo'
 
8646
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8647
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8648
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8649
      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}'
 
8650
      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}'
7069
8651
    else
7070
 
      ld_shlibs=no
 
8652
      case $cc_basename in
 
8653
        xlc*)
 
8654
         output_verbose_link_cmd='echo'
 
8655
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8656
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8657
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8658
         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}'
 
8659
          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}'
 
8660
          ;;
 
8661
       *)
 
8662
         ld_shlibs=no
 
8663
          ;;
 
8664
      esac
7071
8665
    fi
7072
8666
      ;;
7073
8667
 
7101
8695
      ;;
7102
8696
 
7103
8697
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7104
 
    freebsd* | kfreebsd*-gnu)
 
8698
    freebsd* | dragonfly*)
7105
8699
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7106
8700
      hardcode_libdir_flag_spec='-R$libdir'
7107
8701
      hardcode_direct=yes
7124
8718
      export_dynamic_flag_spec='${wl}-E'
7125
8719
      ;;
7126
8720
 
7127
 
    hpux10* | hpux11*)
7128
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7129
 
        case "$host_cpu" in
7130
 
        hppa*64*|ia64*)
 
8721
    hpux10*)
 
8722
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8723
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8724
      else
 
8725
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8726
      fi
 
8727
      if test "$with_gnu_ld" = no; then
 
8728
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8729
        hardcode_libdir_separator=:
 
8730
 
 
8731
        hardcode_direct=yes
 
8732
        export_dynamic_flag_spec='${wl}-E'
 
8733
 
 
8734
        # hardcode_minus_L: Not really in the search PATH,
 
8735
        # but as the default location of the library.
 
8736
        hardcode_minus_L=yes
 
8737
      fi
 
8738
      ;;
 
8739
 
 
8740
    hpux11*)
 
8741
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8742
        case $host_cpu in
 
8743
        hppa*64*)
7131
8744
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7132
8745
          ;;
 
8746
        ia64*)
 
8747
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8748
          ;;
7133
8749
        *)
7134
8750
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7135
8751
          ;;
7136
8752
        esac
7137
8753
      else
7138
 
        case "$host_cpu" in
7139
 
        hppa*64*|ia64*)
7140
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8754
        case $host_cpu in
 
8755
        hppa*64*)
 
8756
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8757
          ;;
 
8758
        ia64*)
 
8759
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7141
8760
          ;;
7142
8761
        *)
7143
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8762
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7144
8763
          ;;
7145
8764
        esac
7146
8765
      fi
7147
8766
      if test "$with_gnu_ld" = no; then
7148
 
        case "$host_cpu" in
7149
 
        hppa*64*)
7150
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8767
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8768
        hardcode_libdir_separator=:
 
8769
 
 
8770
        case $host_cpu in
 
8771
        hppa*64*|ia64*)
7151
8772
          hardcode_libdir_flag_spec_ld='+b $libdir'
7152
 
          hardcode_libdir_separator=:
7153
 
          hardcode_direct=no
7154
 
          hardcode_shlibpath_var=no
7155
 
          ;;
7156
 
        ia64*)
7157
 
          hardcode_libdir_flag_spec='-L$libdir'
7158
 
          hardcode_direct=no
7159
 
          hardcode_shlibpath_var=no
7160
 
 
7161
 
          # hardcode_minus_L: Not really in the search PATH,
7162
 
          # but as the default location of the library.
7163
 
          hardcode_minus_L=yes
 
8773
          hardcode_direct=no
 
8774
          hardcode_shlibpath_var=no
7164
8775
          ;;
7165
8776
        *)
7166
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7167
 
          hardcode_libdir_separator=:
7168
8777
          hardcode_direct=yes
7169
8778
          export_dynamic_flag_spec='${wl}-E'
7170
8779
 
7188
8797
      link_all_deplibs=yes
7189
8798
      ;;
7190
8799
 
7191
 
    netbsd* | knetbsd*-gnu)
 
8800
    netbsd* | netbsdelf*-gnu)
7192
8801
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7193
8802
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7194
8803
      else
7212
8821
      hardcode_shlibpath_var=no
7213
8822
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7214
8823
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8824
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7215
8825
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7216
8826
        export_dynamic_flag_spec='${wl}-E'
7217
8827
      else
7257
8867
        allow_undefined_flag=' -expect_unresolved \*'
7258
8868
        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'
7259
8869
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7260
 
        $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'
 
8870
        $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'
7261
8871
 
7262
8872
        # Both c and cxx compiler support -rpath directly
7263
8873
        hardcode_libdir_flag_spec='-rpath $libdir'
7265
8875
      hardcode_libdir_separator=:
7266
8876
      ;;
7267
8877
 
7268
 
    sco3.2v5*)
7269
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270
 
      hardcode_shlibpath_var=no
7271
 
      export_dynamic_flag_spec='${wl}-Bexport'
7272
 
      runpath_var=LD_RUN_PATH
7273
 
      hardcode_runpath_var=yes
7274
 
      ;;
7275
 
 
7276
8878
    solaris*)
7277
8879
      no_undefined_flag=' -z text'
7278
8880
      if test "$GCC" = yes; then
 
8881
        wlarc='${wl}'
7279
8882
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7280
8883
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7281
8884
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7282
8885
      else
 
8886
        wlarc=''
7283
8887
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284
8888
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7285
8889
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7288
8892
      hardcode_shlibpath_var=no
7289
8893
      case $host_os in
7290
8894
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7291
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7292
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8895
      *)
 
8896
        # The compiler driver will combine linker options so we
 
8897
        # cannot just pass the convience library names through
 
8898
        # without $wl, iff we do not link with $LD.
 
8899
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8900
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8901
        case $wlarc in
 
8902
        '')
 
8903
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8904
        *)
 
8905
          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' ;;
 
8906
        esac ;;
7293
8907
      esac
7294
8908
      link_all_deplibs=yes
7295
8909
      ;;
7346
8960
      fi
7347
8961
      ;;
7348
8962
 
7349
 
    sysv4.2uw2*)
7350
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7351
 
      hardcode_direct=yes
7352
 
      hardcode_minus_L=no
7353
 
      hardcode_shlibpath_var=no
7354
 
      hardcode_runpath_var=yes
7355
 
      runpath_var=LD_RUN_PATH
7356
 
      ;;
7357
 
 
7358
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7359
 
      no_undefined_flag='${wl}-z ${wl}text'
7360
 
      if test "$GCC" = yes; then
7361
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362
 
      else
7363
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364
 
      fi
7365
 
      runpath_var='LD_RUN_PATH'
7366
 
      hardcode_shlibpath_var=no
7367
 
      ;;
7368
 
 
7369
 
    sysv5*)
7370
 
      no_undefined_flag=' -z text'
7371
 
      # $CC -shared without GNU ld will not create a library from C++
7372
 
      # object files and a static libstdc++, better avoid it by now
7373
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7375
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7376
 
      hardcode_libdir_flag_spec=
7377
 
      hardcode_shlibpath_var=no
7378
 
      runpath_var='LD_RUN_PATH'
 
8963
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8964
      no_undefined_flag='${wl}-z,text'
 
8965
      archive_cmds_need_lc=no
 
8966
      hardcode_shlibpath_var=no
 
8967
      runpath_var='LD_RUN_PATH'
 
8968
 
 
8969
      if test "$GCC" = yes; then
 
8970
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8971
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8972
      else
 
8973
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8974
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8975
      fi
 
8976
      ;;
 
8977
 
 
8978
    sysv5* | sco3.2v5* | sco5v6*)
 
8979
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8980
      # link with -lc, and that would cause any symbols used from libc to
 
8981
      # always be unresolved, which means just about no library would
 
8982
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8983
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8984
      # as -z defs.
 
8985
      no_undefined_flag='${wl}-z,text'
 
8986
      allow_undefined_flag='${wl}-z,nodefs'
 
8987
      archive_cmds_need_lc=no
 
8988
      hardcode_shlibpath_var=no
 
8989
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8990
      hardcode_libdir_separator=':'
 
8991
      link_all_deplibs=yes
 
8992
      export_dynamic_flag_spec='${wl}-Bexport'
 
8993
      runpath_var='LD_RUN_PATH'
 
8994
 
 
8995
      if test "$GCC" = yes; then
 
8996
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8997
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8998
      else
 
8999
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9000
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9001
      fi
7379
9002
      ;;
7380
9003
 
7381
9004
    uts4*)
7390
9013
    esac
7391
9014
  fi
7392
9015
 
7393
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7394
 
echo "${ECHO_T}$ld_shlibs" >&6
 
9016
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9017
echo "${ECHO_T}$ld_shlibs" >&6; }
7395
9018
test "$ld_shlibs" = no && can_build_shared=no
7396
9019
 
7397
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7398
 
if test "$GCC" = yes; then
7399
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7400
 
fi
7401
 
 
7402
9020
#
7403
9021
# Do we need to explicitly link libc?
7404
9022
#
7416
9034
      # Test whether the compiler implicitly links with -lc since on some
7417
9035
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7418
9036
      # to ld, don't add -lc before -lgcc.
7419
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7420
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9037
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9038
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7421
9039
      $rm conftest*
7422
9040
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7423
9041
 
7431
9049
        libobjs=conftest.$ac_objext
7432
9050
        deplibs=
7433
9051
        wl=$lt_prog_compiler_wl
 
9052
        pic_flag=$lt_prog_compiler_pic
7434
9053
        compiler_flags=-v
7435
9054
        linker_flags=-v
7436
9055
        verstring=
7453
9072
        cat conftest.err 1>&5
7454
9073
      fi
7455
9074
      $rm conftest*
7456
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7457
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9075
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9076
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7458
9077
      ;;
7459
9078
    esac
7460
9079
  fi
7461
9080
  ;;
7462
9081
esac
7463
9082
 
7464
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7465
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9083
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9084
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7466
9085
library_names_spec=
7467
9086
libname_spec='lib$name'
7468
9087
soname_spec=
7469
 
shrext=".so"
 
9088
shrext_cmds=".so"
7470
9089
postinstall_cmds=
7471
9090
postuninstall_cmds=
7472
9091
finish_cmds=
7563
9182
  shlibpath_var=LIBRARY_PATH
7564
9183
  ;;
7565
9184
 
7566
 
bsdi4*)
 
9185
bsdi[45]*)
7567
9186
  version_type=linux
7568
9187
  need_version=no
7569
9188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7579
9198
 
7580
9199
cygwin* | mingw* | pw32*)
7581
9200
  version_type=windows
7582
 
  shrext=".dll"
 
9201
  shrext_cmds=".dll"
7583
9202
  need_version=no
7584
9203
  need_lib_prefix=no
7585
9204
 
7591
9210
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7592
9211
      dldir=$destdir/`dirname \$dlpath`~
7593
9212
      test -d \$dldir || mkdir -p \$dldir~
7594
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9213
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9214
      chmod a+x \$dldir/$dlname'
7595
9215
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7596
9216
      dlpath=$dir/\$dldll~
7597
9217
       $rm \$dlpath'
7621
9241
      ;;
7622
9242
    pw32*)
7623
9243
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7624
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9244
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7625
9245
      ;;
7626
9246
    esac
7627
9247
    ;;
7644
9264
  soname_spec='${libname}${release}${major}$shared_ext'
7645
9265
  shlibpath_overrides_runpath=yes
7646
9266
  shlibpath_var=DYLD_LIBRARY_PATH
7647
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
9267
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7648
9268
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7649
9269
  if test "$GCC" = yes; then
7650
9270
    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"`
7667
9287
  dynamic_linker=no
7668
9288
  ;;
7669
9289
 
7670
 
kfreebsd*-gnu)
7671
 
  version_type=linux
7672
 
  need_lib_prefix=no
7673
 
  need_version=no
7674
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7675
 
  soname_spec='${libname}${release}${shared_ext}$major'
7676
 
  shlibpath_var=LD_LIBRARY_PATH
7677
 
  shlibpath_overrides_runpath=no
7678
 
  hardcode_into_libs=yes
7679
 
  dynamic_linker='GNU ld.so'
7680
 
  ;;
7681
 
 
7682
 
freebsd*)
7683
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9290
freebsd* | dragonfly*)
 
9291
  # DragonFly does not have aout.  When/if they implement a new
 
9292
  # versioning mechanism, adjust this.
 
9293
  if test -x /usr/bin/objformat; then
 
9294
    objformat=`/usr/bin/objformat`
 
9295
  else
 
9296
    case $host_os in
 
9297
    freebsd[123]*) objformat=aout ;;
 
9298
    *) objformat=elf ;;
 
9299
    esac
 
9300
  fi
7684
9301
  version_type=freebsd-$objformat
7685
9302
  case $version_type in
7686
9303
    freebsd-elf*)
7698
9315
  freebsd2*)
7699
9316
    shlibpath_overrides_runpath=yes
7700
9317
    ;;
7701
 
  freebsd3.01* | freebsdelf3.01*)
 
9318
  freebsd3.[01]* | freebsdelf3.[01]*)
7702
9319
    shlibpath_overrides_runpath=yes
7703
9320
    hardcode_into_libs=yes
7704
9321
    ;;
7705
 
  *) # from 3.2 on
 
9322
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9323
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7706
9324
    shlibpath_overrides_runpath=no
7707
9325
    hardcode_into_libs=yes
7708
9326
    ;;
 
9327
  freebsd*) # from 4.6 on
 
9328
    shlibpath_overrides_runpath=yes
 
9329
    hardcode_into_libs=yes
 
9330
    ;;
7709
9331
  esac
7710
9332
  ;;
7711
9333
 
7725
9347
  version_type=sunos
7726
9348
  need_lib_prefix=no
7727
9349
  need_version=no
7728
 
  case "$host_cpu" in
 
9350
  case $host_cpu in
7729
9351
  ia64*)
7730
 
    shrext='.so'
 
9352
    shrext_cmds='.so'
7731
9353
    hardcode_into_libs=yes
7732
9354
    dynamic_linker="$host_os dld.so"
7733
9355
    shlibpath_var=LD_LIBRARY_PATH
7742
9364
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7743
9365
    ;;
7744
9366
   hppa*64*)
7745
 
     shrext='.sl'
 
9367
     shrext_cmds='.sl'
7746
9368
     hardcode_into_libs=yes
7747
9369
     dynamic_linker="$host_os dld.sl"
7748
9370
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7753
9375
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7754
9376
     ;;
7755
9377
   *)
7756
 
    shrext='.sl'
 
9378
    shrext_cmds='.sl'
7757
9379
    dynamic_linker="$host_os dld.sl"
7758
9380
    shlibpath_var=SHLIB_PATH
7759
9381
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7765
9387
  postinstall_cmds='chmod 555 $lib'
7766
9388
  ;;
7767
9389
 
 
9390
interix3*)
 
9391
  version_type=linux
 
9392
  need_lib_prefix=no
 
9393
  need_version=no
 
9394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9395
  soname_spec='${libname}${release}${shared_ext}$major'
 
9396
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9397
  shlibpath_var=LD_LIBRARY_PATH
 
9398
  shlibpath_overrides_runpath=no
 
9399
  hardcode_into_libs=yes
 
9400
  ;;
 
9401
 
7768
9402
irix5* | irix6* | nonstopux*)
7769
9403
  case $host_os in
7770
9404
    nonstopux*) version_type=nonstopux ;;
7808
9442
  ;;
7809
9443
 
7810
9444
# This must be Linux ELF.
7811
 
linux*)
 
9445
linux* | k*bsd*-gnu)
7812
9446
  version_type=linux
7813
9447
  need_lib_prefix=no
7814
9448
  need_version=no
7824
9458
 
7825
9459
  # Append ld.so.conf contents to the search path
7826
9460
  if test -f /etc/ld.so.conf; then
7827
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7828
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
9461
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9462
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7829
9463
  fi
7830
9464
 
7831
9465
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7837
9471
  dynamic_linker='GNU/Linux ld.so'
7838
9472
  ;;
7839
9473
 
7840
 
knetbsd*-gnu)
 
9474
netbsdelf*-gnu)
7841
9475
  version_type=linux
7842
9476
  need_lib_prefix=no
7843
9477
  need_version=no
7846
9480
  shlibpath_var=LD_LIBRARY_PATH
7847
9481
  shlibpath_overrides_runpath=no
7848
9482
  hardcode_into_libs=yes
7849
 
  dynamic_linker='GNU ld.so'
 
9483
  dynamic_linker='NetBSD ld.elf_so'
7850
9484
  ;;
7851
9485
 
7852
9486
netbsd*)
7886
9520
 
7887
9521
openbsd*)
7888
9522
  version_type=sunos
 
9523
  sys_lib_dlsearch_path_spec="/usr/lib"
7889
9524
  need_lib_prefix=no
7890
 
  need_version=yes
 
9525
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9526
  case $host_os in
 
9527
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9528
    *)                         need_version=no  ;;
 
9529
  esac
7891
9530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7892
9531
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7893
9532
  shlibpath_var=LD_LIBRARY_PATH
7907
9546
 
7908
9547
os2*)
7909
9548
  libname_spec='$name'
7910
 
  shrext=".dll"
 
9549
  shrext_cmds=".dll"
7911
9550
  need_lib_prefix=no
7912
9551
  library_names_spec='$libname${shared_ext} $libname.a'
7913
9552
  dynamic_linker='OS/2 ld.exe'
7925
9564
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7926
9565
  ;;
7927
9566
 
7928
 
sco3.2v5*)
7929
 
  version_type=osf
7930
 
  soname_spec='${libname}${release}${shared_ext}$major'
7931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7932
 
  shlibpath_var=LD_LIBRARY_PATH
7933
 
  ;;
7934
 
 
7935
9567
solaris*)
7936
9568
  version_type=linux
7937
9569
  need_lib_prefix=no
7957
9589
  need_version=yes
7958
9590
  ;;
7959
9591
 
7960
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9592
sysv4 | sysv4.3*)
7961
9593
  version_type=linux
7962
9594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963
9595
  soname_spec='${libname}${release}${shared_ext}$major'
7990
9622
  fi
7991
9623
  ;;
7992
9624
 
 
9625
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9626
  version_type=freebsd-elf
 
9627
  need_lib_prefix=no
 
9628
  need_version=no
 
9629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9630
  soname_spec='${libname}${release}${shared_ext}$major'
 
9631
  shlibpath_var=LD_LIBRARY_PATH
 
9632
  hardcode_into_libs=yes
 
9633
  if test "$with_gnu_ld" = yes; then
 
9634
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9635
    shlibpath_overrides_runpath=no
 
9636
  else
 
9637
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9638
    shlibpath_overrides_runpath=yes
 
9639
    case $host_os in
 
9640
      sco3.2v5*)
 
9641
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9642
        ;;
 
9643
    esac
 
9644
  fi
 
9645
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9646
  ;;
 
9647
 
7993
9648
uts4*)
7994
9649
  version_type=linux
7995
9650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001
9656
  dynamic_linker=no
8002
9657
  ;;
8003
9658
esac
8004
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8005
 
echo "${ECHO_T}$dynamic_linker" >&6
 
9659
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9660
echo "${ECHO_T}$dynamic_linker" >&6; }
8006
9661
test "$dynamic_linker" = no && can_build_shared=no
8007
9662
 
8008
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8009
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9663
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9664
if test "$GCC" = yes; then
 
9665
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9666
fi
 
9667
 
 
9668
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9669
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8010
9670
hardcode_action=
8011
9671
if test -n "$hardcode_libdir_flag_spec" || \
8012
 
   test -n "$runpath_var " || \
8013
 
   test "X$hardcode_automatic"="Xyes" ; then
 
9672
   test -n "$runpath_var" || \
 
9673
   test "X$hardcode_automatic" = "Xyes" ; then
8014
9674
 
8015
9675
  # We can hardcode non-existant directories.
8016
9676
  if test "$hardcode_direct" != no &&
8030
9690
  # directories.
8031
9691
  hardcode_action=unsupported
8032
9692
fi
8033
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8034
 
echo "${ECHO_T}$hardcode_action" >&6
 
9693
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9694
echo "${ECHO_T}$hardcode_action" >&6; }
8035
9695
 
8036
9696
if test "$hardcode_action" = relink; then
8037
9697
  # Fast installation is not supported
8044
9704
 
8045
9705
striplib=
8046
9706
old_striplib=
8047
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8048
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9707
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9708
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8049
9709
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8050
9710
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8051
9711
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8052
 
  echo "$as_me:$LINENO: result: yes" >&5
8053
 
echo "${ECHO_T}yes" >&6
 
9712
  { echo "$as_me:$LINENO: result: yes" >&5
 
9713
echo "${ECHO_T}yes" >&6; }
8054
9714
else
8055
9715
# FIXME - insert some real tests, host_os isn't really good enough
8056
9716
  case $host_os in
8057
9717
   darwin*)
8058
9718
       if test -n "$STRIP" ; then
8059
9719
         striplib="$STRIP -x"
8060
 
         echo "$as_me:$LINENO: result: yes" >&5
8061
 
echo "${ECHO_T}yes" >&6
 
9720
         { echo "$as_me:$LINENO: result: yes" >&5
 
9721
echo "${ECHO_T}yes" >&6; }
8062
9722
       else
8063
 
  echo "$as_me:$LINENO: result: no" >&5
8064
 
echo "${ECHO_T}no" >&6
 
9723
  { echo "$as_me:$LINENO: result: no" >&5
 
9724
echo "${ECHO_T}no" >&6; }
8065
9725
fi
8066
9726
       ;;
8067
9727
   *)
8068
 
  echo "$as_me:$LINENO: result: no" >&5
8069
 
echo "${ECHO_T}no" >&6
 
9728
  { echo "$as_me:$LINENO: result: no" >&5
 
9729
echo "${ECHO_T}no" >&6; }
8070
9730
    ;;
8071
9731
  esac
8072
9732
fi
8098
9758
 
8099
9759
  darwin*)
8100
9760
  # if libdl is installed we need to link against it
8101
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8102
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9761
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9762
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8103
9763
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8104
9764
  echo $ECHO_N "(cached) $ECHO_C" >&6
8105
9765
else
8112
9772
cat >>conftest.$ac_ext <<_ACEOF
8113
9773
/* end confdefs.h.  */
8114
9774
 
8115
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9775
/* Override any GCC internal prototype to avoid an error.
 
9776
   Use char because int might match the return type of a GCC
 
9777
   builtin and then its argument prototype would still apply.  */
8116
9778
#ifdef __cplusplus
8117
9779
extern "C"
8118
9780
#endif
8119
 
/* We use char because int might match the return type of a gcc2
8120
 
   builtin and then its argument prototype would still apply.  */
8121
9781
char dlopen ();
8122
9782
int
8123
9783
main ()
8124
9784
{
8125
 
dlopen ();
 
9785
return dlopen ();
8126
9786
  ;
8127
9787
  return 0;
8128
9788
}
8129
9789
_ACEOF
8130
9790
rm -f conftest.$ac_objext conftest$ac_exeext
8131
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132
 
  (eval $ac_link) 2>conftest.er1
 
9791
if { (ac_try="$ac_link"
 
9792
case "(($ac_try" in
 
9793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9794
  *) ac_try_echo=$ac_try;;
 
9795
esac
 
9796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9797
  (eval "$ac_link") 2>conftest.er1
8133
9798
  ac_status=$?
8134
9799
  grep -v '^ *+' conftest.er1 >conftest.err
8135
9800
  rm -f conftest.er1
8136
9801
  cat conftest.err >&5
8137
9802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138
9803
  (exit $ac_status); } &&
8139
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8140
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141
 
  (eval $ac_try) 2>&5
 
9804
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9805
  { (case "(($ac_try" in
 
9806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9807
  *) ac_try_echo=$ac_try;;
 
9808
esac
 
9809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9810
  (eval "$ac_try") 2>&5
8142
9811
  ac_status=$?
8143
9812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144
9813
  (exit $ac_status); }; } &&
8145
9814
         { ac_try='test -s conftest$ac_exeext'
8146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147
 
  (eval $ac_try) 2>&5
 
9815
  { (case "(($ac_try" in
 
9816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9817
  *) ac_try_echo=$ac_try;;
 
9818
esac
 
9819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9820
  (eval "$ac_try") 2>&5
8148
9821
  ac_status=$?
8149
9822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150
9823
  (exit $ac_status); }; }; then
8153
9826
  echo "$as_me: failed program was:" >&5
8154
9827
sed 's/^/| /' conftest.$ac_ext >&5
8155
9828
 
8156
 
ac_cv_lib_dl_dlopen=no
 
9829
        ac_cv_lib_dl_dlopen=no
8157
9830
fi
8158
 
rm -f conftest.err conftest.$ac_objext \
 
9831
 
 
9832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159
9833
      conftest$ac_exeext conftest.$ac_ext
8160
9834
LIBS=$ac_check_lib_save_LIBS
8161
9835
fi
8162
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8163
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9836
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9837
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8164
9838
if test $ac_cv_lib_dl_dlopen = yes; then
8165
9839
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8166
9840
else
8174
9848
   ;;
8175
9849
 
8176
9850
  *)
8177
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8178
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9851
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9852
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8179
9853
if test "${ac_cv_func_shl_load+set}" = set; then
8180
9854
  echo $ECHO_N "(cached) $ECHO_C" >&6
8181
9855
else
8202
9876
 
8203
9877
#undef shl_load
8204
9878
 
8205
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9879
/* Override any GCC internal prototype to avoid an error.
 
9880
   Use char because int might match the return type of a GCC
 
9881
   builtin and then its argument prototype would still apply.  */
8206
9882
#ifdef __cplusplus
8207
9883
extern "C"
8208
 
{
8209
9884
#endif
8210
 
/* We use char because int might match the return type of a gcc2
8211
 
   builtin and then its argument prototype would still apply.  */
8212
9885
char shl_load ();
8213
9886
/* The GNU C library defines this for functions which it implements
8214
9887
    to always fail with ENOSYS.  Some functions are actually named
8215
9888
    something starting with __ and the normal name is an alias.  */
8216
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9889
#if defined __stub_shl_load || defined __stub___shl_load
8217
9890
choke me
8218
 
#else
8219
 
char (*f) () = shl_load;
8220
 
#endif
8221
 
#ifdef __cplusplus
8222
 
}
8223
9891
#endif
8224
9892
 
8225
9893
int
8226
9894
main ()
8227
9895
{
8228
 
return f != shl_load;
 
9896
return shl_load ();
8229
9897
  ;
8230
9898
  return 0;
8231
9899
}
8232
9900
_ACEOF
8233
9901
rm -f conftest.$ac_objext conftest$ac_exeext
8234
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235
 
  (eval $ac_link) 2>conftest.er1
 
9902
if { (ac_try="$ac_link"
 
9903
case "(($ac_try" in
 
9904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9905
  *) ac_try_echo=$ac_try;;
 
9906
esac
 
9907
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9908
  (eval "$ac_link") 2>conftest.er1
8236
9909
  ac_status=$?
8237
9910
  grep -v '^ *+' conftest.er1 >conftest.err
8238
9911
  rm -f conftest.er1
8239
9912
  cat conftest.err >&5
8240
9913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241
9914
  (exit $ac_status); } &&
8242
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8243
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244
 
  (eval $ac_try) 2>&5
 
9915
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9916
  { (case "(($ac_try" in
 
9917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9918
  *) ac_try_echo=$ac_try;;
 
9919
esac
 
9920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9921
  (eval "$ac_try") 2>&5
8245
9922
  ac_status=$?
8246
9923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247
9924
  (exit $ac_status); }; } &&
8248
9925
         { ac_try='test -s conftest$ac_exeext'
8249
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250
 
  (eval $ac_try) 2>&5
 
9926
  { (case "(($ac_try" in
 
9927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9928
  *) ac_try_echo=$ac_try;;
 
9929
esac
 
9930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9931
  (eval "$ac_try") 2>&5
8251
9932
  ac_status=$?
8252
9933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253
9934
  (exit $ac_status); }; }; then
8256
9937
  echo "$as_me: failed program was:" >&5
8257
9938
sed 's/^/| /' conftest.$ac_ext >&5
8258
9939
 
8259
 
ac_cv_func_shl_load=no
 
9940
        ac_cv_func_shl_load=no
8260
9941
fi
8261
 
rm -f conftest.err conftest.$ac_objext \
 
9942
 
 
9943
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8262
9944
      conftest$ac_exeext conftest.$ac_ext
8263
9945
fi
8264
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8265
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9946
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9947
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8266
9948
if test $ac_cv_func_shl_load = yes; then
8267
9949
  lt_cv_dlopen="shl_load"
8268
9950
else
8269
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8270
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9951
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9952
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8271
9953
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8272
9954
  echo $ECHO_N "(cached) $ECHO_C" >&6
8273
9955
else
8280
9962
cat >>conftest.$ac_ext <<_ACEOF
8281
9963
/* end confdefs.h.  */
8282
9964
 
8283
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9965
/* Override any GCC internal prototype to avoid an error.
 
9966
   Use char because int might match the return type of a GCC
 
9967
   builtin and then its argument prototype would still apply.  */
8284
9968
#ifdef __cplusplus
8285
9969
extern "C"
8286
9970
#endif
8287
 
/* We use char because int might match the return type of a gcc2
8288
 
   builtin and then its argument prototype would still apply.  */
8289
9971
char shl_load ();
8290
9972
int
8291
9973
main ()
8292
9974
{
8293
 
shl_load ();
 
9975
return shl_load ();
8294
9976
  ;
8295
9977
  return 0;
8296
9978
}
8297
9979
_ACEOF
8298
9980
rm -f conftest.$ac_objext conftest$ac_exeext
8299
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300
 
  (eval $ac_link) 2>conftest.er1
 
9981
if { (ac_try="$ac_link"
 
9982
case "(($ac_try" in
 
9983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9984
  *) ac_try_echo=$ac_try;;
 
9985
esac
 
9986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9987
  (eval "$ac_link") 2>conftest.er1
8301
9988
  ac_status=$?
8302
9989
  grep -v '^ *+' conftest.er1 >conftest.err
8303
9990
  rm -f conftest.er1
8304
9991
  cat conftest.err >&5
8305
9992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
9993
  (exit $ac_status); } &&
8307
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8308
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309
 
  (eval $ac_try) 2>&5
 
9994
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9995
  { (case "(($ac_try" in
 
9996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9997
  *) ac_try_echo=$ac_try;;
 
9998
esac
 
9999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10000
  (eval "$ac_try") 2>&5
8310
10001
  ac_status=$?
8311
10002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312
10003
  (exit $ac_status); }; } &&
8313
10004
         { ac_try='test -s conftest$ac_exeext'
8314
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315
 
  (eval $ac_try) 2>&5
 
10005
  { (case "(($ac_try" in
 
10006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10007
  *) ac_try_echo=$ac_try;;
 
10008
esac
 
10009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10010
  (eval "$ac_try") 2>&5
8316
10011
  ac_status=$?
8317
10012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318
10013
  (exit $ac_status); }; }; then
8321
10016
  echo "$as_me: failed program was:" >&5
8322
10017
sed 's/^/| /' conftest.$ac_ext >&5
8323
10018
 
8324
 
ac_cv_lib_dld_shl_load=no
 
10019
        ac_cv_lib_dld_shl_load=no
8325
10020
fi
8326
 
rm -f conftest.err conftest.$ac_objext \
 
10021
 
 
10022
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8327
10023
      conftest$ac_exeext conftest.$ac_ext
8328
10024
LIBS=$ac_check_lib_save_LIBS
8329
10025
fi
8330
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8331
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10026
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10027
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8332
10028
if test $ac_cv_lib_dld_shl_load = yes; then
8333
10029
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8334
10030
else
8335
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8336
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
10031
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10032
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8337
10033
if test "${ac_cv_func_dlopen+set}" = set; then
8338
10034
  echo $ECHO_N "(cached) $ECHO_C" >&6
8339
10035
else
8360
10056
 
8361
10057
#undef dlopen
8362
10058
 
8363
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10059
/* Override any GCC internal prototype to avoid an error.
 
10060
   Use char because int might match the return type of a GCC
 
10061
   builtin and then its argument prototype would still apply.  */
8364
10062
#ifdef __cplusplus
8365
10063
extern "C"
8366
 
{
8367
10064
#endif
8368
 
/* We use char because int might match the return type of a gcc2
8369
 
   builtin and then its argument prototype would still apply.  */
8370
10065
char dlopen ();
8371
10066
/* The GNU C library defines this for functions which it implements
8372
10067
    to always fail with ENOSYS.  Some functions are actually named
8373
10068
    something starting with __ and the normal name is an alias.  */
8374
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
10069
#if defined __stub_dlopen || defined __stub___dlopen
8375
10070
choke me
8376
 
#else
8377
 
char (*f) () = dlopen;
8378
 
#endif
8379
 
#ifdef __cplusplus
8380
 
}
8381
10071
#endif
8382
10072
 
8383
10073
int
8384
10074
main ()
8385
10075
{
8386
 
return f != dlopen;
 
10076
return dlopen ();
8387
10077
  ;
8388
10078
  return 0;
8389
10079
}
8390
10080
_ACEOF
8391
10081
rm -f conftest.$ac_objext conftest$ac_exeext
8392
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393
 
  (eval $ac_link) 2>conftest.er1
 
10082
if { (ac_try="$ac_link"
 
10083
case "(($ac_try" in
 
10084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10085
  *) ac_try_echo=$ac_try;;
 
10086
esac
 
10087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10088
  (eval "$ac_link") 2>conftest.er1
8394
10089
  ac_status=$?
8395
10090
  grep -v '^ *+' conftest.er1 >conftest.err
8396
10091
  rm -f conftest.er1
8397
10092
  cat conftest.err >&5
8398
10093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399
10094
  (exit $ac_status); } &&
8400
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8401
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402
 
  (eval $ac_try) 2>&5
 
10095
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10096
  { (case "(($ac_try" in
 
10097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10098
  *) ac_try_echo=$ac_try;;
 
10099
esac
 
10100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10101
  (eval "$ac_try") 2>&5
8403
10102
  ac_status=$?
8404
10103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405
10104
  (exit $ac_status); }; } &&
8406
10105
         { ac_try='test -s conftest$ac_exeext'
8407
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408
 
  (eval $ac_try) 2>&5
 
10106
  { (case "(($ac_try" in
 
10107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10108
  *) ac_try_echo=$ac_try;;
 
10109
esac
 
10110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10111
  (eval "$ac_try") 2>&5
8409
10112
  ac_status=$?
8410
10113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411
10114
  (exit $ac_status); }; }; then
8414
10117
  echo "$as_me: failed program was:" >&5
8415
10118
sed 's/^/| /' conftest.$ac_ext >&5
8416
10119
 
8417
 
ac_cv_func_dlopen=no
 
10120
        ac_cv_func_dlopen=no
8418
10121
fi
8419
 
rm -f conftest.err conftest.$ac_objext \
 
10122
 
 
10123
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8420
10124
      conftest$ac_exeext conftest.$ac_ext
8421
10125
fi
8422
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8423
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10126
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10127
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8424
10128
if test $ac_cv_func_dlopen = yes; then
8425
10129
  lt_cv_dlopen="dlopen"
8426
10130
else
8427
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8428
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10131
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10132
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8429
10133
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8430
10134
  echo $ECHO_N "(cached) $ECHO_C" >&6
8431
10135
else
8438
10142
cat >>conftest.$ac_ext <<_ACEOF
8439
10143
/* end confdefs.h.  */
8440
10144
 
8441
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10145
/* Override any GCC internal prototype to avoid an error.
 
10146
   Use char because int might match the return type of a GCC
 
10147
   builtin and then its argument prototype would still apply.  */
8442
10148
#ifdef __cplusplus
8443
10149
extern "C"
8444
10150
#endif
8445
 
/* We use char because int might match the return type of a gcc2
8446
 
   builtin and then its argument prototype would still apply.  */
8447
10151
char dlopen ();
8448
10152
int
8449
10153
main ()
8450
10154
{
8451
 
dlopen ();
 
10155
return dlopen ();
8452
10156
  ;
8453
10157
  return 0;
8454
10158
}
8455
10159
_ACEOF
8456
10160
rm -f conftest.$ac_objext conftest$ac_exeext
8457
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458
 
  (eval $ac_link) 2>conftest.er1
 
10161
if { (ac_try="$ac_link"
 
10162
case "(($ac_try" in
 
10163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10164
  *) ac_try_echo=$ac_try;;
 
10165
esac
 
10166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10167
  (eval "$ac_link") 2>conftest.er1
8459
10168
  ac_status=$?
8460
10169
  grep -v '^ *+' conftest.er1 >conftest.err
8461
10170
  rm -f conftest.er1
8462
10171
  cat conftest.err >&5
8463
10172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464
10173
  (exit $ac_status); } &&
8465
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8466
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467
 
  (eval $ac_try) 2>&5
 
10174
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10175
  { (case "(($ac_try" in
 
10176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10177
  *) ac_try_echo=$ac_try;;
 
10178
esac
 
10179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10180
  (eval "$ac_try") 2>&5
8468
10181
  ac_status=$?
8469
10182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470
10183
  (exit $ac_status); }; } &&
8471
10184
         { ac_try='test -s conftest$ac_exeext'
8472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473
 
  (eval $ac_try) 2>&5
 
10185
  { (case "(($ac_try" in
 
10186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10187
  *) ac_try_echo=$ac_try;;
 
10188
esac
 
10189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10190
  (eval "$ac_try") 2>&5
8474
10191
  ac_status=$?
8475
10192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476
10193
  (exit $ac_status); }; }; then
8479
10196
  echo "$as_me: failed program was:" >&5
8480
10197
sed 's/^/| /' conftest.$ac_ext >&5
8481
10198
 
8482
 
ac_cv_lib_dl_dlopen=no
 
10199
        ac_cv_lib_dl_dlopen=no
8483
10200
fi
8484
 
rm -f conftest.err conftest.$ac_objext \
 
10201
 
 
10202
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485
10203
      conftest$ac_exeext conftest.$ac_ext
8486
10204
LIBS=$ac_check_lib_save_LIBS
8487
10205
fi
8488
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8489
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10206
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10207
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8490
10208
if test $ac_cv_lib_dl_dlopen = yes; then
8491
10209
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8492
10210
else
8493
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8494
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
10211
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10212
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8495
10213
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8496
10214
  echo $ECHO_N "(cached) $ECHO_C" >&6
8497
10215
else
8504
10222
cat >>conftest.$ac_ext <<_ACEOF
8505
10223
/* end confdefs.h.  */
8506
10224
 
8507
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10225
/* Override any GCC internal prototype to avoid an error.
 
10226
   Use char because int might match the return type of a GCC
 
10227
   builtin and then its argument prototype would still apply.  */
8508
10228
#ifdef __cplusplus
8509
10229
extern "C"
8510
10230
#endif
8511
 
/* We use char because int might match the return type of a gcc2
8512
 
   builtin and then its argument prototype would still apply.  */
8513
10231
char dlopen ();
8514
10232
int
8515
10233
main ()
8516
10234
{
8517
 
dlopen ();
 
10235
return dlopen ();
8518
10236
  ;
8519
10237
  return 0;
8520
10238
}
8521
10239
_ACEOF
8522
10240
rm -f conftest.$ac_objext conftest$ac_exeext
8523
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524
 
  (eval $ac_link) 2>conftest.er1
 
10241
if { (ac_try="$ac_link"
 
10242
case "(($ac_try" in
 
10243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10244
  *) ac_try_echo=$ac_try;;
 
10245
esac
 
10246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10247
  (eval "$ac_link") 2>conftest.er1
8525
10248
  ac_status=$?
8526
10249
  grep -v '^ *+' conftest.er1 >conftest.err
8527
10250
  rm -f conftest.er1
8528
10251
  cat conftest.err >&5
8529
10252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530
10253
  (exit $ac_status); } &&
8531
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8532
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533
 
  (eval $ac_try) 2>&5
 
10254
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10255
  { (case "(($ac_try" in
 
10256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10257
  *) ac_try_echo=$ac_try;;
 
10258
esac
 
10259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10260
  (eval "$ac_try") 2>&5
8534
10261
  ac_status=$?
8535
10262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536
10263
  (exit $ac_status); }; } &&
8537
10264
         { ac_try='test -s conftest$ac_exeext'
8538
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539
 
  (eval $ac_try) 2>&5
 
10265
  { (case "(($ac_try" in
 
10266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10267
  *) ac_try_echo=$ac_try;;
 
10268
esac
 
10269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10270
  (eval "$ac_try") 2>&5
8540
10271
  ac_status=$?
8541
10272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542
10273
  (exit $ac_status); }; }; then
8545
10276
  echo "$as_me: failed program was:" >&5
8546
10277
sed 's/^/| /' conftest.$ac_ext >&5
8547
10278
 
8548
 
ac_cv_lib_svld_dlopen=no
 
10279
        ac_cv_lib_svld_dlopen=no
8549
10280
fi
8550
 
rm -f conftest.err conftest.$ac_objext \
 
10281
 
 
10282
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8551
10283
      conftest$ac_exeext conftest.$ac_ext
8552
10284
LIBS=$ac_check_lib_save_LIBS
8553
10285
fi
8554
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8555
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10286
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10287
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8556
10288
if test $ac_cv_lib_svld_dlopen = yes; then
8557
10289
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8558
10290
else
8559
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8560
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10291
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10292
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8561
10293
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8562
10294
  echo $ECHO_N "(cached) $ECHO_C" >&6
8563
10295
else
8570
10302
cat >>conftest.$ac_ext <<_ACEOF
8571
10303
/* end confdefs.h.  */
8572
10304
 
8573
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10305
/* Override any GCC internal prototype to avoid an error.
 
10306
   Use char because int might match the return type of a GCC
 
10307
   builtin and then its argument prototype would still apply.  */
8574
10308
#ifdef __cplusplus
8575
10309
extern "C"
8576
10310
#endif
8577
 
/* We use char because int might match the return type of a gcc2
8578
 
   builtin and then its argument prototype would still apply.  */
8579
10311
char dld_link ();
8580
10312
int
8581
10313
main ()
8582
10314
{
8583
 
dld_link ();
 
10315
return dld_link ();
8584
10316
  ;
8585
10317
  return 0;
8586
10318
}
8587
10319
_ACEOF
8588
10320
rm -f conftest.$ac_objext conftest$ac_exeext
8589
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590
 
  (eval $ac_link) 2>conftest.er1
 
10321
if { (ac_try="$ac_link"
 
10322
case "(($ac_try" in
 
10323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10324
  *) ac_try_echo=$ac_try;;
 
10325
esac
 
10326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10327
  (eval "$ac_link") 2>conftest.er1
8591
10328
  ac_status=$?
8592
10329
  grep -v '^ *+' conftest.er1 >conftest.err
8593
10330
  rm -f conftest.er1
8594
10331
  cat conftest.err >&5
8595
10332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596
10333
  (exit $ac_status); } &&
8597
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8598
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599
 
  (eval $ac_try) 2>&5
 
10334
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10335
  { (case "(($ac_try" in
 
10336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10337
  *) ac_try_echo=$ac_try;;
 
10338
esac
 
10339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10340
  (eval "$ac_try") 2>&5
8600
10341
  ac_status=$?
8601
10342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602
10343
  (exit $ac_status); }; } &&
8603
10344
         { ac_try='test -s conftest$ac_exeext'
8604
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605
 
  (eval $ac_try) 2>&5
 
10345
  { (case "(($ac_try" in
 
10346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10347
  *) ac_try_echo=$ac_try;;
 
10348
esac
 
10349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10350
  (eval "$ac_try") 2>&5
8606
10351
  ac_status=$?
8607
10352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608
10353
  (exit $ac_status); }; }; then
8611
10356
  echo "$as_me: failed program was:" >&5
8612
10357
sed 's/^/| /' conftest.$ac_ext >&5
8613
10358
 
8614
 
ac_cv_lib_dld_dld_link=no
 
10359
        ac_cv_lib_dld_dld_link=no
8615
10360
fi
8616
 
rm -f conftest.err conftest.$ac_objext \
 
10361
 
 
10362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8617
10363
      conftest$ac_exeext conftest.$ac_ext
8618
10364
LIBS=$ac_check_lib_save_LIBS
8619
10365
fi
8620
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8621
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10366
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10367
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8622
10368
if test $ac_cv_lib_dld_dld_link = yes; then
8623
10369
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8624
10370
fi
8653
10399
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8654
10400
 
8655
10401
    save_LDFLAGS="$LDFLAGS"
8656
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10402
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8657
10403
 
8658
10404
    save_LIBS="$LIBS"
8659
10405
    LIBS="$lt_cv_dlopen_libs $LIBS"
8660
10406
 
8661
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8662
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10407
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10408
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8663
10409
if test "${lt_cv_dlopen_self+set}" = set; then
8664
10410
  echo $ECHO_N "(cached) $ECHO_C" >&6
8665
10411
else
8669
10415
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8670
10416
  lt_status=$lt_dlunknown
8671
10417
  cat > conftest.$ac_ext <<EOF
8672
 
#line 8672 "configure"
 
10418
#line 10418 "configure"
8673
10419
#include "confdefs.h"
8674
10420
 
8675
10421
#if HAVE_DLFCN_H
8726
10472
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8727
10473
      /* dlclose (self); */
8728
10474
    }
 
10475
  else
 
10476
    puts (dlerror ());
8729
10477
 
8730
10478
    exit (status);
8731
10479
}
8735
10483
  ac_status=$?
8736
10484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737
10485
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8738
 
    (./conftest; exit; ) 2>/dev/null
 
10486
    (./conftest; exit; ) >&5 2>/dev/null
8739
10487
    lt_status=$?
8740
10488
    case x$lt_status in
8741
10489
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8742
10490
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8743
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10491
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8744
10492
    esac
8745
10493
  else :
8746
10494
    # compilation failed
8751
10499
 
8752
10500
 
8753
10501
fi
8754
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8755
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10502
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10503
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8756
10504
 
8757
10505
    if test "x$lt_cv_dlopen_self" = xyes; then
8758
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8759
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8760
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10506
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10507
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10508
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8761
10509
if test "${lt_cv_dlopen_self_static+set}" = set; then
8762
10510
  echo $ECHO_N "(cached) $ECHO_C" >&6
8763
10511
else
8767
10515
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8768
10516
  lt_status=$lt_dlunknown
8769
10517
  cat > conftest.$ac_ext <<EOF
8770
 
#line 8770 "configure"
 
10518
#line 10518 "configure"
8771
10519
#include "confdefs.h"
8772
10520
 
8773
10521
#if HAVE_DLFCN_H
8824
10572
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8825
10573
      /* dlclose (self); */
8826
10574
    }
 
10575
  else
 
10576
    puts (dlerror ());
8827
10577
 
8828
10578
    exit (status);
8829
10579
}
8833
10583
  ac_status=$?
8834
10584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835
10585
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8836
 
    (./conftest; exit; ) 2>/dev/null
 
10586
    (./conftest; exit; ) >&5 2>/dev/null
8837
10587
    lt_status=$?
8838
10588
    case x$lt_status in
8839
10589
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8840
10590
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8841
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10591
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8842
10592
    esac
8843
10593
  else :
8844
10594
    # compilation failed
8849
10599
 
8850
10600
 
8851
10601
fi
8852
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8853
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10602
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10603
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8854
10604
    fi
8855
10605
 
8856
10606
    CPPFLAGS="$save_CPPFLAGS"
8871
10621
fi
8872
10622
 
8873
10623
 
8874
 
# Report which librarie types wil actually be built
8875
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8876
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8877
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8878
 
echo "${ECHO_T}$can_build_shared" >&6
 
10624
# Report which library types will actually be built
 
10625
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10626
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10627
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10628
echo "${ECHO_T}$can_build_shared" >&6; }
8879
10629
 
8880
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8881
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10630
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10631
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
8882
10632
test "$can_build_shared" = "no" && enable_shared=no
8883
10633
 
8884
10634
# On AIX, shared libraries and static libraries use the same namespace, and
8885
10635
# are all built from PIC.
8886
 
case "$host_os" in
 
10636
case $host_os in
8887
10637
aix3*)
8888
10638
  test "$enable_shared" = yes && enable_static=no
8889
10639
  if test -n "$RANLIB"; then
8892
10642
  fi
8893
10643
  ;;
8894
10644
 
8895
 
aix4*)
 
10645
aix4* | aix5*)
8896
10646
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8897
10647
    test "$enable_shared" = yes && enable_static=no
8898
10648
  fi
8899
 
  ;;
8900
 
  darwin* | rhapsody*)
8901
 
  if test "$GCC" = yes; then
8902
 
    archive_cmds_need_lc=no
8903
 
    case "$host_os" in
8904
 
    rhapsody* | darwin1.[012])
8905
 
      allow_undefined_flag='-undefined suppress'
8906
 
      ;;
8907
 
    *) # Darwin 1.3 on
8908
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8909
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8910
 
      else
8911
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8912
 
          10.[012])
8913
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8914
 
            ;;
8915
 
          10.*)
8916
 
            allow_undefined_flag='-undefined dynamic_lookup'
8917
 
            ;;
8918
 
        esac
8919
 
      fi
8920
 
      ;;
8921
 
    esac
8922
 
    output_verbose_link_cmd='echo'
8923
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8924
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8925
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8926
 
    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}'
8927
 
    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}'
8928
 
    hardcode_direct=no
8929
 
    hardcode_automatic=yes
8930
 
    hardcode_shlibpath_var=unsupported
8931
 
    whole_archive_flag_spec='-all_load $convenience'
8932
 
    link_all_deplibs=yes
8933
 
  else
8934
 
    ld_shlibs=no
8935
 
  fi
8936
10649
    ;;
8937
10650
esac
8938
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
8939
 
echo "${ECHO_T}$enable_shared" >&6
 
10651
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10652
echo "${ECHO_T}$enable_shared" >&6; }
8940
10653
 
8941
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8942
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10654
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10655
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
8943
10656
# Make sure either enable_shared or enable_static is yes.
8944
10657
test "$enable_shared" = yes || enable_static=yes
8945
 
echo "$as_me:$LINENO: result: $enable_static" >&5
8946
 
echo "${ECHO_T}$enable_static" >&6
 
10658
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10659
echo "${ECHO_T}$enable_static" >&6; }
8947
10660
 
8948
10661
# The else clause should only fire when bootstrapping the
8949
10662
# libtool distribution, otherwise you forgot to ship ltmain.sh
8958
10671
  # Now quote all the things that may contain metacharacters while being
8959
10672
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8960
10673
  # variables and quote the copies for generation of the libtool script.
8961
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10674
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8962
10675
    SED SHELL STRIP \
8963
10676
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8964
10677
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9062
10775
#
9063
10776
# You should have received a copy of the GNU General Public License
9064
10777
# along with this program; if not, write to the Free Software
9065
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10778
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9066
10779
#
9067
10780
# As a special exception to the GNU General Public License, if you
9068
10781
# distribute this file as part of a program that contains a
9073
10786
SED=$lt_SED
9074
10787
 
9075
10788
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9076
 
Xsed="$SED -e s/^X//"
 
10789
Xsed="$SED -e 1s/^X//"
9077
10790
 
9078
10791
# The HP-UX ksh and POSIX shell print the target directory to stdout
9079
10792
# if CDPATH is set.
9080
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10793
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9081
10794
 
9082
10795
# The names of the tagged configurations supported by this script.
9083
10796
available_tags=
9107
10820
# The host system.
9108
10821
host_alias=$host_alias
9109
10822
host=$host
 
10823
host_os=$host_os
 
10824
 
 
10825
# The build system.
 
10826
build_alias=$build_alias
 
10827
build=$build
 
10828
build_os=$build_os
9110
10829
 
9111
10830
# An echo program that does not interpret backslashes.
9112
10831
echo=$lt_echo
9118
10837
# A C compiler.
9119
10838
LTCC=$lt_LTCC
9120
10839
 
 
10840
# LTCC compiler flags.
 
10841
LTCFLAGS=$lt_LTCFLAGS
 
10842
 
9121
10843
# A language-specific compiler.
9122
10844
CC=$lt_compiler
9123
10845
 
9168
10890
libext="$libext"
9169
10891
 
9170
10892
# Shared library suffix (normally ".so").
9171
 
shrext='$shrext'
 
10893
shrext_cmds='$shrext_cmds'
9172
10894
 
9173
10895
# Executable file suffix (normally "").
9174
10896
exeext="$exeext"
9183
10905
# Does compiler simultaneously support -c and -o options?
9184
10906
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9185
10907
 
9186
 
# Must we lock files when doing compilation ?
 
10908
# Must we lock files when doing compilation?
9187
10909
need_locks=$lt_need_locks
9188
10910
 
9189
10911
# Do we need the lib prefix for modules?
9426
11148
CC="$lt_save_CC"
9427
11149
 
9428
11150
 
9429
 
# Check whether --with-tags or --without-tags was given.
 
11151
# Check whether --with-tags was given.
9430
11152
if test "${with_tags+set}" = set; then
9431
 
  withval="$with_tags"
9432
 
  tagnames="$withval"
9433
 
fi;
 
11153
  withval=$with_tags; tagnames="$withval"
 
11154
fi
 
11155
 
9434
11156
 
9435
11157
if test -f "$ltmain" && test -n "$tagnames"; then
9436
11158
  if test ! -f "${ofile}"; then
9448
11170
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9449
11171
    fi
9450
11172
  fi
 
11173
  if test -z "$LTCFLAGS"; then
 
11174
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11175
  fi
9451
11176
 
9452
11177
  # Extract list of available tagged configurations in $ofile.
9453
11178
  # Note that this assumes the entire list is on one line.
9478
11203
 
9479
11204
      case $tagname in
9480
11205
      CXX)
9481
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9482
 
          ac_ext=cc
 
11206
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11207
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11208
            (test "X$CXX" != "Xg++"))) ; then
 
11209
          ac_ext=cpp
9483
11210
ac_cpp='$CXXCPP $CPPFLAGS'
9484
11211
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485
11212
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498
11225
hardcode_libdir_flag_spec_ld_CXX=
9499
11226
hardcode_libdir_separator_CXX=
9500
11227
hardcode_minus_L_CXX=no
 
11228
hardcode_shlibpath_var_CXX=unsupported
9501
11229
hardcode_automatic_CXX=no
9502
11230
module_cmds_CXX=
9503
11231
module_expsym_cmds_CXX=
9515
11243
compiler_lib_search_path_CXX=
9516
11244
 
9517
11245
# Source file extension for C++ test sources.
9518
 
ac_ext=cc
 
11246
ac_ext=cpp
9519
11247
 
9520
11248
# Object file extension for compiled C++ test sources.
9521
11249
objext=o
9525
11253
lt_simple_compile_test_code="int some_variable = 0;\n"
9526
11254
 
9527
11255
# Code to be used in simple link tests
9528
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11256
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9529
11257
 
9530
11258
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9531
11259
 
9532
11260
# If no C compiler was specified, use CC.
9533
11261
LTCC=${LTCC-"$CC"}
9534
11262
 
 
11263
# If no C compiler flags were specified, use CFLAGS.
 
11264
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11265
 
9535
11266
# Allow CC to be a program name with arguments.
9536
11267
compiler=$CC
9537
11268
 
9538
11269
 
 
11270
# save warnings/boilerplate of simple test code
 
11271
ac_outfile=conftest.$ac_objext
 
11272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11274
_lt_compiler_boilerplate=`cat conftest.err`
 
11275
$rm conftest*
 
11276
 
 
11277
ac_outfile=conftest.$ac_objext
 
11278
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11279
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11280
_lt_linker_boilerplate=`cat conftest.err`
 
11281
$rm conftest*
 
11282
 
 
11283
 
9539
11284
# Allow CC to be a program name with arguments.
9540
11285
lt_save_CC=$CC
9541
11286
lt_save_LD=$LD
9546
11291
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9547
11292
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9548
11293
else
9549
 
  unset lt_cv_prog_gnu_ld
 
11294
  $as_unset lt_cv_prog_gnu_ld
9550
11295
fi
9551
11296
if test -n "${lt_cv_path_LDCXX+set}"; then
9552
11297
  lt_cv_path_LD=$lt_cv_path_LDCXX
9553
11298
else
9554
 
  unset lt_cv_path_LD
 
11299
  $as_unset lt_cv_path_LD
9555
11300
fi
9556
11301
test -z "${LDCXX+set}" || LD=$LDCXX
9557
11302
CC=${CXX-"c++"}
9558
11303
compiler=$CC
9559
11304
compiler_CXX=$CC
9560
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11305
for cc_temp in $compiler""; do
 
11306
  case $cc_temp in
 
11307
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11308
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11309
    \-*) ;;
 
11310
    *) break;;
 
11311
  esac
 
11312
done
 
11313
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11314
 
9561
11315
 
9562
11316
# We don't want -fno-exception wen compiling C++ code, so set the
9563
11317
# no_builtin_flag separately
9571
11325
  # Set up default GNU C++ configuration
9572
11326
 
9573
11327
 
9574
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11328
# Check whether --with-gnu-ld was given.
9575
11329
if test "${with_gnu_ld+set}" = set; then
9576
 
  withval="$with_gnu_ld"
9577
 
  test "$withval" = no || with_gnu_ld=yes
 
11330
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9578
11331
else
9579
11332
  with_gnu_ld=no
9580
 
fi;
 
11333
fi
 
11334
 
9581
11335
ac_prog=ld
9582
11336
if test "$GCC" = yes; then
9583
11337
  # Check if gcc -print-prog-name=ld gives a path.
9584
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9585
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11338
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11339
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9586
11340
  case $host in
9587
11341
  *-*-mingw*)
9588
11342
    # gcc leaves a trailing carriage return which upsets mingw
9611
11365
    ;;
9612
11366
  esac
9613
11367
elif test "$with_gnu_ld" = yes; then
9614
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9615
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11368
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11369
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9616
11370
else
9617
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9618
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11371
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11372
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9619
11373
fi
9620
11374
if test "${lt_cv_path_LD+set}" = set; then
9621
11375
  echo $ECHO_N "(cached) $ECHO_C" >&6
9628
11382
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9629
11383
      lt_cv_path_LD="$ac_dir/$ac_prog"
9630
11384
      # Check to see if the program is GNU ld.  I'd rather use --version,
9631
 
      # but apparently some GNU ld's only accept -v.
 
11385
      # but apparently some variants of GNU ld only accept -v.
9632
11386
      # Break only if it was the GNU/non-GNU ld that we prefer.
9633
11387
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9634
11388
      *GNU* | *'with BFD'*)
9648
11402
 
9649
11403
LD="$lt_cv_path_LD"
9650
11404
if test -n "$LD"; then
9651
 
  echo "$as_me:$LINENO: result: $LD" >&5
9652
 
echo "${ECHO_T}$LD" >&6
 
11405
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11406
echo "${ECHO_T}$LD" >&6; }
9653
11407
else
9654
 
  echo "$as_me:$LINENO: result: no" >&5
9655
 
echo "${ECHO_T}no" >&6
 
11408
  { echo "$as_me:$LINENO: result: no" >&5
 
11409
echo "${ECHO_T}no" >&6; }
9656
11410
fi
9657
11411
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9658
11412
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9659
11413
   { (exit 1); exit 1; }; }
9660
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9661
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11414
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11415
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9662
11416
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9663
11417
  echo $ECHO_N "(cached) $ECHO_C" >&6
9664
11418
else
9665
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11419
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9666
11420
case `$LD -v 2>&1 </dev/null` in
9667
11421
*GNU* | *'with BFD'*)
9668
11422
  lt_cv_prog_gnu_ld=yes
9672
11426
  ;;
9673
11427
esac
9674
11428
fi
9675
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9676
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11429
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11430
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9677
11431
with_gnu_ld=$lt_cv_prog_gnu_ld
9678
11432
 
9679
11433
 
9723
11477
fi
9724
11478
 
9725
11479
# PORTME: fill in a description of your system's C++ link characteristics
9726
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9727
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11480
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11481
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9728
11482
ld_shlibs_CXX=yes
9729
11483
case $host_os in
9730
11484
  aix3*)
9753
11507
            ;;
9754
11508
          esac
9755
11509
        done
 
11510
        ;;
9756
11511
      esac
9757
11512
 
9758
11513
      exp_sym_flag='-bexport'
9771
11526
    link_all_deplibs_CXX=yes
9772
11527
 
9773
11528
    if test "$GXX" = yes; then
9774
 
      case $host_os in aix4.012|aix4.012.*)
 
11529
      case $host_os in aix4.[012]|aix4.[012].*)
9775
11530
      # We only want to do this on AIX 4.2 and lower, the check
9776
11531
      # below for broken collect2 doesn't work under 4.3+
9777
11532
        collect2name=`${CC} -print-prog-name=collect2`
9790
11545
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9791
11546
          hardcode_libdir_separator_CXX=
9792
11547
        fi
 
11548
        ;;
9793
11549
      esac
9794
11550
      shared_flag='-shared'
 
11551
      if test "$aix_use_runtimelinking" = yes; then
 
11552
        shared_flag="$shared_flag "'${wl}-G'
 
11553
      fi
9795
11554
    else
9796
11555
      # not using gcc
9797
11556
      if test "$host_cpu" = ia64; then
9831
11590
}
9832
11591
_ACEOF
9833
11592
rm -f conftest.$ac_objext conftest$ac_exeext
9834
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835
 
  (eval $ac_link) 2>conftest.er1
 
11593
if { (ac_try="$ac_link"
 
11594
case "(($ac_try" in
 
11595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11596
  *) ac_try_echo=$ac_try;;
 
11597
esac
 
11598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11599
  (eval "$ac_link") 2>conftest.er1
9836
11600
  ac_status=$?
9837
11601
  grep -v '^ *+' conftest.er1 >conftest.err
9838
11602
  rm -f conftest.er1
9839
11603
  cat conftest.err >&5
9840
11604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841
11605
  (exit $ac_status); } &&
9842
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9843
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844
 
  (eval $ac_try) 2>&5
 
11606
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11607
  { (case "(($ac_try" in
 
11608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11609
  *) ac_try_echo=$ac_try;;
 
11610
esac
 
11611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11612
  (eval "$ac_try") 2>&5
9845
11613
  ac_status=$?
9846
11614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847
11615
  (exit $ac_status); }; } &&
9848
11616
         { ac_try='test -s conftest$ac_exeext'
9849
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850
 
  (eval $ac_try) 2>&5
 
11617
  { (case "(($ac_try" in
 
11618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11619
  *) ac_try_echo=$ac_try;;
 
11620
esac
 
11621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11622
  (eval "$ac_try") 2>&5
9851
11623
  ac_status=$?
9852
11624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853
11625
  (exit $ac_status); }; }; then
9861
11633
  echo "$as_me: failed program was:" >&5
9862
11634
sed 's/^/| /' conftest.$ac_ext >&5
9863
11635
 
 
11636
 
9864
11637
fi
9865
 
rm -f conftest.err conftest.$ac_objext \
 
11638
 
 
11639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866
11640
      conftest$ac_exeext conftest.$ac_ext
9867
11641
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9868
11642
 
9869
11643
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9870
11644
 
9871
 
      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"
 
11645
      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"
9872
11646
     else
9873
11647
      if test "$host_cpu" = ia64; then
9874
11648
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9875
11649
        allow_undefined_flag_CXX="-z nodefs"
9876
 
        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"
 
11650
        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"
9877
11651
      else
9878
11652
        # Determine the default libpath from the value encoded in an empty executable.
9879
11653
        cat >conftest.$ac_ext <<_ACEOF
9892
11666
}
9893
11667
_ACEOF
9894
11668
rm -f conftest.$ac_objext conftest$ac_exeext
9895
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896
 
  (eval $ac_link) 2>conftest.er1
 
11669
if { (ac_try="$ac_link"
 
11670
case "(($ac_try" in
 
11671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11672
  *) ac_try_echo=$ac_try;;
 
11673
esac
 
11674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11675
  (eval "$ac_link") 2>conftest.er1
9897
11676
  ac_status=$?
9898
11677
  grep -v '^ *+' conftest.er1 >conftest.err
9899
11678
  rm -f conftest.er1
9900
11679
  cat conftest.err >&5
9901
11680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902
11681
  (exit $ac_status); } &&
9903
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9904
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905
 
  (eval $ac_try) 2>&5
 
11682
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11683
  { (case "(($ac_try" in
 
11684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11685
  *) ac_try_echo=$ac_try;;
 
11686
esac
 
11687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11688
  (eval "$ac_try") 2>&5
9906
11689
  ac_status=$?
9907
11690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908
11691
  (exit $ac_status); }; } &&
9909
11692
         { ac_try='test -s conftest$ac_exeext'
9910
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911
 
  (eval $ac_try) 2>&5
 
11693
  { (case "(($ac_try" in
 
11694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11695
  *) ac_try_echo=$ac_try;;
 
11696
esac
 
11697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11698
  (eval "$ac_try") 2>&5
9912
11699
  ac_status=$?
9913
11700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914
11701
  (exit $ac_status); }; }; then
9922
11709
  echo "$as_me: failed program was:" >&5
9923
11710
sed 's/^/| /' conftest.$ac_ext >&5
9924
11711
 
 
11712
 
9925
11713
fi
9926
 
rm -f conftest.err conftest.$ac_objext \
 
11714
 
 
11715
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9927
11716
      conftest$ac_exeext conftest.$ac_ext
9928
11717
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9929
11718
 
9932
11721
        # -berok will link without error, but may produce a broken library.
9933
11722
        no_undefined_flag_CXX=' ${wl}-bernotok'
9934
11723
        allow_undefined_flag_CXX=' ${wl}-berok'
9935
 
        # -bexpall does not export symbols beginning with underscore (_)
9936
 
        always_export_symbols_CXX=yes
9937
11724
        # Exported symbols can be pulled into shared objects from archives
9938
 
        whole_archive_flag_spec_CXX=' '
 
11725
        whole_archive_flag_spec_CXX='$convenience'
9939
11726
        archive_cmds_need_lc_CXX=yes
9940
 
        # This is similar to how AIX traditionally builds it's shared libraries.
9941
 
        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'
 
11727
        # This is similar to how AIX traditionally builds its shared libraries.
 
11728
        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'
9942
11729
      fi
9943
11730
    fi
9944
11731
    ;;
 
11732
 
 
11733
  beos*)
 
11734
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11735
      allow_undefined_flag_CXX=unsupported
 
11736
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11737
      # support --undefined.  This deserves some investigation.  FIXME
 
11738
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11739
    else
 
11740
      ld_shlibs_CXX=no
 
11741
    fi
 
11742
    ;;
 
11743
 
9945
11744
  chorus*)
9946
11745
    case $cc_basename in
9947
11746
      *)
9960
11759
    enable_shared_with_static_runtimes_CXX=yes
9961
11760
 
9962
11761
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9963
 
      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'
 
11762
      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'
9964
11763
      # If the export-symbols file already is a .def file (1st line
9965
11764
      # is EXPORTS), use it as is; otherwise, prepend...
9966
11765
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9969
11768
        echo EXPORTS > $output_objdir/$soname.def;
9970
11769
        cat $export_symbols >> $output_objdir/$soname.def;
9971
11770
      fi~
9972
 
      $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'
 
11771
      $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'
9973
11772
    else
9974
11773
      ld_shlibs_CXX=no
9975
11774
    fi
9976
11775
  ;;
9977
 
 
9978
 
  darwin* | rhapsody*)
9979
 
  if test "$GXX" = yes; then
9980
 
    archive_cmds_need_lc_CXX=no
9981
 
    case "$host_os" in
9982
 
    rhapsody* | darwin1.[012])
9983
 
      allow_undefined_flag_CXX='-undefined suppress'
9984
 
      ;;
9985
 
    *) # Darwin 1.3 on
9986
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9987
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9988
 
      else
9989
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9990
 
          10.[012])
9991
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9992
 
            ;;
9993
 
          10.*)
9994
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
9995
 
            ;;
 
11776
      darwin* | rhapsody*)
 
11777
        case $host_os in
 
11778
        rhapsody* | darwin1.[012])
 
11779
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11780
         ;;
 
11781
       *) # Darwin 1.3 on
 
11782
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11783
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11784
         else
 
11785
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11786
             10.[012])
 
11787
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11788
               ;;
 
11789
             10.*)
 
11790
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11791
               ;;
 
11792
           esac
 
11793
         fi
 
11794
         ;;
9996
11795
        esac
9997
 
      fi
9998
 
      ;;
9999
 
    esac
10000
 
    lt_int_apple_cc_single_mod=no
10001
 
    output_verbose_link_cmd='echo'
10002
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10003
 
      lt_int_apple_cc_single_mod=yes
10004
 
    fi
10005
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10006
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10007
 
    else
10008
 
      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'
10009
 
    fi
10010
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11796
      archive_cmds_need_lc_CXX=no
 
11797
      hardcode_direct_CXX=no
 
11798
      hardcode_automatic_CXX=yes
 
11799
      hardcode_shlibpath_var_CXX=unsupported
 
11800
      whole_archive_flag_spec_CXX=''
 
11801
      link_all_deplibs_CXX=yes
10011
11802
 
10012
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10013
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10014
 
      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}'
10015
 
    else
10016
 
      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}'
10017
 
    fi
10018
 
    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}'
10019
 
    hardcode_direct_CXX=no
10020
 
    hardcode_automatic_CXX=yes
10021
 
    hardcode_shlibpath_var_CXX=unsupported
10022
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10023
 
    link_all_deplibs_CXX=yes
10024
 
  else
10025
 
    ld_shlibs_CXX=no
10026
 
  fi
10027
 
    ;;
 
11803
    if test "$GXX" = yes ; then
 
11804
      lt_int_apple_cc_single_mod=no
 
11805
      output_verbose_link_cmd='echo'
 
11806
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11807
       lt_int_apple_cc_single_mod=yes
 
11808
      fi
 
11809
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11810
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11811
      else
 
11812
          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'
 
11813
        fi
 
11814
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11815
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11816
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11817
            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}'
 
11818
          else
 
11819
            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}'
 
11820
          fi
 
11821
            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}'
 
11822
      else
 
11823
      case $cc_basename in
 
11824
        xlc*)
 
11825
         output_verbose_link_cmd='echo'
 
11826
          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'
 
11827
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11828
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11829
          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}'
 
11830
          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}'
 
11831
          ;;
 
11832
       *)
 
11833
         ld_shlibs_CXX=no
 
11834
          ;;
 
11835
      esac
 
11836
      fi
 
11837
        ;;
10028
11838
 
10029
11839
  dgux*)
10030
11840
    case $cc_basename in
10031
 
      ec++)
 
11841
      ec++*)
10032
11842
        # FIXME: insert proper C++ library support
10033
11843
        ld_shlibs_CXX=no
10034
11844
        ;;
10035
 
      ghcx)
 
11845
      ghcx*)
10036
11846
        # Green Hills C++ Compiler
10037
11847
        # FIXME: insert proper C++ library support
10038
11848
        ld_shlibs_CXX=no
10043
11853
        ;;
10044
11854
    esac
10045
11855
    ;;
10046
 
  freebsd12*)
 
11856
  freebsd[12]*)
10047
11857
    # C++ shared libraries reported to be fairly broken before switch to ELF
10048
11858
    ld_shlibs_CXX=no
10049
11859
    ;;
10050
11860
  freebsd-elf*)
10051
11861
    archive_cmds_need_lc_CXX=no
10052
11862
    ;;
10053
 
  freebsd* | kfreebsd*-gnu)
 
11863
  freebsd* | dragonfly*)
10054
11864
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10055
11865
    # conventions
10056
11866
    ld_shlibs_CXX=yes
10067
11877
                                # location of the library.
10068
11878
 
10069
11879
    case $cc_basename in
10070
 
    CC)
 
11880
    CC*)
10071
11881
      # FIXME: insert proper C++ library support
10072
11882
      ld_shlibs_CXX=no
10073
11883
      ;;
10074
 
    aCC)
 
11884
    aCC*)
10075
11885
      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'
10076
11886
      # Commands to make compiler produce verbose output that lists
10077
11887
      # what "hidden" libraries, object files and flags are used when
10081
11891
      # explicitly linking system object files so we need to strip them
10082
11892
      # from the output so that they don't get included in the library
10083
11893
      # dependencies.
10084
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11894
      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'
10085
11895
      ;;
10086
11896
    *)
10087
11897
      if test "$GXX" = yes; then
10095
11905
    ;;
10096
11906
  hpux10*|hpux11*)
10097
11907
    if test $with_gnu_ld = no; then
10098
 
      case "$host_cpu" in
10099
 
      hppa*64*)
10100
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11908
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11909
      hardcode_libdir_separator_CXX=:
 
11910
 
 
11911
      case $host_cpu in
 
11912
      hppa*64*|ia64*)
10101
11913
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10102
 
        hardcode_libdir_separator_CXX=:
10103
 
        ;;
10104
 
      ia64*)
10105
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10106
11914
        ;;
10107
11915
      *)
10108
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10109
 
        hardcode_libdir_separator_CXX=:
10110
11916
        export_dynamic_flag_spec_CXX='${wl}-E'
10111
11917
        ;;
10112
11918
      esac
10113
11919
    fi
10114
 
    case "$host_cpu" in
10115
 
    hppa*64*)
10116
 
      hardcode_direct_CXX=no
10117
 
      hardcode_shlibpath_var_CXX=no
10118
 
      ;;
10119
 
    ia64*)
10120
 
      hardcode_direct_CXX=no
10121
 
      hardcode_shlibpath_var_CXX=no
10122
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10123
 
                                              # but as the default
10124
 
                                              # location of the library.
 
11920
    case $host_cpu in
 
11921
    hppa*64*|ia64*)
 
11922
      hardcode_direct_CXX=no
 
11923
      hardcode_shlibpath_var_CXX=no
10125
11924
      ;;
10126
11925
    *)
10127
11926
      hardcode_direct_CXX=yes
10132
11931
    esac
10133
11932
 
10134
11933
    case $cc_basename in
10135
 
      CC)
 
11934
      CC*)
10136
11935
        # FIXME: insert proper C++ library support
10137
11936
        ld_shlibs_CXX=no
10138
11937
        ;;
10139
 
      aCC)
10140
 
        case "$host_cpu" in
10141
 
        hppa*64*|ia64*)
10142
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11938
      aCC*)
 
11939
        case $host_cpu in
 
11940
        hppa*64*)
 
11941
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11942
          ;;
 
11943
        ia64*)
 
11944
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10143
11945
          ;;
10144
11946
        *)
10145
11947
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10158
11960
      *)
10159
11961
        if test "$GXX" = yes; then
10160
11962
          if test $with_gnu_ld = no; then
10161
 
            case "$host_cpu" in
10162
 
            ia64*|hppa*64*)
10163
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11963
            case $host_cpu in
 
11964
            hppa*64*)
 
11965
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11966
              ;;
 
11967
            ia64*)
 
11968
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10164
11969
              ;;
10165
11970
            *)
10166
11971
              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'
10174
11979
        ;;
10175
11980
    esac
10176
11981
    ;;
 
11982
  interix3*)
 
11983
    hardcode_direct_CXX=no
 
11984
    hardcode_shlibpath_var_CXX=no
 
11985
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11986
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11987
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11988
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11989
    # default) and relocated if they conflict, which is a slow very memory
 
11990
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11991
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11992
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11993
    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'
 
11994
    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'
 
11995
    ;;
10177
11996
  irix5* | irix6*)
10178
11997
    case $cc_basename in
10179
 
      CC)
 
11998
      CC*)
10180
11999
        # SGI C++
10181
 
        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'
 
12000
        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'
10182
12001
 
10183
12002
        # Archives containing C++ object files must be created using
10184
12003
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10189
12008
      *)
10190
12009
        if test "$GXX" = yes; then
10191
12010
          if test "$with_gnu_ld" = no; then
10192
 
            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'
 
12011
            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'
10193
12012
          else
10194
12013
            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'
10195
12014
          fi
10200
12019
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10201
12020
    hardcode_libdir_separator_CXX=:
10202
12021
    ;;
10203
 
  linux*)
 
12022
  linux* | k*bsd*-gnu)
10204
12023
    case $cc_basename in
10205
 
      KCC)
 
12024
      KCC*)
10206
12025
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10207
12026
 
10208
12027
        # KCC will only create a shared library if the output file
10227
12046
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10228
12047
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10229
12048
        ;;
10230
 
      icpc)
 
12049
      icpc*)
10231
12050
        # Intel C++
10232
12051
        with_gnu_ld=yes
 
12052
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12053
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12054
        # earlier do not add the objects themselves.
 
12055
        case `$CC -V 2>&1` in
 
12056
        *"Version 7."*)
 
12057
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12058
          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'
 
12059
          ;;
 
12060
        *)  # Version 8.0 or newer
 
12061
          tmp_idyn=
 
12062
          case $host_cpu in
 
12063
            ia64*) tmp_idyn=' -i_dynamic';;
 
12064
          esac
 
12065
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12066
          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'
 
12067
          ;;
 
12068
        esac
10233
12069
        archive_cmds_need_lc_CXX=no
10234
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235
 
        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'
10236
12070
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10237
12071
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10238
12072
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10239
12073
        ;;
10240
 
      cxx)
 
12074
      pgCC*)
 
12075
        # Portland Group C++ compiler
 
12076
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12077
        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'
 
12078
 
 
12079
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12080
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12081
        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'
 
12082
        ;;
 
12083
      cxx*)
10241
12084
        # Compaq C++
10242
12085
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243
12086
        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'
10268
12111
    ;;
10269
12112
  mvs*)
10270
12113
    case $cc_basename in
10271
 
      cxx)
 
12114
      cxx*)
10272
12115
        # FIXME: insert proper C++ library support
10273
12116
        ld_shlibs_CXX=no
10274
12117
        ;;
10278
12121
        ;;
10279
12122
    esac
10280
12123
    ;;
10281
 
  netbsd* | knetbsd*-gnu)
 
12124
  netbsd* | netbsdelf*-gnu)
10282
12125
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10283
12126
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10284
12127
      wlarc=
10289
12132
    # Workaround some broken pre-1.5 toolchains
10290
12133
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10291
12134
    ;;
 
12135
  openbsd2*)
 
12136
    # C++ shared libraries are fairly broken
 
12137
    ld_shlibs_CXX=no
 
12138
    ;;
 
12139
  openbsd*)
 
12140
    hardcode_direct_CXX=yes
 
12141
    hardcode_shlibpath_var_CXX=no
 
12142
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12143
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12144
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12145
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12146
      export_dynamic_flag_spec_CXX='${wl}-E'
 
12147
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12148
    fi
 
12149
    output_verbose_link_cmd='echo'
 
12150
    ;;
10292
12151
  osf3*)
10293
12152
    case $cc_basename in
10294
 
      KCC)
 
12153
      KCC*)
10295
12154
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10296
12155
 
10297
12156
        # KCC will only create a shared library if the output file
10307
12166
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10308
12167
 
10309
12168
        ;;
10310
 
      RCC)
 
12169
      RCC*)
10311
12170
        # Rational C++ 2.4.1
10312
12171
        # FIXME: insert proper C++ library support
10313
12172
        ld_shlibs_CXX=no
10314
12173
        ;;
10315
 
      cxx)
 
12174
      cxx*)
10316
12175
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10317
 
        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'
 
12176
        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'
10318
12177
 
10319
12178
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10320
12179
        hardcode_libdir_separator_CXX=:
10332
12191
      *)
10333
12192
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10334
12193
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10335
 
          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'
 
12194
          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'
10336
12195
 
10337
12196
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10338
12197
          hardcode_libdir_separator_CXX=:
10351
12210
    ;;
10352
12211
  osf4* | osf5*)
10353
12212
    case $cc_basename in
10354
 
      KCC)
 
12213
      KCC*)
10355
12214
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10356
12215
 
10357
12216
        # KCC will only create a shared library if the output file
10366
12225
        # the KAI C++ compiler.
10367
12226
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10368
12227
        ;;
10369
 
      RCC)
 
12228
      RCC*)
10370
12229
        # Rational C++ 2.4.1
10371
12230
        # FIXME: insert proper C++ library support
10372
12231
        ld_shlibs_CXX=no
10373
12232
        ;;
10374
 
      cxx)
 
12233
      cxx*)
10375
12234
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10376
 
        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'
 
12235
        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'
10377
12236
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10378
12237
          echo "-hidden">> $lib.exp~
10379
 
          $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~
 
12238
          $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~
10380
12239
          $rm $lib.exp'
10381
12240
 
10382
12241
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10395
12254
      *)
10396
12255
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10397
12256
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10398
 
         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'
 
12257
         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'
10399
12258
 
10400
12259
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10401
12260
          hardcode_libdir_separator_CXX=:
10416
12275
    # FIXME: insert proper C++ library support
10417
12276
    ld_shlibs_CXX=no
10418
12277
    ;;
10419
 
  sco*)
10420
 
    archive_cmds_need_lc_CXX=no
10421
 
    case $cc_basename in
10422
 
      CC)
10423
 
        # FIXME: insert proper C++ library support
10424
 
        ld_shlibs_CXX=no
10425
 
        ;;
10426
 
      *)
10427
 
        # FIXME: insert proper C++ library support
10428
 
        ld_shlibs_CXX=no
10429
 
        ;;
10430
 
    esac
10431
 
    ;;
10432
12278
  sunos4*)
10433
12279
    case $cc_basename in
10434
 
      CC)
 
12280
      CC*)
10435
12281
        # Sun C++ 4.x
10436
12282
        # FIXME: insert proper C++ library support
10437
12283
        ld_shlibs_CXX=no
10438
12284
        ;;
10439
 
      lcc)
 
12285
      lcc*)
10440
12286
        # Lucid
10441
12287
        # FIXME: insert proper C++ library support
10442
12288
        ld_shlibs_CXX=no
10449
12295
    ;;
10450
12296
  solaris*)
10451
12297
    case $cc_basename in
10452
 
      CC)
 
12298
      CC*)
10453
12299
        # Sun C++ 4.2, 5.x and Centerline C++
 
12300
        archive_cmds_need_lc_CXX=yes
10454
12301
        no_undefined_flag_CXX=' -zdefs'
10455
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12302
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10456
12303
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10457
 
        $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'
 
12304
        $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'
10458
12305
 
10459
12306
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10460
12307
        hardcode_shlibpath_var_CXX=no
10461
12308
        case $host_os in
10462
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12309
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10463
12310
          *)
10464
12311
            # The C++ compiler is used as linker so we must use $wl
10465
12312
            # flag to pass the commands to the underlying system
10466
 
            # linker.
 
12313
            # linker. We must also pass each convience library through
 
12314
            # to the system linker between allextract/defaultextract.
 
12315
            # The C++ compiler will combine linker options so we
 
12316
            # cannot just pass the convience library names through
 
12317
            # without $wl.
10467
12318
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10468
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12319
            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'
10469
12320
            ;;
10470
12321
        esac
10471
12322
        link_all_deplibs_CXX=yes
10472
12323
 
10473
 
        # Commands to make compiler produce verbose output that lists
10474
 
        # what "hidden" libraries, object files and flags are used when
10475
 
        # linking a shared library.
10476
 
        #
10477
 
        # There doesn't appear to be a way to prevent this compiler from
10478
 
        # explicitly linking system object files so we need to strip them
10479
 
        # from the output so that they don't get included in the library
10480
 
        # dependencies.
10481
 
        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'
 
12324
        output_verbose_link_cmd='echo'
10482
12325
 
10483
12326
        # Archives containing C++ object files must be created using
10484
12327
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10486
12329
        # in the archive.
10487
12330
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10488
12331
        ;;
10489
 
      gcx)
 
12332
      gcx*)
10490
12333
        # Green Hills C++ Compiler
10491
12334
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10492
12335
 
10524
12367
        ;;
10525
12368
    esac
10526
12369
    ;;
10527
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10528
 
    archive_cmds_need_lc_CXX=no
 
12370
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12371
    no_undefined_flag_CXX='${wl}-z,text'
 
12372
    archive_cmds_need_lc_CXX=no
 
12373
    hardcode_shlibpath_var_CXX=no
 
12374
    runpath_var='LD_RUN_PATH'
 
12375
 
 
12376
    case $cc_basename in
 
12377
      CC*)
 
12378
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12379
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12380
        ;;
 
12381
      *)
 
12382
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12383
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12384
        ;;
 
12385
    esac
 
12386
    ;;
 
12387
  sysv5* | sco3.2v5* | sco5v6*)
 
12388
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12389
    # link with -lc, and that would cause any symbols used from libc to
 
12390
    # always be unresolved, which means just about no library would
 
12391
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12392
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12393
    # as -z defs.
 
12394
    # For security reasons, it is highly recommended that you always
 
12395
    # use absolute paths for naming shared libraries, and exclude the
 
12396
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12397
    # requires that you compile everything twice, which is a pain.
 
12398
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12399
    # non-empty value in the environment.  Most likely only useful for
 
12400
    # creating official distributions of packages.
 
12401
    # This is a hack until libtool officially supports absolute path
 
12402
    # names for shared libraries.
 
12403
    no_undefined_flag_CXX='${wl}-z,text'
 
12404
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12405
    archive_cmds_need_lc_CXX=no
 
12406
    hardcode_shlibpath_var_CXX=no
 
12407
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12408
    hardcode_libdir_separator_CXX=':'
 
12409
    link_all_deplibs_CXX=yes
 
12410
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12411
    runpath_var='LD_RUN_PATH'
 
12412
 
 
12413
    case $cc_basename in
 
12414
      CC*)
 
12415
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12416
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12417
        ;;
 
12418
      *)
 
12419
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12420
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12421
        ;;
 
12422
    esac
10529
12423
    ;;
10530
12424
  tandem*)
10531
12425
    case $cc_basename in
10532
 
      NCC)
 
12426
      NCC*)
10533
12427
        # NonStop-UX NCC 3.20
10534
12428
        # FIXME: insert proper C++ library support
10535
12429
        ld_shlibs_CXX=no
10549
12443
    ld_shlibs_CXX=no
10550
12444
    ;;
10551
12445
esac
10552
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10553
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12446
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12447
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10554
12448
test "$ld_shlibs_CXX" = no && can_build_shared=no
10555
12449
 
10556
12450
GCC_CXX="$GXX"
10582
12476
  # The `*' in the case matches for architectures that use `case' in
10583
12477
  # $output_verbose_cmd can trigger glob expansion during the loop
10584
12478
  # eval without this substitution.
10585
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12479
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10586
12480
 
10587
12481
  for p in `eval $output_verbose_link_cmd`; do
10588
12482
    case $p in
10658
12552
 
10659
12553
$rm -f confest.$objext
10660
12554
 
 
12555
# PORTME: override above test on systems where it is broken
 
12556
case $host_os in
 
12557
interix3*)
 
12558
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12559
  # hack all around it, let's just trust "g++" to DTRT.
 
12560
  predep_objects_CXX=
 
12561
  postdep_objects_CXX=
 
12562
  postdeps_CXX=
 
12563
  ;;
 
12564
 
 
12565
solaris*)
 
12566
  case $cc_basename in
 
12567
  CC*)
 
12568
    # Adding this requires a known-good setup of shared libraries for
 
12569
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12570
    # archive will be linked into the output, leading to subtle bugs.
 
12571
    postdeps_CXX='-lCstd -lCrun'
 
12572
    ;;
 
12573
  esac
 
12574
  ;;
 
12575
esac
 
12576
 
 
12577
 
10661
12578
case " $postdeps_CXX " in
10662
12579
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10663
12580
esac
10666
12583
lt_prog_compiler_pic_CXX=
10667
12584
lt_prog_compiler_static_CXX=
10668
12585
 
10669
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10670
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12586
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12587
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10671
12588
 
10672
12589
  # C++ specific cases for pic, static, wl, etc.
10673
12590
  if test "$GXX" = yes; then
10705
12622
      # DJGPP does not support shared libraries at all
10706
12623
      lt_prog_compiler_pic_CXX=
10707
12624
      ;;
 
12625
    interix3*)
 
12626
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12627
      # Instead, we relocate shared libraries at runtime.
 
12628
      ;;
10708
12629
    sysv4*MP*)
10709
12630
      if test -d /usr/nec; then
10710
12631
        lt_prog_compiler_pic_CXX=-Kconform_pic
10713
12634
    hpux*)
10714
12635
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10715
12636
      # not for PA HP-UX.
10716
 
      case "$host_cpu" in
 
12637
      case $host_cpu in
10717
12638
      hppa*64*|ia64*)
10718
12639
        ;;
10719
12640
      *)
10738
12659
        ;;
10739
12660
      chorus*)
10740
12661
        case $cc_basename in
10741
 
        cxch68)
 
12662
        cxch68*)
10742
12663
          # Green Hills C++ Compiler
10743
12664
          # _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"
10744
12665
          ;;
10745
12666
        esac
10746
12667
        ;;
 
12668
       darwin*)
 
12669
         # PIC is the default on this platform
 
12670
         # Common symbols not allowed in MH_DYLIB files
 
12671
         case $cc_basename in
 
12672
           xlc*)
 
12673
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12674
           lt_prog_compiler_wl_CXX='-Wl,'
 
12675
           ;;
 
12676
         esac
 
12677
       ;;
10747
12678
      dgux*)
10748
12679
        case $cc_basename in
10749
 
          ec++)
 
12680
          ec++*)
10750
12681
            lt_prog_compiler_pic_CXX='-KPIC'
10751
12682
            ;;
10752
 
          ghcx)
 
12683
          ghcx*)
10753
12684
            # Green Hills C++ Compiler
10754
12685
            lt_prog_compiler_pic_CXX='-pic'
10755
12686
            ;;
10757
12688
            ;;
10758
12689
        esac
10759
12690
        ;;
10760
 
      freebsd* | kfreebsd*-gnu)
 
12691
      freebsd* | dragonfly*)
10761
12692
        # FreeBSD uses GNU C++
10762
12693
        ;;
10763
12694
      hpux9* | hpux10* | hpux11*)
10764
12695
        case $cc_basename in
10765
 
          CC)
 
12696
          CC*)
10766
12697
            lt_prog_compiler_wl_CXX='-Wl,'
10767
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12698
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10768
12699
            if test "$host_cpu" != ia64; then
10769
12700
              lt_prog_compiler_pic_CXX='+Z'
10770
12701
            fi
10771
12702
            ;;
10772
 
          aCC)
 
12703
          aCC*)
10773
12704
            lt_prog_compiler_wl_CXX='-Wl,'
10774
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10775
 
            case "$host_cpu" in
 
12705
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12706
            case $host_cpu in
10776
12707
            hppa*64*|ia64*)
10777
12708
              # +Z the default
10778
12709
              ;;
10785
12716
            ;;
10786
12717
        esac
10787
12718
        ;;
 
12719
      interix*)
 
12720
        # This is c89, which is MS Visual C++ (no shared libs)
 
12721
        # Anyone wants to do a port?
 
12722
        ;;
10788
12723
      irix5* | irix6* | nonstopux*)
10789
12724
        case $cc_basename in
10790
 
          CC)
 
12725
          CC*)
10791
12726
            lt_prog_compiler_wl_CXX='-Wl,'
10792
12727
            lt_prog_compiler_static_CXX='-non_shared'
10793
12728
            # CC pic flag -KPIC is the default.
10796
12731
            ;;
10797
12732
        esac
10798
12733
        ;;
10799
 
      linux*)
 
12734
      linux* | k*bsd*-gnu)
10800
12735
        case $cc_basename in
10801
 
          KCC)
 
12736
          KCC*)
10802
12737
            # KAI C++ Compiler
10803
12738
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10804
12739
            lt_prog_compiler_pic_CXX='-fPIC'
10805
12740
            ;;
10806
 
          icpc)
 
12741
          icpc* | ecpc*)
10807
12742
            # Intel C++
10808
12743
            lt_prog_compiler_wl_CXX='-Wl,'
10809
12744
            lt_prog_compiler_pic_CXX='-KPIC'
10810
12745
            lt_prog_compiler_static_CXX='-static'
10811
12746
            ;;
10812
 
          cxx)
 
12747
          pgCC*)
 
12748
            # Portland Group C++ compiler.
 
12749
            lt_prog_compiler_wl_CXX='-Wl,'
 
12750
            lt_prog_compiler_pic_CXX='-fpic'
 
12751
            lt_prog_compiler_static_CXX='-Bstatic'
 
12752
            ;;
 
12753
          cxx*)
10813
12754
            # Compaq C++
10814
12755
            # Make sure the PIC flag is empty.  It appears that all Alpha
10815
12756
            # Linux and Compaq Tru64 Unix objects are PIC.
10826
12767
        ;;
10827
12768
      mvs*)
10828
12769
        case $cc_basename in
10829
 
          cxx)
 
12770
          cxx*)
10830
12771
            lt_prog_compiler_pic_CXX='-W c,exportall'
10831
12772
            ;;
10832
12773
          *)
10833
12774
            ;;
10834
12775
        esac
10835
12776
        ;;
10836
 
      netbsd* | knetbsd*-gnu)
 
12777
      netbsd* | netbsdelf*-gnu)
10837
12778
        ;;
10838
12779
      osf3* | osf4* | osf5*)
10839
12780
        case $cc_basename in
10840
 
          KCC)
 
12781
          KCC*)
10841
12782
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10842
12783
            ;;
10843
 
          RCC)
 
12784
          RCC*)
10844
12785
            # Rational C++ 2.4.1
10845
12786
            lt_prog_compiler_pic_CXX='-pic'
10846
12787
            ;;
10847
 
          cxx)
 
12788
          cxx*)
10848
12789
            # Digital/Compaq C++
10849
12790
            lt_prog_compiler_wl_CXX='-Wl,'
10850
12791
            # Make sure the PIC flag is empty.  It appears that all Alpha
10858
12799
        ;;
10859
12800
      psos*)
10860
12801
        ;;
10861
 
      sco*)
10862
 
        case $cc_basename in
10863
 
          CC)
10864
 
            lt_prog_compiler_pic_CXX='-fPIC'
10865
 
            ;;
10866
 
          *)
10867
 
            ;;
10868
 
        esac
10869
 
        ;;
10870
12802
      solaris*)
10871
12803
        case $cc_basename in
10872
 
          CC)
 
12804
          CC*)
10873
12805
            # Sun C++ 4.2, 5.x and Centerline C++
10874
12806
            lt_prog_compiler_pic_CXX='-KPIC'
10875
12807
            lt_prog_compiler_static_CXX='-Bstatic'
10876
12808
            lt_prog_compiler_wl_CXX='-Qoption ld '
10877
12809
            ;;
10878
 
          gcx)
 
12810
          gcx*)
10879
12811
            # Green Hills C++ Compiler
10880
12812
            lt_prog_compiler_pic_CXX='-PIC'
10881
12813
            ;;
10885
12817
        ;;
10886
12818
      sunos4*)
10887
12819
        case $cc_basename in
10888
 
          CC)
 
12820
          CC*)
10889
12821
            # Sun C++ 4.x
10890
12822
            lt_prog_compiler_pic_CXX='-pic'
10891
12823
            lt_prog_compiler_static_CXX='-Bstatic'
10892
12824
            ;;
10893
 
          lcc)
 
12825
          lcc*)
10894
12826
            # Lucid
10895
12827
            lt_prog_compiler_pic_CXX='-pic'
10896
12828
            ;;
10900
12832
        ;;
10901
12833
      tandem*)
10902
12834
        case $cc_basename in
10903
 
          NCC)
 
12835
          NCC*)
10904
12836
            # NonStop-UX NCC 3.20
10905
12837
            lt_prog_compiler_pic_CXX='-KPIC'
10906
12838
            ;;
10908
12840
            ;;
10909
12841
        esac
10910
12842
        ;;
10911
 
      unixware*)
 
12843
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12844
        case $cc_basename in
 
12845
          CC*)
 
12846
            lt_prog_compiler_wl_CXX='-Wl,'
 
12847
            lt_prog_compiler_pic_CXX='-KPIC'
 
12848
            lt_prog_compiler_static_CXX='-Bstatic'
 
12849
            ;;
 
12850
        esac
10912
12851
        ;;
10913
12852
      vxworks*)
10914
12853
        ;;
10918
12857
    esac
10919
12858
  fi
10920
12859
 
10921
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10922
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12860
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12861
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
10923
12862
 
10924
12863
#
10925
12864
# Check to make sure the PIC flag actually works.
10926
12865
#
10927
12866
if test -n "$lt_prog_compiler_pic_CXX"; then
10928
12867
 
10929
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10930
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12868
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12869
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
10931
12870
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10932
12871
  echo $ECHO_N "(cached) $ECHO_C" >&6
10933
12872
else
10941
12880
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10942
12881
   # The option is referenced via a variable to avoid confusing sed.
10943
12882
   lt_compile=`echo "$ac_compile" | $SED \
10944
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12883
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10945
12884
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10946
12885
   -e 's:$: $lt_compiler_flag:'`
10947
 
   (eval echo "\"\$as_me:10947: $lt_compile\"" >&5)
 
12886
   (eval echo "\"\$as_me:12886: $lt_compile\"" >&5)
10948
12887
   (eval "$lt_compile" 2>conftest.err)
10949
12888
   ac_status=$?
10950
12889
   cat conftest.err >&5
10951
 
   echo "$as_me:10951: \$? = $ac_status" >&5
 
12890
   echo "$as_me:12890: \$? = $ac_status" >&5
10952
12891
   if (exit $ac_status) && test -s "$ac_outfile"; then
10953
12892
     # The compiler can only warn and ignore the option if not recognized
10954
 
     # So say no if there are warnings
10955
 
     if test ! -s conftest.err; then
 
12893
     # So say no if there are warnings other than the usual output.
 
12894
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12895
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12896
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10956
12897
       lt_prog_compiler_pic_works_CXX=yes
10957
12898
     fi
10958
12899
   fi
10959
12900
   $rm conftest*
10960
12901
 
10961
12902
fi
10962
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10963
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12903
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12904
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
10964
12905
 
10965
12906
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10966
12907
    case $lt_prog_compiler_pic_CXX in
10973
12914
fi
10974
12915
 
10975
12916
fi
10976
 
case "$host_os" in
 
12917
case $host_os in
10977
12918
  # For platforms which do not support PIC, -DPIC is meaningless:
10978
12919
  *djgpp*)
10979
12920
    lt_prog_compiler_pic_CXX=
10983
12924
    ;;
10984
12925
esac
10985
12926
 
10986
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10987
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12927
#
 
12928
# Check to make sure the static flag actually works.
 
12929
#
 
12930
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12931
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12932
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12933
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12935
else
 
12936
  lt_prog_compiler_static_works_CXX=no
 
12937
   save_LDFLAGS="$LDFLAGS"
 
12938
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12939
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12940
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12941
     # The linker can only warn and ignore the option if not recognized
 
12942
     # So say no if there are warnings
 
12943
     if test -s conftest.err; then
 
12944
       # Append any errors to the config.log.
 
12945
       cat conftest.err 1>&5
 
12946
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12947
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12948
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12949
         lt_prog_compiler_static_works_CXX=yes
 
12950
       fi
 
12951
     else
 
12952
       lt_prog_compiler_static_works_CXX=yes
 
12953
     fi
 
12954
   fi
 
12955
   $rm conftest*
 
12956
   LDFLAGS="$save_LDFLAGS"
 
12957
 
 
12958
fi
 
12959
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12960
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12961
 
 
12962
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12963
    :
 
12964
else
 
12965
    lt_prog_compiler_static_CXX=
 
12966
fi
 
12967
 
 
12968
 
 
12969
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12970
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10988
12971
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10989
12972
  echo $ECHO_N "(cached) $ECHO_C" >&6
10990
12973
else
11001
12984
   # Note that $ac_compile itself does not contain backslashes and begins
11002
12985
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11003
12986
   lt_compile=`echo "$ac_compile" | $SED \
11004
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12987
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11005
12988
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11006
12989
   -e 's:$: $lt_compiler_flag:'`
11007
 
   (eval echo "\"\$as_me:11007: $lt_compile\"" >&5)
 
12990
   (eval echo "\"\$as_me:12990: $lt_compile\"" >&5)
11008
12991
   (eval "$lt_compile" 2>out/conftest.err)
11009
12992
   ac_status=$?
11010
12993
   cat out/conftest.err >&5
11011
 
   echo "$as_me:11011: \$? = $ac_status" >&5
 
12994
   echo "$as_me:12994: \$? = $ac_status" >&5
11012
12995
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11013
12996
   then
11014
12997
     # The compiler can only warn and ignore the option if not recognized
11015
12998
     # So say no if there are warnings
11016
 
     if test ! -s out/conftest.err; then
 
12999
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13000
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13001
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11017
13002
       lt_cv_prog_compiler_c_o_CXX=yes
11018
13003
     fi
11019
13004
   fi
11020
 
   chmod u+w .
 
13005
   chmod u+w . 2>&5
11021
13006
   $rm conftest*
11022
13007
   # SGI C++ compiler will create directory out/ii_files/ for
11023
13008
   # template instantiation
11028
13013
   $rm conftest*
11029
13014
 
11030
13015
fi
11031
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11032
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13016
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13017
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11033
13018
 
11034
13019
 
11035
13020
hard_links="nottested"
11036
13021
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11037
13022
  # do not overwrite the value of need_locks provided by the user
11038
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11039
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13023
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13024
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11040
13025
  hard_links=yes
11041
13026
  $rm conftest*
11042
13027
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11043
13028
  touch conftest.a
11044
13029
  ln conftest.a conftest.b 2>&5 || hard_links=no
11045
13030
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11046
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11047
 
echo "${ECHO_T}$hard_links" >&6
 
13031
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13032
echo "${ECHO_T}$hard_links" >&6; }
11048
13033
  if test "$hard_links" = no; then
11049
13034
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11050
13035
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11054
13039
  need_locks=no
11055
13040
fi
11056
13041
 
11057
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11058
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13042
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13043
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11059
13044
 
11060
13045
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11061
13046
  case $host_os in
11072
13057
    export_symbols_cmds_CXX="$ltdll_cmds"
11073
13058
  ;;
11074
13059
  cygwin* | mingw*)
11075
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13060
    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'
 
13061
  ;;
 
13062
  linux* | k*bsd*-gnu)
 
13063
    link_all_deplibs_CXX=no
11076
13064
  ;;
11077
13065
  *)
11078
13066
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11079
13067
  ;;
11080
13068
  esac
11081
13069
 
11082
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11083
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13070
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13071
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11084
13072
test "$ld_shlibs_CXX" = no && can_build_shared=no
11085
13073
 
11086
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11087
 
if test "$GCC" = yes; then
11088
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11089
 
fi
11090
 
 
11091
13074
#
11092
13075
# Do we need to explicitly link libc?
11093
13076
#
11105
13088
      # Test whether the compiler implicitly links with -lc since on some
11106
13089
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11107
13090
      # to ld, don't add -lc before -lgcc.
11108
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11109
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13091
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13092
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11110
13093
      $rm conftest*
11111
13094
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11112
13095
 
11120
13103
        libobjs=conftest.$ac_objext
11121
13104
        deplibs=
11122
13105
        wl=$lt_prog_compiler_wl_CXX
 
13106
        pic_flag=$lt_prog_compiler_pic_CXX
11123
13107
        compiler_flags=-v
11124
13108
        linker_flags=-v
11125
13109
        verstring=
11142
13126
        cat conftest.err 1>&5
11143
13127
      fi
11144
13128
      $rm conftest*
11145
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11146
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13129
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13130
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11147
13131
      ;;
11148
13132
    esac
11149
13133
  fi
11150
13134
  ;;
11151
13135
esac
11152
13136
 
11153
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11154
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13137
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13138
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11155
13139
library_names_spec=
11156
13140
libname_spec='lib$name'
11157
13141
soname_spec=
11158
 
shrext=".so"
 
13142
shrext_cmds=".so"
11159
13143
postinstall_cmds=
11160
13144
postuninstall_cmds=
11161
13145
finish_cmds=
11252
13236
  shlibpath_var=LIBRARY_PATH
11253
13237
  ;;
11254
13238
 
11255
 
bsdi4*)
 
13239
bsdi[45]*)
11256
13240
  version_type=linux
11257
13241
  need_version=no
11258
13242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268
13252
 
11269
13253
cygwin* | mingw* | pw32*)
11270
13254
  version_type=windows
11271
 
  shrext=".dll"
 
13255
  shrext_cmds=".dll"
11272
13256
  need_version=no
11273
13257
  need_lib_prefix=no
11274
13258
 
11280
13264
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11281
13265
      dldir=$destdir/`dirname \$dlpath`~
11282
13266
      test -d \$dldir || mkdir -p \$dldir~
11283
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13267
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13268
      chmod a+x \$dldir/$dlname'
11284
13269
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11285
13270
      dlpath=$dir/\$dldll~
11286
13271
       $rm \$dlpath'
11310
13295
      ;;
11311
13296
    pw32*)
11312
13297
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11313
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13298
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314
13299
      ;;
11315
13300
    esac
11316
13301
    ;;
11333
13318
  soname_spec='${libname}${release}${major}$shared_ext'
11334
13319
  shlibpath_overrides_runpath=yes
11335
13320
  shlibpath_var=DYLD_LIBRARY_PATH
11336
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13321
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11337
13322
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11338
13323
  if test "$GCC" = yes; then
11339
13324
    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"`
11356
13341
  dynamic_linker=no
11357
13342
  ;;
11358
13343
 
11359
 
kfreebsd*-gnu)
11360
 
  version_type=linux
11361
 
  need_lib_prefix=no
11362
 
  need_version=no
11363
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364
 
  soname_spec='${libname}${release}${shared_ext}$major'
11365
 
  shlibpath_var=LD_LIBRARY_PATH
11366
 
  shlibpath_overrides_runpath=no
11367
 
  hardcode_into_libs=yes
11368
 
  dynamic_linker='GNU ld.so'
11369
 
  ;;
11370
 
 
11371
 
freebsd*)
11372
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13344
freebsd* | dragonfly*)
 
13345
  # DragonFly does not have aout.  When/if they implement a new
 
13346
  # versioning mechanism, adjust this.
 
13347
  if test -x /usr/bin/objformat; then
 
13348
    objformat=`/usr/bin/objformat`
 
13349
  else
 
13350
    case $host_os in
 
13351
    freebsd[123]*) objformat=aout ;;
 
13352
    *) objformat=elf ;;
 
13353
    esac
 
13354
  fi
11373
13355
  version_type=freebsd-$objformat
11374
13356
  case $version_type in
11375
13357
    freebsd-elf*)
11387
13369
  freebsd2*)
11388
13370
    shlibpath_overrides_runpath=yes
11389
13371
    ;;
11390
 
  freebsd3.01* | freebsdelf3.01*)
 
13372
  freebsd3.[01]* | freebsdelf3.[01]*)
11391
13373
    shlibpath_overrides_runpath=yes
11392
13374
    hardcode_into_libs=yes
11393
13375
    ;;
11394
 
  *) # from 3.2 on
 
13376
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13377
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11395
13378
    shlibpath_overrides_runpath=no
11396
13379
    hardcode_into_libs=yes
11397
13380
    ;;
 
13381
  freebsd*) # from 4.6 on
 
13382
    shlibpath_overrides_runpath=yes
 
13383
    hardcode_into_libs=yes
 
13384
    ;;
11398
13385
  esac
11399
13386
  ;;
11400
13387
 
11414
13401
  version_type=sunos
11415
13402
  need_lib_prefix=no
11416
13403
  need_version=no
11417
 
  case "$host_cpu" in
 
13404
  case $host_cpu in
11418
13405
  ia64*)
11419
 
    shrext='.so'
 
13406
    shrext_cmds='.so'
11420
13407
    hardcode_into_libs=yes
11421
13408
    dynamic_linker="$host_os dld.so"
11422
13409
    shlibpath_var=LD_LIBRARY_PATH
11431
13418
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11432
13419
    ;;
11433
13420
   hppa*64*)
11434
 
     shrext='.sl'
 
13421
     shrext_cmds='.sl'
11435
13422
     hardcode_into_libs=yes
11436
13423
     dynamic_linker="$host_os dld.sl"
11437
13424
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11442
13429
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11443
13430
     ;;
11444
13431
   *)
11445
 
    shrext='.sl'
 
13432
    shrext_cmds='.sl'
11446
13433
    dynamic_linker="$host_os dld.sl"
11447
13434
    shlibpath_var=SHLIB_PATH
11448
13435
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11454
13441
  postinstall_cmds='chmod 555 $lib'
11455
13442
  ;;
11456
13443
 
 
13444
interix3*)
 
13445
  version_type=linux
 
13446
  need_lib_prefix=no
 
13447
  need_version=no
 
13448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13449
  soname_spec='${libname}${release}${shared_ext}$major'
 
13450
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13451
  shlibpath_var=LD_LIBRARY_PATH
 
13452
  shlibpath_overrides_runpath=no
 
13453
  hardcode_into_libs=yes
 
13454
  ;;
 
13455
 
11457
13456
irix5* | irix6* | nonstopux*)
11458
13457
  case $host_os in
11459
13458
    nonstopux*) version_type=nonstopux ;;
11497
13496
  ;;
11498
13497
 
11499
13498
# This must be Linux ELF.
11500
 
linux*)
 
13499
linux* | k*bsd*-gnu)
11501
13500
  version_type=linux
11502
13501
  need_lib_prefix=no
11503
13502
  need_version=no
11513
13512
 
11514
13513
  # Append ld.so.conf contents to the search path
11515
13514
  if test -f /etc/ld.so.conf; then
11516
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11517
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
13515
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13516
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11518
13517
  fi
11519
13518
 
11520
13519
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11526
13525
  dynamic_linker='GNU/Linux ld.so'
11527
13526
  ;;
11528
13527
 
11529
 
knetbsd*-gnu)
 
13528
netbsdelf*-gnu)
11530
13529
  version_type=linux
11531
13530
  need_lib_prefix=no
11532
13531
  need_version=no
11535
13534
  shlibpath_var=LD_LIBRARY_PATH
11536
13535
  shlibpath_overrides_runpath=no
11537
13536
  hardcode_into_libs=yes
11538
 
  dynamic_linker='GNU ld.so'
 
13537
  dynamic_linker='NetBSD ld.elf_so'
11539
13538
  ;;
11540
13539
 
11541
13540
netbsd*)
11575
13574
 
11576
13575
openbsd*)
11577
13576
  version_type=sunos
 
13577
  sys_lib_dlsearch_path_spec="/usr/lib"
11578
13578
  need_lib_prefix=no
11579
 
  need_version=yes
 
13579
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13580
  case $host_os in
 
13581
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13582
    *)                         need_version=no  ;;
 
13583
  esac
11580
13584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11581
13585
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11582
13586
  shlibpath_var=LD_LIBRARY_PATH
11596
13600
 
11597
13601
os2*)
11598
13602
  libname_spec='$name'
11599
 
  shrext=".dll"
 
13603
  shrext_cmds=".dll"
11600
13604
  need_lib_prefix=no
11601
13605
  library_names_spec='$libname${shared_ext} $libname.a'
11602
13606
  dynamic_linker='OS/2 ld.exe'
11614
13618
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11615
13619
  ;;
11616
13620
 
11617
 
sco3.2v5*)
11618
 
  version_type=osf
11619
 
  soname_spec='${libname}${release}${shared_ext}$major'
11620
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621
 
  shlibpath_var=LD_LIBRARY_PATH
11622
 
  ;;
11623
 
 
11624
13621
solaris*)
11625
13622
  version_type=linux
11626
13623
  need_lib_prefix=no
11646
13643
  need_version=yes
11647
13644
  ;;
11648
13645
 
11649
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13646
sysv4 | sysv4.3*)
11650
13647
  version_type=linux
11651
13648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652
13649
  soname_spec='${libname}${release}${shared_ext}$major'
11679
13676
  fi
11680
13677
  ;;
11681
13678
 
 
13679
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13680
  version_type=freebsd-elf
 
13681
  need_lib_prefix=no
 
13682
  need_version=no
 
13683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13684
  soname_spec='${libname}${release}${shared_ext}$major'
 
13685
  shlibpath_var=LD_LIBRARY_PATH
 
13686
  hardcode_into_libs=yes
 
13687
  if test "$with_gnu_ld" = yes; then
 
13688
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13689
    shlibpath_overrides_runpath=no
 
13690
  else
 
13691
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13692
    shlibpath_overrides_runpath=yes
 
13693
    case $host_os in
 
13694
      sco3.2v5*)
 
13695
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13696
        ;;
 
13697
    esac
 
13698
  fi
 
13699
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13700
  ;;
 
13701
 
11682
13702
uts4*)
11683
13703
  version_type=linux
11684
13704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690
13710
  dynamic_linker=no
11691
13711
  ;;
11692
13712
esac
11693
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11694
 
echo "${ECHO_T}$dynamic_linker" >&6
 
13713
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13714
echo "${ECHO_T}$dynamic_linker" >&6; }
11695
13715
test "$dynamic_linker" = no && can_build_shared=no
11696
13716
 
11697
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11698
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13717
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13718
if test "$GCC" = yes; then
 
13719
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13720
fi
 
13721
 
 
13722
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13723
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11699
13724
hardcode_action_CXX=
11700
13725
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11701
 
   test -n "$runpath_var CXX" || \
11702
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13726
   test -n "$runpath_var_CXX" || \
 
13727
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11703
13728
 
11704
13729
  # We can hardcode non-existant directories.
11705
13730
  if test "$hardcode_direct_CXX" != no &&
11719
13744
  # directories.
11720
13745
  hardcode_action_CXX=unsupported
11721
13746
fi
11722
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11723
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13747
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13748
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11724
13749
 
11725
13750
if test "$hardcode_action_CXX" = relink; then
11726
13751
  # Fast installation is not supported
11731
13756
  enable_fast_install=needless
11732
13757
fi
11733
13758
 
11734
 
striplib=
11735
 
old_striplib=
11736
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11737
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11738
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11739
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11740
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11741
 
  echo "$as_me:$LINENO: result: yes" >&5
11742
 
echo "${ECHO_T}yes" >&6
11743
 
else
11744
 
# FIXME - insert some real tests, host_os isn't really good enough
11745
 
  case $host_os in
11746
 
   darwin*)
11747
 
       if test -n "$STRIP" ; then
11748
 
         striplib="$STRIP -x"
11749
 
         echo "$as_me:$LINENO: result: yes" >&5
11750
 
echo "${ECHO_T}yes" >&6
11751
 
       else
11752
 
  echo "$as_me:$LINENO: result: no" >&5
11753
 
echo "${ECHO_T}no" >&6
11754
 
fi
11755
 
       ;;
11756
 
   *)
11757
 
  echo "$as_me:$LINENO: result: no" >&5
11758
 
echo "${ECHO_T}no" >&6
11759
 
    ;;
11760
 
  esac
11761
 
fi
11762
 
 
11763
 
if test "x$enable_dlopen" != xyes; then
11764
 
  enable_dlopen=unknown
11765
 
  enable_dlopen_self=unknown
11766
 
  enable_dlopen_self_static=unknown
11767
 
else
11768
 
  lt_cv_dlopen=no
11769
 
  lt_cv_dlopen_libs=
11770
 
 
11771
 
  case $host_os in
11772
 
  beos*)
11773
 
    lt_cv_dlopen="load_add_on"
11774
 
    lt_cv_dlopen_libs=
11775
 
    lt_cv_dlopen_self=yes
11776
 
    ;;
11777
 
 
11778
 
  mingw* | pw32*)
11779
 
    lt_cv_dlopen="LoadLibrary"
11780
 
    lt_cv_dlopen_libs=
11781
 
   ;;
11782
 
 
11783
 
  cygwin*)
11784
 
    lt_cv_dlopen="dlopen"
11785
 
    lt_cv_dlopen_libs=
11786
 
   ;;
11787
 
 
11788
 
  darwin*)
11789
 
  # if libdl is installed we need to link against it
11790
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11791
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11792
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11794
 
else
11795
 
  ac_check_lib_save_LIBS=$LIBS
11796
 
LIBS="-ldl  $LIBS"
11797
 
cat >conftest.$ac_ext <<_ACEOF
11798
 
/* confdefs.h.  */
11799
 
_ACEOF
11800
 
cat confdefs.h >>conftest.$ac_ext
11801
 
cat >>conftest.$ac_ext <<_ACEOF
11802
 
/* end confdefs.h.  */
11803
 
 
11804
 
/* Override any gcc2 internal prototype to avoid an error.  */
11805
 
#ifdef __cplusplus
11806
 
extern "C"
11807
 
#endif
11808
 
/* We use char because int might match the return type of a gcc2
11809
 
   builtin and then its argument prototype would still apply.  */
11810
 
char dlopen ();
11811
 
int
11812
 
main ()
11813
 
{
11814
 
dlopen ();
11815
 
  ;
11816
 
  return 0;
11817
 
}
11818
 
_ACEOF
11819
 
rm -f conftest.$ac_objext conftest$ac_exeext
11820
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11821
 
  (eval $ac_link) 2>conftest.er1
11822
 
  ac_status=$?
11823
 
  grep -v '^ *+' conftest.er1 >conftest.err
11824
 
  rm -f conftest.er1
11825
 
  cat conftest.err >&5
11826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827
 
  (exit $ac_status); } &&
11828
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11829
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830
 
  (eval $ac_try) 2>&5
11831
 
  ac_status=$?
11832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833
 
  (exit $ac_status); }; } &&
11834
 
         { ac_try='test -s conftest$ac_exeext'
11835
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836
 
  (eval $ac_try) 2>&5
11837
 
  ac_status=$?
11838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839
 
  (exit $ac_status); }; }; then
11840
 
  ac_cv_lib_dl_dlopen=yes
11841
 
else
11842
 
  echo "$as_me: failed program was:" >&5
11843
 
sed 's/^/| /' conftest.$ac_ext >&5
11844
 
 
11845
 
ac_cv_lib_dl_dlopen=no
11846
 
fi
11847
 
rm -f conftest.err conftest.$ac_objext \
11848
 
      conftest$ac_exeext conftest.$ac_ext
11849
 
LIBS=$ac_check_lib_save_LIBS
11850
 
fi
11851
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11852
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11853
 
if test $ac_cv_lib_dl_dlopen = yes; then
11854
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11855
 
else
11856
 
 
11857
 
    lt_cv_dlopen="dyld"
11858
 
    lt_cv_dlopen_libs=
11859
 
    lt_cv_dlopen_self=yes
11860
 
 
11861
 
fi
11862
 
 
11863
 
   ;;
11864
 
 
11865
 
  *)
11866
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11867
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11868
 
if test "${ac_cv_func_shl_load+set}" = set; then
11869
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11870
 
else
11871
 
  cat >conftest.$ac_ext <<_ACEOF
11872
 
/* confdefs.h.  */
11873
 
_ACEOF
11874
 
cat confdefs.h >>conftest.$ac_ext
11875
 
cat >>conftest.$ac_ext <<_ACEOF
11876
 
/* end confdefs.h.  */
11877
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11878
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11879
 
#define shl_load innocuous_shl_load
11880
 
 
11881
 
/* System header to define __stub macros and hopefully few prototypes,
11882
 
    which can conflict with char shl_load (); below.
11883
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884
 
    <limits.h> exists even on freestanding compilers.  */
11885
 
 
11886
 
#ifdef __STDC__
11887
 
# include <limits.h>
11888
 
#else
11889
 
# include <assert.h>
11890
 
#endif
11891
 
 
11892
 
#undef shl_load
11893
 
 
11894
 
/* Override any gcc2 internal prototype to avoid an error.  */
11895
 
#ifdef __cplusplus
11896
 
extern "C"
11897
 
{
11898
 
#endif
11899
 
/* We use char because int might match the return type of a gcc2
11900
 
   builtin and then its argument prototype would still apply.  */
11901
 
char shl_load ();
11902
 
/* The GNU C library defines this for functions which it implements
11903
 
    to always fail with ENOSYS.  Some functions are actually named
11904
 
    something starting with __ and the normal name is an alias.  */
11905
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11906
 
choke me
11907
 
#else
11908
 
char (*f) () = shl_load;
11909
 
#endif
11910
 
#ifdef __cplusplus
11911
 
}
11912
 
#endif
11913
 
 
11914
 
int
11915
 
main ()
11916
 
{
11917
 
return f != shl_load;
11918
 
  ;
11919
 
  return 0;
11920
 
}
11921
 
_ACEOF
11922
 
rm -f conftest.$ac_objext conftest$ac_exeext
11923
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924
 
  (eval $ac_link) 2>conftest.er1
11925
 
  ac_status=$?
11926
 
  grep -v '^ *+' conftest.er1 >conftest.err
11927
 
  rm -f conftest.er1
11928
 
  cat conftest.err >&5
11929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930
 
  (exit $ac_status); } &&
11931
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933
 
  (eval $ac_try) 2>&5
11934
 
  ac_status=$?
11935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936
 
  (exit $ac_status); }; } &&
11937
 
         { ac_try='test -s conftest$ac_exeext'
11938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939
 
  (eval $ac_try) 2>&5
11940
 
  ac_status=$?
11941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942
 
  (exit $ac_status); }; }; then
11943
 
  ac_cv_func_shl_load=yes
11944
 
else
11945
 
  echo "$as_me: failed program was:" >&5
11946
 
sed 's/^/| /' conftest.$ac_ext >&5
11947
 
 
11948
 
ac_cv_func_shl_load=no
11949
 
fi
11950
 
rm -f conftest.err conftest.$ac_objext \
11951
 
      conftest$ac_exeext conftest.$ac_ext
11952
 
fi
11953
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11954
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11955
 
if test $ac_cv_func_shl_load = yes; then
11956
 
  lt_cv_dlopen="shl_load"
11957
 
else
11958
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11959
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11960
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11962
 
else
11963
 
  ac_check_lib_save_LIBS=$LIBS
11964
 
LIBS="-ldld  $LIBS"
11965
 
cat >conftest.$ac_ext <<_ACEOF
11966
 
/* confdefs.h.  */
11967
 
_ACEOF
11968
 
cat confdefs.h >>conftest.$ac_ext
11969
 
cat >>conftest.$ac_ext <<_ACEOF
11970
 
/* end confdefs.h.  */
11971
 
 
11972
 
/* Override any gcc2 internal prototype to avoid an error.  */
11973
 
#ifdef __cplusplus
11974
 
extern "C"
11975
 
#endif
11976
 
/* We use char because int might match the return type of a gcc2
11977
 
   builtin and then its argument prototype would still apply.  */
11978
 
char shl_load ();
11979
 
int
11980
 
main ()
11981
 
{
11982
 
shl_load ();
11983
 
  ;
11984
 
  return 0;
11985
 
}
11986
 
_ACEOF
11987
 
rm -f conftest.$ac_objext conftest$ac_exeext
11988
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989
 
  (eval $ac_link) 2>conftest.er1
11990
 
  ac_status=$?
11991
 
  grep -v '^ *+' conftest.er1 >conftest.err
11992
 
  rm -f conftest.er1
11993
 
  cat conftest.err >&5
11994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995
 
  (exit $ac_status); } &&
11996
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998
 
  (eval $ac_try) 2>&5
11999
 
  ac_status=$?
12000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001
 
  (exit $ac_status); }; } &&
12002
 
         { ac_try='test -s conftest$ac_exeext'
12003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004
 
  (eval $ac_try) 2>&5
12005
 
  ac_status=$?
12006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007
 
  (exit $ac_status); }; }; then
12008
 
  ac_cv_lib_dld_shl_load=yes
12009
 
else
12010
 
  echo "$as_me: failed program was:" >&5
12011
 
sed 's/^/| /' conftest.$ac_ext >&5
12012
 
 
12013
 
ac_cv_lib_dld_shl_load=no
12014
 
fi
12015
 
rm -f conftest.err conftest.$ac_objext \
12016
 
      conftest$ac_exeext conftest.$ac_ext
12017
 
LIBS=$ac_check_lib_save_LIBS
12018
 
fi
12019
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12020
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12021
 
if test $ac_cv_lib_dld_shl_load = yes; then
12022
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12023
 
else
12024
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12025
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12026
 
if test "${ac_cv_func_dlopen+set}" = set; then
12027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12028
 
else
12029
 
  cat >conftest.$ac_ext <<_ACEOF
12030
 
/* confdefs.h.  */
12031
 
_ACEOF
12032
 
cat confdefs.h >>conftest.$ac_ext
12033
 
cat >>conftest.$ac_ext <<_ACEOF
12034
 
/* end confdefs.h.  */
12035
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12036
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12037
 
#define dlopen innocuous_dlopen
12038
 
 
12039
 
/* System header to define __stub macros and hopefully few prototypes,
12040
 
    which can conflict with char dlopen (); below.
12041
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042
 
    <limits.h> exists even on freestanding compilers.  */
12043
 
 
12044
 
#ifdef __STDC__
12045
 
# include <limits.h>
12046
 
#else
12047
 
# include <assert.h>
12048
 
#endif
12049
 
 
12050
 
#undef dlopen
12051
 
 
12052
 
/* Override any gcc2 internal prototype to avoid an error.  */
12053
 
#ifdef __cplusplus
12054
 
extern "C"
12055
 
{
12056
 
#endif
12057
 
/* We use char because int might match the return type of a gcc2
12058
 
   builtin and then its argument prototype would still apply.  */
12059
 
char dlopen ();
12060
 
/* The GNU C library defines this for functions which it implements
12061
 
    to always fail with ENOSYS.  Some functions are actually named
12062
 
    something starting with __ and the normal name is an alias.  */
12063
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12064
 
choke me
12065
 
#else
12066
 
char (*f) () = dlopen;
12067
 
#endif
12068
 
#ifdef __cplusplus
12069
 
}
12070
 
#endif
12071
 
 
12072
 
int
12073
 
main ()
12074
 
{
12075
 
return f != dlopen;
12076
 
  ;
12077
 
  return 0;
12078
 
}
12079
 
_ACEOF
12080
 
rm -f conftest.$ac_objext conftest$ac_exeext
12081
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082
 
  (eval $ac_link) 2>conftest.er1
12083
 
  ac_status=$?
12084
 
  grep -v '^ *+' conftest.er1 >conftest.err
12085
 
  rm -f conftest.er1
12086
 
  cat conftest.err >&5
12087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088
 
  (exit $ac_status); } &&
12089
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091
 
  (eval $ac_try) 2>&5
12092
 
  ac_status=$?
12093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094
 
  (exit $ac_status); }; } &&
12095
 
         { ac_try='test -s conftest$ac_exeext'
12096
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097
 
  (eval $ac_try) 2>&5
12098
 
  ac_status=$?
12099
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100
 
  (exit $ac_status); }; }; then
12101
 
  ac_cv_func_dlopen=yes
12102
 
else
12103
 
  echo "$as_me: failed program was:" >&5
12104
 
sed 's/^/| /' conftest.$ac_ext >&5
12105
 
 
12106
 
ac_cv_func_dlopen=no
12107
 
fi
12108
 
rm -f conftest.err conftest.$ac_objext \
12109
 
      conftest$ac_exeext conftest.$ac_ext
12110
 
fi
12111
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12112
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12113
 
if test $ac_cv_func_dlopen = yes; then
12114
 
  lt_cv_dlopen="dlopen"
12115
 
else
12116
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12117
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12118
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12120
 
else
12121
 
  ac_check_lib_save_LIBS=$LIBS
12122
 
LIBS="-ldl  $LIBS"
12123
 
cat >conftest.$ac_ext <<_ACEOF
12124
 
/* confdefs.h.  */
12125
 
_ACEOF
12126
 
cat confdefs.h >>conftest.$ac_ext
12127
 
cat >>conftest.$ac_ext <<_ACEOF
12128
 
/* end confdefs.h.  */
12129
 
 
12130
 
/* Override any gcc2 internal prototype to avoid an error.  */
12131
 
#ifdef __cplusplus
12132
 
extern "C"
12133
 
#endif
12134
 
/* We use char because int might match the return type of a gcc2
12135
 
   builtin and then its argument prototype would still apply.  */
12136
 
char dlopen ();
12137
 
int
12138
 
main ()
12139
 
{
12140
 
dlopen ();
12141
 
  ;
12142
 
  return 0;
12143
 
}
12144
 
_ACEOF
12145
 
rm -f conftest.$ac_objext conftest$ac_exeext
12146
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147
 
  (eval $ac_link) 2>conftest.er1
12148
 
  ac_status=$?
12149
 
  grep -v '^ *+' conftest.er1 >conftest.err
12150
 
  rm -f conftest.er1
12151
 
  cat conftest.err >&5
12152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
 
  (exit $ac_status); } &&
12154
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12155
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156
 
  (eval $ac_try) 2>&5
12157
 
  ac_status=$?
12158
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159
 
  (exit $ac_status); }; } &&
12160
 
         { ac_try='test -s conftest$ac_exeext'
12161
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162
 
  (eval $ac_try) 2>&5
12163
 
  ac_status=$?
12164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165
 
  (exit $ac_status); }; }; then
12166
 
  ac_cv_lib_dl_dlopen=yes
12167
 
else
12168
 
  echo "$as_me: failed program was:" >&5
12169
 
sed 's/^/| /' conftest.$ac_ext >&5
12170
 
 
12171
 
ac_cv_lib_dl_dlopen=no
12172
 
fi
12173
 
rm -f conftest.err conftest.$ac_objext \
12174
 
      conftest$ac_exeext conftest.$ac_ext
12175
 
LIBS=$ac_check_lib_save_LIBS
12176
 
fi
12177
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12178
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12179
 
if test $ac_cv_lib_dl_dlopen = yes; then
12180
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12181
 
else
12182
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12183
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12184
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12185
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12186
 
else
12187
 
  ac_check_lib_save_LIBS=$LIBS
12188
 
LIBS="-lsvld  $LIBS"
12189
 
cat >conftest.$ac_ext <<_ACEOF
12190
 
/* confdefs.h.  */
12191
 
_ACEOF
12192
 
cat confdefs.h >>conftest.$ac_ext
12193
 
cat >>conftest.$ac_ext <<_ACEOF
12194
 
/* end confdefs.h.  */
12195
 
 
12196
 
/* Override any gcc2 internal prototype to avoid an error.  */
12197
 
#ifdef __cplusplus
12198
 
extern "C"
12199
 
#endif
12200
 
/* We use char because int might match the return type of a gcc2
12201
 
   builtin and then its argument prototype would still apply.  */
12202
 
char dlopen ();
12203
 
int
12204
 
main ()
12205
 
{
12206
 
dlopen ();
12207
 
  ;
12208
 
  return 0;
12209
 
}
12210
 
_ACEOF
12211
 
rm -f conftest.$ac_objext conftest$ac_exeext
12212
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213
 
  (eval $ac_link) 2>conftest.er1
12214
 
  ac_status=$?
12215
 
  grep -v '^ *+' conftest.er1 >conftest.err
12216
 
  rm -f conftest.er1
12217
 
  cat conftest.err >&5
12218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
 
  (exit $ac_status); } &&
12220
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222
 
  (eval $ac_try) 2>&5
12223
 
  ac_status=$?
12224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225
 
  (exit $ac_status); }; } &&
12226
 
         { ac_try='test -s conftest$ac_exeext'
12227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228
 
  (eval $ac_try) 2>&5
12229
 
  ac_status=$?
12230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231
 
  (exit $ac_status); }; }; then
12232
 
  ac_cv_lib_svld_dlopen=yes
12233
 
else
12234
 
  echo "$as_me: failed program was:" >&5
12235
 
sed 's/^/| /' conftest.$ac_ext >&5
12236
 
 
12237
 
ac_cv_lib_svld_dlopen=no
12238
 
fi
12239
 
rm -f conftest.err conftest.$ac_objext \
12240
 
      conftest$ac_exeext conftest.$ac_ext
12241
 
LIBS=$ac_check_lib_save_LIBS
12242
 
fi
12243
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12244
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12245
 
if test $ac_cv_lib_svld_dlopen = yes; then
12246
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12247
 
else
12248
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12249
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12250
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12251
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12252
 
else
12253
 
  ac_check_lib_save_LIBS=$LIBS
12254
 
LIBS="-ldld  $LIBS"
12255
 
cat >conftest.$ac_ext <<_ACEOF
12256
 
/* confdefs.h.  */
12257
 
_ACEOF
12258
 
cat confdefs.h >>conftest.$ac_ext
12259
 
cat >>conftest.$ac_ext <<_ACEOF
12260
 
/* end confdefs.h.  */
12261
 
 
12262
 
/* Override any gcc2 internal prototype to avoid an error.  */
12263
 
#ifdef __cplusplus
12264
 
extern "C"
12265
 
#endif
12266
 
/* We use char because int might match the return type of a gcc2
12267
 
   builtin and then its argument prototype would still apply.  */
12268
 
char dld_link ();
12269
 
int
12270
 
main ()
12271
 
{
12272
 
dld_link ();
12273
 
  ;
12274
 
  return 0;
12275
 
}
12276
 
_ACEOF
12277
 
rm -f conftest.$ac_objext conftest$ac_exeext
12278
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279
 
  (eval $ac_link) 2>conftest.er1
12280
 
  ac_status=$?
12281
 
  grep -v '^ *+' conftest.er1 >conftest.err
12282
 
  rm -f conftest.er1
12283
 
  cat conftest.err >&5
12284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285
 
  (exit $ac_status); } &&
12286
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12287
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288
 
  (eval $ac_try) 2>&5
12289
 
  ac_status=$?
12290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291
 
  (exit $ac_status); }; } &&
12292
 
         { ac_try='test -s conftest$ac_exeext'
12293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294
 
  (eval $ac_try) 2>&5
12295
 
  ac_status=$?
12296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297
 
  (exit $ac_status); }; }; then
12298
 
  ac_cv_lib_dld_dld_link=yes
12299
 
else
12300
 
  echo "$as_me: failed program was:" >&5
12301
 
sed 's/^/| /' conftest.$ac_ext >&5
12302
 
 
12303
 
ac_cv_lib_dld_dld_link=no
12304
 
fi
12305
 
rm -f conftest.err conftest.$ac_objext \
12306
 
      conftest$ac_exeext conftest.$ac_ext
12307
 
LIBS=$ac_check_lib_save_LIBS
12308
 
fi
12309
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12310
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12311
 
if test $ac_cv_lib_dld_dld_link = yes; then
12312
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12313
 
fi
12314
 
 
12315
 
 
12316
 
fi
12317
 
 
12318
 
 
12319
 
fi
12320
 
 
12321
 
 
12322
 
fi
12323
 
 
12324
 
 
12325
 
fi
12326
 
 
12327
 
 
12328
 
fi
12329
 
 
12330
 
    ;;
12331
 
  esac
12332
 
 
12333
 
  if test "x$lt_cv_dlopen" != xno; then
12334
 
    enable_dlopen=yes
12335
 
  else
12336
 
    enable_dlopen=no
12337
 
  fi
12338
 
 
12339
 
  case $lt_cv_dlopen in
12340
 
  dlopen)
12341
 
    save_CPPFLAGS="$CPPFLAGS"
12342
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12343
 
 
12344
 
    save_LDFLAGS="$LDFLAGS"
12345
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12346
 
 
12347
 
    save_LIBS="$LIBS"
12348
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12349
 
 
12350
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12351
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12352
 
if test "${lt_cv_dlopen_self+set}" = set; then
12353
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12354
 
else
12355
 
          if test "$cross_compiling" = yes; then :
12356
 
  lt_cv_dlopen_self=cross
12357
 
else
12358
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12359
 
  lt_status=$lt_dlunknown
12360
 
  cat > conftest.$ac_ext <<EOF
12361
 
#line 12361 "configure"
12362
 
#include "confdefs.h"
12363
 
 
12364
 
#if HAVE_DLFCN_H
12365
 
#include <dlfcn.h>
12366
 
#endif
12367
 
 
12368
 
#include <stdio.h>
12369
 
 
12370
 
#ifdef RTLD_GLOBAL
12371
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12372
 
#else
12373
 
#  ifdef DL_GLOBAL
12374
 
#    define LT_DLGLOBAL         DL_GLOBAL
12375
 
#  else
12376
 
#    define LT_DLGLOBAL         0
12377
 
#  endif
12378
 
#endif
12379
 
 
12380
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12381
 
   find out it does not work in some platform. */
12382
 
#ifndef LT_DLLAZY_OR_NOW
12383
 
#  ifdef RTLD_LAZY
12384
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12385
 
#  else
12386
 
#    ifdef DL_LAZY
12387
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12388
 
#    else
12389
 
#      ifdef RTLD_NOW
12390
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12391
 
#      else
12392
 
#        ifdef DL_NOW
12393
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12394
 
#        else
12395
 
#          define LT_DLLAZY_OR_NOW      0
12396
 
#        endif
12397
 
#      endif
12398
 
#    endif
12399
 
#  endif
12400
 
#endif
12401
 
 
12402
 
#ifdef __cplusplus
12403
 
extern "C" void exit (int);
12404
 
#endif
12405
 
 
12406
 
void fnord() { int i=42;}
12407
 
int main ()
12408
 
{
12409
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12410
 
  int status = $lt_dlunknown;
12411
 
 
12412
 
  if (self)
12413
 
    {
12414
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12415
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12416
 
      /* dlclose (self); */
12417
 
    }
12418
 
 
12419
 
    exit (status);
12420
 
}
12421
 
EOF
12422
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423
 
  (eval $ac_link) 2>&5
12424
 
  ac_status=$?
12425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12427
 
    (./conftest; exit; ) 2>/dev/null
12428
 
    lt_status=$?
12429
 
    case x$lt_status in
12430
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12431
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12432
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12433
 
    esac
12434
 
  else :
12435
 
    # compilation failed
12436
 
    lt_cv_dlopen_self=no
12437
 
  fi
12438
 
fi
12439
 
rm -fr conftest*
12440
 
 
12441
 
 
12442
 
fi
12443
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12444
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12445
 
 
12446
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12447
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12448
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12449
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12450
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12451
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12452
 
else
12453
 
          if test "$cross_compiling" = yes; then :
12454
 
  lt_cv_dlopen_self_static=cross
12455
 
else
12456
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457
 
  lt_status=$lt_dlunknown
12458
 
  cat > conftest.$ac_ext <<EOF
12459
 
#line 12459 "configure"
12460
 
#include "confdefs.h"
12461
 
 
12462
 
#if HAVE_DLFCN_H
12463
 
#include <dlfcn.h>
12464
 
#endif
12465
 
 
12466
 
#include <stdio.h>
12467
 
 
12468
 
#ifdef RTLD_GLOBAL
12469
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12470
 
#else
12471
 
#  ifdef DL_GLOBAL
12472
 
#    define LT_DLGLOBAL         DL_GLOBAL
12473
 
#  else
12474
 
#    define LT_DLGLOBAL         0
12475
 
#  endif
12476
 
#endif
12477
 
 
12478
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479
 
   find out it does not work in some platform. */
12480
 
#ifndef LT_DLLAZY_OR_NOW
12481
 
#  ifdef RTLD_LAZY
12482
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12483
 
#  else
12484
 
#    ifdef DL_LAZY
12485
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12486
 
#    else
12487
 
#      ifdef RTLD_NOW
12488
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12489
 
#      else
12490
 
#        ifdef DL_NOW
12491
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12492
 
#        else
12493
 
#          define LT_DLLAZY_OR_NOW      0
12494
 
#        endif
12495
 
#      endif
12496
 
#    endif
12497
 
#  endif
12498
 
#endif
12499
 
 
12500
 
#ifdef __cplusplus
12501
 
extern "C" void exit (int);
12502
 
#endif
12503
 
 
12504
 
void fnord() { int i=42;}
12505
 
int main ()
12506
 
{
12507
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12508
 
  int status = $lt_dlunknown;
12509
 
 
12510
 
  if (self)
12511
 
    {
12512
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12513
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12514
 
      /* dlclose (self); */
12515
 
    }
12516
 
 
12517
 
    exit (status);
12518
 
}
12519
 
EOF
12520
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521
 
  (eval $ac_link) 2>&5
12522
 
  ac_status=$?
12523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12525
 
    (./conftest; exit; ) 2>/dev/null
12526
 
    lt_status=$?
12527
 
    case x$lt_status in
12528
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12529
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12530
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12531
 
    esac
12532
 
  else :
12533
 
    # compilation failed
12534
 
    lt_cv_dlopen_self_static=no
12535
 
  fi
12536
 
fi
12537
 
rm -fr conftest*
12538
 
 
12539
 
 
12540
 
fi
12541
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12542
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12543
 
    fi
12544
 
 
12545
 
    CPPFLAGS="$save_CPPFLAGS"
12546
 
    LDFLAGS="$save_LDFLAGS"
12547
 
    LIBS="$save_LIBS"
12548
 
    ;;
12549
 
  esac
12550
 
 
12551
 
  case $lt_cv_dlopen_self in
12552
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12553
 
  *) enable_dlopen_self=unknown ;;
12554
 
  esac
12555
 
 
12556
 
  case $lt_cv_dlopen_self_static in
12557
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12558
 
  *) enable_dlopen_self_static=unknown ;;
12559
 
  esac
12560
 
fi
12561
 
 
12562
13759
 
12563
13760
# The else clause should only fire when bootstrapping the
12564
13761
# libtool distribution, otherwise you forgot to ship ltmain.sh
12573
13770
  # Now quote all the things that may contain metacharacters while being
12574
13771
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12575
13772
  # variables and quote the copies for generation of the libtool script.
12576
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13773
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12577
13774
    SED SHELL STRIP \
12578
13775
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12579
13776
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12674
13871
# The host system.
12675
13872
host_alias=$host_alias
12676
13873
host=$host
 
13874
host_os=$host_os
 
13875
 
 
13876
# The build system.
 
13877
build_alias=$build_alias
 
13878
build=$build
 
13879
build_os=$build_os
12677
13880
 
12678
13881
# An echo program that does not interpret backslashes.
12679
13882
echo=$lt_echo
12685
13888
# A C compiler.
12686
13889
LTCC=$lt_LTCC
12687
13890
 
 
13891
# LTCC compiler flags.
 
13892
LTCFLAGS=$lt_LTCFLAGS
 
13893
 
12688
13894
# A language-specific compiler.
12689
13895
CC=$lt_compiler_CXX
12690
13896
 
12735
13941
libext="$libext"
12736
13942
 
12737
13943
# Shared library suffix (normally ".so").
12738
 
shrext='$shrext'
 
13944
shrext_cmds='$shrext_cmds'
12739
13945
 
12740
13946
# Executable file suffix (normally "").
12741
13947
exeext="$exeext"
12750
13956
# Does compiler simultaneously support -c and -o options?
12751
13957
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12752
13958
 
12753
 
# Must we lock files when doing compilation ?
 
13959
# Must we lock files when doing compilation?
12754
13960
need_locks=$lt_need_locks
12755
13961
 
12756
13962
# Do we need the lib prefix for modules?
13027
14233
# If no C compiler was specified, use CC.
13028
14234
LTCC=${LTCC-"$CC"}
13029
14235
 
 
14236
# If no C compiler flags were specified, use CFLAGS.
 
14237
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14238
 
13030
14239
# Allow CC to be a program name with arguments.
13031
14240
compiler=$CC
13032
14241
 
13033
14242
 
 
14243
# save warnings/boilerplate of simple test code
 
14244
ac_outfile=conftest.$ac_objext
 
14245
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14246
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14247
_lt_compiler_boilerplate=`cat conftest.err`
 
14248
$rm conftest*
 
14249
 
 
14250
ac_outfile=conftest.$ac_objext
 
14251
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14252
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14253
_lt_linker_boilerplate=`cat conftest.err`
 
14254
$rm conftest*
 
14255
 
 
14256
 
13034
14257
# Allow CC to be a program name with arguments.
13035
14258
lt_save_CC="$CC"
13036
14259
CC=${F77-"f77"}
13037
14260
compiler=$CC
13038
14261
compiler_F77=$CC
13039
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13040
 
 
13041
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13042
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13043
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13044
 
echo "${ECHO_T}$can_build_shared" >&6
13045
 
 
13046
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13047
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14262
for cc_temp in $compiler""; do
 
14263
  case $cc_temp in
 
14264
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14265
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14266
    \-*) ;;
 
14267
    *) break;;
 
14268
  esac
 
14269
done
 
14270
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14271
 
 
14272
 
 
14273
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14274
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14275
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14276
echo "${ECHO_T}$can_build_shared" >&6; }
 
14277
 
 
14278
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14279
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13048
14280
test "$can_build_shared" = "no" && enable_shared=no
13049
14281
 
13050
14282
# On AIX, shared libraries and static libraries use the same namespace, and
13051
14283
# are all built from PIC.
13052
 
case "$host_os" in
 
14284
case $host_os in
13053
14285
aix3*)
13054
14286
  test "$enable_shared" = yes && enable_static=no
13055
14287
  if test -n "$RANLIB"; then
13057
14289
    postinstall_cmds='$RANLIB $lib'
13058
14290
  fi
13059
14291
  ;;
13060
 
aix4*)
13061
 
  test "$enable_shared" = yes && enable_static=no
 
14292
aix4* | aix5*)
 
14293
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14294
    test "$enable_shared" = yes && enable_static=no
 
14295
  fi
13062
14296
  ;;
13063
14297
esac
13064
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13065
 
echo "${ECHO_T}$enable_shared" >&6
 
14298
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14299
echo "${ECHO_T}$enable_shared" >&6; }
13066
14300
 
13067
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13068
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14301
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14302
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13069
14303
# Make sure either enable_shared or enable_static is yes.
13070
14304
test "$enable_shared" = yes || enable_static=yes
13071
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13072
 
echo "${ECHO_T}$enable_static" >&6
13073
 
 
13074
 
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14305
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14306
echo "${ECHO_T}$enable_static" >&6; }
13075
14307
 
13076
14308
GCC_F77="$G77"
13077
14309
LD_F77="$LD"
13080
14312
lt_prog_compiler_pic_F77=
13081
14313
lt_prog_compiler_static_F77=
13082
14314
 
13083
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13084
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14315
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14316
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13085
14317
 
13086
14318
  if test "$GCC" = yes; then
13087
14319
    lt_prog_compiler_wl_F77='-Wl,'
13119
14351
      lt_prog_compiler_pic_F77='-fno-common'
13120
14352
      ;;
13121
14353
 
 
14354
    interix3*)
 
14355
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14356
      # Instead, we relocate shared libraries at runtime.
 
14357
      ;;
 
14358
 
13122
14359
    msdosdjgpp*)
13123
14360
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13124
14361
      # on systems that don't support them.
13135
14372
    hpux*)
13136
14373
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137
14374
      # not for PA HP-UX.
13138
 
      case "$host_cpu" in
 
14375
      case $host_cpu in
13139
14376
      hppa*64*|ia64*)
13140
14377
        # +Z the default
13141
14378
        ;;
13161
14398
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13162
14399
      fi
13163
14400
      ;;
 
14401
      darwin*)
 
14402
        # PIC is the default on this platform
 
14403
        # Common symbols not allowed in MH_DYLIB files
 
14404
       case $cc_basename in
 
14405
         xlc*)
 
14406
         lt_prog_compiler_pic_F77='-qnocommon'
 
14407
         lt_prog_compiler_wl_F77='-Wl,'
 
14408
         ;;
 
14409
       esac
 
14410
       ;;
13164
14411
 
13165
14412
    mingw* | pw32* | os2*)
13166
14413
      # This hack is so that the source file can tell whether it is being
13172
14419
      lt_prog_compiler_wl_F77='-Wl,'
13173
14420
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13174
14421
      # not for PA HP-UX.
13175
 
      case "$host_cpu" in
 
14422
      case $host_cpu in
13176
14423
      hppa*64*|ia64*)
13177
14424
        # +Z the default
13178
14425
        ;;
13195
14442
      lt_prog_compiler_static_F77='-Bstatic'
13196
14443
      ;;
13197
14444
 
13198
 
    linux*)
13199
 
      case $CC in
 
14445
    linux* | k*bsd*-gnu)
 
14446
      case $cc_basename in
13200
14447
      icc* | ecc*)
13201
14448
        lt_prog_compiler_wl_F77='-Wl,'
13202
14449
        lt_prog_compiler_pic_F77='-KPIC'
13203
14450
        lt_prog_compiler_static_F77='-static'
13204
14451
        ;;
 
14452
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14453
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14454
        # which looks to be a dead project)
 
14455
        lt_prog_compiler_wl_F77='-Wl,'
 
14456
        lt_prog_compiler_pic_F77='-fpic'
 
14457
        lt_prog_compiler_static_F77='-Bstatic'
 
14458
        ;;
13205
14459
      ccc*)
13206
14460
        lt_prog_compiler_wl_F77='-Wl,'
13207
14461
        # All Alpha code is PIC.
13216
14470
      lt_prog_compiler_static_F77='-non_shared'
13217
14471
      ;;
13218
14472
 
13219
 
    sco3.2v5*)
13220
 
      lt_prog_compiler_pic_F77='-Kpic'
13221
 
      lt_prog_compiler_static_F77='-dn'
13222
 
      ;;
13223
 
 
13224
14473
    solaris*)
13225
 
      lt_prog_compiler_wl_F77='-Wl,'
13226
14474
      lt_prog_compiler_pic_F77='-KPIC'
13227
14475
      lt_prog_compiler_static_F77='-Bstatic'
 
14476
      case $cc_basename in
 
14477
      f77* | f90* | f95*)
 
14478
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14479
      *)
 
14480
        lt_prog_compiler_wl_F77='-Wl,';;
 
14481
      esac
13228
14482
      ;;
13229
14483
 
13230
14484
    sunos4*)
13233
14487
      lt_prog_compiler_static_F77='-Bstatic'
13234
14488
      ;;
13235
14489
 
13236
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14490
    sysv4 | sysv4.2uw2* | sysv4.3*)
13237
14491
      lt_prog_compiler_wl_F77='-Wl,'
13238
14492
      lt_prog_compiler_pic_F77='-KPIC'
13239
14493
      lt_prog_compiler_static_F77='-Bstatic'
13246
14500
      fi
13247
14501
      ;;
13248
14502
 
 
14503
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14504
      lt_prog_compiler_wl_F77='-Wl,'
 
14505
      lt_prog_compiler_pic_F77='-KPIC'
 
14506
      lt_prog_compiler_static_F77='-Bstatic'
 
14507
      ;;
 
14508
 
 
14509
    unicos*)
 
14510
      lt_prog_compiler_wl_F77='-Wl,'
 
14511
      lt_prog_compiler_can_build_shared_F77=no
 
14512
      ;;
 
14513
 
13249
14514
    uts4*)
13250
14515
      lt_prog_compiler_pic_F77='-pic'
13251
14516
      lt_prog_compiler_static_F77='-Bstatic'
13257
14522
    esac
13258
14523
  fi
13259
14524
 
13260
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13261
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14525
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14526
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13262
14527
 
13263
14528
#
13264
14529
# Check to make sure the PIC flag actually works.
13265
14530
#
13266
14531
if test -n "$lt_prog_compiler_pic_F77"; then
13267
14532
 
13268
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13269
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14533
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14534
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13270
14535
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13271
14536
  echo $ECHO_N "(cached) $ECHO_C" >&6
13272
14537
else
13280
14545
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13281
14546
   # The option is referenced via a variable to avoid confusing sed.
13282
14547
   lt_compile=`echo "$ac_compile" | $SED \
13283
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14548
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13284
14549
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13285
14550
   -e 's:$: $lt_compiler_flag:'`
13286
 
   (eval echo "\"\$as_me:13286: $lt_compile\"" >&5)
 
14551
   (eval echo "\"\$as_me:14551: $lt_compile\"" >&5)
13287
14552
   (eval "$lt_compile" 2>conftest.err)
13288
14553
   ac_status=$?
13289
14554
   cat conftest.err >&5
13290
 
   echo "$as_me:13290: \$? = $ac_status" >&5
 
14555
   echo "$as_me:14555: \$? = $ac_status" >&5
13291
14556
   if (exit $ac_status) && test -s "$ac_outfile"; then
13292
14557
     # The compiler can only warn and ignore the option if not recognized
13293
 
     # So say no if there are warnings
13294
 
     if test ! -s conftest.err; then
 
14558
     # So say no if there are warnings other than the usual output.
 
14559
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14560
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14561
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13295
14562
       lt_prog_compiler_pic_works_F77=yes
13296
14563
     fi
13297
14564
   fi
13298
14565
   $rm conftest*
13299
14566
 
13300
14567
fi
13301
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13302
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14568
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14569
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13303
14570
 
13304
14571
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13305
14572
    case $lt_prog_compiler_pic_F77 in
13312
14579
fi
13313
14580
 
13314
14581
fi
13315
 
case "$host_os" in
 
14582
case $host_os in
13316
14583
  # For platforms which do not support PIC, -DPIC is meaningless:
13317
14584
  *djgpp*)
13318
14585
    lt_prog_compiler_pic_F77=
13322
14589
    ;;
13323
14590
esac
13324
14591
 
13325
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13326
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14592
#
 
14593
# Check to make sure the static flag actually works.
 
14594
#
 
14595
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14596
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14597
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14598
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14600
else
 
14601
  lt_prog_compiler_static_works_F77=no
 
14602
   save_LDFLAGS="$LDFLAGS"
 
14603
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14604
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14605
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14606
     # The linker can only warn and ignore the option if not recognized
 
14607
     # So say no if there are warnings
 
14608
     if test -s conftest.err; then
 
14609
       # Append any errors to the config.log.
 
14610
       cat conftest.err 1>&5
 
14611
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14612
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14613
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14614
         lt_prog_compiler_static_works_F77=yes
 
14615
       fi
 
14616
     else
 
14617
       lt_prog_compiler_static_works_F77=yes
 
14618
     fi
 
14619
   fi
 
14620
   $rm conftest*
 
14621
   LDFLAGS="$save_LDFLAGS"
 
14622
 
 
14623
fi
 
14624
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14625
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14626
 
 
14627
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14628
    :
 
14629
else
 
14630
    lt_prog_compiler_static_F77=
 
14631
fi
 
14632
 
 
14633
 
 
14634
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14635
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13327
14636
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13328
14637
  echo $ECHO_N "(cached) $ECHO_C" >&6
13329
14638
else
13340
14649
   # Note that $ac_compile itself does not contain backslashes and begins
13341
14650
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13342
14651
   lt_compile=`echo "$ac_compile" | $SED \
13343
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14652
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13344
14653
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13345
14654
   -e 's:$: $lt_compiler_flag:'`
13346
 
   (eval echo "\"\$as_me:13346: $lt_compile\"" >&5)
 
14655
   (eval echo "\"\$as_me:14655: $lt_compile\"" >&5)
13347
14656
   (eval "$lt_compile" 2>out/conftest.err)
13348
14657
   ac_status=$?
13349
14658
   cat out/conftest.err >&5
13350
 
   echo "$as_me:13350: \$? = $ac_status" >&5
 
14659
   echo "$as_me:14659: \$? = $ac_status" >&5
13351
14660
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13352
14661
   then
13353
14662
     # The compiler can only warn and ignore the option if not recognized
13354
14663
     # So say no if there are warnings
13355
 
     if test ! -s out/conftest.err; then
 
14664
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14665
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14666
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13356
14667
       lt_cv_prog_compiler_c_o_F77=yes
13357
14668
     fi
13358
14669
   fi
13359
 
   chmod u+w .
 
14670
   chmod u+w . 2>&5
13360
14671
   $rm conftest*
13361
14672
   # SGI C++ compiler will create directory out/ii_files/ for
13362
14673
   # template instantiation
13367
14678
   $rm conftest*
13368
14679
 
13369
14680
fi
13370
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13371
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14681
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14682
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13372
14683
 
13373
14684
 
13374
14685
hard_links="nottested"
13375
14686
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13376
14687
  # do not overwrite the value of need_locks provided by the user
13377
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13378
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14688
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14689
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13379
14690
  hard_links=yes
13380
14691
  $rm conftest*
13381
14692
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382
14693
  touch conftest.a
13383
14694
  ln conftest.a conftest.b 2>&5 || hard_links=no
13384
14695
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13385
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13386
 
echo "${ECHO_T}$hard_links" >&6
 
14696
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14697
echo "${ECHO_T}$hard_links" >&6; }
13387
14698
  if test "$hard_links" = no; then
13388
14699
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13389
14700
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13393
14704
  need_locks=no
13394
14705
fi
13395
14706
 
13396
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13397
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14707
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14708
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13398
14709
 
13399
14710
  runpath_var=
13400
14711
  allow_undefined_flag_F77=
13432
14743
  # rely on this symbol name, it's probably fine to never include it in
13433
14744
  # preloaded symbol tables.
13434
14745
  extract_expsyms_cmds=
 
14746
  # Just being paranoid about ensuring that cc_basename is set.
 
14747
  for cc_temp in $compiler""; do
 
14748
  case $cc_temp in
 
14749
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14750
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14751
    \-*) ;;
 
14752
    *) break;;
 
14753
  esac
 
14754
done
 
14755
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13435
14756
 
13436
14757
  case $host_os in
13437
14758
  cygwin* | mingw* | pw32*)
13442
14763
      with_gnu_ld=no
13443
14764
    fi
13444
14765
    ;;
 
14766
  interix*)
 
14767
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14768
    with_gnu_ld=yes
 
14769
    ;;
13445
14770
  openbsd*)
13446
14771
    with_gnu_ld=no
13447
14772
    ;;
13452
14777
    # If archive_cmds runs LD, not CC, wlarc should be empty
13453
14778
    wlarc='${wl}'
13454
14779
 
 
14780
    # Set some defaults for GNU ld with shared library support. These
 
14781
    # are reset later if shared libraries are not supported. Putting them
 
14782
    # here allows them to be overridden if necessary.
 
14783
    runpath_var=LD_RUN_PATH
 
14784
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14785
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14786
    # ancient GNU ld didn't support --whole-archive et. al.
 
14787
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14788
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14789
      else
 
14790
        whole_archive_flag_spec_F77=
 
14791
    fi
 
14792
    supports_anon_versioning=no
 
14793
    case `$LD -v 2>/dev/null` in
 
14794
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14795
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14796
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14797
      *\ 2.11.*) ;; # other 2.11 versions
 
14798
      *) supports_anon_versioning=yes ;;
 
14799
    esac
 
14800
 
13455
14801
    # See if GNU ld supports shared libraries.
13456
14802
    case $host_os in
13457
14803
    aix3* | aix4* | aix5*)
13502
14848
      allow_undefined_flag_F77=unsupported
13503
14849
      always_export_symbols_F77=no
13504
14850
      enable_shared_with_static_runtimes_F77=yes
13505
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14851
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13506
14852
 
13507
14853
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13508
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14854
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13509
14855
        # If the export-symbols file already is a .def file (1st line
13510
14856
        # is EXPORTS), use it as is; otherwise, prepend...
13511
14857
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13514
14860
          echo EXPORTS > $output_objdir/$soname.def;
13515
14861
          cat $export_symbols >> $output_objdir/$soname.def;
13516
14862
        fi~
13517
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13518
 
      else
13519
 
        ld_shlibs=no
13520
 
      fi
13521
 
      ;;
13522
 
 
13523
 
    netbsd* | knetbsd*-gnu)
 
14863
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14864
      else
 
14865
        ld_shlibs_F77=no
 
14866
      fi
 
14867
      ;;
 
14868
 
 
14869
    interix3*)
 
14870
      hardcode_direct_F77=no
 
14871
      hardcode_shlibpath_var_F77=no
 
14872
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14873
      export_dynamic_flag_spec_F77='${wl}-E'
 
14874
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14875
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14876
      # default) and relocated if they conflict, which is a slow very memory
 
14877
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14878
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14879
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14880
      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'
 
14881
      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'
 
14882
      ;;
 
14883
 
 
14884
    linux* | k*bsd*-gnu)
 
14885
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14886
        tmp_addflag=
 
14887
        case $cc_basename,$host_cpu in
 
14888
        pgcc*)                          # Portland Group C compiler
 
14889
          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'
 
14890
          tmp_addflag=' $pic_flag'
 
14891
          ;;
 
14892
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14893
          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'
 
14894
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14895
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14896
          tmp_addflag=' -i_dynamic' ;;
 
14897
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14898
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14899
        ifc* | ifort*)                  # Intel Fortran compiler
 
14900
          tmp_addflag=' -nofor_main' ;;
 
14901
        esac
 
14902
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14903
 
 
14904
        if test $supports_anon_versioning = yes; then
 
14905
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14906
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14907
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14908
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14909
        fi
 
14910
        link_all_deplibs_F77=no
 
14911
      else
 
14912
        ld_shlibs_F77=no
 
14913
      fi
 
14914
      ;;
 
14915
 
 
14916
    netbsd* | netbsdelf*-gnu)
13524
14917
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13525
14918
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13526
14919
        wlarc=
13530
14923
      fi
13531
14924
      ;;
13532
14925
 
13533
 
    solaris* | sysv5*)
 
14926
    solaris*)
13534
14927
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13535
14928
        ld_shlibs_F77=no
13536
14929
        cat <<EOF 1>&2
13551
14944
      fi
13552
14945
      ;;
13553
14946
 
 
14947
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14948
      case `$LD -v 2>&1` in
 
14949
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14950
        ld_shlibs_F77=no
 
14951
        cat <<_LT_EOF 1>&2
 
14952
 
 
14953
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14954
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14955
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14956
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14957
*** your PATH or compiler configuration so that the native linker is
 
14958
*** used, and then restart.
 
14959
 
 
14960
_LT_EOF
 
14961
        ;;
 
14962
        *)
 
14963
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14964
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14965
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14966
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14967
          else
 
14968
            ld_shlibs_F77=no
 
14969
          fi
 
14970
        ;;
 
14971
      esac
 
14972
      ;;
 
14973
 
13554
14974
    sunos4*)
13555
14975
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13556
14976
      wlarc=
13558
14978
      hardcode_shlibpath_var_F77=no
13559
14979
      ;;
13560
14980
 
13561
 
  linux*)
13562
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13563
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564
 
        archive_cmds_F77="$tmp_archive_cmds"
13565
 
      supports_anon_versioning=no
13566
 
      case `$LD -v 2>/dev/null` in
13567
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13568
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13569
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13570
 
        *\ 2.11.*) ;; # other 2.11 versions
13571
 
        *) supports_anon_versioning=yes ;;
13572
 
      esac
13573
 
      if test $supports_anon_versioning = yes; then
13574
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13575
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13576
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13577
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13578
 
      else
13579
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13580
 
      fi
13581
 
    else
13582
 
      ld_shlibs_F77=no
13583
 
    fi
13584
 
    ;;
13585
 
 
13586
14981
    *)
13587
14982
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13588
14983
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593
14988
      ;;
13594
14989
    esac
13595
14990
 
13596
 
    if test "$ld_shlibs_F77" = yes; then
13597
 
      runpath_var=LD_RUN_PATH
13598
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13599
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13600
 
      # ancient GNU ld didn't support --whole-archive et. al.
13601
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13602
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13603
 
      else
13604
 
        whole_archive_flag_spec_F77=
13605
 
      fi
 
14991
    if test "$ld_shlibs_F77" = no; then
 
14992
      runpath_var=
 
14993
      hardcode_libdir_flag_spec_F77=
 
14994
      export_dynamic_flag_spec_F77=
 
14995
      whole_archive_flag_spec_F77=
13606
14996
    fi
13607
14997
  else
13608
14998
    # PORTME fill in a description of your system's linker (not GNU ld)
13614
15004
      # Note: this linker hardcodes the directories in LIBPATH if there
13615
15005
      # are no directories specified by -L.
13616
15006
      hardcode_minus_L_F77=yes
13617
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15007
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13618
15008
        # Neither direct hardcoding nor static linking is supported with a
13619
15009
        # broken collect2.
13620
15010
        hardcode_direct_F77=unsupported
13648
15038
            break
13649
15039
          fi
13650
15040
          done
 
15041
          ;;
13651
15042
        esac
13652
15043
 
13653
15044
        exp_sym_flag='-bexport'
13666
15057
      link_all_deplibs_F77=yes
13667
15058
 
13668
15059
      if test "$GCC" = yes; then
13669
 
        case $host_os in aix4.012|aix4.012.*)
 
15060
        case $host_os in aix4.[012]|aix4.[012].*)
13670
15061
        # We only want to do this on AIX 4.2 and lower, the check
13671
15062
        # below for broken collect2 doesn't work under 4.3+
13672
15063
          collect2name=`${CC} -print-prog-name=collect2`
13685
15076
          hardcode_libdir_flag_spec_F77='-L$libdir'
13686
15077
          hardcode_libdir_separator_F77=
13687
15078
          fi
 
15079
          ;;
13688
15080
        esac
13689
15081
        shared_flag='-shared'
 
15082
        if test "$aix_use_runtimelinking" = yes; then
 
15083
          shared_flag="$shared_flag "'${wl}-G'
 
15084
        fi
13690
15085
      else
13691
15086
        # not using gcc
13692
15087
        if test "$host_cpu" = ia64; then
13694
15089
        # chokes on -Wl,-G. The following line is correct:
13695
15090
          shared_flag='-G'
13696
15091
        else
13697
 
        if test "$aix_use_runtimelinking" = yes; then
 
15092
          if test "$aix_use_runtimelinking" = yes; then
13698
15093
            shared_flag='${wl}-G'
13699
15094
          else
13700
15095
            shared_flag='${wl}-bM:SRE'
13701
 
        fi
 
15096
          fi
13702
15097
        fi
13703
15098
      fi
13704
15099
 
13716
15111
      end
13717
15112
_ACEOF
13718
15113
rm -f conftest.$ac_objext conftest$ac_exeext
13719
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720
 
  (eval $ac_link) 2>conftest.er1
 
15114
if { (ac_try="$ac_link"
 
15115
case "(($ac_try" in
 
15116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15117
  *) ac_try_echo=$ac_try;;
 
15118
esac
 
15119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15120
  (eval "$ac_link") 2>conftest.er1
13721
15121
  ac_status=$?
13722
15122
  grep -v '^ *+' conftest.er1 >conftest.err
13723
15123
  rm -f conftest.er1
13724
15124
  cat conftest.err >&5
13725
15125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726
15126
  (exit $ac_status); } &&
13727
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729
 
  (eval $ac_try) 2>&5
 
15127
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
15128
  { (case "(($ac_try" in
 
15129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15130
  *) ac_try_echo=$ac_try;;
 
15131
esac
 
15132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15133
  (eval "$ac_try") 2>&5
13730
15134
  ac_status=$?
13731
15135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
15136
  (exit $ac_status); }; } &&
13733
15137
         { ac_try='test -s conftest$ac_exeext'
13734
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735
 
  (eval $ac_try) 2>&5
 
15138
  { (case "(($ac_try" in
 
15139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15140
  *) ac_try_echo=$ac_try;;
 
15141
esac
 
15142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15143
  (eval "$ac_try") 2>&5
13736
15144
  ac_status=$?
13737
15145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738
15146
  (exit $ac_status); }; }; then
13746
15154
  echo "$as_me: failed program was:" >&5
13747
15155
sed 's/^/| /' conftest.$ac_ext >&5
13748
15156
 
 
15157
 
13749
15158
fi
13750
 
rm -f conftest.err conftest.$ac_objext \
 
15159
 
 
15160
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751
15161
      conftest$ac_exeext conftest.$ac_ext
13752
15162
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13753
15163
 
13754
15164
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13755
 
        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"
 
15165
        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"
13756
15166
       else
13757
15167
        if test "$host_cpu" = ia64; then
13758
15168
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13759
15169
          allow_undefined_flag_F77="-z nodefs"
13760
 
          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"
 
15170
          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"
13761
15171
        else
13762
15172
         # Determine the default libpath from the value encoded in an empty executable.
13763
15173
         cat >conftest.$ac_ext <<_ACEOF
13766
15176
      end
13767
15177
_ACEOF
13768
15178
rm -f conftest.$ac_objext conftest$ac_exeext
13769
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770
 
  (eval $ac_link) 2>conftest.er1
 
15179
if { (ac_try="$ac_link"
 
15180
case "(($ac_try" in
 
15181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15182
  *) ac_try_echo=$ac_try;;
 
15183
esac
 
15184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15185
  (eval "$ac_link") 2>conftest.er1
13771
15186
  ac_status=$?
13772
15187
  grep -v '^ *+' conftest.er1 >conftest.err
13773
15188
  rm -f conftest.er1
13774
15189
  cat conftest.err >&5
13775
15190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776
15191
  (exit $ac_status); } &&
13777
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779
 
  (eval $ac_try) 2>&5
 
15192
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
15193
  { (case "(($ac_try" in
 
15194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15195
  *) ac_try_echo=$ac_try;;
 
15196
esac
 
15197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15198
  (eval "$ac_try") 2>&5
13780
15199
  ac_status=$?
13781
15200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782
15201
  (exit $ac_status); }; } &&
13783
15202
         { ac_try='test -s conftest$ac_exeext'
13784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785
 
  (eval $ac_try) 2>&5
 
15203
  { (case "(($ac_try" in
 
15204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15205
  *) ac_try_echo=$ac_try;;
 
15206
esac
 
15207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15208
  (eval "$ac_try") 2>&5
13786
15209
  ac_status=$?
13787
15210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788
15211
  (exit $ac_status); }; }; then
13796
15219
  echo "$as_me: failed program was:" >&5
13797
15220
sed 's/^/| /' conftest.$ac_ext >&5
13798
15221
 
 
15222
 
13799
15223
fi
13800
 
rm -f conftest.err conftest.$ac_objext \
 
15224
 
 
15225
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13801
15226
      conftest$ac_exeext conftest.$ac_ext
13802
15227
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13803
15228
 
13806
15231
          # -berok will link without error, but may produce a broken library.
13807
15232
          no_undefined_flag_F77=' ${wl}-bernotok'
13808
15233
          allow_undefined_flag_F77=' ${wl}-berok'
13809
 
          # -bexpall does not export symbols beginning with underscore (_)
13810
 
          always_export_symbols_F77=yes
13811
15234
          # Exported symbols can be pulled into shared objects from archives
13812
 
          whole_archive_flag_spec_F77=' '
 
15235
          whole_archive_flag_spec_F77='$convenience'
13813
15236
          archive_cmds_need_lc_F77=yes
13814
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13815
 
          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'
 
15237
          # This is similar to how AIX traditionally builds its shared libraries.
 
15238
          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'
13816
15239
        fi
13817
15240
      fi
13818
15241
      ;;
13825
15248
      ld_shlibs_F77=no
13826
15249
      ;;
13827
15250
 
13828
 
    bsdi4*)
 
15251
    bsdi[45]*)
13829
15252
      export_dynamic_flag_spec_F77=-rdynamic
13830
15253
      ;;
13831
15254
 
13839
15262
      # Tell ltmain to make .lib files, not .a files.
13840
15263
      libext=lib
13841
15264
      # Tell ltmain to make .dll files, not .so files.
13842
 
      shrext=".dll"
 
15265
      shrext_cmds=".dll"
13843
15266
      # FIXME: Setting linknames here is a bad hack.
13844
15267
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13845
15268
      # The linker will automatically build a .lib file if we build a DLL.
13846
15269
      old_archive_From_new_cmds_F77='true'
13847
15270
      # FIXME: Should let the user specify the lib program.
13848
15271
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13849
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15272
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13850
15273
      enable_shared_with_static_runtimes_F77=yes
13851
15274
      ;;
13852
15275
 
13853
15276
    darwin* | rhapsody*)
13854
 
    if test "$GXX" = yes ; then
 
15277
      case $host_os in
 
15278
        rhapsody* | darwin1.[012])
 
15279
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15280
         ;;
 
15281
       *) # Darwin 1.3 on
 
15282
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15283
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15284
         else
 
15285
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15286
             10.[012])
 
15287
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15288
               ;;
 
15289
             10.*)
 
15290
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15291
               ;;
 
15292
           esac
 
15293
         fi
 
15294
         ;;
 
15295
      esac
13855
15296
      archive_cmds_need_lc_F77=no
13856
 
      case "$host_os" in
13857
 
      rhapsody* | darwin1.[012])
13858
 
        allow_undefined_flag_F77='-undefined suppress'
13859
 
        ;;
13860
 
      *) # Darwin 1.3 on
13861
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13862
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13863
 
      else
13864
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13865
 
          10.[012])
13866
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13867
 
            ;;
13868
 
          10.*)
13869
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13870
 
            ;;
13871
 
        esac
13872
 
      fi
13873
 
        ;;
13874
 
      esac
13875
 
        lt_int_apple_cc_single_mod=no
13876
 
        output_verbose_link_cmd='echo'
13877
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13878
 
          lt_int_apple_cc_single_mod=yes
13879
 
        fi
13880
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13881
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13882
 
        else
13883
 
        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'
13884
 
      fi
13885
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13886
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13887
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13888
 
          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}'
13889
 
        else
13890
 
          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}'
13891
 
        fi
13892
 
          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}'
13893
15297
      hardcode_direct_F77=no
13894
15298
      hardcode_automatic_F77=yes
13895
15299
      hardcode_shlibpath_var_F77=unsupported
13896
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15300
      whole_archive_flag_spec_F77=''
13897
15301
      link_all_deplibs_F77=yes
 
15302
    if test "$GCC" = yes ; then
 
15303
        output_verbose_link_cmd='echo'
 
15304
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15305
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15306
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15307
      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}'
 
15308
      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}'
13898
15309
    else
13899
 
      ld_shlibs_F77=no
 
15310
      case $cc_basename in
 
15311
        xlc*)
 
15312
         output_verbose_link_cmd='echo'
 
15313
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15314
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15315
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15316
         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}'
 
15317
          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}'
 
15318
          ;;
 
15319
       *)
 
15320
         ld_shlibs_F77=no
 
15321
          ;;
 
15322
      esac
13900
15323
    fi
13901
15324
      ;;
13902
15325
 
13930
15353
      ;;
13931
15354
 
13932
15355
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13933
 
    freebsd* | kfreebsd*-gnu)
 
15356
    freebsd* | dragonfly*)
13934
15357
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13935
15358
      hardcode_libdir_flag_spec_F77='-R$libdir'
13936
15359
      hardcode_direct_F77=yes
13953
15376
      export_dynamic_flag_spec_F77='${wl}-E'
13954
15377
      ;;
13955
15378
 
13956
 
    hpux10* | hpux11*)
13957
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13958
 
        case "$host_cpu" in
13959
 
        hppa*64*|ia64*)
 
15379
    hpux10*)
 
15380
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15381
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15382
      else
 
15383
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15384
      fi
 
15385
      if test "$with_gnu_ld" = no; then
 
15386
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15387
        hardcode_libdir_separator_F77=:
 
15388
 
 
15389
        hardcode_direct_F77=yes
 
15390
        export_dynamic_flag_spec_F77='${wl}-E'
 
15391
 
 
15392
        # hardcode_minus_L: Not really in the search PATH,
 
15393
        # but as the default location of the library.
 
15394
        hardcode_minus_L_F77=yes
 
15395
      fi
 
15396
      ;;
 
15397
 
 
15398
    hpux11*)
 
15399
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15400
        case $host_cpu in
 
15401
        hppa*64*)
13960
15402
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961
15403
          ;;
 
15404
        ia64*)
 
15405
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15406
          ;;
13962
15407
        *)
13963
15408
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13964
15409
          ;;
13965
15410
        esac
13966
15411
      else
13967
 
        case "$host_cpu" in
13968
 
        hppa*64*|ia64*)
13969
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15412
        case $host_cpu in
 
15413
        hppa*64*)
 
15414
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15415
          ;;
 
15416
        ia64*)
 
15417
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13970
15418
          ;;
13971
15419
        *)
13972
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15420
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13973
15421
          ;;
13974
15422
        esac
13975
15423
      fi
13976
15424
      if test "$with_gnu_ld" = no; then
13977
 
        case "$host_cpu" in
13978
 
        hppa*64*)
13979
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15425
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15426
        hardcode_libdir_separator_F77=:
 
15427
 
 
15428
        case $host_cpu in
 
15429
        hppa*64*|ia64*)
13980
15430
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13981
 
          hardcode_libdir_separator_F77=:
13982
 
          hardcode_direct_F77=no
13983
 
          hardcode_shlibpath_var_F77=no
13984
 
          ;;
13985
 
        ia64*)
13986
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13987
 
          hardcode_direct_F77=no
13988
 
          hardcode_shlibpath_var_F77=no
13989
 
 
13990
 
          # hardcode_minus_L: Not really in the search PATH,
13991
 
          # but as the default location of the library.
13992
 
          hardcode_minus_L_F77=yes
 
15431
          hardcode_direct_F77=no
 
15432
          hardcode_shlibpath_var_F77=no
13993
15433
          ;;
13994
15434
        *)
13995
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13996
 
          hardcode_libdir_separator_F77=:
13997
15435
          hardcode_direct_F77=yes
13998
15436
          export_dynamic_flag_spec_F77='${wl}-E'
13999
15437
 
14017
15455
      link_all_deplibs_F77=yes
14018
15456
      ;;
14019
15457
 
14020
 
    netbsd* | knetbsd*-gnu)
 
15458
    netbsd* | netbsdelf*-gnu)
14021
15459
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14022
15460
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14023
15461
      else
14041
15479
      hardcode_shlibpath_var_F77=no
14042
15480
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14043
15481
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15482
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14044
15483
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14045
15484
        export_dynamic_flag_spec_F77='${wl}-E'
14046
15485
      else
14086
15525
        allow_undefined_flag_F77=' -expect_unresolved \*'
14087
15526
        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'
14088
15527
        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~
14089
 
        $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'
 
15528
        $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'
14090
15529
 
14091
15530
        # Both c and cxx compiler support -rpath directly
14092
15531
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14094
15533
      hardcode_libdir_separator_F77=:
14095
15534
      ;;
14096
15535
 
14097
 
    sco3.2v5*)
14098
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14099
 
      hardcode_shlibpath_var_F77=no
14100
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14101
 
      runpath_var=LD_RUN_PATH
14102
 
      hardcode_runpath_var=yes
14103
 
      ;;
14104
 
 
14105
15536
    solaris*)
14106
15537
      no_undefined_flag_F77=' -z text'
14107
15538
      if test "$GCC" = yes; then
 
15539
        wlarc='${wl}'
14108
15540
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14109
15541
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14110
15542
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14111
15543
      else
 
15544
        wlarc=''
14112
15545
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113
15546
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14114
15547
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14117
15550
      hardcode_shlibpath_var_F77=no
14118
15551
      case $host_os in
14119
15552
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14120
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14121
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15553
      *)
 
15554
        # The compiler driver will combine linker options so we
 
15555
        # cannot just pass the convience library names through
 
15556
        # without $wl, iff we do not link with $LD.
 
15557
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15558
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15559
        case $wlarc in
 
15560
        '')
 
15561
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15562
        *)
 
15563
          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' ;;
 
15564
        esac ;;
14122
15565
      esac
14123
15566
      link_all_deplibs_F77=yes
14124
15567
      ;;
14175
15618
      fi
14176
15619
      ;;
14177
15620
 
14178
 
    sysv4.2uw2*)
14179
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14180
 
      hardcode_direct_F77=yes
14181
 
      hardcode_minus_L_F77=no
14182
 
      hardcode_shlibpath_var_F77=no
14183
 
      hardcode_runpath_var=yes
14184
 
      runpath_var=LD_RUN_PATH
14185
 
      ;;
14186
 
 
14187
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14188
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14189
 
      if test "$GCC" = yes; then
14190
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14191
 
      else
14192
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14193
 
      fi
14194
 
      runpath_var='LD_RUN_PATH'
14195
 
      hardcode_shlibpath_var_F77=no
14196
 
      ;;
14197
 
 
14198
 
    sysv5*)
14199
 
      no_undefined_flag_F77=' -z text'
14200
 
      # $CC -shared without GNU ld will not create a library from C++
14201
 
      # object files and a static libstdc++, better avoid it by now
14202
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14204
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14205
 
      hardcode_libdir_flag_spec_F77=
14206
 
      hardcode_shlibpath_var_F77=no
14207
 
      runpath_var='LD_RUN_PATH'
 
15621
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15622
      no_undefined_flag_F77='${wl}-z,text'
 
15623
      archive_cmds_need_lc_F77=no
 
15624
      hardcode_shlibpath_var_F77=no
 
15625
      runpath_var='LD_RUN_PATH'
 
15626
 
 
15627
      if test "$GCC" = yes; then
 
15628
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15629
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15630
      else
 
15631
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15632
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15633
      fi
 
15634
      ;;
 
15635
 
 
15636
    sysv5* | sco3.2v5* | sco5v6*)
 
15637
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15638
      # link with -lc, and that would cause any symbols used from libc to
 
15639
      # always be unresolved, which means just about no library would
 
15640
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15641
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15642
      # as -z defs.
 
15643
      no_undefined_flag_F77='${wl}-z,text'
 
15644
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15645
      archive_cmds_need_lc_F77=no
 
15646
      hardcode_shlibpath_var_F77=no
 
15647
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15648
      hardcode_libdir_separator_F77=':'
 
15649
      link_all_deplibs_F77=yes
 
15650
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15651
      runpath_var='LD_RUN_PATH'
 
15652
 
 
15653
      if test "$GCC" = yes; then
 
15654
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15655
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15656
      else
 
15657
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15658
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15659
      fi
14208
15660
      ;;
14209
15661
 
14210
15662
    uts4*)
14219
15671
    esac
14220
15672
  fi
14221
15673
 
14222
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14223
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15674
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15675
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14224
15676
test "$ld_shlibs_F77" = no && can_build_shared=no
14225
15677
 
14226
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14227
 
if test "$GCC" = yes; then
14228
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14229
 
fi
14230
 
 
14231
15678
#
14232
15679
# Do we need to explicitly link libc?
14233
15680
#
14245
15692
      # Test whether the compiler implicitly links with -lc since on some
14246
15693
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14247
15694
      # to ld, don't add -lc before -lgcc.
14248
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14249
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15695
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15696
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14250
15697
      $rm conftest*
14251
15698
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14252
15699
 
14260
15707
        libobjs=conftest.$ac_objext
14261
15708
        deplibs=
14262
15709
        wl=$lt_prog_compiler_wl_F77
 
15710
        pic_flag=$lt_prog_compiler_pic_F77
14263
15711
        compiler_flags=-v
14264
15712
        linker_flags=-v
14265
15713
        verstring=
14282
15730
        cat conftest.err 1>&5
14283
15731
      fi
14284
15732
      $rm conftest*
14285
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14286
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15733
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15734
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14287
15735
      ;;
14288
15736
    esac
14289
15737
  fi
14290
15738
  ;;
14291
15739
esac
14292
15740
 
14293
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14294
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15741
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15742
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14295
15743
library_names_spec=
14296
15744
libname_spec='lib$name'
14297
15745
soname_spec=
14298
 
shrext=".so"
 
15746
shrext_cmds=".so"
14299
15747
postinstall_cmds=
14300
15748
postuninstall_cmds=
14301
15749
finish_cmds=
14392
15840
  shlibpath_var=LIBRARY_PATH
14393
15841
  ;;
14394
15842
 
14395
 
bsdi4*)
 
15843
bsdi[45]*)
14396
15844
  version_type=linux
14397
15845
  need_version=no
14398
15846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408
15856
 
14409
15857
cygwin* | mingw* | pw32*)
14410
15858
  version_type=windows
14411
 
  shrext=".dll"
 
15859
  shrext_cmds=".dll"
14412
15860
  need_version=no
14413
15861
  need_lib_prefix=no
14414
15862
 
14420
15868
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14421
15869
      dldir=$destdir/`dirname \$dlpath`~
14422
15870
      test -d \$dldir || mkdir -p \$dldir~
14423
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15871
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15872
      chmod a+x \$dldir/$dlname'
14424
15873
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14425
15874
      dlpath=$dir/\$dldll~
14426
15875
       $rm \$dlpath'
14450
15899
      ;;
14451
15900
    pw32*)
14452
15901
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14453
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15902
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14454
15903
      ;;
14455
15904
    esac
14456
15905
    ;;
14473
15922
  soname_spec='${libname}${release}${major}$shared_ext'
14474
15923
  shlibpath_overrides_runpath=yes
14475
15924
  shlibpath_var=DYLD_LIBRARY_PATH
14476
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
15925
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14477
15926
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14478
15927
  if test "$GCC" = yes; then
14479
15928
    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"`
14496
15945
  dynamic_linker=no
14497
15946
  ;;
14498
15947
 
14499
 
kfreebsd*-gnu)
14500
 
  version_type=linux
14501
 
  need_lib_prefix=no
14502
 
  need_version=no
14503
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14504
 
  soname_spec='${libname}${release}${shared_ext}$major'
14505
 
  shlibpath_var=LD_LIBRARY_PATH
14506
 
  shlibpath_overrides_runpath=no
14507
 
  hardcode_into_libs=yes
14508
 
  dynamic_linker='GNU ld.so'
14509
 
  ;;
14510
 
 
14511
 
freebsd*)
14512
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15948
freebsd* | dragonfly*)
 
15949
  # DragonFly does not have aout.  When/if they implement a new
 
15950
  # versioning mechanism, adjust this.
 
15951
  if test -x /usr/bin/objformat; then
 
15952
    objformat=`/usr/bin/objformat`
 
15953
  else
 
15954
    case $host_os in
 
15955
    freebsd[123]*) objformat=aout ;;
 
15956
    *) objformat=elf ;;
 
15957
    esac
 
15958
  fi
14513
15959
  version_type=freebsd-$objformat
14514
15960
  case $version_type in
14515
15961
    freebsd-elf*)
14527
15973
  freebsd2*)
14528
15974
    shlibpath_overrides_runpath=yes
14529
15975
    ;;
14530
 
  freebsd3.01* | freebsdelf3.01*)
 
15976
  freebsd3.[01]* | freebsdelf3.[01]*)
14531
15977
    shlibpath_overrides_runpath=yes
14532
15978
    hardcode_into_libs=yes
14533
15979
    ;;
14534
 
  *) # from 3.2 on
 
15980
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15981
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14535
15982
    shlibpath_overrides_runpath=no
14536
15983
    hardcode_into_libs=yes
14537
15984
    ;;
 
15985
  freebsd*) # from 4.6 on
 
15986
    shlibpath_overrides_runpath=yes
 
15987
    hardcode_into_libs=yes
 
15988
    ;;
14538
15989
  esac
14539
15990
  ;;
14540
15991
 
14554
16005
  version_type=sunos
14555
16006
  need_lib_prefix=no
14556
16007
  need_version=no
14557
 
  case "$host_cpu" in
 
16008
  case $host_cpu in
14558
16009
  ia64*)
14559
 
    shrext='.so'
 
16010
    shrext_cmds='.so'
14560
16011
    hardcode_into_libs=yes
14561
16012
    dynamic_linker="$host_os dld.so"
14562
16013
    shlibpath_var=LD_LIBRARY_PATH
14571
16022
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14572
16023
    ;;
14573
16024
   hppa*64*)
14574
 
     shrext='.sl'
 
16025
     shrext_cmds='.sl'
14575
16026
     hardcode_into_libs=yes
14576
16027
     dynamic_linker="$host_os dld.sl"
14577
16028
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14582
16033
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14583
16034
     ;;
14584
16035
   *)
14585
 
    shrext='.sl'
 
16036
    shrext_cmds='.sl'
14586
16037
    dynamic_linker="$host_os dld.sl"
14587
16038
    shlibpath_var=SHLIB_PATH
14588
16039
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14594
16045
  postinstall_cmds='chmod 555 $lib'
14595
16046
  ;;
14596
16047
 
 
16048
interix3*)
 
16049
  version_type=linux
 
16050
  need_lib_prefix=no
 
16051
  need_version=no
 
16052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16053
  soname_spec='${libname}${release}${shared_ext}$major'
 
16054
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16055
  shlibpath_var=LD_LIBRARY_PATH
 
16056
  shlibpath_overrides_runpath=no
 
16057
  hardcode_into_libs=yes
 
16058
  ;;
 
16059
 
14597
16060
irix5* | irix6* | nonstopux*)
14598
16061
  case $host_os in
14599
16062
    nonstopux*) version_type=nonstopux ;;
14637
16100
  ;;
14638
16101
 
14639
16102
# This must be Linux ELF.
14640
 
linux*)
 
16103
linux* | k*bsd*-gnu)
14641
16104
  version_type=linux
14642
16105
  need_lib_prefix=no
14643
16106
  need_version=no
14653
16116
 
14654
16117
  # Append ld.so.conf contents to the search path
14655
16118
  if test -f /etc/ld.so.conf; then
14656
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14657
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
16119
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16120
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14658
16121
  fi
14659
16122
 
14660
16123
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14666
16129
  dynamic_linker='GNU/Linux ld.so'
14667
16130
  ;;
14668
16131
 
14669
 
knetbsd*-gnu)
 
16132
netbsdelf*-gnu)
14670
16133
  version_type=linux
14671
16134
  need_lib_prefix=no
14672
16135
  need_version=no
14675
16138
  shlibpath_var=LD_LIBRARY_PATH
14676
16139
  shlibpath_overrides_runpath=no
14677
16140
  hardcode_into_libs=yes
14678
 
  dynamic_linker='GNU ld.so'
 
16141
  dynamic_linker='NetBSD ld.elf_so'
14679
16142
  ;;
14680
16143
 
14681
16144
netbsd*)
14715
16178
 
14716
16179
openbsd*)
14717
16180
  version_type=sunos
 
16181
  sys_lib_dlsearch_path_spec="/usr/lib"
14718
16182
  need_lib_prefix=no
14719
 
  need_version=yes
 
16183
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16184
  case $host_os in
 
16185
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16186
    *)                         need_version=no  ;;
 
16187
  esac
14720
16188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721
16189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14722
16190
  shlibpath_var=LD_LIBRARY_PATH
14736
16204
 
14737
16205
os2*)
14738
16206
  libname_spec='$name'
14739
 
  shrext=".dll"
 
16207
  shrext_cmds=".dll"
14740
16208
  need_lib_prefix=no
14741
16209
  library_names_spec='$libname${shared_ext} $libname.a'
14742
16210
  dynamic_linker='OS/2 ld.exe'
14754
16222
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14755
16223
  ;;
14756
16224
 
14757
 
sco3.2v5*)
14758
 
  version_type=osf
14759
 
  soname_spec='${libname}${release}${shared_ext}$major'
14760
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761
 
  shlibpath_var=LD_LIBRARY_PATH
14762
 
  ;;
14763
 
 
14764
16225
solaris*)
14765
16226
  version_type=linux
14766
16227
  need_lib_prefix=no
14786
16247
  need_version=yes
14787
16248
  ;;
14788
16249
 
14789
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16250
sysv4 | sysv4.3*)
14790
16251
  version_type=linux
14791
16252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792
16253
  soname_spec='${libname}${release}${shared_ext}$major'
14819
16280
  fi
14820
16281
  ;;
14821
16282
 
 
16283
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16284
  version_type=freebsd-elf
 
16285
  need_lib_prefix=no
 
16286
  need_version=no
 
16287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16288
  soname_spec='${libname}${release}${shared_ext}$major'
 
16289
  shlibpath_var=LD_LIBRARY_PATH
 
16290
  hardcode_into_libs=yes
 
16291
  if test "$with_gnu_ld" = yes; then
 
16292
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16293
    shlibpath_overrides_runpath=no
 
16294
  else
 
16295
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16296
    shlibpath_overrides_runpath=yes
 
16297
    case $host_os in
 
16298
      sco3.2v5*)
 
16299
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16300
        ;;
 
16301
    esac
 
16302
  fi
 
16303
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16304
  ;;
 
16305
 
14822
16306
uts4*)
14823
16307
  version_type=linux
14824
16308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830
16314
  dynamic_linker=no
14831
16315
  ;;
14832
16316
esac
14833
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14834
 
echo "${ECHO_T}$dynamic_linker" >&6
 
16317
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16318
echo "${ECHO_T}$dynamic_linker" >&6; }
14835
16319
test "$dynamic_linker" = no && can_build_shared=no
14836
16320
 
14837
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14838
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16321
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16322
if test "$GCC" = yes; then
 
16323
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16324
fi
 
16325
 
 
16326
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16327
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14839
16328
hardcode_action_F77=
14840
16329
if test -n "$hardcode_libdir_flag_spec_F77" || \
14841
 
   test -n "$runpath_var F77" || \
14842
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16330
   test -n "$runpath_var_F77" || \
 
16331
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14843
16332
 
14844
16333
  # We can hardcode non-existant directories.
14845
16334
  if test "$hardcode_direct_F77" != no &&
14859
16348
  # directories.
14860
16349
  hardcode_action_F77=unsupported
14861
16350
fi
14862
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14863
 
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16351
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16352
echo "${ECHO_T}$hardcode_action_F77" >&6; }
14864
16353
 
14865
16354
if test "$hardcode_action_F77" = relink; then
14866
16355
  # Fast installation is not supported
14871
16360
  enable_fast_install=needless
14872
16361
fi
14873
16362
 
14874
 
striplib=
14875
 
old_striplib=
14876
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14877
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14878
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14879
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14880
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14881
 
  echo "$as_me:$LINENO: result: yes" >&5
14882
 
echo "${ECHO_T}yes" >&6
14883
 
else
14884
 
# FIXME - insert some real tests, host_os isn't really good enough
14885
 
  case $host_os in
14886
 
   darwin*)
14887
 
       if test -n "$STRIP" ; then
14888
 
         striplib="$STRIP -x"
14889
 
         echo "$as_me:$LINENO: result: yes" >&5
14890
 
echo "${ECHO_T}yes" >&6
14891
 
       else
14892
 
  echo "$as_me:$LINENO: result: no" >&5
14893
 
echo "${ECHO_T}no" >&6
14894
 
fi
14895
 
       ;;
14896
 
   *)
14897
 
  echo "$as_me:$LINENO: result: no" >&5
14898
 
echo "${ECHO_T}no" >&6
14899
 
    ;;
14900
 
  esac
14901
 
fi
14902
 
 
14903
 
 
14904
16363
 
14905
16364
# The else clause should only fire when bootstrapping the
14906
16365
# libtool distribution, otherwise you forgot to ship ltmain.sh
14915
16374
  # Now quote all the things that may contain metacharacters while being
14916
16375
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14917
16376
  # variables and quote the copies for generation of the libtool script.
14918
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16377
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14919
16378
    SED SHELL STRIP \
14920
16379
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14921
16380
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15016
16475
# The host system.
15017
16476
host_alias=$host_alias
15018
16477
host=$host
 
16478
host_os=$host_os
 
16479
 
 
16480
# The build system.
 
16481
build_alias=$build_alias
 
16482
build=$build
 
16483
build_os=$build_os
15019
16484
 
15020
16485
# An echo program that does not interpret backslashes.
15021
16486
echo=$lt_echo
15027
16492
# A C compiler.
15028
16493
LTCC=$lt_LTCC
15029
16494
 
 
16495
# LTCC compiler flags.
 
16496
LTCFLAGS=$lt_LTCFLAGS
 
16497
 
15030
16498
# A language-specific compiler.
15031
16499
CC=$lt_compiler_F77
15032
16500
 
15077
16545
libext="$libext"
15078
16546
 
15079
16547
# Shared library suffix (normally ".so").
15080
 
shrext='$shrext'
 
16548
shrext_cmds='$shrext_cmds'
15081
16549
 
15082
16550
# Executable file suffix (normally "").
15083
16551
exeext="$exeext"
15092
16560
# Does compiler simultaneously support -c and -o options?
15093
16561
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15094
16562
 
15095
 
# Must we lock files when doing compilation ?
 
16563
# Must we lock files when doing compilation?
15096
16564
need_locks=$lt_need_locks
15097
16565
 
15098
16566
# Do we need the lib prefix for modules?
15318
16786
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15319
16787
 
15320
16788
 
15321
 
 
15322
16789
# Source file extension for Java test sources.
15323
16790
ac_ext=java
15324
16791
 
15330
16797
lt_simple_compile_test_code="class foo {}\n"
15331
16798
 
15332
16799
# Code to be used in simple link tests
15333
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16800
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15334
16801
 
15335
16802
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15336
16803
 
15337
16804
# If no C compiler was specified, use CC.
15338
16805
LTCC=${LTCC-"$CC"}
15339
16806
 
 
16807
# If no C compiler flags were specified, use CFLAGS.
 
16808
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16809
 
15340
16810
# Allow CC to be a program name with arguments.
15341
16811
compiler=$CC
15342
16812
 
15343
16813
 
 
16814
# save warnings/boilerplate of simple test code
 
16815
ac_outfile=conftest.$ac_objext
 
16816
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16817
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16818
_lt_compiler_boilerplate=`cat conftest.err`
 
16819
$rm conftest*
 
16820
 
 
16821
ac_outfile=conftest.$ac_objext
 
16822
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16823
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16824
_lt_linker_boilerplate=`cat conftest.err`
 
16825
$rm conftest*
 
16826
 
 
16827
 
15344
16828
# Allow CC to be a program name with arguments.
15345
16829
lt_save_CC="$CC"
15346
16830
CC=${GCJ-"gcj"}
15347
16831
compiler=$CC
15348
16832
compiler_GCJ=$CC
 
16833
for cc_temp in $compiler""; do
 
16834
  case $cc_temp in
 
16835
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16836
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16837
    \-*) ;;
 
16838
    *) break;;
 
16839
  esac
 
16840
done
 
16841
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16842
 
15349
16843
 
15350
16844
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15351
16845
archive_cmds_need_lc_GCJ=no
15352
16846
 
 
16847
old_archive_cmds_GCJ=$old_archive_cmds
 
16848
 
15353
16849
 
15354
16850
lt_prog_compiler_no_builtin_flag_GCJ=
15355
16851
 
15357
16853
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15358
16854
 
15359
16855
 
15360
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15361
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16856
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16857
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15362
16858
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15363
16859
  echo $ECHO_N "(cached) $ECHO_C" >&6
15364
16860
else
15372
16868
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15373
16869
   # The option is referenced via a variable to avoid confusing sed.
15374
16870
   lt_compile=`echo "$ac_compile" | $SED \
15375
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16871
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376
16872
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377
16873
   -e 's:$: $lt_compiler_flag:'`
15378
 
   (eval echo "\"\$as_me:15378: $lt_compile\"" >&5)
 
16874
   (eval echo "\"\$as_me:16874: $lt_compile\"" >&5)
15379
16875
   (eval "$lt_compile" 2>conftest.err)
15380
16876
   ac_status=$?
15381
16877
   cat conftest.err >&5
15382
 
   echo "$as_me:15382: \$? = $ac_status" >&5
 
16878
   echo "$as_me:16878: \$? = $ac_status" >&5
15383
16879
   if (exit $ac_status) && test -s "$ac_outfile"; then
15384
16880
     # The compiler can only warn and ignore the option if not recognized
15385
 
     # So say no if there are warnings
15386
 
     if test ! -s conftest.err; then
 
16881
     # So say no if there are warnings other than the usual output.
 
16882
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16883
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16884
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15387
16885
       lt_cv_prog_compiler_rtti_exceptions=yes
15388
16886
     fi
15389
16887
   fi
15390
16888
   $rm conftest*
15391
16889
 
15392
16890
fi
15393
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15394
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16891
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16892
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15395
16893
 
15396
16894
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15397
16895
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15405
16903
lt_prog_compiler_pic_GCJ=
15406
16904
lt_prog_compiler_static_GCJ=
15407
16905
 
15408
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15409
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16906
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16907
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15410
16908
 
15411
16909
  if test "$GCC" = yes; then
15412
16910
    lt_prog_compiler_wl_GCJ='-Wl,'
15444
16942
      lt_prog_compiler_pic_GCJ='-fno-common'
15445
16943
      ;;
15446
16944
 
 
16945
    interix3*)
 
16946
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16947
      # Instead, we relocate shared libraries at runtime.
 
16948
      ;;
 
16949
 
15447
16950
    msdosdjgpp*)
15448
16951
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15449
16952
      # on systems that don't support them.
15460
16963
    hpux*)
15461
16964
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15462
16965
      # not for PA HP-UX.
15463
 
      case "$host_cpu" in
 
16966
      case $host_cpu in
15464
16967
      hppa*64*|ia64*)
15465
16968
        # +Z the default
15466
16969
        ;;
15486
16989
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15487
16990
      fi
15488
16991
      ;;
 
16992
      darwin*)
 
16993
        # PIC is the default on this platform
 
16994
        # Common symbols not allowed in MH_DYLIB files
 
16995
       case $cc_basename in
 
16996
         xlc*)
 
16997
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16998
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16999
         ;;
 
17000
       esac
 
17001
       ;;
15489
17002
 
15490
17003
    mingw* | pw32* | os2*)
15491
17004
      # This hack is so that the source file can tell whether it is being
15497
17010
      lt_prog_compiler_wl_GCJ='-Wl,'
15498
17011
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15499
17012
      # not for PA HP-UX.
15500
 
      case "$host_cpu" in
 
17013
      case $host_cpu in
15501
17014
      hppa*64*|ia64*)
15502
17015
        # +Z the default
15503
17016
        ;;
15520
17033
      lt_prog_compiler_static_GCJ='-Bstatic'
15521
17034
      ;;
15522
17035
 
15523
 
    linux*)
15524
 
      case $CC in
 
17036
    linux* | k*bsd*-gnu)
 
17037
      case $cc_basename in
15525
17038
      icc* | ecc*)
15526
17039
        lt_prog_compiler_wl_GCJ='-Wl,'
15527
17040
        lt_prog_compiler_pic_GCJ='-KPIC'
15528
17041
        lt_prog_compiler_static_GCJ='-static'
15529
17042
        ;;
 
17043
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17044
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17045
        # which looks to be a dead project)
 
17046
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17047
        lt_prog_compiler_pic_GCJ='-fpic'
 
17048
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17049
        ;;
15530
17050
      ccc*)
15531
17051
        lt_prog_compiler_wl_GCJ='-Wl,'
15532
17052
        # All Alpha code is PIC.
15541
17061
      lt_prog_compiler_static_GCJ='-non_shared'
15542
17062
      ;;
15543
17063
 
15544
 
    sco3.2v5*)
15545
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15546
 
      lt_prog_compiler_static_GCJ='-dn'
15547
 
      ;;
15548
 
 
15549
17064
    solaris*)
15550
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15551
17065
      lt_prog_compiler_pic_GCJ='-KPIC'
15552
17066
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17067
      case $cc_basename in
 
17068
      f77* | f90* | f95*)
 
17069
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17070
      *)
 
17071
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17072
      esac
15553
17073
      ;;
15554
17074
 
15555
17075
    sunos4*)
15558
17078
      lt_prog_compiler_static_GCJ='-Bstatic'
15559
17079
      ;;
15560
17080
 
15561
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17081
    sysv4 | sysv4.2uw2* | sysv4.3*)
15562
17082
      lt_prog_compiler_wl_GCJ='-Wl,'
15563
17083
      lt_prog_compiler_pic_GCJ='-KPIC'
15564
17084
      lt_prog_compiler_static_GCJ='-Bstatic'
15571
17091
      fi
15572
17092
      ;;
15573
17093
 
 
17094
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17095
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17096
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17097
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17098
      ;;
 
17099
 
 
17100
    unicos*)
 
17101
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17102
      lt_prog_compiler_can_build_shared_GCJ=no
 
17103
      ;;
 
17104
 
15574
17105
    uts4*)
15575
17106
      lt_prog_compiler_pic_GCJ='-pic'
15576
17107
      lt_prog_compiler_static_GCJ='-Bstatic'
15582
17113
    esac
15583
17114
  fi
15584
17115
 
15585
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15586
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17116
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17117
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15587
17118
 
15588
17119
#
15589
17120
# Check to make sure the PIC flag actually works.
15590
17121
#
15591
17122
if test -n "$lt_prog_compiler_pic_GCJ"; then
15592
17123
 
15593
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15594
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17124
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17125
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15595
17126
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15596
17127
  echo $ECHO_N "(cached) $ECHO_C" >&6
15597
17128
else
15605
17136
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15606
17137
   # The option is referenced via a variable to avoid confusing sed.
15607
17138
   lt_compile=`echo "$ac_compile" | $SED \
15608
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17139
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609
17140
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610
17141
   -e 's:$: $lt_compiler_flag:'`
15611
 
   (eval echo "\"\$as_me:15611: $lt_compile\"" >&5)
 
17142
   (eval echo "\"\$as_me:17142: $lt_compile\"" >&5)
15612
17143
   (eval "$lt_compile" 2>conftest.err)
15613
17144
   ac_status=$?
15614
17145
   cat conftest.err >&5
15615
 
   echo "$as_me:15615: \$? = $ac_status" >&5
 
17146
   echo "$as_me:17146: \$? = $ac_status" >&5
15616
17147
   if (exit $ac_status) && test -s "$ac_outfile"; then
15617
17148
     # The compiler can only warn and ignore the option if not recognized
15618
 
     # So say no if there are warnings
15619
 
     if test ! -s conftest.err; then
 
17149
     # So say no if there are warnings other than the usual output.
 
17150
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17151
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17152
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15620
17153
       lt_prog_compiler_pic_works_GCJ=yes
15621
17154
     fi
15622
17155
   fi
15623
17156
   $rm conftest*
15624
17157
 
15625
17158
fi
15626
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15627
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17159
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17160
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15628
17161
 
15629
17162
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15630
17163
    case $lt_prog_compiler_pic_GCJ in
15637
17170
fi
15638
17171
 
15639
17172
fi
15640
 
case "$host_os" in
 
17173
case $host_os in
15641
17174
  # For platforms which do not support PIC, -DPIC is meaningless:
15642
17175
  *djgpp*)
15643
17176
    lt_prog_compiler_pic_GCJ=
15647
17180
    ;;
15648
17181
esac
15649
17182
 
15650
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15651
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17183
#
 
17184
# Check to make sure the static flag actually works.
 
17185
#
 
17186
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17187
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17188
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17189
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17191
else
 
17192
  lt_prog_compiler_static_works_GCJ=no
 
17193
   save_LDFLAGS="$LDFLAGS"
 
17194
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17195
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17196
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17197
     # The linker can only warn and ignore the option if not recognized
 
17198
     # So say no if there are warnings
 
17199
     if test -s conftest.err; then
 
17200
       # Append any errors to the config.log.
 
17201
       cat conftest.err 1>&5
 
17202
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17203
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17204
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17205
         lt_prog_compiler_static_works_GCJ=yes
 
17206
       fi
 
17207
     else
 
17208
       lt_prog_compiler_static_works_GCJ=yes
 
17209
     fi
 
17210
   fi
 
17211
   $rm conftest*
 
17212
   LDFLAGS="$save_LDFLAGS"
 
17213
 
 
17214
fi
 
17215
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17216
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17217
 
 
17218
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17219
    :
 
17220
else
 
17221
    lt_prog_compiler_static_GCJ=
 
17222
fi
 
17223
 
 
17224
 
 
17225
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17226
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15652
17227
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15653
17228
  echo $ECHO_N "(cached) $ECHO_C" >&6
15654
17229
else
15665
17240
   # Note that $ac_compile itself does not contain backslashes and begins
15666
17241
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15667
17242
   lt_compile=`echo "$ac_compile" | $SED \
15668
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17243
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15669
17244
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15670
17245
   -e 's:$: $lt_compiler_flag:'`
15671
 
   (eval echo "\"\$as_me:15671: $lt_compile\"" >&5)
 
17246
   (eval echo "\"\$as_me:17246: $lt_compile\"" >&5)
15672
17247
   (eval "$lt_compile" 2>out/conftest.err)
15673
17248
   ac_status=$?
15674
17249
   cat out/conftest.err >&5
15675
 
   echo "$as_me:15675: \$? = $ac_status" >&5
 
17250
   echo "$as_me:17250: \$? = $ac_status" >&5
15676
17251
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15677
17252
   then
15678
17253
     # The compiler can only warn and ignore the option if not recognized
15679
17254
     # So say no if there are warnings
15680
 
     if test ! -s out/conftest.err; then
 
17255
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17256
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17257
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15681
17258
       lt_cv_prog_compiler_c_o_GCJ=yes
15682
17259
     fi
15683
17260
   fi
15684
 
   chmod u+w .
 
17261
   chmod u+w . 2>&5
15685
17262
   $rm conftest*
15686
17263
   # SGI C++ compiler will create directory out/ii_files/ for
15687
17264
   # template instantiation
15692
17269
   $rm conftest*
15693
17270
 
15694
17271
fi
15695
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15696
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17272
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17273
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15697
17274
 
15698
17275
 
15699
17276
hard_links="nottested"
15700
17277
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15701
17278
  # do not overwrite the value of need_locks provided by the user
15702
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15703
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17279
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17280
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15704
17281
  hard_links=yes
15705
17282
  $rm conftest*
15706
17283
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15707
17284
  touch conftest.a
15708
17285
  ln conftest.a conftest.b 2>&5 || hard_links=no
15709
17286
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15710
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15711
 
echo "${ECHO_T}$hard_links" >&6
 
17287
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17288
echo "${ECHO_T}$hard_links" >&6; }
15712
17289
  if test "$hard_links" = no; then
15713
17290
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15714
17291
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15718
17295
  need_locks=no
15719
17296
fi
15720
17297
 
15721
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15722
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17298
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17299
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15723
17300
 
15724
17301
  runpath_var=
15725
17302
  allow_undefined_flag_GCJ=
15757
17334
  # rely on this symbol name, it's probably fine to never include it in
15758
17335
  # preloaded symbol tables.
15759
17336
  extract_expsyms_cmds=
 
17337
  # Just being paranoid about ensuring that cc_basename is set.
 
17338
  for cc_temp in $compiler""; do
 
17339
  case $cc_temp in
 
17340
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17341
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17342
    \-*) ;;
 
17343
    *) break;;
 
17344
  esac
 
17345
done
 
17346
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15760
17347
 
15761
17348
  case $host_os in
15762
17349
  cygwin* | mingw* | pw32*)
15767
17354
      with_gnu_ld=no
15768
17355
    fi
15769
17356
    ;;
 
17357
  interix*)
 
17358
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17359
    with_gnu_ld=yes
 
17360
    ;;
15770
17361
  openbsd*)
15771
17362
    with_gnu_ld=no
15772
17363
    ;;
15777
17368
    # If archive_cmds runs LD, not CC, wlarc should be empty
15778
17369
    wlarc='${wl}'
15779
17370
 
 
17371
    # Set some defaults for GNU ld with shared library support. These
 
17372
    # are reset later if shared libraries are not supported. Putting them
 
17373
    # here allows them to be overridden if necessary.
 
17374
    runpath_var=LD_RUN_PATH
 
17375
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17376
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17377
    # ancient GNU ld didn't support --whole-archive et. al.
 
17378
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17379
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17380
      else
 
17381
        whole_archive_flag_spec_GCJ=
 
17382
    fi
 
17383
    supports_anon_versioning=no
 
17384
    case `$LD -v 2>/dev/null` in
 
17385
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17386
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17387
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17388
      *\ 2.11.*) ;; # other 2.11 versions
 
17389
      *) supports_anon_versioning=yes ;;
 
17390
    esac
 
17391
 
15780
17392
    # See if GNU ld supports shared libraries.
15781
17393
    case $host_os in
15782
17394
    aix3* | aix4* | aix5*)
15827
17439
      allow_undefined_flag_GCJ=unsupported
15828
17440
      always_export_symbols_GCJ=no
15829
17441
      enable_shared_with_static_runtimes_GCJ=yes
15830
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17442
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15831
17443
 
15832
17444
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15833
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17445
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15834
17446
        # If the export-symbols file already is a .def file (1st line
15835
17447
        # is EXPORTS), use it as is; otherwise, prepend...
15836
17448
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15839
17451
          echo EXPORTS > $output_objdir/$soname.def;
15840
17452
          cat $export_symbols >> $output_objdir/$soname.def;
15841
17453
        fi~
15842
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15843
 
      else
15844
 
        ld_shlibs=no
15845
 
      fi
15846
 
      ;;
15847
 
 
15848
 
    netbsd* | knetbsd*-gnu)
 
17454
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17455
      else
 
17456
        ld_shlibs_GCJ=no
 
17457
      fi
 
17458
      ;;
 
17459
 
 
17460
    interix3*)
 
17461
      hardcode_direct_GCJ=no
 
17462
      hardcode_shlibpath_var_GCJ=no
 
17463
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17464
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17465
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17466
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17467
      # default) and relocated if they conflict, which is a slow very memory
 
17468
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17469
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17470
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17471
      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'
 
17472
      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'
 
17473
      ;;
 
17474
 
 
17475
    linux* | k*bsd*-gnu)
 
17476
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17477
        tmp_addflag=
 
17478
        case $cc_basename,$host_cpu in
 
17479
        pgcc*)                          # Portland Group C compiler
 
17480
          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'
 
17481
          tmp_addflag=' $pic_flag'
 
17482
          ;;
 
17483
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17484
          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'
 
17485
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17486
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17487
          tmp_addflag=' -i_dynamic' ;;
 
17488
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17489
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17490
        ifc* | ifort*)                  # Intel Fortran compiler
 
17491
          tmp_addflag=' -nofor_main' ;;
 
17492
        esac
 
17493
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17494
 
 
17495
        if test $supports_anon_versioning = yes; then
 
17496
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17497
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17498
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17499
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17500
        fi
 
17501
        link_all_deplibs_GCJ=no
 
17502
      else
 
17503
        ld_shlibs_GCJ=no
 
17504
      fi
 
17505
      ;;
 
17506
 
 
17507
    netbsd* | netbsdelf*-gnu)
15849
17508
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15850
17509
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15851
17510
        wlarc=
15855
17514
      fi
15856
17515
      ;;
15857
17516
 
15858
 
    solaris* | sysv5*)
 
17517
    solaris*)
15859
17518
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15860
17519
        ld_shlibs_GCJ=no
15861
17520
        cat <<EOF 1>&2
15876
17535
      fi
15877
17536
      ;;
15878
17537
 
 
17538
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17539
      case `$LD -v 2>&1` in
 
17540
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17541
        ld_shlibs_GCJ=no
 
17542
        cat <<_LT_EOF 1>&2
 
17543
 
 
17544
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17545
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17546
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17547
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17548
*** your PATH or compiler configuration so that the native linker is
 
17549
*** used, and then restart.
 
17550
 
 
17551
_LT_EOF
 
17552
        ;;
 
17553
        *)
 
17554
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17555
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17556
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17557
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17558
          else
 
17559
            ld_shlibs_GCJ=no
 
17560
          fi
 
17561
        ;;
 
17562
      esac
 
17563
      ;;
 
17564
 
15879
17565
    sunos4*)
15880
17566
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15881
17567
      wlarc=
15883
17569
      hardcode_shlibpath_var_GCJ=no
15884
17570
      ;;
15885
17571
 
15886
 
  linux*)
15887
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15888
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15889
 
        archive_cmds_GCJ="$tmp_archive_cmds"
15890
 
      supports_anon_versioning=no
15891
 
      case `$LD -v 2>/dev/null` in
15892
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15893
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15894
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15895
 
        *\ 2.11.*) ;; # other 2.11 versions
15896
 
        *) supports_anon_versioning=yes ;;
15897
 
      esac
15898
 
      if test $supports_anon_versioning = yes; then
15899
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15900
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15901
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15902
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15903
 
      else
15904
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15905
 
      fi
15906
 
    else
15907
 
      ld_shlibs_GCJ=no
15908
 
    fi
15909
 
    ;;
15910
 
 
15911
17572
    *)
15912
17573
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15913
17574
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918
17579
      ;;
15919
17580
    esac
15920
17581
 
15921
 
    if test "$ld_shlibs_GCJ" = yes; then
15922
 
      runpath_var=LD_RUN_PATH
15923
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15924
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15925
 
      # ancient GNU ld didn't support --whole-archive et. al.
15926
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15927
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15928
 
      else
15929
 
        whole_archive_flag_spec_GCJ=
15930
 
      fi
 
17582
    if test "$ld_shlibs_GCJ" = no; then
 
17583
      runpath_var=
 
17584
      hardcode_libdir_flag_spec_GCJ=
 
17585
      export_dynamic_flag_spec_GCJ=
 
17586
      whole_archive_flag_spec_GCJ=
15931
17587
    fi
15932
17588
  else
15933
17589
    # PORTME fill in a description of your system's linker (not GNU ld)
15939
17595
      # Note: this linker hardcodes the directories in LIBPATH if there
15940
17596
      # are no directories specified by -L.
15941
17597
      hardcode_minus_L_GCJ=yes
15942
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17598
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15943
17599
        # Neither direct hardcoding nor static linking is supported with a
15944
17600
        # broken collect2.
15945
17601
        hardcode_direct_GCJ=unsupported
15973
17629
            break
15974
17630
          fi
15975
17631
          done
 
17632
          ;;
15976
17633
        esac
15977
17634
 
15978
17635
        exp_sym_flag='-bexport'
15991
17648
      link_all_deplibs_GCJ=yes
15992
17649
 
15993
17650
      if test "$GCC" = yes; then
15994
 
        case $host_os in aix4.012|aix4.012.*)
 
17651
        case $host_os in aix4.[012]|aix4.[012].*)
15995
17652
        # We only want to do this on AIX 4.2 and lower, the check
15996
17653
        # below for broken collect2 doesn't work under 4.3+
15997
17654
          collect2name=`${CC} -print-prog-name=collect2`
16010
17667
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16011
17668
          hardcode_libdir_separator_GCJ=
16012
17669
          fi
 
17670
          ;;
16013
17671
        esac
16014
17672
        shared_flag='-shared'
 
17673
        if test "$aix_use_runtimelinking" = yes; then
 
17674
          shared_flag="$shared_flag "'${wl}-G'
 
17675
        fi
16015
17676
      else
16016
17677
        # not using gcc
16017
17678
        if test "$host_cpu" = ia64; then
16019
17680
        # chokes on -Wl,-G. The following line is correct:
16020
17681
          shared_flag='-G'
16021
17682
        else
16022
 
        if test "$aix_use_runtimelinking" = yes; then
 
17683
          if test "$aix_use_runtimelinking" = yes; then
16023
17684
            shared_flag='${wl}-G'
16024
17685
          else
16025
17686
            shared_flag='${wl}-bM:SRE'
16026
 
        fi
 
17687
          fi
16027
17688
        fi
16028
17689
      fi
16029
17690
 
16051
17712
}
16052
17713
_ACEOF
16053
17714
rm -f conftest.$ac_objext conftest$ac_exeext
16054
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055
 
  (eval $ac_link) 2>conftest.er1
 
17715
if { (ac_try="$ac_link"
 
17716
case "(($ac_try" in
 
17717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17718
  *) ac_try_echo=$ac_try;;
 
17719
esac
 
17720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17721
  (eval "$ac_link") 2>conftest.er1
16056
17722
  ac_status=$?
16057
17723
  grep -v '^ *+' conftest.er1 >conftest.err
16058
17724
  rm -f conftest.er1
16059
17725
  cat conftest.err >&5
16060
17726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061
17727
  (exit $ac_status); } &&
16062
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16063
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064
 
  (eval $ac_try) 2>&5
 
17728
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17729
  { (case "(($ac_try" in
 
17730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17731
  *) ac_try_echo=$ac_try;;
 
17732
esac
 
17733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17734
  (eval "$ac_try") 2>&5
16065
17735
  ac_status=$?
16066
17736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067
17737
  (exit $ac_status); }; } &&
16068
17738
         { ac_try='test -s conftest$ac_exeext'
16069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070
 
  (eval $ac_try) 2>&5
 
17739
  { (case "(($ac_try" in
 
17740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17741
  *) ac_try_echo=$ac_try;;
 
17742
esac
 
17743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17744
  (eval "$ac_try") 2>&5
16071
17745
  ac_status=$?
16072
17746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073
17747
  (exit $ac_status); }; }; then
16081
17755
  echo "$as_me: failed program was:" >&5
16082
17756
sed 's/^/| /' conftest.$ac_ext >&5
16083
17757
 
 
17758
 
16084
17759
fi
16085
 
rm -f conftest.err conftest.$ac_objext \
 
17760
 
 
17761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16086
17762
      conftest$ac_exeext conftest.$ac_ext
16087
17763
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16088
17764
 
16089
17765
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16090
 
        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"
 
17766
        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"
16091
17767
       else
16092
17768
        if test "$host_cpu" = ia64; then
16093
17769
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16094
17770
          allow_undefined_flag_GCJ="-z nodefs"
16095
 
          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"
 
17771
          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"
16096
17772
        else
16097
17773
         # Determine the default libpath from the value encoded in an empty executable.
16098
17774
         cat >conftest.$ac_ext <<_ACEOF
16111
17787
}
16112
17788
_ACEOF
16113
17789
rm -f conftest.$ac_objext conftest$ac_exeext
16114
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16115
 
  (eval $ac_link) 2>conftest.er1
 
17790
if { (ac_try="$ac_link"
 
17791
case "(($ac_try" in
 
17792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17793
  *) ac_try_echo=$ac_try;;
 
17794
esac
 
17795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17796
  (eval "$ac_link") 2>conftest.er1
16116
17797
  ac_status=$?
16117
17798
  grep -v '^ *+' conftest.er1 >conftest.err
16118
17799
  rm -f conftest.er1
16119
17800
  cat conftest.err >&5
16120
17801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121
17802
  (exit $ac_status); } &&
16122
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16123
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124
 
  (eval $ac_try) 2>&5
 
17803
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17804
  { (case "(($ac_try" in
 
17805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17806
  *) ac_try_echo=$ac_try;;
 
17807
esac
 
17808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17809
  (eval "$ac_try") 2>&5
16125
17810
  ac_status=$?
16126
17811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127
17812
  (exit $ac_status); }; } &&
16128
17813
         { ac_try='test -s conftest$ac_exeext'
16129
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130
 
  (eval $ac_try) 2>&5
 
17814
  { (case "(($ac_try" in
 
17815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17816
  *) ac_try_echo=$ac_try;;
 
17817
esac
 
17818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17819
  (eval "$ac_try") 2>&5
16131
17820
  ac_status=$?
16132
17821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133
17822
  (exit $ac_status); }; }; then
16141
17830
  echo "$as_me: failed program was:" >&5
16142
17831
sed 's/^/| /' conftest.$ac_ext >&5
16143
17832
 
 
17833
 
16144
17834
fi
16145
 
rm -f conftest.err conftest.$ac_objext \
 
17835
 
 
17836
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16146
17837
      conftest$ac_exeext conftest.$ac_ext
16147
17838
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16148
17839
 
16151
17842
          # -berok will link without error, but may produce a broken library.
16152
17843
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16153
17844
          allow_undefined_flag_GCJ=' ${wl}-berok'
16154
 
          # -bexpall does not export symbols beginning with underscore (_)
16155
 
          always_export_symbols_GCJ=yes
16156
17845
          # Exported symbols can be pulled into shared objects from archives
16157
 
          whole_archive_flag_spec_GCJ=' '
 
17846
          whole_archive_flag_spec_GCJ='$convenience'
16158
17847
          archive_cmds_need_lc_GCJ=yes
16159
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16160
 
          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'
 
17848
          # This is similar to how AIX traditionally builds its shared libraries.
 
17849
          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'
16161
17850
        fi
16162
17851
      fi
16163
17852
      ;;
16170
17859
      ld_shlibs_GCJ=no
16171
17860
      ;;
16172
17861
 
16173
 
    bsdi4*)
 
17862
    bsdi[45]*)
16174
17863
      export_dynamic_flag_spec_GCJ=-rdynamic
16175
17864
      ;;
16176
17865
 
16184
17873
      # Tell ltmain to make .lib files, not .a files.
16185
17874
      libext=lib
16186
17875
      # Tell ltmain to make .dll files, not .so files.
16187
 
      shrext=".dll"
 
17876
      shrext_cmds=".dll"
16188
17877
      # FIXME: Setting linknames here is a bad hack.
16189
17878
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16190
17879
      # The linker will automatically build a .lib file if we build a DLL.
16191
17880
      old_archive_From_new_cmds_GCJ='true'
16192
17881
      # FIXME: Should let the user specify the lib program.
16193
17882
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16194
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17883
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16195
17884
      enable_shared_with_static_runtimes_GCJ=yes
16196
17885
      ;;
16197
17886
 
16198
17887
    darwin* | rhapsody*)
16199
 
    if test "$GXX" = yes ; then
 
17888
      case $host_os in
 
17889
        rhapsody* | darwin1.[012])
 
17890
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17891
         ;;
 
17892
       *) # Darwin 1.3 on
 
17893
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17894
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17895
         else
 
17896
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17897
             10.[012])
 
17898
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17899
               ;;
 
17900
             10.*)
 
17901
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17902
               ;;
 
17903
           esac
 
17904
         fi
 
17905
         ;;
 
17906
      esac
16200
17907
      archive_cmds_need_lc_GCJ=no
16201
 
      case "$host_os" in
16202
 
      rhapsody* | darwin1.[012])
16203
 
        allow_undefined_flag_GCJ='-undefined suppress'
16204
 
        ;;
16205
 
      *) # Darwin 1.3 on
16206
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16207
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16208
 
      else
16209
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16210
 
          10.[012])
16211
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16212
 
            ;;
16213
 
          10.*)
16214
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16215
 
            ;;
16216
 
        esac
16217
 
      fi
16218
 
        ;;
16219
 
      esac
16220
 
        lt_int_apple_cc_single_mod=no
16221
 
        output_verbose_link_cmd='echo'
16222
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16223
 
          lt_int_apple_cc_single_mod=yes
16224
 
        fi
16225
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16226
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16227
 
        else
16228
 
        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'
16229
 
      fi
16230
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16231
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16232
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16233
 
          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}'
16234
 
        else
16235
 
          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}'
16236
 
        fi
16237
 
          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}'
16238
17908
      hardcode_direct_GCJ=no
16239
17909
      hardcode_automatic_GCJ=yes
16240
17910
      hardcode_shlibpath_var_GCJ=unsupported
16241
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17911
      whole_archive_flag_spec_GCJ=''
16242
17912
      link_all_deplibs_GCJ=yes
 
17913
    if test "$GCC" = yes ; then
 
17914
        output_verbose_link_cmd='echo'
 
17915
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17916
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17917
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17918
      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}'
 
17919
      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}'
16243
17920
    else
16244
 
      ld_shlibs_GCJ=no
 
17921
      case $cc_basename in
 
17922
        xlc*)
 
17923
         output_verbose_link_cmd='echo'
 
17924
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17925
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17926
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17927
         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}'
 
17928
          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}'
 
17929
          ;;
 
17930
       *)
 
17931
         ld_shlibs_GCJ=no
 
17932
          ;;
 
17933
      esac
16245
17934
    fi
16246
17935
      ;;
16247
17936
 
16275
17964
      ;;
16276
17965
 
16277
17966
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16278
 
    freebsd* | kfreebsd*-gnu)
 
17967
    freebsd* | dragonfly*)
16279
17968
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16280
17969
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16281
17970
      hardcode_direct_GCJ=yes
16298
17987
      export_dynamic_flag_spec_GCJ='${wl}-E'
16299
17988
      ;;
16300
17989
 
16301
 
    hpux10* | hpux11*)
16302
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16303
 
        case "$host_cpu" in
16304
 
        hppa*64*|ia64*)
 
17990
    hpux10*)
 
17991
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17992
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17993
      else
 
17994
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17995
      fi
 
17996
      if test "$with_gnu_ld" = no; then
 
17997
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17998
        hardcode_libdir_separator_GCJ=:
 
17999
 
 
18000
        hardcode_direct_GCJ=yes
 
18001
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18002
 
 
18003
        # hardcode_minus_L: Not really in the search PATH,
 
18004
        # but as the default location of the library.
 
18005
        hardcode_minus_L_GCJ=yes
 
18006
      fi
 
18007
      ;;
 
18008
 
 
18009
    hpux11*)
 
18010
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18011
        case $host_cpu in
 
18012
        hppa*64*)
16305
18013
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306
18014
          ;;
 
18015
        ia64*)
 
18016
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18017
          ;;
16307
18018
        *)
16308
18019
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16309
18020
          ;;
16310
18021
        esac
16311
18022
      else
16312
 
        case "$host_cpu" in
16313
 
        hppa*64*|ia64*)
16314
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18023
        case $host_cpu in
 
18024
        hppa*64*)
 
18025
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18026
          ;;
 
18027
        ia64*)
 
18028
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16315
18029
          ;;
16316
18030
        *)
16317
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18031
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318
18032
          ;;
16319
18033
        esac
16320
18034
      fi
16321
18035
      if test "$with_gnu_ld" = no; then
16322
 
        case "$host_cpu" in
16323
 
        hppa*64*)
16324
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18036
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18037
        hardcode_libdir_separator_GCJ=:
 
18038
 
 
18039
        case $host_cpu in
 
18040
        hppa*64*|ia64*)
16325
18041
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16326
 
          hardcode_libdir_separator_GCJ=:
16327
 
          hardcode_direct_GCJ=no
16328
 
          hardcode_shlibpath_var_GCJ=no
16329
 
          ;;
16330
 
        ia64*)
16331
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16332
 
          hardcode_direct_GCJ=no
16333
 
          hardcode_shlibpath_var_GCJ=no
16334
 
 
16335
 
          # hardcode_minus_L: Not really in the search PATH,
16336
 
          # but as the default location of the library.
16337
 
          hardcode_minus_L_GCJ=yes
 
18042
          hardcode_direct_GCJ=no
 
18043
          hardcode_shlibpath_var_GCJ=no
16338
18044
          ;;
16339
18045
        *)
16340
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16341
 
          hardcode_libdir_separator_GCJ=:
16342
18046
          hardcode_direct_GCJ=yes
16343
18047
          export_dynamic_flag_spec_GCJ='${wl}-E'
16344
18048
 
16362
18066
      link_all_deplibs_GCJ=yes
16363
18067
      ;;
16364
18068
 
16365
 
    netbsd* | knetbsd*-gnu)
 
18069
    netbsd* | netbsdelf*-gnu)
16366
18070
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16367
18071
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16368
18072
      else
16386
18090
      hardcode_shlibpath_var_GCJ=no
16387
18091
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16388
18092
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18093
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16389
18094
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16390
18095
        export_dynamic_flag_spec_GCJ='${wl}-E'
16391
18096
      else
16431
18136
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16432
18137
        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'
16433
18138
        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~
16434
 
        $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'
 
18139
        $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'
16435
18140
 
16436
18141
        # Both c and cxx compiler support -rpath directly
16437
18142
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16439
18144
      hardcode_libdir_separator_GCJ=:
16440
18145
      ;;
16441
18146
 
16442
 
    sco3.2v5*)
16443
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444
 
      hardcode_shlibpath_var_GCJ=no
16445
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16446
 
      runpath_var=LD_RUN_PATH
16447
 
      hardcode_runpath_var=yes
16448
 
      ;;
16449
 
 
16450
18147
    solaris*)
16451
18148
      no_undefined_flag_GCJ=' -z text'
16452
18149
      if test "$GCC" = yes; then
 
18150
        wlarc='${wl}'
16453
18151
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454
18152
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16455
18153
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16456
18154
      else
 
18155
        wlarc=''
16457
18156
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458
18157
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16459
18158
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16462
18161
      hardcode_shlibpath_var_GCJ=no
16463
18162
      case $host_os in
16464
18163
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16465
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16466
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18164
      *)
 
18165
        # The compiler driver will combine linker options so we
 
18166
        # cannot just pass the convience library names through
 
18167
        # without $wl, iff we do not link with $LD.
 
18168
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18169
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18170
        case $wlarc in
 
18171
        '')
 
18172
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18173
        *)
 
18174
          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' ;;
 
18175
        esac ;;
16467
18176
      esac
16468
18177
      link_all_deplibs_GCJ=yes
16469
18178
      ;;
16520
18229
      fi
16521
18230
      ;;
16522
18231
 
16523
 
    sysv4.2uw2*)
16524
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16525
 
      hardcode_direct_GCJ=yes
16526
 
      hardcode_minus_L_GCJ=no
16527
 
      hardcode_shlibpath_var_GCJ=no
16528
 
      hardcode_runpath_var=yes
16529
 
      runpath_var=LD_RUN_PATH
16530
 
      ;;
16531
 
 
16532
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16533
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16534
 
      if test "$GCC" = yes; then
16535
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16536
 
      else
16537
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16538
 
      fi
16539
 
      runpath_var='LD_RUN_PATH'
16540
 
      hardcode_shlibpath_var_GCJ=no
16541
 
      ;;
16542
 
 
16543
 
    sysv5*)
16544
 
      no_undefined_flag_GCJ=' -z text'
16545
 
      # $CC -shared without GNU ld will not create a library from C++
16546
 
      # object files and a static libstdc++, better avoid it by now
16547
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16549
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16550
 
      hardcode_libdir_flag_spec_GCJ=
16551
 
      hardcode_shlibpath_var_GCJ=no
16552
 
      runpath_var='LD_RUN_PATH'
 
18232
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18233
      no_undefined_flag_GCJ='${wl}-z,text'
 
18234
      archive_cmds_need_lc_GCJ=no
 
18235
      hardcode_shlibpath_var_GCJ=no
 
18236
      runpath_var='LD_RUN_PATH'
 
18237
 
 
18238
      if test "$GCC" = yes; then
 
18239
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18240
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18241
      else
 
18242
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18243
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18244
      fi
 
18245
      ;;
 
18246
 
 
18247
    sysv5* | sco3.2v5* | sco5v6*)
 
18248
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18249
      # link with -lc, and that would cause any symbols used from libc to
 
18250
      # always be unresolved, which means just about no library would
 
18251
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18252
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18253
      # as -z defs.
 
18254
      no_undefined_flag_GCJ='${wl}-z,text'
 
18255
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18256
      archive_cmds_need_lc_GCJ=no
 
18257
      hardcode_shlibpath_var_GCJ=no
 
18258
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18259
      hardcode_libdir_separator_GCJ=':'
 
18260
      link_all_deplibs_GCJ=yes
 
18261
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18262
      runpath_var='LD_RUN_PATH'
 
18263
 
 
18264
      if test "$GCC" = yes; then
 
18265
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18266
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18267
      else
 
18268
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18269
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18270
      fi
16553
18271
      ;;
16554
18272
 
16555
18273
    uts4*)
16564
18282
    esac
16565
18283
  fi
16566
18284
 
16567
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16568
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18285
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18286
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16569
18287
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16570
18288
 
16571
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16572
 
if test "$GCC" = yes; then
16573
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16574
 
fi
16575
 
 
16576
18289
#
16577
18290
# Do we need to explicitly link libc?
16578
18291
#
16590
18303
      # Test whether the compiler implicitly links with -lc since on some
16591
18304
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16592
18305
      # to ld, don't add -lc before -lgcc.
16593
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16594
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18306
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18307
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16595
18308
      $rm conftest*
16596
18309
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
18310
 
16605
18318
        libobjs=conftest.$ac_objext
16606
18319
        deplibs=
16607
18320
        wl=$lt_prog_compiler_wl_GCJ
 
18321
        pic_flag=$lt_prog_compiler_pic_GCJ
16608
18322
        compiler_flags=-v
16609
18323
        linker_flags=-v
16610
18324
        verstring=
16627
18341
        cat conftest.err 1>&5
16628
18342
      fi
16629
18343
      $rm conftest*
16630
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16631
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18344
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18345
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16632
18346
      ;;
16633
18347
    esac
16634
18348
  fi
16635
18349
  ;;
16636
18350
esac
16637
18351
 
16638
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16639
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18352
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18353
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16640
18354
library_names_spec=
16641
18355
libname_spec='lib$name'
16642
18356
soname_spec=
16643
 
shrext=".so"
 
18357
shrext_cmds=".so"
16644
18358
postinstall_cmds=
16645
18359
postuninstall_cmds=
16646
18360
finish_cmds=
16737
18451
  shlibpath_var=LIBRARY_PATH
16738
18452
  ;;
16739
18453
 
16740
 
bsdi4*)
 
18454
bsdi[45]*)
16741
18455
  version_type=linux
16742
18456
  need_version=no
16743
18457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753
18467
 
16754
18468
cygwin* | mingw* | pw32*)
16755
18469
  version_type=windows
16756
 
  shrext=".dll"
 
18470
  shrext_cmds=".dll"
16757
18471
  need_version=no
16758
18472
  need_lib_prefix=no
16759
18473
 
16765
18479
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16766
18480
      dldir=$destdir/`dirname \$dlpath`~
16767
18481
      test -d \$dldir || mkdir -p \$dldir~
16768
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18482
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18483
      chmod a+x \$dldir/$dlname'
16769
18484
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16770
18485
      dlpath=$dir/\$dldll~
16771
18486
       $rm \$dlpath'
16795
18510
      ;;
16796
18511
    pw32*)
16797
18512
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16798
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18513
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16799
18514
      ;;
16800
18515
    esac
16801
18516
    ;;
16818
18533
  soname_spec='${libname}${release}${major}$shared_ext'
16819
18534
  shlibpath_overrides_runpath=yes
16820
18535
  shlibpath_var=DYLD_LIBRARY_PATH
16821
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
18536
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16822
18537
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16823
18538
  if test "$GCC" = yes; then
16824
18539
    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"`
16841
18556
  dynamic_linker=no
16842
18557
  ;;
16843
18558
 
16844
 
kfreebsd*-gnu)
16845
 
  version_type=linux
16846
 
  need_lib_prefix=no
16847
 
  need_version=no
16848
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16849
 
  soname_spec='${libname}${release}${shared_ext}$major'
16850
 
  shlibpath_var=LD_LIBRARY_PATH
16851
 
  shlibpath_overrides_runpath=no
16852
 
  hardcode_into_libs=yes
16853
 
  dynamic_linker='GNU ld.so'
16854
 
  ;;
16855
 
 
16856
 
freebsd*)
16857
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18559
freebsd* | dragonfly*)
 
18560
  # DragonFly does not have aout.  When/if they implement a new
 
18561
  # versioning mechanism, adjust this.
 
18562
  if test -x /usr/bin/objformat; then
 
18563
    objformat=`/usr/bin/objformat`
 
18564
  else
 
18565
    case $host_os in
 
18566
    freebsd[123]*) objformat=aout ;;
 
18567
    *) objformat=elf ;;
 
18568
    esac
 
18569
  fi
16858
18570
  version_type=freebsd-$objformat
16859
18571
  case $version_type in
16860
18572
    freebsd-elf*)
16872
18584
  freebsd2*)
16873
18585
    shlibpath_overrides_runpath=yes
16874
18586
    ;;
16875
 
  freebsd3.01* | freebsdelf3.01*)
 
18587
  freebsd3.[01]* | freebsdelf3.[01]*)
16876
18588
    shlibpath_overrides_runpath=yes
16877
18589
    hardcode_into_libs=yes
16878
18590
    ;;
16879
 
  *) # from 3.2 on
 
18591
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18592
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16880
18593
    shlibpath_overrides_runpath=no
16881
18594
    hardcode_into_libs=yes
16882
18595
    ;;
 
18596
  freebsd*) # from 4.6 on
 
18597
    shlibpath_overrides_runpath=yes
 
18598
    hardcode_into_libs=yes
 
18599
    ;;
16883
18600
  esac
16884
18601
  ;;
16885
18602
 
16899
18616
  version_type=sunos
16900
18617
  need_lib_prefix=no
16901
18618
  need_version=no
16902
 
  case "$host_cpu" in
 
18619
  case $host_cpu in
16903
18620
  ia64*)
16904
 
    shrext='.so'
 
18621
    shrext_cmds='.so'
16905
18622
    hardcode_into_libs=yes
16906
18623
    dynamic_linker="$host_os dld.so"
16907
18624
    shlibpath_var=LD_LIBRARY_PATH
16916
18633
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16917
18634
    ;;
16918
18635
   hppa*64*)
16919
 
     shrext='.sl'
 
18636
     shrext_cmds='.sl'
16920
18637
     hardcode_into_libs=yes
16921
18638
     dynamic_linker="$host_os dld.sl"
16922
18639
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16927
18644
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16928
18645
     ;;
16929
18646
   *)
16930
 
    shrext='.sl'
 
18647
    shrext_cmds='.sl'
16931
18648
    dynamic_linker="$host_os dld.sl"
16932
18649
    shlibpath_var=SHLIB_PATH
16933
18650
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16939
18656
  postinstall_cmds='chmod 555 $lib'
16940
18657
  ;;
16941
18658
 
 
18659
interix3*)
 
18660
  version_type=linux
 
18661
  need_lib_prefix=no
 
18662
  need_version=no
 
18663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18664
  soname_spec='${libname}${release}${shared_ext}$major'
 
18665
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18666
  shlibpath_var=LD_LIBRARY_PATH
 
18667
  shlibpath_overrides_runpath=no
 
18668
  hardcode_into_libs=yes
 
18669
  ;;
 
18670
 
16942
18671
irix5* | irix6* | nonstopux*)
16943
18672
  case $host_os in
16944
18673
    nonstopux*) version_type=nonstopux ;;
16982
18711
  ;;
16983
18712
 
16984
18713
# This must be Linux ELF.
16985
 
linux*)
 
18714
linux* | k*bsd*-gnu)
16986
18715
  version_type=linux
16987
18716
  need_lib_prefix=no
16988
18717
  need_version=no
16998
18727
 
16999
18728
  # Append ld.so.conf contents to the search path
17000
18729
  if test -f /etc/ld.so.conf; then
17001
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17002
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
18730
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18731
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17003
18732
  fi
17004
18733
 
17005
18734
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17011
18740
  dynamic_linker='GNU/Linux ld.so'
17012
18741
  ;;
17013
18742
 
17014
 
knetbsd*-gnu)
 
18743
netbsdelf*-gnu)
17015
18744
  version_type=linux
17016
18745
  need_lib_prefix=no
17017
18746
  need_version=no
17020
18749
  shlibpath_var=LD_LIBRARY_PATH
17021
18750
  shlibpath_overrides_runpath=no
17022
18751
  hardcode_into_libs=yes
17023
 
  dynamic_linker='GNU ld.so'
 
18752
  dynamic_linker='NetBSD ld.elf_so'
17024
18753
  ;;
17025
18754
 
17026
18755
netbsd*)
17060
18789
 
17061
18790
openbsd*)
17062
18791
  version_type=sunos
 
18792
  sys_lib_dlsearch_path_spec="/usr/lib"
17063
18793
  need_lib_prefix=no
17064
 
  need_version=yes
 
18794
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18795
  case $host_os in
 
18796
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18797
    *)                         need_version=no  ;;
 
18798
  esac
17065
18799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17066
18800
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17067
18801
  shlibpath_var=LD_LIBRARY_PATH
17081
18815
 
17082
18816
os2*)
17083
18817
  libname_spec='$name'
17084
 
  shrext=".dll"
 
18818
  shrext_cmds=".dll"
17085
18819
  need_lib_prefix=no
17086
18820
  library_names_spec='$libname${shared_ext} $libname.a'
17087
18821
  dynamic_linker='OS/2 ld.exe'
17099
18833
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17100
18834
  ;;
17101
18835
 
17102
 
sco3.2v5*)
17103
 
  version_type=osf
17104
 
  soname_spec='${libname}${release}${shared_ext}$major'
17105
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106
 
  shlibpath_var=LD_LIBRARY_PATH
17107
 
  ;;
17108
 
 
17109
18836
solaris*)
17110
18837
  version_type=linux
17111
18838
  need_lib_prefix=no
17131
18858
  need_version=yes
17132
18859
  ;;
17133
18860
 
17134
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18861
sysv4 | sysv4.3*)
17135
18862
  version_type=linux
17136
18863
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137
18864
  soname_spec='${libname}${release}${shared_ext}$major'
17164
18891
  fi
17165
18892
  ;;
17166
18893
 
 
18894
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18895
  version_type=freebsd-elf
 
18896
  need_lib_prefix=no
 
18897
  need_version=no
 
18898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18899
  soname_spec='${libname}${release}${shared_ext}$major'
 
18900
  shlibpath_var=LD_LIBRARY_PATH
 
18901
  hardcode_into_libs=yes
 
18902
  if test "$with_gnu_ld" = yes; then
 
18903
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18904
    shlibpath_overrides_runpath=no
 
18905
  else
 
18906
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18907
    shlibpath_overrides_runpath=yes
 
18908
    case $host_os in
 
18909
      sco3.2v5*)
 
18910
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18911
        ;;
 
18912
    esac
 
18913
  fi
 
18914
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18915
  ;;
 
18916
 
17167
18917
uts4*)
17168
18918
  version_type=linux
17169
18919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175
18925
  dynamic_linker=no
17176
18926
  ;;
17177
18927
esac
17178
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17179
 
echo "${ECHO_T}$dynamic_linker" >&6
 
18928
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18929
echo "${ECHO_T}$dynamic_linker" >&6; }
17180
18930
test "$dynamic_linker" = no && can_build_shared=no
17181
18931
 
17182
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17183
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18932
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18933
if test "$GCC" = yes; then
 
18934
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18935
fi
 
18936
 
 
18937
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18938
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17184
18939
hardcode_action_GCJ=
17185
18940
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17186
 
   test -n "$runpath_var GCJ" || \
17187
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18941
   test -n "$runpath_var_GCJ" || \
 
18942
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17188
18943
 
17189
18944
  # We can hardcode non-existant directories.
17190
18945
  if test "$hardcode_direct_GCJ" != no &&
17204
18959
  # directories.
17205
18960
  hardcode_action_GCJ=unsupported
17206
18961
fi
17207
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17208
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18962
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18963
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17209
18964
 
17210
18965
if test "$hardcode_action_GCJ" = relink; then
17211
18966
  # Fast installation is not supported
17216
18971
  enable_fast_install=needless
17217
18972
fi
17218
18973
 
17219
 
striplib=
17220
 
old_striplib=
17221
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17222
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17223
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17224
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17225
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17226
 
  echo "$as_me:$LINENO: result: yes" >&5
17227
 
echo "${ECHO_T}yes" >&6
17228
 
else
17229
 
# FIXME - insert some real tests, host_os isn't really good enough
17230
 
  case $host_os in
17231
 
   darwin*)
17232
 
       if test -n "$STRIP" ; then
17233
 
         striplib="$STRIP -x"
17234
 
         echo "$as_me:$LINENO: result: yes" >&5
17235
 
echo "${ECHO_T}yes" >&6
17236
 
       else
17237
 
  echo "$as_me:$LINENO: result: no" >&5
17238
 
echo "${ECHO_T}no" >&6
17239
 
fi
17240
 
       ;;
17241
 
   *)
17242
 
  echo "$as_me:$LINENO: result: no" >&5
17243
 
echo "${ECHO_T}no" >&6
17244
 
    ;;
17245
 
  esac
17246
 
fi
17247
 
 
17248
 
if test "x$enable_dlopen" != xyes; then
17249
 
  enable_dlopen=unknown
17250
 
  enable_dlopen_self=unknown
17251
 
  enable_dlopen_self_static=unknown
17252
 
else
17253
 
  lt_cv_dlopen=no
17254
 
  lt_cv_dlopen_libs=
17255
 
 
17256
 
  case $host_os in
17257
 
  beos*)
17258
 
    lt_cv_dlopen="load_add_on"
17259
 
    lt_cv_dlopen_libs=
17260
 
    lt_cv_dlopen_self=yes
17261
 
    ;;
17262
 
 
17263
 
  mingw* | pw32*)
17264
 
    lt_cv_dlopen="LoadLibrary"
17265
 
    lt_cv_dlopen_libs=
17266
 
   ;;
17267
 
 
17268
 
  cygwin*)
17269
 
    lt_cv_dlopen="dlopen"
17270
 
    lt_cv_dlopen_libs=
17271
 
   ;;
17272
 
 
17273
 
  darwin*)
17274
 
  # if libdl is installed we need to link against it
17275
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17276
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17277
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17278
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17279
 
else
17280
 
  ac_check_lib_save_LIBS=$LIBS
17281
 
LIBS="-ldl  $LIBS"
17282
 
cat >conftest.$ac_ext <<_ACEOF
17283
 
/* confdefs.h.  */
17284
 
_ACEOF
17285
 
cat confdefs.h >>conftest.$ac_ext
17286
 
cat >>conftest.$ac_ext <<_ACEOF
17287
 
/* end confdefs.h.  */
17288
 
 
17289
 
/* Override any gcc2 internal prototype to avoid an error.  */
17290
 
#ifdef __cplusplus
17291
 
extern "C"
17292
 
#endif
17293
 
/* We use char because int might match the return type of a gcc2
17294
 
   builtin and then its argument prototype would still apply.  */
17295
 
char dlopen ();
17296
 
int
17297
 
main ()
17298
 
{
17299
 
dlopen ();
17300
 
  ;
17301
 
  return 0;
17302
 
}
17303
 
_ACEOF
17304
 
rm -f conftest.$ac_objext conftest$ac_exeext
17305
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306
 
  (eval $ac_link) 2>conftest.er1
17307
 
  ac_status=$?
17308
 
  grep -v '^ *+' conftest.er1 >conftest.err
17309
 
  rm -f conftest.er1
17310
 
  cat conftest.err >&5
17311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312
 
  (exit $ac_status); } &&
17313
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17314
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315
 
  (eval $ac_try) 2>&5
17316
 
  ac_status=$?
17317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318
 
  (exit $ac_status); }; } &&
17319
 
         { ac_try='test -s conftest$ac_exeext'
17320
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321
 
  (eval $ac_try) 2>&5
17322
 
  ac_status=$?
17323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324
 
  (exit $ac_status); }; }; then
17325
 
  ac_cv_lib_dl_dlopen=yes
17326
 
else
17327
 
  echo "$as_me: failed program was:" >&5
17328
 
sed 's/^/| /' conftest.$ac_ext >&5
17329
 
 
17330
 
ac_cv_lib_dl_dlopen=no
17331
 
fi
17332
 
rm -f conftest.err conftest.$ac_objext \
17333
 
      conftest$ac_exeext conftest.$ac_ext
17334
 
LIBS=$ac_check_lib_save_LIBS
17335
 
fi
17336
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17337
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17338
 
if test $ac_cv_lib_dl_dlopen = yes; then
17339
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17340
 
else
17341
 
 
17342
 
    lt_cv_dlopen="dyld"
17343
 
    lt_cv_dlopen_libs=
17344
 
    lt_cv_dlopen_self=yes
17345
 
 
17346
 
fi
17347
 
 
17348
 
   ;;
17349
 
 
17350
 
  *)
17351
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17352
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17353
 
if test "${ac_cv_func_shl_load+set}" = set; then
17354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17355
 
else
17356
 
  cat >conftest.$ac_ext <<_ACEOF
17357
 
/* confdefs.h.  */
17358
 
_ACEOF
17359
 
cat confdefs.h >>conftest.$ac_ext
17360
 
cat >>conftest.$ac_ext <<_ACEOF
17361
 
/* end confdefs.h.  */
17362
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17363
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17364
 
#define shl_load innocuous_shl_load
17365
 
 
17366
 
/* System header to define __stub macros and hopefully few prototypes,
17367
 
    which can conflict with char shl_load (); below.
17368
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17369
 
    <limits.h> exists even on freestanding compilers.  */
17370
 
 
17371
 
#ifdef __STDC__
17372
 
# include <limits.h>
17373
 
#else
17374
 
# include <assert.h>
17375
 
#endif
17376
 
 
17377
 
#undef shl_load
17378
 
 
17379
 
/* Override any gcc2 internal prototype to avoid an error.  */
17380
 
#ifdef __cplusplus
17381
 
extern "C"
17382
 
{
17383
 
#endif
17384
 
/* We use char because int might match the return type of a gcc2
17385
 
   builtin and then its argument prototype would still apply.  */
17386
 
char shl_load ();
17387
 
/* The GNU C library defines this for functions which it implements
17388
 
    to always fail with ENOSYS.  Some functions are actually named
17389
 
    something starting with __ and the normal name is an alias.  */
17390
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17391
 
choke me
17392
 
#else
17393
 
char (*f) () = shl_load;
17394
 
#endif
17395
 
#ifdef __cplusplus
17396
 
}
17397
 
#endif
17398
 
 
17399
 
int
17400
 
main ()
17401
 
{
17402
 
return f != shl_load;
17403
 
  ;
17404
 
  return 0;
17405
 
}
17406
 
_ACEOF
17407
 
rm -f conftest.$ac_objext conftest$ac_exeext
17408
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409
 
  (eval $ac_link) 2>conftest.er1
17410
 
  ac_status=$?
17411
 
  grep -v '^ *+' conftest.er1 >conftest.err
17412
 
  rm -f conftest.er1
17413
 
  cat conftest.err >&5
17414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415
 
  (exit $ac_status); } &&
17416
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418
 
  (eval $ac_try) 2>&5
17419
 
  ac_status=$?
17420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421
 
  (exit $ac_status); }; } &&
17422
 
         { ac_try='test -s conftest$ac_exeext'
17423
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424
 
  (eval $ac_try) 2>&5
17425
 
  ac_status=$?
17426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427
 
  (exit $ac_status); }; }; then
17428
 
  ac_cv_func_shl_load=yes
17429
 
else
17430
 
  echo "$as_me: failed program was:" >&5
17431
 
sed 's/^/| /' conftest.$ac_ext >&5
17432
 
 
17433
 
ac_cv_func_shl_load=no
17434
 
fi
17435
 
rm -f conftest.err conftest.$ac_objext \
17436
 
      conftest$ac_exeext conftest.$ac_ext
17437
 
fi
17438
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17439
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17440
 
if test $ac_cv_func_shl_load = yes; then
17441
 
  lt_cv_dlopen="shl_load"
17442
 
else
17443
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17444
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17445
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17446
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17447
 
else
17448
 
  ac_check_lib_save_LIBS=$LIBS
17449
 
LIBS="-ldld  $LIBS"
17450
 
cat >conftest.$ac_ext <<_ACEOF
17451
 
/* confdefs.h.  */
17452
 
_ACEOF
17453
 
cat confdefs.h >>conftest.$ac_ext
17454
 
cat >>conftest.$ac_ext <<_ACEOF
17455
 
/* end confdefs.h.  */
17456
 
 
17457
 
/* Override any gcc2 internal prototype to avoid an error.  */
17458
 
#ifdef __cplusplus
17459
 
extern "C"
17460
 
#endif
17461
 
/* We use char because int might match the return type of a gcc2
17462
 
   builtin and then its argument prototype would still apply.  */
17463
 
char shl_load ();
17464
 
int
17465
 
main ()
17466
 
{
17467
 
shl_load ();
17468
 
  ;
17469
 
  return 0;
17470
 
}
17471
 
_ACEOF
17472
 
rm -f conftest.$ac_objext conftest$ac_exeext
17473
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474
 
  (eval $ac_link) 2>conftest.er1
17475
 
  ac_status=$?
17476
 
  grep -v '^ *+' conftest.er1 >conftest.err
17477
 
  rm -f conftest.er1
17478
 
  cat conftest.err >&5
17479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480
 
  (exit $ac_status); } &&
17481
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17482
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483
 
  (eval $ac_try) 2>&5
17484
 
  ac_status=$?
17485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486
 
  (exit $ac_status); }; } &&
17487
 
         { ac_try='test -s conftest$ac_exeext'
17488
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489
 
  (eval $ac_try) 2>&5
17490
 
  ac_status=$?
17491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492
 
  (exit $ac_status); }; }; then
17493
 
  ac_cv_lib_dld_shl_load=yes
17494
 
else
17495
 
  echo "$as_me: failed program was:" >&5
17496
 
sed 's/^/| /' conftest.$ac_ext >&5
17497
 
 
17498
 
ac_cv_lib_dld_shl_load=no
17499
 
fi
17500
 
rm -f conftest.err conftest.$ac_objext \
17501
 
      conftest$ac_exeext conftest.$ac_ext
17502
 
LIBS=$ac_check_lib_save_LIBS
17503
 
fi
17504
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17505
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17506
 
if test $ac_cv_lib_dld_shl_load = yes; then
17507
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17508
 
else
17509
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17510
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17511
 
if test "${ac_cv_func_dlopen+set}" = set; then
17512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17513
 
else
17514
 
  cat >conftest.$ac_ext <<_ACEOF
17515
 
/* confdefs.h.  */
17516
 
_ACEOF
17517
 
cat confdefs.h >>conftest.$ac_ext
17518
 
cat >>conftest.$ac_ext <<_ACEOF
17519
 
/* end confdefs.h.  */
17520
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17521
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17522
 
#define dlopen innocuous_dlopen
17523
 
 
17524
 
/* System header to define __stub macros and hopefully few prototypes,
17525
 
    which can conflict with char dlopen (); below.
17526
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527
 
    <limits.h> exists even on freestanding compilers.  */
17528
 
 
17529
 
#ifdef __STDC__
17530
 
# include <limits.h>
17531
 
#else
17532
 
# include <assert.h>
17533
 
#endif
17534
 
 
17535
 
#undef dlopen
17536
 
 
17537
 
/* Override any gcc2 internal prototype to avoid an error.  */
17538
 
#ifdef __cplusplus
17539
 
extern "C"
17540
 
{
17541
 
#endif
17542
 
/* We use char because int might match the return type of a gcc2
17543
 
   builtin and then its argument prototype would still apply.  */
17544
 
char dlopen ();
17545
 
/* The GNU C library defines this for functions which it implements
17546
 
    to always fail with ENOSYS.  Some functions are actually named
17547
 
    something starting with __ and the normal name is an alias.  */
17548
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17549
 
choke me
17550
 
#else
17551
 
char (*f) () = dlopen;
17552
 
#endif
17553
 
#ifdef __cplusplus
17554
 
}
17555
 
#endif
17556
 
 
17557
 
int
17558
 
main ()
17559
 
{
17560
 
return f != dlopen;
17561
 
  ;
17562
 
  return 0;
17563
 
}
17564
 
_ACEOF
17565
 
rm -f conftest.$ac_objext conftest$ac_exeext
17566
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567
 
  (eval $ac_link) 2>conftest.er1
17568
 
  ac_status=$?
17569
 
  grep -v '^ *+' conftest.er1 >conftest.err
17570
 
  rm -f conftest.er1
17571
 
  cat conftest.err >&5
17572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573
 
  (exit $ac_status); } &&
17574
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576
 
  (eval $ac_try) 2>&5
17577
 
  ac_status=$?
17578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579
 
  (exit $ac_status); }; } &&
17580
 
         { ac_try='test -s conftest$ac_exeext'
17581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582
 
  (eval $ac_try) 2>&5
17583
 
  ac_status=$?
17584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585
 
  (exit $ac_status); }; }; then
17586
 
  ac_cv_func_dlopen=yes
17587
 
else
17588
 
  echo "$as_me: failed program was:" >&5
17589
 
sed 's/^/| /' conftest.$ac_ext >&5
17590
 
 
17591
 
ac_cv_func_dlopen=no
17592
 
fi
17593
 
rm -f conftest.err conftest.$ac_objext \
17594
 
      conftest$ac_exeext conftest.$ac_ext
17595
 
fi
17596
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17597
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17598
 
if test $ac_cv_func_dlopen = yes; then
17599
 
  lt_cv_dlopen="dlopen"
17600
 
else
17601
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17602
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17603
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17604
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17605
 
else
17606
 
  ac_check_lib_save_LIBS=$LIBS
17607
 
LIBS="-ldl  $LIBS"
17608
 
cat >conftest.$ac_ext <<_ACEOF
17609
 
/* confdefs.h.  */
17610
 
_ACEOF
17611
 
cat confdefs.h >>conftest.$ac_ext
17612
 
cat >>conftest.$ac_ext <<_ACEOF
17613
 
/* end confdefs.h.  */
17614
 
 
17615
 
/* Override any gcc2 internal prototype to avoid an error.  */
17616
 
#ifdef __cplusplus
17617
 
extern "C"
17618
 
#endif
17619
 
/* We use char because int might match the return type of a gcc2
17620
 
   builtin and then its argument prototype would still apply.  */
17621
 
char dlopen ();
17622
 
int
17623
 
main ()
17624
 
{
17625
 
dlopen ();
17626
 
  ;
17627
 
  return 0;
17628
 
}
17629
 
_ACEOF
17630
 
rm -f conftest.$ac_objext conftest$ac_exeext
17631
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632
 
  (eval $ac_link) 2>conftest.er1
17633
 
  ac_status=$?
17634
 
  grep -v '^ *+' conftest.er1 >conftest.err
17635
 
  rm -f conftest.er1
17636
 
  cat conftest.err >&5
17637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638
 
  (exit $ac_status); } &&
17639
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17640
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641
 
  (eval $ac_try) 2>&5
17642
 
  ac_status=$?
17643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644
 
  (exit $ac_status); }; } &&
17645
 
         { ac_try='test -s conftest$ac_exeext'
17646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647
 
  (eval $ac_try) 2>&5
17648
 
  ac_status=$?
17649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650
 
  (exit $ac_status); }; }; then
17651
 
  ac_cv_lib_dl_dlopen=yes
17652
 
else
17653
 
  echo "$as_me: failed program was:" >&5
17654
 
sed 's/^/| /' conftest.$ac_ext >&5
17655
 
 
17656
 
ac_cv_lib_dl_dlopen=no
17657
 
fi
17658
 
rm -f conftest.err conftest.$ac_objext \
17659
 
      conftest$ac_exeext conftest.$ac_ext
17660
 
LIBS=$ac_check_lib_save_LIBS
17661
 
fi
17662
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17663
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17664
 
if test $ac_cv_lib_dl_dlopen = yes; then
17665
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17666
 
else
17667
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17668
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17669
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17670
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17671
 
else
17672
 
  ac_check_lib_save_LIBS=$LIBS
17673
 
LIBS="-lsvld  $LIBS"
17674
 
cat >conftest.$ac_ext <<_ACEOF
17675
 
/* confdefs.h.  */
17676
 
_ACEOF
17677
 
cat confdefs.h >>conftest.$ac_ext
17678
 
cat >>conftest.$ac_ext <<_ACEOF
17679
 
/* end confdefs.h.  */
17680
 
 
17681
 
/* Override any gcc2 internal prototype to avoid an error.  */
17682
 
#ifdef __cplusplus
17683
 
extern "C"
17684
 
#endif
17685
 
/* We use char because int might match the return type of a gcc2
17686
 
   builtin and then its argument prototype would still apply.  */
17687
 
char dlopen ();
17688
 
int
17689
 
main ()
17690
 
{
17691
 
dlopen ();
17692
 
  ;
17693
 
  return 0;
17694
 
}
17695
 
_ACEOF
17696
 
rm -f conftest.$ac_objext conftest$ac_exeext
17697
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698
 
  (eval $ac_link) 2>conftest.er1
17699
 
  ac_status=$?
17700
 
  grep -v '^ *+' conftest.er1 >conftest.err
17701
 
  rm -f conftest.er1
17702
 
  cat conftest.err >&5
17703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704
 
  (exit $ac_status); } &&
17705
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17706
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707
 
  (eval $ac_try) 2>&5
17708
 
  ac_status=$?
17709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710
 
  (exit $ac_status); }; } &&
17711
 
         { ac_try='test -s conftest$ac_exeext'
17712
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713
 
  (eval $ac_try) 2>&5
17714
 
  ac_status=$?
17715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716
 
  (exit $ac_status); }; }; then
17717
 
  ac_cv_lib_svld_dlopen=yes
17718
 
else
17719
 
  echo "$as_me: failed program was:" >&5
17720
 
sed 's/^/| /' conftest.$ac_ext >&5
17721
 
 
17722
 
ac_cv_lib_svld_dlopen=no
17723
 
fi
17724
 
rm -f conftest.err conftest.$ac_objext \
17725
 
      conftest$ac_exeext conftest.$ac_ext
17726
 
LIBS=$ac_check_lib_save_LIBS
17727
 
fi
17728
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17729
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17730
 
if test $ac_cv_lib_svld_dlopen = yes; then
17731
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17732
 
else
17733
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17734
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17735
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17737
 
else
17738
 
  ac_check_lib_save_LIBS=$LIBS
17739
 
LIBS="-ldld  $LIBS"
17740
 
cat >conftest.$ac_ext <<_ACEOF
17741
 
/* confdefs.h.  */
17742
 
_ACEOF
17743
 
cat confdefs.h >>conftest.$ac_ext
17744
 
cat >>conftest.$ac_ext <<_ACEOF
17745
 
/* end confdefs.h.  */
17746
 
 
17747
 
/* Override any gcc2 internal prototype to avoid an error.  */
17748
 
#ifdef __cplusplus
17749
 
extern "C"
17750
 
#endif
17751
 
/* We use char because int might match the return type of a gcc2
17752
 
   builtin and then its argument prototype would still apply.  */
17753
 
char dld_link ();
17754
 
int
17755
 
main ()
17756
 
{
17757
 
dld_link ();
17758
 
  ;
17759
 
  return 0;
17760
 
}
17761
 
_ACEOF
17762
 
rm -f conftest.$ac_objext conftest$ac_exeext
17763
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764
 
  (eval $ac_link) 2>conftest.er1
17765
 
  ac_status=$?
17766
 
  grep -v '^ *+' conftest.er1 >conftest.err
17767
 
  rm -f conftest.er1
17768
 
  cat conftest.err >&5
17769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770
 
  (exit $ac_status); } &&
17771
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17772
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773
 
  (eval $ac_try) 2>&5
17774
 
  ac_status=$?
17775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776
 
  (exit $ac_status); }; } &&
17777
 
         { ac_try='test -s conftest$ac_exeext'
17778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779
 
  (eval $ac_try) 2>&5
17780
 
  ac_status=$?
17781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782
 
  (exit $ac_status); }; }; then
17783
 
  ac_cv_lib_dld_dld_link=yes
17784
 
else
17785
 
  echo "$as_me: failed program was:" >&5
17786
 
sed 's/^/| /' conftest.$ac_ext >&5
17787
 
 
17788
 
ac_cv_lib_dld_dld_link=no
17789
 
fi
17790
 
rm -f conftest.err conftest.$ac_objext \
17791
 
      conftest$ac_exeext conftest.$ac_ext
17792
 
LIBS=$ac_check_lib_save_LIBS
17793
 
fi
17794
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796
 
if test $ac_cv_lib_dld_dld_link = yes; then
17797
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17798
 
fi
17799
 
 
17800
 
 
17801
 
fi
17802
 
 
17803
 
 
17804
 
fi
17805
 
 
17806
 
 
17807
 
fi
17808
 
 
17809
 
 
17810
 
fi
17811
 
 
17812
 
 
17813
 
fi
17814
 
 
17815
 
    ;;
17816
 
  esac
17817
 
 
17818
 
  if test "x$lt_cv_dlopen" != xno; then
17819
 
    enable_dlopen=yes
17820
 
  else
17821
 
    enable_dlopen=no
17822
 
  fi
17823
 
 
17824
 
  case $lt_cv_dlopen in
17825
 
  dlopen)
17826
 
    save_CPPFLAGS="$CPPFLAGS"
17827
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828
 
 
17829
 
    save_LDFLAGS="$LDFLAGS"
17830
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831
 
 
17832
 
    save_LIBS="$LIBS"
17833
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17834
 
 
17835
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837
 
if test "${lt_cv_dlopen_self+set}" = set; then
17838
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17839
 
else
17840
 
          if test "$cross_compiling" = yes; then :
17841
 
  lt_cv_dlopen_self=cross
17842
 
else
17843
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844
 
  lt_status=$lt_dlunknown
17845
 
  cat > conftest.$ac_ext <<EOF
17846
 
#line 17846 "configure"
17847
 
#include "confdefs.h"
17848
 
 
17849
 
#if HAVE_DLFCN_H
17850
 
#include <dlfcn.h>
17851
 
#endif
17852
 
 
17853
 
#include <stdio.h>
17854
 
 
17855
 
#ifdef RTLD_GLOBAL
17856
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17857
 
#else
17858
 
#  ifdef DL_GLOBAL
17859
 
#    define LT_DLGLOBAL         DL_GLOBAL
17860
 
#  else
17861
 
#    define LT_DLGLOBAL         0
17862
 
#  endif
17863
 
#endif
17864
 
 
17865
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866
 
   find out it does not work in some platform. */
17867
 
#ifndef LT_DLLAZY_OR_NOW
17868
 
#  ifdef RTLD_LAZY
17869
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17870
 
#  else
17871
 
#    ifdef DL_LAZY
17872
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17873
 
#    else
17874
 
#      ifdef RTLD_NOW
17875
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17876
 
#      else
17877
 
#        ifdef DL_NOW
17878
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17879
 
#        else
17880
 
#          define LT_DLLAZY_OR_NOW      0
17881
 
#        endif
17882
 
#      endif
17883
 
#    endif
17884
 
#  endif
17885
 
#endif
17886
 
 
17887
 
#ifdef __cplusplus
17888
 
extern "C" void exit (int);
17889
 
#endif
17890
 
 
17891
 
void fnord() { int i=42;}
17892
 
int main ()
17893
 
{
17894
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895
 
  int status = $lt_dlunknown;
17896
 
 
17897
 
  if (self)
17898
 
    {
17899
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17900
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901
 
      /* dlclose (self); */
17902
 
    }
17903
 
 
17904
 
    exit (status);
17905
 
}
17906
 
EOF
17907
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908
 
  (eval $ac_link) 2>&5
17909
 
  ac_status=$?
17910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912
 
    (./conftest; exit; ) 2>/dev/null
17913
 
    lt_status=$?
17914
 
    case x$lt_status in
17915
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918
 
    esac
17919
 
  else :
17920
 
    # compilation failed
17921
 
    lt_cv_dlopen_self=no
17922
 
  fi
17923
 
fi
17924
 
rm -fr conftest*
17925
 
 
17926
 
 
17927
 
fi
17928
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930
 
 
17931
 
    if test "x$lt_cv_dlopen_self" = xyes; then
17932
 
      LDFLAGS="$LDFLAGS $link_static_flag"
17933
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
17936
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17937
 
else
17938
 
          if test "$cross_compiling" = yes; then :
17939
 
  lt_cv_dlopen_self_static=cross
17940
 
else
17941
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942
 
  lt_status=$lt_dlunknown
17943
 
  cat > conftest.$ac_ext <<EOF
17944
 
#line 17944 "configure"
17945
 
#include "confdefs.h"
17946
 
 
17947
 
#if HAVE_DLFCN_H
17948
 
#include <dlfcn.h>
17949
 
#endif
17950
 
 
17951
 
#include <stdio.h>
17952
 
 
17953
 
#ifdef RTLD_GLOBAL
17954
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17955
 
#else
17956
 
#  ifdef DL_GLOBAL
17957
 
#    define LT_DLGLOBAL         DL_GLOBAL
17958
 
#  else
17959
 
#    define LT_DLGLOBAL         0
17960
 
#  endif
17961
 
#endif
17962
 
 
17963
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964
 
   find out it does not work in some platform. */
17965
 
#ifndef LT_DLLAZY_OR_NOW
17966
 
#  ifdef RTLD_LAZY
17967
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17968
 
#  else
17969
 
#    ifdef DL_LAZY
17970
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17971
 
#    else
17972
 
#      ifdef RTLD_NOW
17973
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17974
 
#      else
17975
 
#        ifdef DL_NOW
17976
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17977
 
#        else
17978
 
#          define LT_DLLAZY_OR_NOW      0
17979
 
#        endif
17980
 
#      endif
17981
 
#    endif
17982
 
#  endif
17983
 
#endif
17984
 
 
17985
 
#ifdef __cplusplus
17986
 
extern "C" void exit (int);
17987
 
#endif
17988
 
 
17989
 
void fnord() { int i=42;}
17990
 
int main ()
17991
 
{
17992
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993
 
  int status = $lt_dlunknown;
17994
 
 
17995
 
  if (self)
17996
 
    {
17997
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17998
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999
 
      /* dlclose (self); */
18000
 
    }
18001
 
 
18002
 
    exit (status);
18003
 
}
18004
 
EOF
18005
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006
 
  (eval $ac_link) 2>&5
18007
 
  ac_status=$?
18008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010
 
    (./conftest; exit; ) 2>/dev/null
18011
 
    lt_status=$?
18012
 
    case x$lt_status in
18013
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016
 
    esac
18017
 
  else :
18018
 
    # compilation failed
18019
 
    lt_cv_dlopen_self_static=no
18020
 
  fi
18021
 
fi
18022
 
rm -fr conftest*
18023
 
 
18024
 
 
18025
 
fi
18026
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028
 
    fi
18029
 
 
18030
 
    CPPFLAGS="$save_CPPFLAGS"
18031
 
    LDFLAGS="$save_LDFLAGS"
18032
 
    LIBS="$save_LIBS"
18033
 
    ;;
18034
 
  esac
18035
 
 
18036
 
  case $lt_cv_dlopen_self in
18037
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038
 
  *) enable_dlopen_self=unknown ;;
18039
 
  esac
18040
 
 
18041
 
  case $lt_cv_dlopen_self_static in
18042
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043
 
  *) enable_dlopen_self_static=unknown ;;
18044
 
  esac
18045
 
fi
18046
 
 
18047
18974
 
18048
18975
# The else clause should only fire when bootstrapping the
18049
18976
# libtool distribution, otherwise you forgot to ship ltmain.sh
18058
18985
  # Now quote all the things that may contain metacharacters while being
18059
18986
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18060
18987
  # variables and quote the copies for generation of the libtool script.
18061
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18988
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18062
18989
    SED SHELL STRIP \
18063
18990
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064
18991
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18159
19086
# The host system.
18160
19087
host_alias=$host_alias
18161
19088
host=$host
 
19089
host_os=$host_os
 
19090
 
 
19091
# The build system.
 
19092
build_alias=$build_alias
 
19093
build=$build
 
19094
build_os=$build_os
18162
19095
 
18163
19096
# An echo program that does not interpret backslashes.
18164
19097
echo=$lt_echo
18170
19103
# A C compiler.
18171
19104
LTCC=$lt_LTCC
18172
19105
 
 
19106
# LTCC compiler flags.
 
19107
LTCFLAGS=$lt_LTCFLAGS
 
19108
 
18173
19109
# A language-specific compiler.
18174
19110
CC=$lt_compiler_GCJ
18175
19111
 
18220
19156
libext="$libext"
18221
19157
 
18222
19158
# Shared library suffix (normally ".so").
18223
 
shrext='$shrext'
 
19159
shrext_cmds='$shrext_cmds'
18224
19160
 
18225
19161
# Executable file suffix (normally "").
18226
19162
exeext="$exeext"
18235
19171
# Does compiler simultaneously support -c and -o options?
18236
19172
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18237
19173
 
18238
 
# Must we lock files when doing compilation ?
 
19174
# Must we lock files when doing compilation?
18239
19175
need_locks=$lt_need_locks
18240
19176
 
18241
19177
# Do we need the lib prefix for modules?
18460
19396
      RC)
18461
19397
 
18462
19398
 
18463
 
 
18464
19399
# Source file extension for RC test sources.
18465
19400
ac_ext=rc
18466
19401
 
18479
19414
# If no C compiler was specified, use CC.
18480
19415
LTCC=${LTCC-"$CC"}
18481
19416
 
 
19417
# If no C compiler flags were specified, use CFLAGS.
 
19418
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19419
 
18482
19420
# Allow CC to be a program name with arguments.
18483
19421
compiler=$CC
18484
19422
 
18485
19423
 
 
19424
# save warnings/boilerplate of simple test code
 
19425
ac_outfile=conftest.$ac_objext
 
19426
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19427
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19428
_lt_compiler_boilerplate=`cat conftest.err`
 
19429
$rm conftest*
 
19430
 
 
19431
ac_outfile=conftest.$ac_objext
 
19432
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19433
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19434
_lt_linker_boilerplate=`cat conftest.err`
 
19435
$rm conftest*
 
19436
 
 
19437
 
18486
19438
# Allow CC to be a program name with arguments.
18487
19439
lt_save_CC="$CC"
18488
19440
CC=${RC-"windres"}
18489
19441
compiler=$CC
18490
19442
compiler_RC=$CC
 
19443
for cc_temp in $compiler""; do
 
19444
  case $cc_temp in
 
19445
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19446
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19447
    \-*) ;;
 
19448
    *) break;;
 
19449
  esac
 
19450
done
 
19451
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19452
 
18491
19453
lt_cv_prog_compiler_c_o_RC=yes
18492
19454
 
18493
19455
# The else clause should only fire when bootstrapping the
18503
19465
  # Now quote all the things that may contain metacharacters while being
18504
19466
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18505
19467
  # variables and quote the copies for generation of the libtool script.
18506
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19468
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18507
19469
    SED SHELL STRIP \
18508
19470
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509
19471
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18604
19566
# The host system.
18605
19567
host_alias=$host_alias
18606
19568
host=$host
 
19569
host_os=$host_os
 
19570
 
 
19571
# The build system.
 
19572
build_alias=$build_alias
 
19573
build=$build
 
19574
build_os=$build_os
18607
19575
 
18608
19576
# An echo program that does not interpret backslashes.
18609
19577
echo=$lt_echo
18615
19583
# A C compiler.
18616
19584
LTCC=$lt_LTCC
18617
19585
 
 
19586
# LTCC compiler flags.
 
19587
LTCFLAGS=$lt_LTCFLAGS
 
19588
 
18618
19589
# A language-specific compiler.
18619
19590
CC=$lt_compiler_RC
18620
19591
 
18665
19636
libext="$libext"
18666
19637
 
18667
19638
# Shared library suffix (normally ".so").
18668
 
shrext='$shrext'
 
19639
shrext_cmds='$shrext_cmds'
18669
19640
 
18670
19641
# Executable file suffix (normally "").
18671
19642
exeext="$exeext"
18680
19651
# Does compiler simultaneously support -c and -o options?
18681
19652
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18682
19653
 
18683
 
# Must we lock files when doing compilation ?
 
19654
# Must we lock files when doing compilation?
18684
19655
need_locks=$lt_need_locks
18685
19656
 
18686
19657
# Do we need the lib prefix for modules?
18955
19926
 
18956
19927
 
18957
19928
 
18958
 
# Check whether --enable-shared or --disable-shared was given.
 
19929
# Check whether --enable-shared was given.
18959
19930
if test "${enable_shared+set}" = set; then
18960
 
  enableval="$enable_shared"
18961
 
  p=${PACKAGE-default}
 
19931
  enableval=$enable_shared; p=${PACKAGE-default}
18962
19932
    case $enableval in
18963
19933
    yes) enable_shared=yes ;;
18964
19934
    no) enable_shared=no ;;
18977
19947
    esac
18978
19948
else
18979
19949
  enable_shared=yes
18980
 
fi;
18981
 
 
18982
 
# Check whether --enable-static or --disable-static was given.
 
19950
fi
 
19951
 
 
19952
 
 
19953
# Check whether --enable-static was given.
18983
19954
if test "${enable_static+set}" = set; then
18984
 
  enableval="$enable_static"
18985
 
  p=${PACKAGE-default}
 
19955
  enableval=$enable_static; p=${PACKAGE-default}
18986
19956
    case $enableval in
18987
19957
    yes) enable_static=yes ;;
18988
19958
    no) enable_static=no ;;
19001
19971
    esac
19002
19972
else
19003
19973
  enable_static=no
19004
 
fi;
19005
 
 
19006
 
 
19007
 
 
19008
 
 
19009
 
# Check whether --enable-glib or --disable-glib was given.
19010
 
if test "${enable_glib+set}" = set; then
19011
 
  enableval="$enable_glib"
19012
 
  use_glib=$enableval
19013
 
else
19014
 
  use_glib="yes"
19015
 
fi;
19016
 
 
19017
 
if test "x$use_glib" = "xyes"; then
19018
 
        # Check whether --enable-glibtest or --disable-glibtest was given.
19019
 
if test "${enable_glibtest+set}" = set; then
19020
 
  enableval="$enable_glibtest"
19021
 
 
19022
 
else
19023
 
  enable_glibtest=yes
19024
 
fi;
19025
 
 
19026
 
  pkg_config_args=glib-2.0
19027
 
  for module in . gthread
19028
 
  do
19029
 
      case "$module" in
19030
 
         gmodule)
19031
 
             pkg_config_args="$pkg_config_args gmodule-2.0"
19032
 
         ;;
19033
 
         gobject)
19034
 
             pkg_config_args="$pkg_config_args gobject-2.0"
19035
 
         ;;
19036
 
         gthread)
19037
 
             pkg_config_args="$pkg_config_args gthread-2.0"
19038
 
         ;;
19039
 
      esac
19040
 
  done
19041
 
 
19042
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
19043
 
set dummy pkg-config; ac_word=$2
19044
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19045
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19046
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19048
 
else
19049
 
  case $PKG_CONFIG in
19050
 
  [\\/]* | ?:[\\/]*)
19051
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19052
 
  ;;
19053
 
  *)
19054
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055
 
for as_dir in $PATH
19056
 
do
19057
 
  IFS=$as_save_IFS
19058
 
  test -z "$as_dir" && as_dir=.
19059
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19060
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19061
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19062
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19063
 
    break 2
19064
 
  fi
19065
 
done
19066
 
done
19067
 
 
19068
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19069
 
  ;;
19070
 
esac
19071
 
fi
19072
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19073
 
 
19074
 
if test -n "$PKG_CONFIG"; then
19075
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19076
 
echo "${ECHO_T}$PKG_CONFIG" >&6
19077
 
else
19078
 
  echo "$as_me:$LINENO: result: no" >&5
19079
 
echo "${ECHO_T}no" >&6
19080
 
fi
19081
 
 
19082
 
 
19083
 
  no_glib=""
19084
 
 
19085
 
  if test x$PKG_CONFIG != xno ; then
19086
 
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
19087
 
      :
19088
 
    else
19089
 
      echo *** pkg-config too old; version 0.7 or better required.
19090
 
      no_glib=yes
19091
 
      PKG_CONFIG=no
19092
 
    fi
19093
 
  else
19094
 
    no_glib=yes
19095
 
  fi
19096
 
 
19097
 
  min_glib_version=2.0.0
19098
 
  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
19099
 
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
19100
 
 
19101
 
  if test x$PKG_CONFIG != xno ; then
19102
 
    ## don't try to run the test against uninstalled libtool libs
19103
 
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
19104
 
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
19105
 
          enable_glibtest=no
19106
 
    fi
19107
 
 
19108
 
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
19109
 
          :
19110
 
    else
19111
 
          no_glib=yes
19112
 
    fi
19113
 
  fi
19114
 
 
19115
 
  if test x"$no_glib" = x ; then
19116
 
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
19117
 
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
19118
 
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19119
 
 
19120
 
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
19121
 
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
19122
 
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
19123
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19124
 
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
19125
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19126
 
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
19127
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19128
 
    if test "x$enable_glibtest" = "xyes" ; then
19129
 
      ac_save_CFLAGS="$CFLAGS"
19130
 
      ac_save_LIBS="$LIBS"
19131
 
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
19132
 
      LIBS="$GLIB_LIBS $LIBS"
19133
 
      rm -f conf.glibtest
19134
 
      if test "$cross_compiling" = yes; then
19135
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
19136
 
else
19137
 
  cat >conftest.$ac_ext <<_ACEOF
19138
 
/* confdefs.h.  */
19139
 
_ACEOF
19140
 
cat confdefs.h >>conftest.$ac_ext
19141
 
cat >>conftest.$ac_ext <<_ACEOF
19142
 
/* end confdefs.h.  */
19143
 
 
19144
 
#include <glib.h>
19145
 
#include <stdio.h>
19146
 
#include <stdlib.h>
19147
 
 
19148
 
int
19149
 
main ()
19150
 
{
19151
 
  int major, minor, micro;
19152
 
  char *tmp_version;
19153
 
 
19154
 
  system ("touch conf.glibtest");
19155
 
 
19156
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
19157
 
  tmp_version = g_strdup("$min_glib_version");
19158
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19159
 
     printf("%s, bad version string\n", "$min_glib_version");
19160
 
     exit(1);
19161
 
   }
19162
 
 
19163
 
  if ((glib_major_version != $glib_config_major_version) ||
19164
 
      (glib_minor_version != $glib_config_minor_version) ||
19165
 
      (glib_micro_version != $glib_config_micro_version))
19166
 
    {
19167
 
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
19168
 
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
19169
 
             glib_major_version, glib_minor_version, glib_micro_version);
19170
 
      printf ("*** was found! If pkg-config was correct, then it is best\n");
19171
 
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
19172
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19173
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19174
 
      printf("*** required on your system.\n");
19175
 
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19176
 
      printf("*** to point to the correct configuration files\n");
19177
 
    }
19178
 
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
19179
 
           (glib_minor_version != GLIB_MINOR_VERSION) ||
19180
 
           (glib_micro_version != GLIB_MICRO_VERSION))
19181
 
    {
19182
 
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
19183
 
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
19184
 
      printf("*** library (version %d.%d.%d)\n",
19185
 
             glib_major_version, glib_minor_version, glib_micro_version);
19186
 
    }
19187
 
  else
19188
 
    {
19189
 
      if ((glib_major_version > major) ||
19190
 
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
19191
 
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
19192
 
      {
19193
 
        return 0;
19194
 
       }
19195
 
     else
19196
 
      {
19197
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
19198
 
               glib_major_version, glib_minor_version, glib_micro_version);
19199
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
19200
 
               major, minor, micro);
19201
 
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
19202
 
        printf("***\n");
19203
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
19204
 
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19205
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
19206
 
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
19207
 
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19208
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19209
 
        printf("*** so that the correct libraries are found at run-time))\n");
19210
 
      }
19211
 
    }
19212
 
  return 1;
19213
 
}
19214
 
 
19215
 
_ACEOF
19216
 
rm -f conftest$ac_exeext
19217
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218
 
  (eval $ac_link) 2>&5
19219
 
  ac_status=$?
19220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19222
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223
 
  (eval $ac_try) 2>&5
19224
 
  ac_status=$?
19225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226
 
  (exit $ac_status); }; }; then
19227
 
  :
19228
 
else
19229
 
  echo "$as_me: program exited with status $ac_status" >&5
19230
 
echo "$as_me: failed program was:" >&5
19231
 
sed 's/^/| /' conftest.$ac_ext >&5
19232
 
 
19233
 
( exit $ac_status )
19234
 
no_glib=yes
19235
 
fi
19236
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19237
 
fi
19238
 
       CFLAGS="$ac_save_CFLAGS"
19239
 
       LIBS="$ac_save_LIBS"
19240
 
     fi
19241
 
  fi
19242
 
  if test "x$no_glib" = x ; then
19243
 
     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
19244
 
echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
19245
 
 
19246
 
cat >>confdefs.h <<\_ACEOF
19247
 
#define HAVE_GLIB 1
19248
 
_ACEOF
19249
 
 
19250
 
  else
19251
 
     echo "$as_me:$LINENO: result: no" >&5
19252
 
echo "${ECHO_T}no" >&6
19253
 
     if test "$PKG_CONFIG" = "no" ; then
19254
 
       echo "*** A new enough version of pkg-config was not found."
19255
 
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
19256
 
     else
19257
 
       if test -f conf.glibtest ; then
19258
 
        :
19259
 
       else
19260
 
          echo "*** Could not run GLIB test program, checking why..."
19261
 
          ac_save_CFLAGS="$CFLAGS"
19262
 
          ac_save_LIBS="$LIBS"
19263
 
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
19264
 
          LIBS="$LIBS $GLIB_LIBS"
19265
 
          cat >conftest.$ac_ext <<_ACEOF
19266
 
/* confdefs.h.  */
19267
 
_ACEOF
19268
 
cat confdefs.h >>conftest.$ac_ext
19269
 
cat >>conftest.$ac_ext <<_ACEOF
19270
 
/* end confdefs.h.  */
19271
 
 
19272
 
#include <glib.h>
19273
 
#include <stdio.h>
19274
 
 
19275
 
int
19276
 
main ()
19277
 
{
19278
 
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
19279
 
  ;
19280
 
  return 0;
19281
 
}
19282
 
_ACEOF
19283
 
rm -f conftest.$ac_objext conftest$ac_exeext
19284
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285
 
  (eval $ac_link) 2>conftest.er1
19286
 
  ac_status=$?
19287
 
  grep -v '^ *+' conftest.er1 >conftest.err
19288
 
  rm -f conftest.er1
19289
 
  cat conftest.err >&5
19290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291
 
  (exit $ac_status); } &&
19292
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294
 
  (eval $ac_try) 2>&5
19295
 
  ac_status=$?
19296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297
 
  (exit $ac_status); }; } &&
19298
 
         { ac_try='test -s conftest$ac_exeext'
19299
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300
 
  (eval $ac_try) 2>&5
19301
 
  ac_status=$?
19302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303
 
  (exit $ac_status); }; }; then
19304
 
   echo "*** The test program compiled, but did not run. This usually means"
19305
 
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
19306
 
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
19307
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19308
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19309
 
          echo "*** is required on your system"
19310
 
          echo "***"
19311
 
          echo "*** If you have an old version installed, it is best to remove it, although"
19312
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19313
 
else
19314
 
  echo "$as_me: failed program was:" >&5
19315
 
sed 's/^/| /' conftest.$ac_ext >&5
19316
 
 
19317
 
 echo "*** The test program failed to compile or link. See the file config.log for the"
19318
 
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
19319
 
fi
19320
 
rm -f conftest.err conftest.$ac_objext \
19321
 
      conftest$ac_exeext conftest.$ac_ext
19322
 
          CFLAGS="$ac_save_CFLAGS"
19323
 
          LIBS="$ac_save_LIBS"
19324
 
       fi
19325
 
     fi
19326
 
     GLIB_CFLAGS=""
19327
 
     GLIB_LIBS=""
19328
 
     GLIB_GENMARSHAL=""
19329
 
     GOBJECT_QUERY=""
19330
 
     GLIB_MKENUMS=""
19331
 
     use_glib=no
19332
 
  fi
19333
 
 
19334
 
 
19335
 
 
19336
 
 
19337
 
 
19338
 
  rm -f conf.glibtest
19339
 
 
19340
 
fi
19341
 
 
19342
 
if test "x$use_glib" != "xyes" ; then
19343
 
        rtcp_enabled=no ;
19344
 
fi
19345
 
if test $rtcp_enabled = "yes"; then
19346
 
 
19347
 
cat >>confdefs.h <<\_ACEOF
19348
 
#define RTCP 1
19349
 
_ACEOF
19350
 
 
19351
 
fi
19352
 
 
19353
 
 
19354
 
 
19355
 
 
19356
 
if test "x$use_glib" = "xyes"; then
19357
 
  GLIB_SUPPORT_TRUE=
19358
 
  GLIB_SUPPORT_FALSE='#'
19359
 
else
19360
 
  GLIB_SUPPORT_TRUE='#'
19361
 
  GLIB_SUPPORT_FALSE=
19362
 
fi
 
19974
fi
 
19975
 
19363
19976
 
19364
19977
 
19365
19978
if test "$GCC" != "yes" ; then
19366
19979
        if test "$hpux_host" = "yes" ; then
19367
 
                                        CFLAGS=" +O2 -g "
 
19980
                                        CFLAGS="$CFLAGS +O2 -g "
19368
19981
                if test x$mode64bit_enabled = xyes ; then
19369
19982
                        CFLAGS="$CFLAGS +DA2.0W +DS2.0"
19370
19983
                fi
19371
19984
        fi
19372
19985
else
19373
 
        CFLAGS="-O2 -g -Wall"
 
19986
        CFLAGS="$CFLAGS -Wall"
19374
19987
fi
19375
19988
 
19376
19989
build_scheduler=yes
19379
19992
for ac_func in seteuid
19380
19993
do
19381
19994
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19382
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19383
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19384
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19995
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19996
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19997
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19385
19998
  echo $ECHO_N "(cached) $ECHO_C" >&6
19386
19999
else
19387
20000
  cat >conftest.$ac_ext <<_ACEOF
19407
20020
 
19408
20021
#undef $ac_func
19409
20022
 
19410
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20023
/* Override any GCC internal prototype to avoid an error.
 
20024
   Use char because int might match the return type of a GCC
 
20025
   builtin and then its argument prototype would still apply.  */
19411
20026
#ifdef __cplusplus
19412
20027
extern "C"
19413
 
{
19414
20028
#endif
19415
 
/* We use char because int might match the return type of a gcc2
19416
 
   builtin and then its argument prototype would still apply.  */
19417
20029
char $ac_func ();
19418
20030
/* The GNU C library defines this for functions which it implements
19419
20031
    to always fail with ENOSYS.  Some functions are actually named
19420
20032
    something starting with __ and the normal name is an alias.  */
19421
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20033
#if defined __stub_$ac_func || defined __stub___$ac_func
19422
20034
choke me
19423
 
#else
19424
 
char (*f) () = $ac_func;
19425
 
#endif
19426
 
#ifdef __cplusplus
19427
 
}
19428
20035
#endif
19429
20036
 
19430
20037
int
19431
20038
main ()
19432
20039
{
19433
 
return f != $ac_func;
 
20040
return $ac_func ();
19434
20041
  ;
19435
20042
  return 0;
19436
20043
}
19437
20044
_ACEOF
19438
20045
rm -f conftest.$ac_objext conftest$ac_exeext
19439
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19440
 
  (eval $ac_link) 2>conftest.er1
 
20046
if { (ac_try="$ac_link"
 
20047
case "(($ac_try" in
 
20048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20049
  *) ac_try_echo=$ac_try;;
 
20050
esac
 
20051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20052
  (eval "$ac_link") 2>conftest.er1
19441
20053
  ac_status=$?
19442
20054
  grep -v '^ *+' conftest.er1 >conftest.err
19443
20055
  rm -f conftest.er1
19444
20056
  cat conftest.err >&5
19445
20057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446
20058
  (exit $ac_status); } &&
19447
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449
 
  (eval $ac_try) 2>&5
 
20059
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20060
  { (case "(($ac_try" in
 
20061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20062
  *) ac_try_echo=$ac_try;;
 
20063
esac
 
20064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20065
  (eval "$ac_try") 2>&5
19450
20066
  ac_status=$?
19451
20067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452
20068
  (exit $ac_status); }; } &&
19453
20069
         { ac_try='test -s conftest$ac_exeext'
19454
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455
 
  (eval $ac_try) 2>&5
 
20070
  { (case "(($ac_try" in
 
20071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20072
  *) ac_try_echo=$ac_try;;
 
20073
esac
 
20074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20075
  (eval "$ac_try") 2>&5
19456
20076
  ac_status=$?
19457
20077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458
20078
  (exit $ac_status); }; }; then
19461
20081
  echo "$as_me: failed program was:" >&5
19462
20082
sed 's/^/| /' conftest.$ac_ext >&5
19463
20083
 
19464
 
eval "$as_ac_var=no"
 
20084
        eval "$as_ac_var=no"
19465
20085
fi
19466
 
rm -f conftest.err conftest.$ac_objext \
 
20086
 
 
20087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467
20088
      conftest$ac_exeext conftest.$ac_ext
19468
20089
fi
19469
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19470
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20090
ac_res=`eval echo '${'$as_ac_var'}'`
 
20091
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20092
echo "${ECHO_T}$ac_res" >&6; }
19471
20093
if test `eval echo '${'$as_ac_var'}'` = yes; then
19472
20094
  cat >>confdefs.h <<_ACEOF
19473
20095
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19477
20099
done
19478
20100
 
19479
20101
 
19480
 
if test "$use_glib" = "no" ; then
19481
 
                echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
19482
 
echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
 
20102
 
 
20103
{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
 
20104
echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
19483
20105
if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
19484
20106
  echo $ECHO_N "(cached) $ECHO_C" >&6
19485
20107
else
19492
20114
cat >>conftest.$ac_ext <<_ACEOF
19493
20115
/* end confdefs.h.  */
19494
20116
 
19495
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20117
/* Override any GCC internal prototype to avoid an error.
 
20118
   Use char because int might match the return type of a GCC
 
20119
   builtin and then its argument prototype would still apply.  */
19496
20120
#ifdef __cplusplus
19497
20121
extern "C"
19498
20122
#endif
19499
 
/* We use char because int might match the return type of a gcc2
19500
 
   builtin and then its argument prototype would still apply.  */
19501
20123
char pthread_mutex_init ();
19502
20124
int
19503
20125
main ()
19504
20126
{
19505
 
pthread_mutex_init ();
 
20127
return pthread_mutex_init ();
19506
20128
  ;
19507
20129
  return 0;
19508
20130
}
19509
20131
_ACEOF
19510
20132
rm -f conftest.$ac_objext conftest$ac_exeext
19511
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512
 
  (eval $ac_link) 2>conftest.er1
 
20133
if { (ac_try="$ac_link"
 
20134
case "(($ac_try" in
 
20135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20136
  *) ac_try_echo=$ac_try;;
 
20137
esac
 
20138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20139
  (eval "$ac_link") 2>conftest.er1
19513
20140
  ac_status=$?
19514
20141
  grep -v '^ *+' conftest.er1 >conftest.err
19515
20142
  rm -f conftest.er1
19516
20143
  cat conftest.err >&5
19517
20144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518
20145
  (exit $ac_status); } &&
19519
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19520
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521
 
  (eval $ac_try) 2>&5
 
20146
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20147
  { (case "(($ac_try" in
 
20148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20149
  *) ac_try_echo=$ac_try;;
 
20150
esac
 
20151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20152
  (eval "$ac_try") 2>&5
19522
20153
  ac_status=$?
19523
20154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524
20155
  (exit $ac_status); }; } &&
19525
20156
         { ac_try='test -s conftest$ac_exeext'
19526
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527
 
  (eval $ac_try) 2>&5
 
20157
  { (case "(($ac_try" in
 
20158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20159
  *) ac_try_echo=$ac_try;;
 
20160
esac
 
20161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20162
  (eval "$ac_try") 2>&5
19528
20163
  ac_status=$?
19529
20164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530
20165
  (exit $ac_status); }; }; then
19533
20168
  echo "$as_me: failed program was:" >&5
19534
20169
sed 's/^/| /' conftest.$ac_ext >&5
19535
20170
 
19536
 
ac_cv_lib_pthread_pthread_mutex_init=no
 
20171
        ac_cv_lib_pthread_pthread_mutex_init=no
19537
20172
fi
19538
 
rm -f conftest.err conftest.$ac_objext \
 
20173
 
 
20174
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19539
20175
      conftest$ac_exeext conftest.$ac_ext
19540
20176
LIBS=$ac_check_lib_save_LIBS
19541
20177
fi
19542
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19543
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
 
20178
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
 
20179
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19544
20180
if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
19545
20181
  pthread_enabled=yes
19546
20182
else
19547
20183
  pthread_enabled=no
19548
20184
fi
19549
20185
 
19550
 
        if test $pthread_enabled = "no" ; then
19551
 
                build_scheduler=no
19552
 
        else
19553
 
                PTHREAD_LIBS="-lpthread"
19554
 
                PTHREAD_CFLAGS="-D_REENTRANT"
19555
 
 
19556
 
 
19557
 
 
19558
 
        fi
 
20186
if test $pthread_enabled = "no" ; then
 
20187
        build_scheduler=no
 
20188
else
 
20189
        PTHREAD_LIBS="-lpthread"
 
20190
        PTHREAD_CFLAGS="-D_REENTRANT"
 
20191
 
 
20192
 
 
20193
 
19559
20194
fi
19560
20195
 
19561
20196
 
19562
 
 
19563
20197
if test $debug_enabled = "yes"; then
19564
 
 
19565
 
cat >>confdefs.h <<\_ACEOF
19566
 
#define RTP_DEBUG 1
19567
 
_ACEOF
19568
 
 
 
20198
        ORTP_DEFS="$ORTP_DEFS -DORTP_DEBUG_MODE -g"
 
20199
        CFLAGS=`echo $CFLAGS | sed 's/-O.//'`
19569
20200
fi
19570
20201
 
19571
 
# Check whether --enable-memcheck or --disable-memcheck was given.
 
20202
# Check whether --enable-memcheck was given.
19572
20203
if test "${enable_memcheck+set}" = set; then
19573
 
  enableval="$enable_memcheck"
19574
 
  case "${enableval}" in
 
20204
  enableval=$enable_memcheck; case "${enableval}" in
19575
20205
                                yes) memcheck_enabled=yes;;
19576
20206
                                no) memcheck_enabled=no;;
19577
20207
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-memcheck\"" >&5
19580
20210
                        esac
19581
20211
else
19582
20212
  memcheck_enabled=no
19583
 
fi;
 
20213
fi
 
20214
 
19584
20215
 
19585
20216
if test "$memcheck_enabled" = "yes" ; then
19586
20217
        if test "$hpux_host" = "yes" ; then
19590
20221
_ACEOF
19591
20222
 
19592
20223
        else
19593
 
                echo "WARNING ************ : the memory check option is only availlable for HPUX."
 
20224
                echo "WARNING ************ : the memory check option is only available for HPUX."
19594
20225
        fi
19595
20226
fi
19596
20227
 
19597
 
# Check whether --enable-hpuxkernel or --disable-hpuxkernel was given.
19598
 
if test "${enable_hpuxkernel+set}" = set; then
19599
 
  enableval="$enable_hpuxkernel"
19600
 
  case "${enableval}" in
19601
 
                                yes) target_is_hpuxkernel=yes;;
19602
 
                                no) target_is_hpuxkernel=no;;
19603
 
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-hpuxkernel\"" >&5
19604
 
echo "$as_me: error: \"Bad value for --enable-hpuxkernel\"" >&2;}
19605
 
   { (exit 1); exit 1; }; };;
19606
 
                        esac
19607
 
else
19608
 
  target_is_hpuxkernel=no
19609
 
fi;
19610
 
 
19611
 
if test $target_is_hpuxkernel = "yes" ; then
19612
 
 
19613
 
cat >>confdefs.h <<\_ACEOF
19614
 
#define TARGET_IS_HPUXKERNEL 1
19615
 
_ACEOF
19616
 
 
19617
 
        build_scheduler="no"
19618
 
else
19619
 
        ORTPLOG="-DG_LOG_DOMAIN=\"oRTP\""
19620
 
fi
19621
 
 
19622
 
 
19623
 
 
19624
 
if test "x$target_is_hpuxkernel" = "xyes"; then
19625
 
  HPUXKERNEL_TRUE=
19626
 
  HPUXKERNEL_FALSE='#'
19627
 
else
19628
 
  HPUXKERNEL_TRUE='#'
19629
 
  HPUXKERNEL_FALSE=
19630
 
fi
19631
 
 
19632
 
 
19633
 
 
19634
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19635
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20228
 
 
20229
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20230
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19636
20231
if test "${ac_cv_header_stdc+set}" = set; then
19637
20232
  echo $ECHO_N "(cached) $ECHO_C" >&6
19638
20233
else
19656
20251
}
19657
20252
_ACEOF
19658
20253
rm -f conftest.$ac_objext
19659
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660
 
  (eval $ac_compile) 2>conftest.er1
 
20254
if { (ac_try="$ac_compile"
 
20255
case "(($ac_try" in
 
20256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20257
  *) ac_try_echo=$ac_try;;
 
20258
esac
 
20259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20260
  (eval "$ac_compile") 2>conftest.er1
19661
20261
  ac_status=$?
19662
20262
  grep -v '^ *+' conftest.er1 >conftest.err
19663
20263
  rm -f conftest.er1
19664
20264
  cat conftest.err >&5
19665
20265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666
20266
  (exit $ac_status); } &&
19667
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669
 
  (eval $ac_try) 2>&5
 
20267
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20268
  { (case "(($ac_try" in
 
20269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20270
  *) ac_try_echo=$ac_try;;
 
20271
esac
 
20272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20273
  (eval "$ac_try") 2>&5
19670
20274
  ac_status=$?
19671
20275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672
20276
  (exit $ac_status); }; } &&
19673
20277
         { ac_try='test -s conftest.$ac_objext'
19674
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675
 
  (eval $ac_try) 2>&5
 
20278
  { (case "(($ac_try" in
 
20279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20280
  *) ac_try_echo=$ac_try;;
 
20281
esac
 
20282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20283
  (eval "$ac_try") 2>&5
19676
20284
  ac_status=$?
19677
20285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678
20286
  (exit $ac_status); }; }; then
19681
20289
  echo "$as_me: failed program was:" >&5
19682
20290
sed 's/^/| /' conftest.$ac_ext >&5
19683
20291
 
19684
 
ac_cv_header_stdc=no
 
20292
        ac_cv_header_stdc=no
19685
20293
fi
19686
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20294
 
 
20295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687
20296
 
19688
20297
if test $ac_cv_header_stdc = yes; then
19689
20298
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19739
20348
cat >>conftest.$ac_ext <<_ACEOF
19740
20349
/* end confdefs.h.  */
19741
20350
#include <ctype.h>
 
20351
#include <stdlib.h>
19742
20352
#if ((' ' & 0x0FF) == 0x020)
19743
20353
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19744
20354
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19758
20368
  for (i = 0; i < 256; i++)
19759
20369
    if (XOR (islower (i), ISLOWER (i))
19760
20370
        || toupper (i) != TOUPPER (i))
19761
 
      exit(2);
19762
 
  exit (0);
 
20371
      return 2;
 
20372
  return 0;
19763
20373
}
19764
20374
_ACEOF
19765
20375
rm -f conftest$ac_exeext
19766
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767
 
  (eval $ac_link) 2>&5
 
20376
if { (ac_try="$ac_link"
 
20377
case "(($ac_try" in
 
20378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20379
  *) ac_try_echo=$ac_try;;
 
20380
esac
 
20381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20382
  (eval "$ac_link") 2>&5
19768
20383
  ac_status=$?
19769
20384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770
20385
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772
 
  (eval $ac_try) 2>&5
 
20386
  { (case "(($ac_try" in
 
20387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20388
  *) ac_try_echo=$ac_try;;
 
20389
esac
 
20390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20391
  (eval "$ac_try") 2>&5
19773
20392
  ac_status=$?
19774
20393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775
20394
  (exit $ac_status); }; }; then
19782
20401
( exit $ac_status )
19783
20402
ac_cv_header_stdc=no
19784
20403
fi
19785
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19786
 
fi
19787
 
fi
19788
 
fi
19789
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19790
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20404
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20405
fi
 
20406
 
 
20407
 
 
20408
fi
 
20409
fi
 
20410
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20411
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19791
20412
if test $ac_cv_header_stdc = yes; then
19792
20413
 
19793
20414
cat >>confdefs.h <<\_ACEOF
19801
20422
 
19802
20423
 
19803
20424
 
19804
 
for ac_header in fcntl.h sys/time.h unistd.h sys/audio.h linux/soundcard.h
 
20425
 
 
20426
 
 
20427
 
 
20428
for ac_header in poll.h sys/poll.h sys/uio.h fcntl.h sys/time.h unistd.h sys/audio.h linux/soundcard.h
19805
20429
do
19806
20430
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19807
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19808
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19809
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19810
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20431
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20432
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20433
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20434
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19811
20435
  echo $ECHO_N "(cached) $ECHO_C" >&6
19812
20436
fi
19813
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19814
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20437
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20438
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20439
echo "${ECHO_T}$ac_res" >&6; }
19815
20440
else
19816
20441
  # Is the header compilable?
19817
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19818
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20442
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20443
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19819
20444
cat >conftest.$ac_ext <<_ACEOF
19820
20445
/* confdefs.h.  */
19821
20446
_ACEOF
19826
20451
#include <$ac_header>
19827
20452
_ACEOF
19828
20453
rm -f conftest.$ac_objext
19829
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19830
 
  (eval $ac_compile) 2>conftest.er1
 
20454
if { (ac_try="$ac_compile"
 
20455
case "(($ac_try" in
 
20456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20457
  *) ac_try_echo=$ac_try;;
 
20458
esac
 
20459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20460
  (eval "$ac_compile") 2>conftest.er1
19831
20461
  ac_status=$?
19832
20462
  grep -v '^ *+' conftest.er1 >conftest.err
19833
20463
  rm -f conftest.er1
19834
20464
  cat conftest.err >&5
19835
20465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836
20466
  (exit $ac_status); } &&
19837
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839
 
  (eval $ac_try) 2>&5
 
20467
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20468
  { (case "(($ac_try" in
 
20469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20470
  *) ac_try_echo=$ac_try;;
 
20471
esac
 
20472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20473
  (eval "$ac_try") 2>&5
19840
20474
  ac_status=$?
19841
20475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842
20476
  (exit $ac_status); }; } &&
19843
20477
         { ac_try='test -s conftest.$ac_objext'
19844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845
 
  (eval $ac_try) 2>&5
 
20478
  { (case "(($ac_try" in
 
20479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20480
  *) ac_try_echo=$ac_try;;
 
20481
esac
 
20482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20483
  (eval "$ac_try") 2>&5
19846
20484
  ac_status=$?
19847
20485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848
20486
  (exit $ac_status); }; }; then
19851
20489
  echo "$as_me: failed program was:" >&5
19852
20490
sed 's/^/| /' conftest.$ac_ext >&5
19853
20491
 
19854
 
ac_header_compiler=no
 
20492
        ac_header_compiler=no
19855
20493
fi
19856
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19857
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19858
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
20494
 
 
20495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20496
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20497
echo "${ECHO_T}$ac_header_compiler" >&6; }
19859
20498
 
19860
20499
# Is the header present?
19861
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19862
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20500
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20501
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19863
20502
cat >conftest.$ac_ext <<_ACEOF
19864
20503
/* confdefs.h.  */
19865
20504
_ACEOF
19868
20507
/* end confdefs.h.  */
19869
20508
#include <$ac_header>
19870
20509
_ACEOF
19871
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19872
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20510
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20511
case "(($ac_try" in
 
20512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20513
  *) ac_try_echo=$ac_try;;
 
20514
esac
 
20515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20516
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19873
20517
  ac_status=$?
19874
20518
  grep -v '^ *+' conftest.er1 >conftest.err
19875
20519
  rm -f conftest.er1
19893
20537
 
19894
20538
  ac_header_preproc=no
19895
20539
fi
 
20540
 
19896
20541
rm -f conftest.err conftest.$ac_ext
19897
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19898
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
20542
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20543
echo "${ECHO_T}$ac_header_preproc" >&6; }
19899
20544
 
19900
20545
# So?  What about this header?
19901
20546
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919
20564
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19920
20565
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19921
20566
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19922
 
    (
19923
 
      cat <<\_ASBOX
19924
 
## ------------------------------------------ ##
19925
 
## Report this to the AC_PACKAGE_NAME lists.  ##
19926
 
## ------------------------------------------ ##
19927
 
_ASBOX
19928
 
    ) |
19929
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20567
 
19930
20568
    ;;
19931
20569
esac
19932
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19933
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19934
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20570
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20571
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20572
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19935
20573
  echo $ECHO_N "(cached) $ECHO_C" >&6
19936
20574
else
19937
20575
  eval "$as_ac_Header=\$ac_header_preproc"
19938
20576
fi
19939
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19940
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20577
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20578
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20579
echo "${ECHO_T}$ac_res" >&6; }
19941
20580
 
19942
20581
fi
19943
20582
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950
20589
done
19951
20590
 
19952
20591
 
19953
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19954
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
20592
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20593
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19955
20594
if test "${ac_cv_c_const+set}" = set; then
19956
20595
  echo $ECHO_N "(cached) $ECHO_C" >&6
19957
20596
else
19969
20608
#ifndef __cplusplus
19970
20609
  /* Ultrix mips cc rejects this.  */
19971
20610
  typedef int charset[2];
19972
 
  const charset x;
 
20611
  const charset cs;
19973
20612
  /* SunOS 4.1.1 cc rejects this.  */
19974
 
  char const *const *ccp;
19975
 
  char **p;
 
20613
  char const *const *pcpcc;
 
20614
  char **ppc;
19976
20615
  /* NEC SVR4.0.2 mips cc rejects this.  */
19977
20616
  struct point {int x, y;};
19978
20617
  static struct point const zero = {0,0};
19981
20620
     an arm of an if-expression whose if-part is not a constant
19982
20621
     expression */
19983
20622
  const char *g = "string";
19984
 
  ccp = &g + (g ? g-g : 0);
 
20623
  pcpcc = &g + (g ? g-g : 0);
19985
20624
  /* HPUX 7.0 cc rejects these. */
19986
 
  ++ccp;
19987
 
  p = (char**) ccp;
19988
 
  ccp = (char const *const *) p;
 
20625
  ++pcpcc;
 
20626
  ppc = (char**) pcpcc;
 
20627
  pcpcc = (char const *const *) ppc;
19989
20628
  { /* SCO 3.2v4 cc rejects this.  */
19990
20629
    char *t;
19991
20630
    char const *s = 0 ? (char *) 0 : (char const *) 0;
19992
20631
 
19993
20632
    *t++ = 0;
 
20633
    if (s) return 0;
19994
20634
  }
19995
20635
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19996
20636
    int x[] = {25, 17};
20009
20649
  }
20010
20650
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20011
20651
    const int foo = 10;
 
20652
    if (!foo) return 0;
20012
20653
  }
 
20654
  return !cs[0] && !zero.x;
20013
20655
#endif
20014
20656
 
20015
20657
  ;
20017
20659
}
20018
20660
_ACEOF
20019
20661
rm -f conftest.$ac_objext
20020
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20021
 
  (eval $ac_compile) 2>conftest.er1
 
20662
if { (ac_try="$ac_compile"
 
20663
case "(($ac_try" in
 
20664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20665
  *) ac_try_echo=$ac_try;;
 
20666
esac
 
20667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20668
  (eval "$ac_compile") 2>conftest.er1
20022
20669
  ac_status=$?
20023
20670
  grep -v '^ *+' conftest.er1 >conftest.err
20024
20671
  rm -f conftest.er1
20025
20672
  cat conftest.err >&5
20026
20673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027
20674
  (exit $ac_status); } &&
20028
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030
 
  (eval $ac_try) 2>&5
 
20675
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20676
  { (case "(($ac_try" in
 
20677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20678
  *) ac_try_echo=$ac_try;;
 
20679
esac
 
20680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20681
  (eval "$ac_try") 2>&5
20031
20682
  ac_status=$?
20032
20683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033
20684
  (exit $ac_status); }; } &&
20034
20685
         { ac_try='test -s conftest.$ac_objext'
20035
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036
 
  (eval $ac_try) 2>&5
 
20686
  { (case "(($ac_try" in
 
20687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20688
  *) ac_try_echo=$ac_try;;
 
20689
esac
 
20690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20691
  (eval "$ac_try") 2>&5
20037
20692
  ac_status=$?
20038
20693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039
20694
  (exit $ac_status); }; }; then
20042
20697
  echo "$as_me: failed program was:" >&5
20043
20698
sed 's/^/| /' conftest.$ac_ext >&5
20044
20699
 
20045
 
ac_cv_c_const=no
20046
 
fi
20047
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20048
 
fi
20049
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20050
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
20700
        ac_cv_c_const=no
 
20701
fi
 
20702
 
 
20703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20704
fi
 
20705
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20706
echo "${ECHO_T}$ac_cv_c_const" >&6; }
20051
20707
if test $ac_cv_c_const = no; then
20052
20708
 
20053
20709
cat >>confdefs.h <<\_ACEOF
20056
20712
 
20057
20713
fi
20058
20714
 
20059
 
echo "$as_me:$LINENO: checking for inline" >&5
20060
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
20715
{ echo "$as_me:$LINENO: checking for inline" >&5
 
20716
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20061
20717
if test "${ac_cv_c_inline+set}" = set; then
20062
20718
  echo $ECHO_N "(cached) $ECHO_C" >&6
20063
20719
else
20077
20733
 
20078
20734
_ACEOF
20079
20735
rm -f conftest.$ac_objext
20080
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081
 
  (eval $ac_compile) 2>conftest.er1
 
20736
if { (ac_try="$ac_compile"
 
20737
case "(($ac_try" in
 
20738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20739
  *) ac_try_echo=$ac_try;;
 
20740
esac
 
20741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20742
  (eval "$ac_compile") 2>conftest.er1
20082
20743
  ac_status=$?
20083
20744
  grep -v '^ *+' conftest.er1 >conftest.err
20084
20745
  rm -f conftest.er1
20085
20746
  cat conftest.err >&5
20086
20747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087
20748
  (exit $ac_status); } &&
20088
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20089
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090
 
  (eval $ac_try) 2>&5
 
20749
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20750
  { (case "(($ac_try" in
 
20751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20752
  *) ac_try_echo=$ac_try;;
 
20753
esac
 
20754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20755
  (eval "$ac_try") 2>&5
20091
20756
  ac_status=$?
20092
20757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093
20758
  (exit $ac_status); }; } &&
20094
20759
         { ac_try='test -s conftest.$ac_objext'
20095
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096
 
  (eval $ac_try) 2>&5
 
20760
  { (case "(($ac_try" in
 
20761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20762
  *) ac_try_echo=$ac_try;;
 
20763
esac
 
20764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20765
  (eval "$ac_try") 2>&5
20097
20766
  ac_status=$?
20098
20767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099
20768
  (exit $ac_status); }; }; then
20100
 
  ac_cv_c_inline=$ac_kw; break
 
20769
  ac_cv_c_inline=$ac_kw
20101
20770
else
20102
20771
  echo "$as_me: failed program was:" >&5
20103
20772
sed 's/^/| /' conftest.$ac_ext >&5
20104
20773
 
 
20774
 
20105
20775
fi
20106
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20776
 
 
20777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20778
  test "$ac_cv_c_inline" != no && break
20107
20779
done
20108
20780
 
20109
20781
fi
20110
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20111
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
20782
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
20783
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20112
20784
 
20113
20785
 
20114
20786
case $ac_cv_c_inline in
20126
20798
    ;;
20127
20799
esac
20128
20800
 
20129
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20130
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
20801
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20802
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20131
20803
if test "${ac_cv_header_time+set}" = set; then
20132
20804
  echo $ECHO_N "(cached) $ECHO_C" >&6
20133
20805
else
20151
20823
}
20152
20824
_ACEOF
20153
20825
rm -f conftest.$ac_objext
20154
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155
 
  (eval $ac_compile) 2>conftest.er1
 
20826
if { (ac_try="$ac_compile"
 
20827
case "(($ac_try" in
 
20828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20829
  *) ac_try_echo=$ac_try;;
 
20830
esac
 
20831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20832
  (eval "$ac_compile") 2>conftest.er1
20156
20833
  ac_status=$?
20157
20834
  grep -v '^ *+' conftest.er1 >conftest.err
20158
20835
  rm -f conftest.er1
20159
20836
  cat conftest.err >&5
20160
20837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
20838
  (exit $ac_status); } &&
20162
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164
 
  (eval $ac_try) 2>&5
 
20839
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20840
  { (case "(($ac_try" in
 
20841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20842
  *) ac_try_echo=$ac_try;;
 
20843
esac
 
20844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20845
  (eval "$ac_try") 2>&5
20165
20846
  ac_status=$?
20166
20847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167
20848
  (exit $ac_status); }; } &&
20168
20849
         { ac_try='test -s conftest.$ac_objext'
20169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170
 
  (eval $ac_try) 2>&5
 
20850
  { (case "(($ac_try" in
 
20851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20852
  *) ac_try_echo=$ac_try;;
 
20853
esac
 
20854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20855
  (eval "$ac_try") 2>&5
20171
20856
  ac_status=$?
20172
20857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173
20858
  (exit $ac_status); }; }; then
20176
20861
  echo "$as_me: failed program was:" >&5
20177
20862
sed 's/^/| /' conftest.$ac_ext >&5
20178
20863
 
20179
 
ac_cv_header_time=no
20180
 
fi
20181
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182
 
fi
20183
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20184
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
20864
        ac_cv_header_time=no
 
20865
fi
 
20866
 
 
20867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20868
fi
 
20869
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20870
echo "${ECHO_T}$ac_cv_header_time" >&6; }
20185
20871
if test $ac_cv_header_time = yes; then
20186
20872
 
20187
20873
cat >>confdefs.h <<\_ACEOF
20190
20876
 
20191
20877
fi
20192
20878
 
20193
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20194
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
20879
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20880
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20195
20881
if test "${ac_cv_c_bigendian+set}" = set; then
20196
20882
  echo $ECHO_N "(cached) $ECHO_C" >&6
20197
20883
else
20208
20894
int
20209
20895
main ()
20210
20896
{
20211
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
20897
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
20898
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20212
20899
 bogus endian macros
20213
20900
#endif
20214
20901
 
20217
20904
}
20218
20905
_ACEOF
20219
20906
rm -f conftest.$ac_objext
20220
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221
 
  (eval $ac_compile) 2>conftest.er1
 
20907
if { (ac_try="$ac_compile"
 
20908
case "(($ac_try" in
 
20909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20910
  *) ac_try_echo=$ac_try;;
 
20911
esac
 
20912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20913
  (eval "$ac_compile") 2>conftest.er1
20222
20914
  ac_status=$?
20223
20915
  grep -v '^ *+' conftest.er1 >conftest.err
20224
20916
  rm -f conftest.er1
20225
20917
  cat conftest.err >&5
20226
20918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227
20919
  (exit $ac_status); } &&
20228
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20229
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230
 
  (eval $ac_try) 2>&5
 
20920
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20921
  { (case "(($ac_try" in
 
20922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20923
  *) ac_try_echo=$ac_try;;
 
20924
esac
 
20925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20926
  (eval "$ac_try") 2>&5
20231
20927
  ac_status=$?
20232
20928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233
20929
  (exit $ac_status); }; } &&
20234
20930
         { ac_try='test -s conftest.$ac_objext'
20235
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236
 
  (eval $ac_try) 2>&5
 
20931
  { (case "(($ac_try" in
 
20932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20933
  *) ac_try_echo=$ac_try;;
 
20934
esac
 
20935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20936
  (eval "$ac_try") 2>&5
20237
20937
  ac_status=$?
20238
20938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239
20939
  (exit $ac_status); }; }; then
20259
20959
}
20260
20960
_ACEOF
20261
20961
rm -f conftest.$ac_objext
20262
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20263
 
  (eval $ac_compile) 2>conftest.er1
 
20962
if { (ac_try="$ac_compile"
 
20963
case "(($ac_try" in
 
20964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20965
  *) ac_try_echo=$ac_try;;
 
20966
esac
 
20967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20968
  (eval "$ac_compile") 2>conftest.er1
20264
20969
  ac_status=$?
20265
20970
  grep -v '^ *+' conftest.er1 >conftest.err
20266
20971
  rm -f conftest.er1
20267
20972
  cat conftest.err >&5
20268
20973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269
20974
  (exit $ac_status); } &&
20270
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272
 
  (eval $ac_try) 2>&5
 
20975
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20976
  { (case "(($ac_try" in
 
20977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20978
  *) ac_try_echo=$ac_try;;
 
20979
esac
 
20980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20981
  (eval "$ac_try") 2>&5
20273
20982
  ac_status=$?
20274
20983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275
20984
  (exit $ac_status); }; } &&
20276
20985
         { ac_try='test -s conftest.$ac_objext'
20277
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278
 
  (eval $ac_try) 2>&5
 
20986
  { (case "(($ac_try" in
 
20987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20988
  *) ac_try_echo=$ac_try;;
 
20989
esac
 
20990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20991
  (eval "$ac_try") 2>&5
20279
20992
  ac_status=$?
20280
20993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281
20994
  (exit $ac_status); }; }; then
20284
20997
  echo "$as_me: failed program was:" >&5
20285
20998
sed 's/^/| /' conftest.$ac_ext >&5
20286
20999
 
20287
 
ac_cv_c_bigendian=no
 
21000
        ac_cv_c_bigendian=no
20288
21001
fi
20289
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21002
 
 
21003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20290
21004
else
20291
21005
  echo "$as_me: failed program was:" >&5
20292
21006
sed 's/^/| /' conftest.$ac_ext >&5
20293
21007
 
20294
 
# It does not; compile a test program.
 
21008
        # It does not; compile a test program.
20295
21009
if test "$cross_compiling" = yes; then
20296
21010
  # try to guess the endianness by grepping values into an object file
20297
21011
  ac_cv_c_bigendian=unknown
20301
21015
cat confdefs.h >>conftest.$ac_ext
20302
21016
cat >>conftest.$ac_ext <<_ACEOF
20303
21017
/* end confdefs.h.  */
20304
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20305
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
21018
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
21019
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20306
21020
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20307
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20308
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
21021
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
21022
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20309
21023
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20310
21024
int
20311
21025
main ()
20316
21030
}
20317
21031
_ACEOF
20318
21032
rm -f conftest.$ac_objext
20319
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20320
 
  (eval $ac_compile) 2>conftest.er1
 
21033
if { (ac_try="$ac_compile"
 
21034
case "(($ac_try" in
 
21035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21036
  *) ac_try_echo=$ac_try;;
 
21037
esac
 
21038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21039
  (eval "$ac_compile") 2>conftest.er1
20321
21040
  ac_status=$?
20322
21041
  grep -v '^ *+' conftest.er1 >conftest.err
20323
21042
  rm -f conftest.er1
20324
21043
  cat conftest.err >&5
20325
21044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326
21045
  (exit $ac_status); } &&
20327
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20328
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329
 
  (eval $ac_try) 2>&5
 
21046
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21047
  { (case "(($ac_try" in
 
21048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21049
  *) ac_try_echo=$ac_try;;
 
21050
esac
 
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21052
  (eval "$ac_try") 2>&5
20330
21053
  ac_status=$?
20331
21054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332
21055
  (exit $ac_status); }; } &&
20333
21056
         { ac_try='test -s conftest.$ac_objext'
20334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335
 
  (eval $ac_try) 2>&5
 
21057
  { (case "(($ac_try" in
 
21058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21059
  *) ac_try_echo=$ac_try;;
 
21060
esac
 
21061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21062
  (eval "$ac_try") 2>&5
20336
21063
  ac_status=$?
20337
21064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338
21065
  (exit $ac_status); }; }; then
20351
21078
  echo "$as_me: failed program was:" >&5
20352
21079
sed 's/^/| /' conftest.$ac_ext >&5
20353
21080
 
 
21081
 
20354
21082
fi
20355
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21083
 
 
21084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356
21085
else
20357
21086
  cat >conftest.$ac_ext <<_ACEOF
20358
21087
/* confdefs.h.  */
20360
21089
cat confdefs.h >>conftest.$ac_ext
20361
21090
cat >>conftest.$ac_ext <<_ACEOF
20362
21091
/* end confdefs.h.  */
 
21092
$ac_includes_default
20363
21093
int
20364
21094
main ()
20365
21095
{
 
21096
 
20366
21097
  /* Are we little or big endian?  From Harbison&Steele.  */
20367
21098
  union
20368
21099
  {
20369
 
    long l;
20370
 
    char c[sizeof (long)];
 
21100
    long int l;
 
21101
    char c[sizeof (long int)];
20371
21102
  } u;
20372
21103
  u.l = 1;
20373
 
  exit (u.c[sizeof (long) - 1] == 1);
 
21104
  return u.c[sizeof (long int) - 1] == 1;
 
21105
 
 
21106
  ;
 
21107
  return 0;
20374
21108
}
20375
21109
_ACEOF
20376
21110
rm -f conftest$ac_exeext
20377
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20378
 
  (eval $ac_link) 2>&5
 
21111
if { (ac_try="$ac_link"
 
21112
case "(($ac_try" in
 
21113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21114
  *) ac_try_echo=$ac_try;;
 
21115
esac
 
21116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21117
  (eval "$ac_link") 2>&5
20379
21118
  ac_status=$?
20380
21119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
21120
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383
 
  (eval $ac_try) 2>&5
 
21121
  { (case "(($ac_try" in
 
21122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21123
  *) ac_try_echo=$ac_try;;
 
21124
esac
 
21125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21126
  (eval "$ac_try") 2>&5
20384
21127
  ac_status=$?
20385
21128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386
21129
  (exit $ac_status); }; }; then
20393
21136
( exit $ac_status )
20394
21137
ac_cv_c_bigendian=yes
20395
21138
fi
20396
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397
 
fi
20398
 
fi
20399
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400
 
fi
20401
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20402
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
21139
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21140
fi
 
21141
 
 
21142
 
 
21143
fi
 
21144
 
 
21145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21146
fi
 
21147
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
21148
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20403
21149
case $ac_cv_c_bigendian in
20404
21150
  yes)
20405
21151
 
20417
21163
   { (exit 1); exit 1; }; } ;;
20418
21164
esac
20419
21165
 
 
21166
if test x$ac_cv_c_bigendian = xyes ; then
 
21167
        ORTP_DEFS="$ORTP_DEFS -DORTP_BIGENDIAN"
 
21168
fi
20420
21169
 
20421
21170
 
20422
21171
 
20424
21173
for ac_func in select socket strerror
20425
21174
do
20426
21175
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20427
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20428
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20429
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21176
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21177
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21178
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20430
21179
  echo $ECHO_N "(cached) $ECHO_C" >&6
20431
21180
else
20432
21181
  cat >conftest.$ac_ext <<_ACEOF
20452
21201
 
20453
21202
#undef $ac_func
20454
21203
 
20455
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
21204
/* Override any GCC internal prototype to avoid an error.
 
21205
   Use char because int might match the return type of a GCC
 
21206
   builtin and then its argument prototype would still apply.  */
20456
21207
#ifdef __cplusplus
20457
21208
extern "C"
20458
 
{
20459
21209
#endif
20460
 
/* We use char because int might match the return type of a gcc2
20461
 
   builtin and then its argument prototype would still apply.  */
20462
21210
char $ac_func ();
20463
21211
/* The GNU C library defines this for functions which it implements
20464
21212
    to always fail with ENOSYS.  Some functions are actually named
20465
21213
    something starting with __ and the normal name is an alias.  */
20466
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21214
#if defined __stub_$ac_func || defined __stub___$ac_func
20467
21215
choke me
20468
 
#else
20469
 
char (*f) () = $ac_func;
20470
 
#endif
20471
 
#ifdef __cplusplus
20472
 
}
20473
21216
#endif
20474
21217
 
20475
21218
int
20476
21219
main ()
20477
21220
{
20478
 
return f != $ac_func;
 
21221
return $ac_func ();
20479
21222
  ;
20480
21223
  return 0;
20481
21224
}
20482
21225
_ACEOF
20483
21226
rm -f conftest.$ac_objext conftest$ac_exeext
20484
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20485
 
  (eval $ac_link) 2>conftest.er1
 
21227
if { (ac_try="$ac_link"
 
21228
case "(($ac_try" in
 
21229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21230
  *) ac_try_echo=$ac_try;;
 
21231
esac
 
21232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21233
  (eval "$ac_link") 2>conftest.er1
20486
21234
  ac_status=$?
20487
21235
  grep -v '^ *+' conftest.er1 >conftest.err
20488
21236
  rm -f conftest.er1
20489
21237
  cat conftest.err >&5
20490
21238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491
21239
  (exit $ac_status); } &&
20492
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20493
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494
 
  (eval $ac_try) 2>&5
 
21240
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21241
  { (case "(($ac_try" in
 
21242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21243
  *) ac_try_echo=$ac_try;;
 
21244
esac
 
21245
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21246
  (eval "$ac_try") 2>&5
20495
21247
  ac_status=$?
20496
21248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497
21249
  (exit $ac_status); }; } &&
20498
21250
         { ac_try='test -s conftest$ac_exeext'
20499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500
 
  (eval $ac_try) 2>&5
 
21251
  { (case "(($ac_try" in
 
21252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21253
  *) ac_try_echo=$ac_try;;
 
21254
esac
 
21255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21256
  (eval "$ac_try") 2>&5
20501
21257
  ac_status=$?
20502
21258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503
21259
  (exit $ac_status); }; }; then
20506
21262
  echo "$as_me: failed program was:" >&5
20507
21263
sed 's/^/| /' conftest.$ac_ext >&5
20508
21264
 
20509
 
eval "$as_ac_var=no"
 
21265
        eval "$as_ac_var=no"
20510
21266
fi
20511
 
rm -f conftest.err conftest.$ac_objext \
 
21267
 
 
21268
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20512
21269
      conftest$ac_exeext conftest.$ac_ext
20513
21270
fi
20514
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20515
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21271
ac_res=`eval echo '${'$as_ac_var'}'`
 
21272
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21273
echo "${ECHO_T}$ac_res" >&6; }
20516
21274
if test `eval echo '${'$as_ac_var'}'` = yes; then
20517
21275
  cat >>confdefs.h <<_ACEOF
20518
21276
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20522
21280
done
20523
21281
 
20524
21282
 
20525
 
if test $build_scheduler = "yes"; then
20526
 
 
20527
 
cat >>confdefs.h <<\_ACEOF
20528
 
#define BUILD_SCHEDULER 1
20529
 
_ACEOF
20530
 
 
20531
 
        if test $hpux_host = "yes" ; then
 
21283
if test $hpux_host = "yes" ; then
20532
21284
                posixtimer_interval=20000
20533
 
        fi
20534
 
 
20535
21285
fi
20536
21286
 
20537
21287
 
20540
21290
_ACEOF
20541
21291
 
20542
21292
 
20543
 
 
20544
 
 
20545
 
# Check whether --with-html-dir or --without-html-dir was given.
 
21293
if test $GCC = yes && test $wall_werror = yes;  then
 
21294
        CFLAGS="$CFLAGS -Werror "
 
21295
fi
 
21296
 
 
21297
ORTPDEPS_LIBS="$ORTPDEPS_LIBS $PTHREAD_LIBS $PTHREAD_LDFLAGS"
 
21298
ORTPDEPS_CFLAGS="$ORTPDEPS_CFLAGS $PTHREAD_CFLAGS $ORTP_DEFS"
 
21299
CFLAGS="$CFLAGS $ORTP_DEFS"
 
21300
echo "$ORTPDEPS_CFLAGS" > ortp.defs
 
21301
 
 
21302
 
 
21303
 
 
21304
 
 
21305
 
 
21306
 
 
21307
if true; then
 
21308
  HAVE_GTK_DOC_TRUE=
 
21309
  HAVE_GTK_DOC_FALSE='#'
 
21310
else
 
21311
  HAVE_GTK_DOC_TRUE='#'
 
21312
  HAVE_GTK_DOC_FALSE=
 
21313
fi
 
21314
 
 
21315
 
 
21316
 
 
21317
# Check whether --with-html-dir was given.
20546
21318
if test "${with_html_dir+set}" = set; then
20547
 
  withval="$with_html_dir"
20548
 
 
20549
 
fi;
20550
 
 
20551
 
if test "x$with_html_dir" = "x" ; then
20552
 
  HTML_DIR='${datadir}/gtk-doc/html'
20553
 
else
20554
 
  HTML_DIR=$with_html_dir
20555
 
fi
20556
 
 
20557
 
 
20558
 
 
20559
 
# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
20560
 
set dummy gtkdoc-mkdb; ac_word=$2
20561
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
20562
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20563
 
if test "${ac_cv_prog_GTKDOC+set}" = set; then
20564
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20565
 
else
20566
 
  if test -n "$GTKDOC"; then
20567
 
  ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
20568
 
else
20569
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570
 
for as_dir in $PATH
20571
 
do
20572
 
  IFS=$as_save_IFS
20573
 
  test -z "$as_dir" && as_dir=.
20574
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20575
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20576
 
    ac_cv_prog_GTKDOC="true"
20577
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20578
 
    break 2
20579
 
  fi
20580
 
done
20581
 
done
20582
 
 
20583
 
  test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
20584
 
fi
20585
 
fi
20586
 
GTKDOC=$ac_cv_prog_GTKDOC
20587
 
if test -n "$GTKDOC"; then
20588
 
  echo "$as_me:$LINENO: result: $GTKDOC" >&5
20589
 
echo "${ECHO_T}$GTKDOC" >&6
20590
 
else
20591
 
  echo "$as_me:$LINENO: result: no" >&5
20592
 
echo "${ECHO_T}no" >&6
20593
 
fi
20594
 
 
20595
 
 
20596
 
gtk_doc_min_version=0.6
20597
 
if $GTKDOC ; then
20598
 
    gtk_doc_version=`gtkdoc-mkdb --version`
20599
 
    echo "$as_me:$LINENO: checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version" >&5
20600
 
echo $ECHO_N "checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version... $ECHO_C" >&6
20601
 
    if perl <<EOF ; then
20602
 
      exit (("$gtk_doc_version" =~ /^[0-9]+\.[0-9]+$/) &&
20603
 
            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
20604
 
EOF
20605
 
      echo "$as_me:$LINENO: result: yes" >&5
20606
 
echo "${ECHO_T}yes" >&6
20607
 
   else
20608
 
      echo "$as_me:$LINENO: result: no" >&5
20609
 
echo "${ECHO_T}no" >&6
20610
 
      GTKDOC=false
20611
 
   fi
20612
 
fi
20613
 
 
20614
 
# Check whether --enable-gtk-doc or --disable-gtk-doc was given.
 
21319
  withval=$with_html_dir;
 
21320
else
 
21321
  with_html_dir='${datadir}/gtk-doc/html'
 
21322
fi
 
21323
 
 
21324
  HTML_DIR="$with_html_dir"
 
21325
 
 
21326
 
 
21327
    # Check whether --enable-gtk-doc was given.
20615
21328
if test "${enable_gtk_doc+set}" = set; then
20616
 
  enableval="$enable_gtk_doc"
20617
 
  enable_gtk_doc="$enableval"
20618
 
else
20619
 
  enable_gtk_doc=auto
20620
 
fi;
20621
 
 
20622
 
if test x$enable_gtk_doc = xauto ; then
20623
 
  if test x$GTKDOC = xtrue ; then
20624
 
    enable_gtk_doc=yes
20625
 
  else
20626
 
    enable_gtk_doc=no
20627
 
  fi
20628
 
fi
 
21329
  enableval=$enable_gtk_doc;
 
21330
else
 
21331
  enable_gtk_doc=no
 
21332
fi
 
21333
 
 
21334
 
 
21335
  have_gtk_doc=no
 
21336
  if test x$enable_gtk_doc = xyes; then
 
21337
    if test -z "$PKG_CONFIG"; then
 
21338
      # Extract the first word of "pkg-config", so it can be a program name with args.
 
21339
set dummy pkg-config; ac_word=$2
 
21340
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21342
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21344
else
 
21345
  case $PKG_CONFIG in
 
21346
  [\\/]* | ?:[\\/]*)
 
21347
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21348
  ;;
 
21349
  *)
 
21350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21351
for as_dir in $PATH
 
21352
do
 
21353
  IFS=$as_save_IFS
 
21354
  test -z "$as_dir" && as_dir=.
 
21355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21357
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21359
    break 2
 
21360
  fi
 
21361
done
 
21362
done
 
21363
IFS=$as_save_IFS
 
21364
 
 
21365
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21366
  ;;
 
21367
esac
 
21368
fi
 
21369
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21370
if test -n "$PKG_CONFIG"; then
 
21371
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21372
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
21373
else
 
21374
  { echo "$as_me:$LINENO: result: no" >&5
 
21375
echo "${ECHO_T}no" >&6; }
 
21376
fi
 
21377
 
 
21378
 
 
21379
    fi
 
21380
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
 
21381
      have_gtk_doc=yes
 
21382
    fi
 
21383
 
 
21384
 
 
21385
    if test "$have_gtk_doc" != yes; then
 
21386
      enable_gtk_doc=no
 
21387
    fi
 
21388
  fi
20629
21389
 
20630
21390
 
20631
21391
 
20639
21399
 
20640
21400
 
20641
21401
 
20642
 
 
20643
 
                                                  ac_config_files="$ac_config_files Makefile src/Makefile docs/Makefile build/Makefile build/win32/Makefile"
 
21402
if test -n "$LIBTOOL"; then
 
21403
  GTK_DOC_USE_LIBTOOL_TRUE=
 
21404
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
21405
else
 
21406
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
21407
  GTK_DOC_USE_LIBTOOL_FALSE=
 
21408
fi
 
21409
 
 
21410
 
 
21411
 
 
21412
 
 
21413
 
 
21414
# Extract the first word of "epm", so it can be a program name with args.
 
21415
set dummy epm; ac_word=$2
 
21416
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21418
if test "${ac_cv_path_EPM+set}" = set; then
 
21419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21420
else
 
21421
  case $EPM in
 
21422
  [\\/]* | ?:[\\/]*)
 
21423
  ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
 
21424
  ;;
 
21425
  *)
 
21426
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21427
for as_dir in $PATH
 
21428
do
 
21429
  IFS=$as_save_IFS
 
21430
  test -z "$as_dir" && as_dir=.
 
21431
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21433
    ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
 
21434
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21435
    break 2
 
21436
  fi
 
21437
done
 
21438
done
 
21439
IFS=$as_save_IFS
 
21440
 
 
21441
  test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="false"
 
21442
  ;;
 
21443
esac
 
21444
fi
 
21445
EPM=$ac_cv_path_EPM
 
21446
if test -n "$EPM"; then
 
21447
  { echo "$as_me:$LINENO: result: $EPM" >&5
 
21448
echo "${ECHO_T}$EPM" >&6; }
 
21449
else
 
21450
  { echo "$as_me:$LINENO: result: no" >&5
 
21451
echo "${ECHO_T}no" >&6; }
 
21452
fi
 
21453
 
 
21454
 
 
21455
# Extract the first word of "mkepmlist", so it can be a program name with args.
 
21456
set dummy mkepmlist; ac_word=$2
 
21457
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21458
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21459
if test "${ac_cv_path_MKEPMLIST+set}" = set; then
 
21460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21461
else
 
21462
  case $MKEPMLIST in
 
21463
  [\\/]* | ?:[\\/]*)
 
21464
  ac_cv_path_MKEPMLIST="$MKEPMLIST" # Let the user override the test with a path.
 
21465
  ;;
 
21466
  *)
 
21467
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21468
for as_dir in $PATH
 
21469
do
 
21470
  IFS=$as_save_IFS
 
21471
  test -z "$as_dir" && as_dir=.
 
21472
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21474
    ac_cv_path_MKEPMLIST="$as_dir/$ac_word$ac_exec_ext"
 
21475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21476
    break 2
 
21477
  fi
 
21478
done
 
21479
done
 
21480
IFS=$as_save_IFS
 
21481
 
 
21482
  test -z "$ac_cv_path_MKEPMLIST" && ac_cv_path_MKEPMLIST="false"
 
21483
  ;;
 
21484
esac
 
21485
fi
 
21486
MKEPMLIST=$ac_cv_path_MKEPMLIST
 
21487
if test -n "$MKEPMLIST"; then
 
21488
  { echo "$as_me:$LINENO: result: $MKEPMLIST" >&5
 
21489
echo "${ECHO_T}$MKEPMLIST" >&6; }
 
21490
else
 
21491
  { echo "$as_me:$LINENO: result: no" >&5
 
21492
echo "${ECHO_T}no" >&6; }
 
21493
fi
 
21494
 
 
21495
 
 
21496
# Extract the first word of "epminstall", so it can be a program name with args.
 
21497
set dummy epminstall; ac_word=$2
 
21498
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21500
if test "${ac_cv_path_EPMINSTALL+set}" = set; then
 
21501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21502
else
 
21503
  case $EPMINSTALL in
 
21504
  [\\/]* | ?:[\\/]*)
 
21505
  ac_cv_path_EPMINSTALL="$EPMINSTALL" # Let the user override the test with a path.
 
21506
  ;;
 
21507
  *)
 
21508
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21509
for as_dir in $PATH
 
21510
do
 
21511
  IFS=$as_save_IFS
 
21512
  test -z "$as_dir" && as_dir=.
 
21513
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21515
    ac_cv_path_EPMINSTALL="$as_dir/$ac_word$ac_exec_ext"
 
21516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21517
    break 2
 
21518
  fi
 
21519
done
 
21520
done
 
21521
IFS=$as_save_IFS
 
21522
 
 
21523
  test -z "$ac_cv_path_EPMINSTALL" && ac_cv_path_EPMINSTALL="false"
 
21524
  ;;
 
21525
esac
 
21526
fi
 
21527
EPMINSTALL=$ac_cv_path_EPMINSTALL
 
21528
if test -n "$EPMINSTALL"; then
 
21529
  { echo "$as_me:$LINENO: result: $EPMINSTALL" >&5
 
21530
echo "${ECHO_T}$EPMINSTALL" >&6; }
 
21531
else
 
21532
  { echo "$as_me:$LINENO: result: no" >&5
 
21533
echo "${ECHO_T}no" >&6; }
 
21534
fi
 
21535
 
 
21536
 
 
21537
 
 
21538
 
 
21539
if test $EPM != false && test $MKEPMLIST != false && test $EPMINSTALL != false; then
 
21540
  WITH_EPM_TRUE=
 
21541
  WITH_EPM_FALSE='#'
 
21542
else
 
21543
  WITH_EPM_TRUE='#'
 
21544
  WITH_EPM_FALSE=
 
21545
fi
 
21546
 
 
21547
 
 
21548
 
 
21549
# Preferred packaging system, as per EPM terminology
 
21550
case $target in
 
21551
*-*-linux*)
 
21552
        if test -f /etc/debian_version ; then
 
21553
                EPM_PKG_EXT=deb
 
21554
        else
 
21555
                EPM_PKG_EXT=rpm
 
21556
        fi
 
21557
        ;;
 
21558
*-hp-hpux*)
 
21559
        EPM_PKG_EXT=depot.gz;;
 
21560
*-dec-osf*)
 
21561
        EPM_PKG_EXT=setld;;
 
21562
esac
 
21563
 
 
21564
 
 
21565
# System software User & Group names
 
21566
case $target in
 
21567
*-*-linux*)
 
21568
        SYS_USER=root
 
21569
        SYS_GROUP=root
 
21570
        ;;
 
21571
*-*-hpux*|*-dec-osf*)
 
21572
        SYS_USER=bin
 
21573
        SYS_GROUP=bin
 
21574
        ;;
 
21575
esac
 
21576
 
 
21577
 
 
21578
 
 
21579
# CPU Architecture
 
21580
case $target_cpu in
 
21581
i?86)           ARCH=i386;;
 
21582
*)              ARCH=$target_cpu;;
 
21583
esac
 
21584
 
 
21585
 
 
21586
# Various other packaging variables, that can be over-ridden ad `make
 
21587
# package' time
 
21588
SUMMARY="An LGPL implementation of RTP - RFC3550"
 
21589
 
 
21590
PACKAGER=anonymous
 
21591
 
 
21592
LICENSE=LGPL
 
21593
 
 
21594
VENDOR=Linphone
 
21595
 
 
21596
RELEASE=1
 
21597
 
 
21598
 
 
21599
 
 
21600
 
 
21601
 
 
21602
 
 
21603
ac_config_files="$ac_config_files Makefile include/Makefile include/ortp/Makefile src/Makefile src/tests/Makefile src/tests/win_receiver/Makefile src/tests/win_sender/Makefile docs/Makefile build/Makefile build/win32native/Makefile build/wince/Makefile ortp.pc ortp.spec"
 
21604
 
20644
21605
cat >confcache <<\_ACEOF
20645
21606
# This file is a shell script that caches the results of configure
20646
21607
# tests run on this system so they can be shared between configure
20659
21620
 
20660
21621
# The following way of writing the cache mishandles newlines in values,
20661
21622
# but we know of no workaround that is simple, portable, and efficient.
20662
 
# So, don't put newlines in cache variables' values.
 
21623
# So, we kill variables containing newlines.
20663
21624
# Ultrix sh set writes to stderr and can't be redirected directly,
20664
21625
# and sets the high bit in the cache file unless we assign to the vars.
20665
 
{
 
21626
(
 
21627
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21628
    eval ac_val=\$$ac_var
 
21629
    case $ac_val in #(
 
21630
    *${as_nl}*)
 
21631
      case $ac_var in #(
 
21632
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
21633
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
21634
      esac
 
21635
      case $ac_var in #(
 
21636
      _ | IFS | as_nl) ;; #(
 
21637
      *) $as_unset $ac_var ;;
 
21638
      esac ;;
 
21639
    esac
 
21640
  done
 
21641
 
20666
21642
  (set) 2>&1 |
20667
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20668
 
    *ac_space=\ *)
 
21643
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21644
    *${as_nl}ac_space=\ *)
20669
21645
      # `set' does not quote correctly, so add quotes (double-quote
20670
21646
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20671
21647
      sed -n \
20672
21648
        "s/'/'\\\\''/g;
20673
21649
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20674
 
      ;;
 
21650
      ;; #(
20675
21651
    *)
20676
21652
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20677
 
      sed -n \
20678
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21653
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20679
21654
      ;;
20680
 
    esac;
20681
 
} |
 
21655
    esac |
 
21656
    sort
 
21657
) |
20682
21658
  sed '
 
21659
     /^ac_cv_env_/b end
20683
21660
     t clear
20684
 
     : clear
 
21661
     :clear
20685
21662
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20686
21663
     t end
20687
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20688
 
     : end' >>confcache
20689
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20690
 
  if test -w $cache_file; then
20691
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21664
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21665
     :end' >>confcache
 
21666
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21667
  if test -w "$cache_file"; then
 
21668
    test "x$cache_file" != "x/dev/null" &&
 
21669
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
21670
echo "$as_me: updating cache $cache_file" >&6;}
20692
21671
    cat confcache >$cache_file
20693
21672
  else
20694
 
    echo "not updating unwritable cache $cache_file"
 
21673
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
21674
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20695
21675
  fi
20696
21676
fi
20697
21677
rm -f confcache
20700
21680
# Let make expand exec_prefix.
20701
21681
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20702
21682
 
20703
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20704
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20705
 
# trailing colons and then remove the whole line if VPATH becomes empty
20706
 
# (actually we leave an empty line to preserve line numbers).
20707
 
if test "x$srcdir" = x.; then
20708
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20709
 
s/:*\$(srcdir):*/:/;
20710
 
s/:*\${srcdir}:*/:/;
20711
 
s/:*@srcdir@:*/:/;
20712
 
s/^\([^=]*=[     ]*\):*/\1/;
20713
 
s/:*$//;
20714
 
s/^[^=]*=[       ]*$//;
20715
 
}'
20716
 
fi
20717
 
 
20718
21683
DEFS=-DHAVE_CONFIG_H
20719
21684
 
20720
21685
ac_libobjs=
20721
21686
ac_ltlibobjs=
20722
21687
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20723
21688
  # 1. Remove the extension, and $U if already installed.
20724
 
  ac_i=`echo "$ac_i" |
20725
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20726
 
  # 2. Add them.
20727
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20728
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21689
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21690
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
21691
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21692
  #    will be set to the directory where LIBOBJS objects are built.
 
21693
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21694
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20729
21695
done
20730
21696
LIBOBJS=$ac_libobjs
20731
21697
 
20739
21705
Usually this means the macro was only invoked conditionally." >&2;}
20740
21706
   { (exit 1); exit 1; }; }
20741
21707
fi
20742
 
if test -z "${GLIB_SUPPORT_TRUE}" && test -z "${GLIB_SUPPORT_FALSE}"; then
20743
 
  { { echo "$as_me:$LINENO: error: conditional \"GLIB_SUPPORT\" was never defined.
20744
 
Usually this means the macro was only invoked conditionally." >&5
20745
 
echo "$as_me: error: conditional \"GLIB_SUPPORT\" was never defined.
20746
 
Usually this means the macro was only invoked conditionally." >&2;}
20747
 
   { (exit 1); exit 1; }; }
20748
 
fi
20749
 
if test -z "${HPUXKERNEL_TRUE}" && test -z "${HPUXKERNEL_FALSE}"; then
20750
 
  { { echo "$as_me:$LINENO: error: conditional \"HPUXKERNEL\" was never defined.
20751
 
Usually this means the macro was only invoked conditionally." >&5
20752
 
echo "$as_me: error: conditional \"HPUXKERNEL\" was never defined.
 
21708
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21709
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21710
Usually this means the macro was only invoked conditionally." >&5
 
21711
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21712
Usually this means the macro was only invoked conditionally." >&2;}
 
21713
   { (exit 1); exit 1; }; }
 
21714
fi
 
21715
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21716
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21717
Usually this means the macro was only invoked conditionally." >&5
 
21718
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21719
Usually this means the macro was only invoked conditionally." >&2;}
 
21720
   { (exit 1); exit 1; }; }
 
21721
fi
 
21722
if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
 
21723
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_DOC\" was never defined.
 
21724
Usually this means the macro was only invoked conditionally." >&5
 
21725
echo "$as_me: error: conditional \"HAVE_GTK_DOC\" was never defined.
20753
21726
Usually this means the macro was only invoked conditionally." >&2;}
20754
21727
   { (exit 1); exit 1; }; }
20755
21728
fi
20760
21733
Usually this means the macro was only invoked conditionally." >&2;}
20761
21734
   { (exit 1); exit 1; }; }
20762
21735
fi
 
21736
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
21737
  { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
21738
Usually this means the macro was only invoked conditionally." >&5
 
21739
echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
21740
Usually this means the macro was only invoked conditionally." >&2;}
 
21741
   { (exit 1); exit 1; }; }
 
21742
fi
 
21743
if test -z "${WITH_EPM_TRUE}" && test -z "${WITH_EPM_FALSE}"; then
 
21744
  { { echo "$as_me:$LINENO: error: conditional \"WITH_EPM\" was never defined.
 
21745
Usually this means the macro was only invoked conditionally." >&5
 
21746
echo "$as_me: error: conditional \"WITH_EPM\" was never defined.
 
21747
Usually this means the macro was only invoked conditionally." >&2;}
 
21748
   { (exit 1); exit 1; }; }
 
21749
fi
20763
21750
 
20764
21751
: ${CONFIG_STATUS=./config.status}
20765
21752
ac_clean_files_save=$ac_clean_files
20791
21778
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20792
21779
  # is contrary to our usage.  Disable this feature.
20793
21780
  alias -g '${1+"$@"}'='"$@"'
20794
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20795
 
  set -o posix
 
21781
  setopt NO_GLOB_SUBST
 
21782
else
 
21783
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20796
21784
fi
 
21785
BIN_SH=xpg4; export BIN_SH # for Tru64
20797
21786
DUALCASE=1; export DUALCASE # for MKS sh
20798
21787
 
 
21788
 
 
21789
# PATH needs CR
 
21790
# Avoid depending upon Character Ranges.
 
21791
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21792
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21793
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21794
as_cr_digits='0123456789'
 
21795
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21796
 
 
21797
# The user is always right.
 
21798
if test "${PATH_SEPARATOR+set}" != set; then
 
21799
  echo "#! /bin/sh" >conf$$.sh
 
21800
  echo  "exit 0"   >>conf$$.sh
 
21801
  chmod +x conf$$.sh
 
21802
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21803
    PATH_SEPARATOR=';'
 
21804
  else
 
21805
    PATH_SEPARATOR=:
 
21806
  fi
 
21807
  rm -f conf$$.sh
 
21808
fi
 
21809
 
20799
21810
# Support unset when possible.
20800
21811
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20801
21812
  as_unset=unset
20804
21815
fi
20805
21816
 
20806
21817
 
 
21818
# IFS
 
21819
# We need space, tab and new line, in precisely that order.  Quoting is
 
21820
# there to prevent editors from complaining about space-tab.
 
21821
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21822
# splitting by setting IFS to empty value.)
 
21823
as_nl='
 
21824
'
 
21825
IFS=" ""        $as_nl"
 
21826
 
 
21827
# Find who we are.  Look in the path if we contain no directory separator.
 
21828
case $0 in
 
21829
  *[\\/]* ) as_myself=$0 ;;
 
21830
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21831
for as_dir in $PATH
 
21832
do
 
21833
  IFS=$as_save_IFS
 
21834
  test -z "$as_dir" && as_dir=.
 
21835
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21836
done
 
21837
IFS=$as_save_IFS
 
21838
 
 
21839
     ;;
 
21840
esac
 
21841
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21842
# in which case we are not to be found in the path.
 
21843
if test "x$as_myself" = x; then
 
21844
  as_myself=$0
 
21845
fi
 
21846
if test ! -f "$as_myself"; then
 
21847
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21848
  { (exit 1); exit 1; }
 
21849
fi
 
21850
 
20807
21851
# Work around bugs in pre-3.0 UWIN ksh.
20808
 
$as_unset ENV MAIL MAILPATH
 
21852
for as_var in ENV MAIL MAILPATH
 
21853
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21854
done
20809
21855
PS1='$ '
20810
21856
PS2='> '
20811
21857
PS4='+ '
20819
21865
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20820
21866
    eval $as_var=C; export $as_var
20821
21867
  else
20822
 
    $as_unset $as_var
 
21868
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20823
21869
  fi
20824
21870
done
20825
21871
 
20826
21872
# Required to use basename.
20827
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21873
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21874
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20828
21875
  as_expr=expr
20829
21876
else
20830
21877
  as_expr=false
20831
21878
fi
20832
21879
 
20833
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
21880
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20834
21881
  as_basename=basename
20835
21882
else
20836
21883
  as_basename=false
20838
21885
 
20839
21886
 
20840
21887
# Name of the executable.
20841
 
as_me=`$as_basename "$0" ||
 
21888
as_me=`$as_basename -- "$0" ||
20842
21889
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20843
21890
         X"$0" : 'X\(//\)$' \| \
20844
 
         X"$0" : 'X\(/\)$' \| \
20845
 
         .     : '\(.\)' 2>/dev/null ||
 
21891
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20846
21892
echo X/"$0" |
20847
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20848
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20849
 
          /^X\/\(\/\).*/{ s//\1/; q; }
20850
 
          s/.*/./; q'`
20851
 
 
20852
 
 
20853
 
# PATH needs CR, and LINENO needs CR and PATH.
20854
 
# Avoid depending upon Character Ranges.
20855
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20856
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20857
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20858
 
as_cr_digits='0123456789'
20859
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20860
 
 
20861
 
# The user is always right.
20862
 
if test "${PATH_SEPARATOR+set}" != set; then
20863
 
  echo "#! /bin/sh" >conf$$.sh
20864
 
  echo  "exit 0"   >>conf$$.sh
20865
 
  chmod +x conf$$.sh
20866
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20867
 
    PATH_SEPARATOR=';'
20868
 
  else
20869
 
    PATH_SEPARATOR=:
20870
 
  fi
20871
 
  rm -f conf$$.sh
20872
 
fi
20873
 
 
20874
 
 
20875
 
  as_lineno_1=$LINENO
20876
 
  as_lineno_2=$LINENO
20877
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20878
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20879
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20880
 
  # Find who we are.  Look in the path if we contain no path at all
20881
 
  # relative or not.
20882
 
  case $0 in
20883
 
    *[\\/]* ) as_myself=$0 ;;
20884
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20885
 
for as_dir in $PATH
20886
 
do
20887
 
  IFS=$as_save_IFS
20888
 
  test -z "$as_dir" && as_dir=.
20889
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20890
 
done
20891
 
 
20892
 
       ;;
20893
 
  esac
20894
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20895
 
  # in which case we are not to be found in the path.
20896
 
  if test "x$as_myself" = x; then
20897
 
    as_myself=$0
20898
 
  fi
20899
 
  if test ! -f "$as_myself"; then
20900
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20901
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20902
 
   { (exit 1); exit 1; }; }
20903
 
  fi
20904
 
  case $CONFIG_SHELL in
20905
 
  '')
20906
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20907
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20908
 
do
20909
 
  IFS=$as_save_IFS
20910
 
  test -z "$as_dir" && as_dir=.
20911
 
  for as_base in sh bash ksh sh5; do
20912
 
         case $as_dir in
20913
 
         /*)
20914
 
           if ("$as_dir/$as_base" -c '
20915
 
  as_lineno_1=$LINENO
20916
 
  as_lineno_2=$LINENO
20917
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20918
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20919
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20920
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20921
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20922
 
             CONFIG_SHELL=$as_dir/$as_base
20923
 
             export CONFIG_SHELL
20924
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20925
 
           fi;;
20926
 
         esac
20927
 
       done
20928
 
done
20929
 
;;
20930
 
  esac
 
21893
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
21894
            s//\1/
 
21895
            q
 
21896
          }
 
21897
          /^X\/\(\/\/\)$/{
 
21898
            s//\1/
 
21899
            q
 
21900
          }
 
21901
          /^X\/\(\/\).*/{
 
21902
            s//\1/
 
21903
            q
 
21904
          }
 
21905
          s/.*/./; q'`
 
21906
 
 
21907
# CDPATH.
 
21908
$as_unset CDPATH
 
21909
 
 
21910
 
 
21911
 
 
21912
  as_lineno_1=$LINENO
 
21913
  as_lineno_2=$LINENO
 
21914
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21915
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20931
21916
 
20932
21917
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20933
21918
  # uniformly replaced by the line number.  The first 'sed' inserts a
20934
 
  # line-number line before each line; the second 'sed' does the real
20935
 
  # work.  The second script uses 'N' to pair each line-number line
20936
 
  # with the numbered line, and appends trailing '-' during
20937
 
  # substitution so that $LINENO is not a special case at line end.
 
21919
  # line-number line after each line using $LINENO; the second 'sed'
 
21920
  # does the real work.  The second script uses 'N' to pair each
 
21921
  # line-number line with the line containing $LINENO, and appends
 
21922
  # trailing '-' during substitution so that $LINENO is not a special
 
21923
  # case at line end.
20938
21924
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20939
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20940
 
  sed '=' <$as_myself |
 
21925
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
21926
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
21927
  sed -n '
 
21928
    p
 
21929
    /[$]LINENO/=
 
21930
  ' <$as_myself |
20941
21931
    sed '
 
21932
      s/[$]LINENO.*/&-/
 
21933
      t lineno
 
21934
      b
 
21935
      :lineno
20942
21936
      N
20943
 
      s,$,-,
20944
 
      : loop
20945
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
21937
      :loop
 
21938
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20946
21939
      t loop
20947
 
      s,-$,,
20948
 
      s,^['$as_cr_digits']*\n,,
 
21940
      s/-\n.*//
20949
21941
    ' >$as_me.lineno &&
20950
 
  chmod +x $as_me.lineno ||
20951
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20952
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
21942
  chmod +x "$as_me.lineno" ||
 
21943
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20953
21944
   { (exit 1); exit 1; }; }
20954
21945
 
20955
21946
  # Don't try to exec as it changes $[0], causing all sort of problems
20956
21947
  # (the dirname of $[0] is not the place where we might find the
20957
 
  # original and so on.  Autoconf is especially sensible to this).
20958
 
  . ./$as_me.lineno
 
21948
  # original and so on.  Autoconf is especially sensitive to this).
 
21949
  . "./$as_me.lineno"
20959
21950
  # Exit status is that of the last command.
20960
21951
  exit
20961
21952
}
20962
21953
 
20963
21954
 
20964
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20965
 
  *c*,-n*) ECHO_N= ECHO_C='
20966
 
' ECHO_T='      ' ;;
20967
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20968
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
21955
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
21956
  as_dirname=dirname
 
21957
else
 
21958
  as_dirname=false
 
21959
fi
 
21960
 
 
21961
ECHO_C= ECHO_N= ECHO_T=
 
21962
case `echo -n x` in
 
21963
-n*)
 
21964
  case `echo 'x\c'` in
 
21965
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
21966
  *)   ECHO_C='\c';;
 
21967
  esac;;
 
21968
*)
 
21969
  ECHO_N='-n';;
20969
21970
esac
20970
21971
 
20971
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21972
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21973
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20972
21974
  as_expr=expr
20973
21975
else
20974
21976
  as_expr=false
20975
21977
fi
20976
21978
 
20977
21979
rm -f conf$$ conf$$.exe conf$$.file
 
21980
if test -d conf$$.dir; then
 
21981
  rm -f conf$$.dir/conf$$.file
 
21982
else
 
21983
  rm -f conf$$.dir
 
21984
  mkdir conf$$.dir
 
21985
fi
20978
21986
echo >conf$$.file
20979
21987
if ln -s conf$$.file conf$$ 2>/dev/null; then
20980
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20981
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20982
 
  if test -f conf$$.exe; then
20983
 
    # Don't use ln at all; we don't have any links
 
21988
  as_ln_s='ln -s'
 
21989
  # ... but there are two gotchas:
 
21990
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
21991
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
21992
  # In both cases, we have to default to `cp -p'.
 
21993
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20984
21994
    as_ln_s='cp -p'
20985
 
  else
20986
 
    as_ln_s='ln -s'
20987
 
  fi
20988
21995
elif ln conf$$.file conf$$ 2>/dev/null; then
20989
21996
  as_ln_s=ln
20990
21997
else
20991
21998
  as_ln_s='cp -p'
20992
21999
fi
20993
 
rm -f conf$$ conf$$.exe conf$$.file
 
22000
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22001
rmdir conf$$.dir 2>/dev/null
20994
22002
 
20995
22003
if mkdir -p . 2>/dev/null; then
20996
22004
  as_mkdir_p=:
20999
22007
  as_mkdir_p=false
21000
22008
fi
21001
22009
 
21002
 
as_executable_p="test -f"
 
22010
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
22011
# systems may use methods other than mode bits to determine executability.
 
22012
cat >conf$$.file <<_ASEOF
 
22013
#! /bin/sh
 
22014
exit 0
 
22015
_ASEOF
 
22016
chmod +x conf$$.file
 
22017
if test -x conf$$.file >/dev/null 2>&1; then
 
22018
  as_executable_p="test -x"
 
22019
else
 
22020
  as_executable_p=:
 
22021
fi
 
22022
rm -f conf$$.file
21003
22023
 
21004
22024
# Sed expression to map a string onto a valid CPP name.
21005
22025
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21008
22028
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21009
22029
 
21010
22030
 
21011
 
# IFS
21012
 
# We need space, tab and new line, in precisely that order.
21013
 
as_nl='
21014
 
'
21015
 
IFS="   $as_nl"
21016
 
 
21017
 
# CDPATH.
21018
 
$as_unset CDPATH
21019
 
 
21020
22031
exec 6>&1
21021
22032
 
21022
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22033
# Save the log message, to keep $[0] and so on meaningful, and to
21023
22034
# report actual input values of CONFIG_FILES etc. instead of their
21024
 
# values after options handling.  Logging --version etc. is OK.
21025
 
exec 5>>config.log
21026
 
{
21027
 
  echo
21028
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21029
 
## Running $as_me. ##
21030
 
_ASBOX
21031
 
} >&5
21032
 
cat >&5 <<_CSEOF
21033
 
 
21034
 
This file was extended by $as_me, which was
21035
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
22035
# values after options handling.
 
22036
ac_log="
 
22037
This file was extended by ortp $as_me 0.12.0, which was
 
22038
generated by GNU Autoconf 2.60a.  Invocation command line was
21036
22039
 
21037
22040
  CONFIG_FILES    = $CONFIG_FILES
21038
22041
  CONFIG_HEADERS  = $CONFIG_HEADERS
21040
22043
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21041
22044
  $ $0 $@
21042
22045
 
21043
 
_CSEOF
21044
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21045
 
echo >&5
 
22046
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22047
"
 
22048
 
21046
22049
_ACEOF
21047
22050
 
 
22051
cat >>$CONFIG_STATUS <<_ACEOF
21048
22052
# Files that config.status was made for.
21049
 
if test -n "$ac_config_files"; then
21050
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21051
 
fi
21052
 
 
21053
 
if test -n "$ac_config_headers"; then
21054
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21055
 
fi
21056
 
 
21057
 
if test -n "$ac_config_links"; then
21058
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21059
 
fi
21060
 
 
21061
 
if test -n "$ac_config_commands"; then
21062
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21063
 
fi
 
22053
config_files="$ac_config_files"
 
22054
config_headers="$ac_config_headers"
 
22055
config_commands="$ac_config_commands"
 
22056
 
 
22057
_ACEOF
21064
22058
 
21065
22059
cat >>$CONFIG_STATUS <<\_ACEOF
21066
 
 
21067
22060
ac_cs_usage="\
21068
22061
\`$as_me' instantiates files from templates according to the
21069
22062
current configuration.
21071
22064
Usage: $0 [OPTIONS] [FILE]...
21072
22065
 
21073
22066
  -h, --help       print this help, then exit
21074
 
  -V, --version    print version number, then exit
 
22067
  -V, --version    print version number and configuration settings, then exit
21075
22068
  -q, --quiet      do not print progress messages
21076
22069
  -d, --debug      don't remove temporary files
21077
22070
      --recheck    update $as_me by reconfiguring in the same conditions
21090
22083
$config_commands
21091
22084
 
21092
22085
Report bugs to <bug-autoconf@gnu.org>."
 
22086
 
21093
22087
_ACEOF
21094
 
 
21095
22088
cat >>$CONFIG_STATUS <<_ACEOF
21096
22089
ac_cs_version="\\
21097
 
config.status
21098
 
configured by $0, generated by GNU Autoconf 2.59,
21099
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
22090
ortp config.status 0.12.0
 
22091
configured by $0, generated by GNU Autoconf 2.60a,
 
22092
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21100
22093
 
21101
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
22094
Copyright (C) 2006 Free Software Foundation, Inc.
21102
22095
This config.status script is free software; the Free Software Foundation
21103
22096
gives unlimited permission to copy, distribute and modify it."
21104
 
srcdir=$srcdir
21105
 
INSTALL="$INSTALL"
 
22097
 
 
22098
ac_pwd='$ac_pwd'
 
22099
srcdir='$srcdir'
 
22100
INSTALL='$INSTALL'
21106
22101
_ACEOF
21107
22102
 
21108
22103
cat >>$CONFIG_STATUS <<\_ACEOF
21113
22108
do
21114
22109
  case $1 in
21115
22110
  --*=*)
21116
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21117
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
22111
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22112
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21118
22113
    ac_shift=:
21119
22114
    ;;
21120
 
  -*)
 
22115
  *)
21121
22116
    ac_option=$1
21122
22117
    ac_optarg=$2
21123
22118
    ac_shift=shift
21124
22119
    ;;
21125
 
  *) # This is not an option, so the user has probably given explicit
21126
 
     # arguments.
21127
 
     ac_option=$1
21128
 
     ac_need_defaults=false;;
21129
22120
  esac
21130
22121
 
21131
22122
  case $ac_option in
21132
22123
  # Handling of the options.
21133
 
_ACEOF
21134
 
cat >>$CONFIG_STATUS <<\_ACEOF
21135
22124
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21136
22125
    ac_cs_recheck=: ;;
21137
 
  --version | --vers* | -V )
21138
 
    echo "$ac_cs_version"; exit 0 ;;
21139
 
  --he | --h)
21140
 
    # Conflict between --help and --header
21141
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21142
 
Try \`$0 --help' for more information." >&5
21143
 
echo "$as_me: error: ambiguous option: $1
21144
 
Try \`$0 --help' for more information." >&2;}
21145
 
   { (exit 1); exit 1; }; };;
21146
 
  --help | --hel | -h )
21147
 
    echo "$ac_cs_usage"; exit 0 ;;
21148
 
  --debug | --d* | -d )
 
22126
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22127
    echo "$ac_cs_version"; exit ;;
 
22128
  --debug | --debu | --deb | --de | --d | -d )
21149
22129
    debug=: ;;
21150
22130
  --file | --fil | --fi | --f )
21151
22131
    $ac_shift
21155
22135
    $ac_shift
21156
22136
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21157
22137
    ac_need_defaults=false;;
 
22138
  --he | --h)
 
22139
    # Conflict between --help and --header
 
22140
    { echo "$as_me: error: ambiguous option: $1
 
22141
Try \`$0 --help' for more information." >&2
 
22142
   { (exit 1); exit 1; }; };;
 
22143
  --help | --hel | -h )
 
22144
    echo "$ac_cs_usage"; exit ;;
21158
22145
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21159
22146
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21160
22147
    ac_cs_silent=: ;;
21161
22148
 
21162
22149
  # This is an error.
21163
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21164
 
Try \`$0 --help' for more information." >&5
21165
 
echo "$as_me: error: unrecognized option: $1
21166
 
Try \`$0 --help' for more information." >&2;}
 
22150
  -*) { echo "$as_me: error: unrecognized option: $1
 
22151
Try \`$0 --help' for more information." >&2
21167
22152
   { (exit 1); exit 1; }; } ;;
21168
22153
 
21169
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
22154
  *) ac_config_targets="$ac_config_targets $1"
 
22155
     ac_need_defaults=false ;;
21170
22156
 
21171
22157
  esac
21172
22158
  shift
21182
22168
_ACEOF
21183
22169
cat >>$CONFIG_STATUS <<_ACEOF
21184
22170
if \$ac_cs_recheck; then
21185
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21186
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22171
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22172
  CONFIG_SHELL=$SHELL
 
22173
  export CONFIG_SHELL
 
22174
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21187
22175
fi
21188
22176
 
21189
22177
_ACEOF
 
22178
cat >>$CONFIG_STATUS <<\_ACEOF
 
22179
exec 5>>config.log
 
22180
{
 
22181
  echo
 
22182
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22183
## Running $as_me. ##
 
22184
_ASBOX
 
22185
  echo "$ac_log"
 
22186
} >&5
21190
22187
 
 
22188
_ACEOF
21191
22189
cat >>$CONFIG_STATUS <<_ACEOF
21192
22190
#
21193
 
# INIT-COMMANDS section.
 
22191
# INIT-COMMANDS
21194
22192
#
21195
 
 
21196
22193
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21197
22194
 
21198
22195
_ACEOF
21199
22196
 
21200
 
 
21201
 
 
21202
22197
cat >>$CONFIG_STATUS <<\_ACEOF
 
22198
 
 
22199
# Handling of arguments.
21203
22200
for ac_config_target in $ac_config_targets
21204
22201
do
21205
 
  case "$ac_config_target" in
21206
 
  # Handling of arguments.
21207
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21208
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21209
 
  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21210
 
  "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21211
 
  "build/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
21212
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21213
 
  "ortp-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ortp-config.h" ;;
 
22202
  case $ac_config_target in
 
22203
    "ortp-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ortp-config.h" ;;
 
22204
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22205
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22206
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
22207
    "include/ortp/Makefile") CONFIG_FILES="$CONFIG_FILES include/ortp/Makefile" ;;
 
22208
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22209
    "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
 
22210
    "src/tests/win_receiver/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/win_receiver/Makefile" ;;
 
22211
    "src/tests/win_sender/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/win_sender/Makefile" ;;
 
22212
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
22213
    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
 
22214
    "build/win32native/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32native/Makefile" ;;
 
22215
    "build/wince/Makefile") CONFIG_FILES="$CONFIG_FILES build/wince/Makefile" ;;
 
22216
    "ortp.pc") CONFIG_FILES="$CONFIG_FILES ortp.pc" ;;
 
22217
    "ortp.spec") CONFIG_FILES="$CONFIG_FILES ortp.spec" ;;
 
22218
 
21214
22219
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21215
22220
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21216
22221
   { (exit 1); exit 1; }; };;
21217
22222
  esac
21218
22223
done
21219
22224
 
 
22225
 
21220
22226
# If the user did not use the arguments to specify the items to instantiate,
21221
22227
# then the envvar interface is used.  Set only those that are not.
21222
22228
# We use the long form for the default assignment because of an extremely
21228
22234
fi
21229
22235
 
21230
22236
# Have a temporary directory for convenience.  Make it in the build tree
21231
 
# simply because there is no reason to put it here, and in addition,
 
22237
# simply because there is no reason against having it here, and in addition,
21232
22238
# creating and moving files from /tmp can sometimes cause problems.
21233
 
# Create a temporary directory, and hook for its removal unless debugging.
 
22239
# Hook for its removal unless debugging.
 
22240
# Note that there is a small window in which the directory will not be cleaned:
 
22241
# after its creation but before its name has been assigned to `$tmp'.
21234
22242
$debug ||
21235
22243
{
21236
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
22244
  tmp=
 
22245
  trap 'exit_status=$?
 
22246
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
22247
' 0
21237
22248
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21238
22249
}
21239
 
 
21240
22250
# Create a (secure) tmp directory for tmp files.
21241
22251
 
21242
22252
{
21243
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
22253
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21244
22254
  test -n "$tmp" && test -d "$tmp"
21245
22255
}  ||
21246
22256
{
21247
 
  tmp=./confstat$$-$RANDOM
21248
 
  (umask 077 && mkdir $tmp)
 
22257
  tmp=./conf$$-$RANDOM
 
22258
  (umask 077 && mkdir "$tmp")
21249
22259
} ||
21250
22260
{
21251
22261
   echo "$me: cannot create a temporary directory in ." >&2
21252
22262
   { (exit 1); exit 1; }
21253
22263
}
21254
22264
 
21255
 
_ACEOF
21256
 
 
21257
 
cat >>$CONFIG_STATUS <<_ACEOF
21258
 
 
21259
22265
#
21260
 
# CONFIG_FILES section.
 
22266
# Set up the sed scripts for CONFIG_FILES section.
21261
22267
#
21262
22268
 
21263
22269
# No need to generate the scripts if there are no CONFIG_FILES.
21264
22270
# This happens for instance when ./config.status config.h
21265
 
if test -n "\$CONFIG_FILES"; then
21266
 
  # Protect against being on the right side of a sed subst in config.status.
21267
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21268
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21269
 
s,@SHELL@,$SHELL,;t t
21270
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21271
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21272
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21273
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21274
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21275
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21276
 
s,@exec_prefix@,$exec_prefix,;t t
21277
 
s,@prefix@,$prefix,;t t
21278
 
s,@program_transform_name@,$program_transform_name,;t t
21279
 
s,@bindir@,$bindir,;t t
21280
 
s,@sbindir@,$sbindir,;t t
21281
 
s,@libexecdir@,$libexecdir,;t t
21282
 
s,@datadir@,$datadir,;t t
21283
 
s,@sysconfdir@,$sysconfdir,;t t
21284
 
s,@sharedstatedir@,$sharedstatedir,;t t
21285
 
s,@localstatedir@,$localstatedir,;t t
21286
 
s,@libdir@,$libdir,;t t
21287
 
s,@includedir@,$includedir,;t t
21288
 
s,@oldincludedir@,$oldincludedir,;t t
21289
 
s,@infodir@,$infodir,;t t
21290
 
s,@mandir@,$mandir,;t t
21291
 
s,@build_alias@,$build_alias,;t t
21292
 
s,@host_alias@,$host_alias,;t t
21293
 
s,@target_alias@,$target_alias,;t t
21294
 
s,@DEFS@,$DEFS,;t t
21295
 
s,@ECHO_C@,$ECHO_C,;t t
21296
 
s,@ECHO_N@,$ECHO_N,;t t
21297
 
s,@ECHO_T@,$ECHO_T,;t t
21298
 
s,@LIBS@,$LIBS,;t t
21299
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21300
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21301
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21302
 
s,@PACKAGE@,$PACKAGE,;t t
21303
 
s,@VERSION@,$VERSION,;t t
21304
 
s,@ACLOCAL@,$ACLOCAL,;t t
21305
 
s,@AUTOCONF@,$AUTOCONF,;t t
21306
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
21307
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
21308
 
s,@MAKEINFO@,$MAKEINFO,;t t
21309
 
s,@AMTAR@,$AMTAR,;t t
21310
 
s,@install_sh@,$install_sh,;t t
21311
 
s,@STRIP@,$STRIP,;t t
21312
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21313
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21314
 
s,@AWK@,$AWK,;t t
21315
 
s,@SET_MAKE@,$SET_MAKE,;t t
21316
 
s,@build@,$build,;t t
21317
 
s,@build_cpu@,$build_cpu,;t t
21318
 
s,@build_vendor@,$build_vendor,;t t
21319
 
s,@build_os@,$build_os,;t t
21320
 
s,@host@,$host,;t t
21321
 
s,@host_cpu@,$host_cpu,;t t
21322
 
s,@host_vendor@,$host_vendor,;t t
21323
 
s,@host_os@,$host_os,;t t
21324
 
s,@IPV6_CFLAGS@,$IPV6_CFLAGS,;t t
21325
 
s,@CC@,$CC,;t t
21326
 
s,@CFLAGS@,$CFLAGS,;t t
21327
 
s,@LDFLAGS@,$LDFLAGS,;t t
21328
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
21329
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
21330
 
s,@EXEEXT@,$EXEEXT,;t t
21331
 
s,@OBJEXT@,$OBJEXT,;t t
21332
 
s,@DEPDIR@,$DEPDIR,;t t
21333
 
s,@am__include@,$am__include,;t t
21334
 
s,@am__quote@,$am__quote,;t t
21335
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21336
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21337
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21338
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
21339
 
s,@EGREP@,$EGREP,;t t
21340
 
s,@LN_S@,$LN_S,;t t
21341
 
s,@ECHO@,$ECHO,;t t
21342
 
s,@AR@,$AR,;t t
21343
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
21344
 
s,@RANLIB@,$RANLIB,;t t
21345
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21346
 
s,@CPP@,$CPP,;t t
21347
 
s,@CXX@,$CXX,;t t
21348
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
21349
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21350
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21351
 
s,@CXXCPP@,$CXXCPP,;t t
21352
 
s,@F77@,$F77,;t t
21353
 
s,@FFLAGS@,$FFLAGS,;t t
21354
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
21355
 
s,@LIBTOOL@,$LIBTOOL,;t t
21356
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21357
 
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
21358
 
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
21359
 
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
21360
 
s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
21361
 
s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
21362
 
s,@GLIB_SUPPORT_TRUE@,$GLIB_SUPPORT_TRUE,;t t
21363
 
s,@GLIB_SUPPORT_FALSE@,$GLIB_SUPPORT_FALSE,;t t
21364
 
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
21365
 
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
21366
 
s,@PTHREAD_LDFLAGS@,$PTHREAD_LDFLAGS,;t t
21367
 
s,@HPUXKERNEL_TRUE@,$HPUXKERNEL_TRUE,;t t
21368
 
s,@HPUXKERNEL_FALSE@,$HPUXKERNEL_FALSE,;t t
21369
 
s,@HTML_DIR@,$HTML_DIR,;t t
21370
 
s,@GTKDOC@,$GTKDOC,;t t
21371
 
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
21372
 
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
21373
 
s,@LIBOBJS@,$LIBOBJS,;t t
21374
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21375
 
CEOF
21376
 
 
21377
 
_ACEOF
21378
 
 
21379
 
  cat >>$CONFIG_STATUS <<\_ACEOF
21380
 
  # Split the substitutions into bite-sized pieces for seds with
21381
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
21382
 
  ac_max_sed_lines=48
21383
 
  ac_sed_frag=1 # Number of current file.
21384
 
  ac_beg=1 # First line for current file.
21385
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21386
 
  ac_more_lines=:
21387
 
  ac_sed_cmds=
21388
 
  while $ac_more_lines; do
21389
 
    if test $ac_beg -gt 1; then
21390
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21391
 
    else
21392
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21393
 
    fi
21394
 
    if test ! -s $tmp/subs.frag; then
21395
 
      ac_more_lines=false
21396
 
    else
21397
 
      # The purpose of the label and of the branching condition is to
21398
 
      # speed up the sed processing (if there are no `@' at all, there
21399
 
      # is no need to browse any of the substitutions).
21400
 
      # These are the two extra sed commands mentioned above.
21401
 
      (echo ':t
21402
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21403
 
      if test -z "$ac_sed_cmds"; then
21404
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21405
 
      else
21406
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21407
 
      fi
21408
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
21409
 
      ac_beg=$ac_end
21410
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21411
 
    fi
21412
 
  done
21413
 
  if test -z "$ac_sed_cmds"; then
21414
 
    ac_sed_cmds=cat
21415
 
  fi
 
22271
if test -n "$CONFIG_FILES"; then
 
22272
 
 
22273
_ACEOF
 
22274
 
 
22275
 
 
22276
 
 
22277
ac_delim='%!_!# '
 
22278
for ac_last_try in false false false false false :; do
 
22279
  cat >conf$$subs.sed <<_ACEOF
 
22280
SHELL!$SHELL$ac_delim
 
22281
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
22282
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
22283
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
22284
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
22285
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
22286
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
22287
exec_prefix!$exec_prefix$ac_delim
 
22288
prefix!$prefix$ac_delim
 
22289
program_transform_name!$program_transform_name$ac_delim
 
22290
bindir!$bindir$ac_delim
 
22291
sbindir!$sbindir$ac_delim
 
22292
libexecdir!$libexecdir$ac_delim
 
22293
datarootdir!$datarootdir$ac_delim
 
22294
datadir!$datadir$ac_delim
 
22295
sysconfdir!$sysconfdir$ac_delim
 
22296
sharedstatedir!$sharedstatedir$ac_delim
 
22297
localstatedir!$localstatedir$ac_delim
 
22298
includedir!$includedir$ac_delim
 
22299
oldincludedir!$oldincludedir$ac_delim
 
22300
docdir!$docdir$ac_delim
 
22301
infodir!$infodir$ac_delim
 
22302
htmldir!$htmldir$ac_delim
 
22303
dvidir!$dvidir$ac_delim
 
22304
pdfdir!$pdfdir$ac_delim
 
22305
psdir!$psdir$ac_delim
 
22306
libdir!$libdir$ac_delim
 
22307
localedir!$localedir$ac_delim
 
22308
mandir!$mandir$ac_delim
 
22309
DEFS!$DEFS$ac_delim
 
22310
ECHO_C!$ECHO_C$ac_delim
 
22311
ECHO_N!$ECHO_N$ac_delim
 
22312
ECHO_T!$ECHO_T$ac_delim
 
22313
LIBS!$LIBS$ac_delim
 
22314
build_alias!$build_alias$ac_delim
 
22315
host_alias!$host_alias$ac_delim
 
22316
target_alias!$target_alias$ac_delim
 
22317
build!$build$ac_delim
 
22318
build_cpu!$build_cpu$ac_delim
 
22319
build_vendor!$build_vendor$ac_delim
 
22320
build_os!$build_os$ac_delim
 
22321
host!$host$ac_delim
 
22322
host_cpu!$host_cpu$ac_delim
 
22323
host_vendor!$host_vendor$ac_delim
 
22324
host_os!$host_os$ac_delim
 
22325
target!$target$ac_delim
 
22326
target_cpu!$target_cpu$ac_delim
 
22327
target_vendor!$target_vendor$ac_delim
 
22328
target_os!$target_os$ac_delim
 
22329
LIBORTP_SO_VERSION!$LIBORTP_SO_VERSION$ac_delim
 
22330
ORTP_VERSION!$ORTP_VERSION$ac_delim
 
22331
ORTP_PKGCONFIG_VERSION!$ORTP_PKGCONFIG_VERSION$ac_delim
 
22332
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
22333
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
22334
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
22335
CYGPATH_W!$CYGPATH_W$ac_delim
 
22336
PACKAGE!$PACKAGE$ac_delim
 
22337
VERSION!$VERSION$ac_delim
 
22338
ACLOCAL!$ACLOCAL$ac_delim
 
22339
AUTOCONF!$AUTOCONF$ac_delim
 
22340
AUTOMAKE!$AUTOMAKE$ac_delim
 
22341
AUTOHEADER!$AUTOHEADER$ac_delim
 
22342
MAKEINFO!$MAKEINFO$ac_delim
 
22343
install_sh!$install_sh$ac_delim
 
22344
STRIP!$STRIP$ac_delim
 
22345
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
22346
mkdir_p!$mkdir_p$ac_delim
 
22347
AWK!$AWK$ac_delim
 
22348
SET_MAKE!$SET_MAKE$ac_delim
 
22349
am__leading_dot!$am__leading_dot$ac_delim
 
22350
AMTAR!$AMTAR$ac_delim
 
22351
am__tar!$am__tar$ac_delim
 
22352
am__untar!$am__untar$ac_delim
 
22353
CC!$CC$ac_delim
 
22354
CFLAGS!$CFLAGS$ac_delim
 
22355
LDFLAGS!$LDFLAGS$ac_delim
 
22356
CPPFLAGS!$CPPFLAGS$ac_delim
 
22357
ac_ct_CC!$ac_ct_CC$ac_delim
 
22358
EXEEXT!$EXEEXT$ac_delim
 
22359
OBJEXT!$OBJEXT$ac_delim
 
22360
DEPDIR!$DEPDIR$ac_delim
 
22361
am__include!$am__include$ac_delim
 
22362
am__quote!$am__quote$ac_delim
 
22363
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
22364
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
22365
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
22366
CCDEPMODE!$CCDEPMODE$ac_delim
 
22367
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
22368
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
22369
GREP!$GREP$ac_delim
 
22370
EGREP!$EGREP$ac_delim
 
22371
LN_S!$LN_S$ac_delim
 
22372
ECHO!$ECHO$ac_delim
 
22373
AR!$AR$ac_delim
 
22374
RANLIB!$RANLIB$ac_delim
 
22375
CPP!$CPP$ac_delim
 
22376
CXX!$CXX$ac_delim
 
22377
_ACEOF
 
22378
 
 
22379
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
22380
    break
 
22381
  elif $ac_last_try; then
 
22382
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22383
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22384
   { (exit 1); exit 1; }; }
 
22385
  else
 
22386
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22387
  fi
 
22388
done
 
22389
 
 
22390
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22391
if test -n "$ac_eof"; then
 
22392
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22393
  ac_eof=`expr $ac_eof + 1`
 
22394
fi
 
22395
 
 
22396
cat >>$CONFIG_STATUS <<_ACEOF
 
22397
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22398
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22399
_ACEOF
 
22400
sed '
 
22401
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22402
s/^/s,@/; s/!/@,|#_!!_#|/
 
22403
:n
 
22404
t n
 
22405
s/'"$ac_delim"'$/,g/; t
 
22406
s/$/\\/; p
 
22407
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22408
' >>$CONFIG_STATUS <conf$$subs.sed
 
22409
rm -f conf$$subs.sed
 
22410
cat >>$CONFIG_STATUS <<_ACEOF
 
22411
CEOF$ac_eof
 
22412
_ACEOF
 
22413
 
 
22414
 
 
22415
ac_delim='%!_!# '
 
22416
for ac_last_try in false false false false false :; do
 
22417
  cat >conf$$subs.sed <<_ACEOF
 
22418
CXXFLAGS!$CXXFLAGS$ac_delim
 
22419
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
22420
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
22421
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
22422
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
22423
CXXCPP!$CXXCPP$ac_delim
 
22424
F77!$F77$ac_delim
 
22425
FFLAGS!$FFLAGS$ac_delim
 
22426
ac_ct_F77!$ac_ct_F77$ac_delim
 
22427
LIBTOOL!$LIBTOOL$ac_delim
 
22428
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
 
22429
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
 
22430
PTHREAD_LDFLAGS!$PTHREAD_LDFLAGS$ac_delim
 
22431
HAVE_GTK_DOC_TRUE!$HAVE_GTK_DOC_TRUE$ac_delim
 
22432
HAVE_GTK_DOC_FALSE!$HAVE_GTK_DOC_FALSE$ac_delim
 
22433
HTML_DIR!$HTML_DIR$ac_delim
 
22434
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
22435
ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
 
22436
ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
 
22437
GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
 
22438
GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
 
22439
EPM!$EPM$ac_delim
 
22440
MKEPMLIST!$MKEPMLIST$ac_delim
 
22441
EPMINSTALL!$EPMINSTALL$ac_delim
 
22442
WITH_EPM_TRUE!$WITH_EPM_TRUE$ac_delim
 
22443
WITH_EPM_FALSE!$WITH_EPM_FALSE$ac_delim
 
22444
EPM_PKG_EXT!$EPM_PKG_EXT$ac_delim
 
22445
SYS_USER!$SYS_USER$ac_delim
 
22446
SYS_GROUP!$SYS_GROUP$ac_delim
 
22447
ARCH!$ARCH$ac_delim
 
22448
SUMMARY!$SUMMARY$ac_delim
 
22449
PACKAGER!$PACKAGER$ac_delim
 
22450
LICENSE!$LICENSE$ac_delim
 
22451
VENDOR!$VENDOR$ac_delim
 
22452
RELEASE!$RELEASE$ac_delim
 
22453
ORTPDEPS_CFLAGS!$ORTPDEPS_CFLAGS$ac_delim
 
22454
ORTPDEPS_LIBS!$ORTPDEPS_LIBS$ac_delim
 
22455
ORTPDEPS_LDFLAGS!$ORTPDEPS_LDFLAGS$ac_delim
 
22456
LIBOBJS!$LIBOBJS$ac_delim
 
22457
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
22458
_ACEOF
 
22459
 
 
22460
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
 
22461
    break
 
22462
  elif $ac_last_try; then
 
22463
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22464
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22465
   { (exit 1); exit 1; }; }
 
22466
  else
 
22467
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22468
  fi
 
22469
done
 
22470
 
 
22471
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22472
if test -n "$ac_eof"; then
 
22473
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22474
  ac_eof=`expr $ac_eof + 1`
 
22475
fi
 
22476
 
 
22477
cat >>$CONFIG_STATUS <<_ACEOF
 
22478
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
22479
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
22480
_ACEOF
 
22481
sed '
 
22482
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22483
s/^/s,@/; s/!/@,|#_!!_#|/
 
22484
:n
 
22485
t n
 
22486
s/'"$ac_delim"'$/,g/; t
 
22487
s/$/\\/; p
 
22488
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22489
' >>$CONFIG_STATUS <conf$$subs.sed
 
22490
rm -f conf$$subs.sed
 
22491
cat >>$CONFIG_STATUS <<_ACEOF
 
22492
:end
 
22493
s/|#_!!_#|//g
 
22494
CEOF$ac_eof
 
22495
_ACEOF
 
22496
 
 
22497
 
 
22498
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22499
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22500
# trailing colons and then remove the whole line if VPATH becomes empty
 
22501
# (actually we leave an empty line to preserve line numbers).
 
22502
if test "x$srcdir" = x.; then
 
22503
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22504
s/:*\$(srcdir):*/:/
 
22505
s/:*\${srcdir}:*/:/
 
22506
s/:*@srcdir@:*/:/
 
22507
s/^\([^=]*=[     ]*\):*/\1/
 
22508
s/:*$//
 
22509
s/^[^=]*=[       ]*$//
 
22510
}'
 
22511
fi
 
22512
 
 
22513
cat >>$CONFIG_STATUS <<\_ACEOF
21416
22514
fi # test -n "$CONFIG_FILES"
21417
22515
 
21418
 
_ACEOF
21419
 
cat >>$CONFIG_STATUS <<\_ACEOF
21420
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21421
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21422
 
  case $ac_file in
21423
 
  - | *:- | *:-:* ) # input from stdin
21424
 
        cat >$tmp/stdin
21425
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21426
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21427
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21428
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21429
 
  * )   ac_file_in=$ac_file.in ;;
21430
 
  esac
21431
 
 
21432
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21433
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22516
 
 
22517
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
22518
do
 
22519
  case $ac_tag in
 
22520
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
22521
  esac
 
22522
  case $ac_mode$ac_tag in
 
22523
  :[FHL]*:*);;
 
22524
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
22525
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
22526
   { (exit 1); exit 1; }; };;
 
22527
  :[FH]-) ac_tag=-:-;;
 
22528
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
22529
  esac
 
22530
  ac_save_IFS=$IFS
 
22531
  IFS=:
 
22532
  set x $ac_tag
 
22533
  IFS=$ac_save_IFS
 
22534
  shift
 
22535
  ac_file=$1
 
22536
  shift
 
22537
 
 
22538
  case $ac_mode in
 
22539
  :L) ac_source=$1;;
 
22540
  :[FH])
 
22541
    ac_file_inputs=
 
22542
    for ac_f
 
22543
    do
 
22544
      case $ac_f in
 
22545
      -) ac_f="$tmp/stdin";;
 
22546
      *) # Look for the file first in the build tree, then in the source tree
 
22547
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
22548
         # because $ac_f cannot contain `:'.
 
22549
         test -f "$ac_f" ||
 
22550
           case $ac_f in
 
22551
           [\\/$]*) false;;
 
22552
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
22553
           esac ||
 
22554
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
22555
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22556
   { (exit 1); exit 1; }; };;
 
22557
      esac
 
22558
      ac_file_inputs="$ac_file_inputs $ac_f"
 
22559
    done
 
22560
 
 
22561
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22562
    # use $as_me), people would be surprised to read:
 
22563
    #    /* config.h.  Generated by config.status.  */
 
22564
    configure_input="Generated from "`IFS=:
 
22565
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
22566
    if test x"$ac_file" != x-; then
 
22567
      configure_input="$ac_file.  $configure_input"
 
22568
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22569
echo "$as_me: creating $ac_file" >&6;}
 
22570
    fi
 
22571
 
 
22572
    case $ac_tag in
 
22573
    *:-:* | *:-) cat >"$tmp/stdin";;
 
22574
    esac
 
22575
    ;;
 
22576
  esac
 
22577
 
 
22578
  ac_dir=`$as_dirname -- "$ac_file" ||
21434
22579
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21435
22580
         X"$ac_file" : 'X\(//\)[^/]' \| \
21436
22581
         X"$ac_file" : 'X\(//\)$' \| \
21437
 
         X"$ac_file" : 'X\(/\)' \| \
21438
 
         .     : '\(.\)' 2>/dev/null ||
 
22582
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21439
22583
echo X"$ac_file" |
21440
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21441
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21442
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21443
 
          /^X\(\/\).*/{ s//\1/; q; }
21444
 
          s/.*/./; q'`
21445
 
  { if $as_mkdir_p; then
21446
 
    mkdir -p "$ac_dir"
21447
 
  else
21448
 
    as_dir="$ac_dir"
 
22584
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22585
            s//\1/
 
22586
            q
 
22587
          }
 
22588
          /^X\(\/\/\)[^/].*/{
 
22589
            s//\1/
 
22590
            q
 
22591
          }
 
22592
          /^X\(\/\/\)$/{
 
22593
            s//\1/
 
22594
            q
 
22595
          }
 
22596
          /^X\(\/\).*/{
 
22597
            s//\1/
 
22598
            q
 
22599
          }
 
22600
          s/.*/./; q'`
 
22601
  { as_dir="$ac_dir"
 
22602
  case $as_dir in #(
 
22603
  -*) as_dir=./$as_dir;;
 
22604
  esac
 
22605
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21449
22606
    as_dirs=
21450
 
    while test ! -d "$as_dir"; do
21451
 
      as_dirs="$as_dir $as_dirs"
21452
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22607
    while :; do
 
22608
      case $as_dir in #(
 
22609
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22610
      *) as_qdir=$as_dir;;
 
22611
      esac
 
22612
      as_dirs="'$as_qdir' $as_dirs"
 
22613
      as_dir=`$as_dirname -- "$as_dir" ||
21453
22614
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21454
22615
         X"$as_dir" : 'X\(//\)[^/]' \| \
21455
22616
         X"$as_dir" : 'X\(//\)$' \| \
21456
 
         X"$as_dir" : 'X\(/\)' \| \
21457
 
         .     : '\(.\)' 2>/dev/null ||
 
22617
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21458
22618
echo X"$as_dir" |
21459
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21460
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21461
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21462
 
          /^X\(\/\).*/{ s//\1/; q; }
21463
 
          s/.*/./; q'`
 
22619
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22620
            s//\1/
 
22621
            q
 
22622
          }
 
22623
          /^X\(\/\/\)[^/].*/{
 
22624
            s//\1/
 
22625
            q
 
22626
          }
 
22627
          /^X\(\/\/\)$/{
 
22628
            s//\1/
 
22629
            q
 
22630
          }
 
22631
          /^X\(\/\).*/{
 
22632
            s//\1/
 
22633
            q
 
22634
          }
 
22635
          s/.*/./; q'`
 
22636
      test -d "$as_dir" && break
21464
22637
    done
21465
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21466
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21467
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22638
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22639
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22640
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21468
22641
   { (exit 1); exit 1; }; }; }
21469
 
 
21470
22642
  ac_builddir=.
21471
22643
 
21472
 
if test "$ac_dir" != .; then
 
22644
case "$ac_dir" in
 
22645
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22646
*)
21473
22647
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21474
 
  # A "../" for each directory in $ac_dir_suffix.
21475
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21476
 
else
21477
 
  ac_dir_suffix= ac_top_builddir=
21478
 
fi
 
22648
  # A ".." for each directory in $ac_dir_suffix.
 
22649
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
22650
  case $ac_top_builddir_sub in
 
22651
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22652
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
22653
  esac ;;
 
22654
esac
 
22655
ac_abs_top_builddir=$ac_pwd
 
22656
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
22657
# for backward compatibility:
 
22658
ac_top_builddir=$ac_top_build_prefix
21479
22659
 
21480
22660
case $srcdir in
21481
 
  .)  # No --srcdir option.  We are building in place.
 
22661
  .)  # We are building in place.
21482
22662
    ac_srcdir=.
21483
 
    if test -z "$ac_top_builddir"; then
21484
 
       ac_top_srcdir=.
21485
 
    else
21486
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21487
 
    fi ;;
21488
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22663
    ac_top_srcdir=$ac_top_builddir_sub
 
22664
    ac_abs_top_srcdir=$ac_pwd ;;
 
22665
  [\\/]* | ?:[\\/]* )  # Absolute name.
21489
22666
    ac_srcdir=$srcdir$ac_dir_suffix;
21490
 
    ac_top_srcdir=$srcdir ;;
21491
 
  *) # Relative path.
21492
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21493
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21494
 
esac
21495
 
 
21496
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21497
 
# the directories may not exist.
21498
 
case `pwd` in
21499
 
.) ac_abs_builddir="$ac_dir";;
21500
 
*)
21501
 
  case "$ac_dir" in
21502
 
  .) ac_abs_builddir=`pwd`;;
21503
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21504
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21505
 
  esac;;
21506
 
esac
21507
 
case $ac_abs_builddir in
21508
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21509
 
*)
21510
 
  case ${ac_top_builddir}. in
21511
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21512
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21513
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21514
 
  esac;;
21515
 
esac
21516
 
case $ac_abs_builddir in
21517
 
.) ac_abs_srcdir=$ac_srcdir;;
21518
 
*)
21519
 
  case $ac_srcdir in
21520
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21521
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21522
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21523
 
  esac;;
21524
 
esac
21525
 
case $ac_abs_builddir in
21526
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21527
 
*)
21528
 
  case $ac_top_srcdir in
21529
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21530
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21531
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21532
 
  esac;;
21533
 
esac
21534
 
 
 
22667
    ac_top_srcdir=$srcdir
 
22668
    ac_abs_top_srcdir=$srcdir ;;
 
22669
  *) # Relative name.
 
22670
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
22671
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
22672
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
22673
esac
 
22674
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
22675
 
 
22676
 
 
22677
  case $ac_mode in
 
22678
  :F)
 
22679
  #
 
22680
  # CONFIG_FILE
 
22681
  #
21535
22682
 
21536
22683
  case $INSTALL in
21537
22684
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21538
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22685
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21539
22686
  esac
21540
 
 
21541
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21542
 
  # use $as_me), people would be surprised to read:
21543
 
  #    /* config.h.  Generated by config.status.  */
21544
 
  if test x"$ac_file" = x-; then
21545
 
    configure_input=
21546
 
  else
21547
 
    configure_input="$ac_file.  "
21548
 
  fi
21549
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21550
 
                                     sed 's,.*/,,'` by configure."
21551
 
 
21552
 
  # First look for the input files in the build tree, otherwise in the
21553
 
  # src tree.
21554
 
  ac_file_inputs=`IFS=:
21555
 
    for f in $ac_file_in; do
21556
 
      case $f in
21557
 
      -) echo $tmp/stdin ;;
21558
 
      [\\/$]*)
21559
 
         # Absolute (can't be DOS-style, as IFS=:)
21560
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21561
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21562
 
   { (exit 1); exit 1; }; }
21563
 
         echo "$f";;
21564
 
      *) # Relative
21565
 
         if test -f "$f"; then
21566
 
           # Build tree
21567
 
           echo "$f"
21568
 
         elif test -f "$srcdir/$f"; then
21569
 
           # Source tree
21570
 
           echo "$srcdir/$f"
21571
 
         else
21572
 
           # /dev/null tree
21573
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21574
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21575
 
   { (exit 1); exit 1; }; }
21576
 
         fi;;
21577
 
      esac
21578
 
    done` || { (exit 1); exit 1; }
21579
 
 
21580
 
  if test x"$ac_file" != x-; then
21581
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21582
 
echo "$as_me: creating $ac_file" >&6;}
21583
 
    rm -f "$ac_file"
21584
 
  fi
21585
 
_ACEOF
 
22687
_ACEOF
 
22688
 
 
22689
cat >>$CONFIG_STATUS <<\_ACEOF
 
22690
# If the template does not know about datarootdir, expand it.
 
22691
# FIXME: This hack should be removed a few years after 2.60.
 
22692
ac_datarootdir_hack=; ac_datarootdir_seen=
 
22693
 
 
22694
case `sed -n '/datarootdir/ {
 
22695
  p
 
22696
  q
 
22697
}
 
22698
/@datadir@/p
 
22699
/@docdir@/p
 
22700
/@infodir@/p
 
22701
/@localedir@/p
 
22702
/@mandir@/p
 
22703
' $ac_file_inputs` in
 
22704
*datarootdir*) ac_datarootdir_seen=yes;;
 
22705
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22706
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22707
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22708
_ACEOF
 
22709
cat >>$CONFIG_STATUS <<_ACEOF
 
22710
  ac_datarootdir_hack='
 
22711
  s&@datadir@&$datadir&g
 
22712
  s&@docdir@&$docdir&g
 
22713
  s&@infodir@&$infodir&g
 
22714
  s&@localedir@&$localedir&g
 
22715
  s&@mandir@&$mandir&g
 
22716
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22717
esac
 
22718
_ACEOF
 
22719
 
 
22720
# Neutralize VPATH when `$srcdir' = `.'.
 
22721
# Shell code in configure.ac might set extrasub.
 
22722
# FIXME: do we really want to maintain this feature?
21586
22723
cat >>$CONFIG_STATUS <<_ACEOF
21587
22724
  sed "$ac_vpsub
21588
22725
$extrasub
21590
22727
cat >>$CONFIG_STATUS <<\_ACEOF
21591
22728
:t
21592
22729
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21593
 
s,@configure_input@,$configure_input,;t t
21594
 
s,@srcdir@,$ac_srcdir,;t t
21595
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21596
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21597
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21598
 
s,@builddir@,$ac_builddir,;t t
21599
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21600
 
s,@top_builddir@,$ac_top_builddir,;t t
21601
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21602
 
s,@INSTALL@,$ac_INSTALL,;t t
21603
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21604
 
  rm -f $tmp/stdin
21605
 
  if test x"$ac_file" != x-; then
21606
 
    mv $tmp/out $ac_file
21607
 
  else
21608
 
    cat $tmp/out
21609
 
    rm -f $tmp/out
21610
 
  fi
21611
 
 
21612
 
done
 
22730
s&@configure_input@&$configure_input&;t t
 
22731
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22732
s&@srcdir@&$ac_srcdir&;t t
 
22733
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22734
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22735
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22736
s&@builddir@&$ac_builddir&;t t
 
22737
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22738
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22739
s&@INSTALL@&$ac_INSTALL&;t t
 
22740
$ac_datarootdir_hack
 
22741
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
22742
 
 
22743
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22744
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22745
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22746
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22747
which seems to be undefined.  Please make sure it is defined." >&5
 
22748
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22749
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22750
 
 
22751
  rm -f "$tmp/stdin"
 
22752
  case $ac_file in
 
22753
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
22754
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
22755
  esac
 
22756
 ;;
 
22757
  :H)
 
22758
  #
 
22759
  # CONFIG_HEADER
 
22760
  #
21613
22761
_ACEOF
21614
 
cat >>$CONFIG_STATUS <<\_ACEOF
21615
 
 
21616
 
#
21617
 
# CONFIG_HEADER section.
21618
 
#
21619
 
 
21620
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21621
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21622
 
#
21623
 
# ac_d sets the value in "#define NAME VALUE" lines.
21624
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21625
 
ac_dB='[         ].*$,\1#\2'
 
22762
 
 
22763
# Transform confdefs.h into a sed script `conftest.defines', that
 
22764
# substitutes the proper values into config.h.in to produce config.h.
 
22765
rm -f conftest.defines conftest.tail
 
22766
# First, append a space to every undef/define line, to ease matching.
 
22767
echo 's/$/ /' >conftest.defines
 
22768
# Then, protect against being on the right side of a sed subst, or in
 
22769
# an unquoted here document, in config.status.  If some macros were
 
22770
# called several times there might be several #defines for the same
 
22771
# symbol, which is useless.  But do not sort them, since the last
 
22772
# AC_DEFINE must be honored.
 
22773
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22774
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
22775
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
22776
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
22777
# just an empty string.
 
22778
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
22779
ac_dB='\\)[      (].*,\\1define\\2'
21626
22780
ac_dC=' '
21627
 
ac_dD=',;t'
21628
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21629
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21630
 
ac_uB='$,\1#\2define\3'
21631
 
ac_uC=' '
21632
 
ac_uD=',;t'
21633
 
 
21634
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21635
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21636
 
  case $ac_file in
21637
 
  - | *:- | *:-:* ) # input from stdin
21638
 
        cat >$tmp/stdin
21639
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21640
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21641
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21642
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21643
 
  * )   ac_file_in=$ac_file.in ;;
21644
 
  esac
21645
 
 
21646
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21647
 
echo "$as_me: creating $ac_file" >&6;}
21648
 
 
21649
 
  # First look for the input files in the build tree, otherwise in the
21650
 
  # src tree.
21651
 
  ac_file_inputs=`IFS=:
21652
 
    for f in $ac_file_in; do
21653
 
      case $f in
21654
 
      -) echo $tmp/stdin ;;
21655
 
      [\\/$]*)
21656
 
         # Absolute (can't be DOS-style, as IFS=:)
21657
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21658
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21659
 
   { (exit 1); exit 1; }; }
21660
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
21661
 
         echo "$f";;
21662
 
      *) # Relative
21663
 
         if test -f "$f"; then
21664
 
           # Build tree
21665
 
           echo "$f"
21666
 
         elif test -f "$srcdir/$f"; then
21667
 
           # Source tree
21668
 
           echo "$srcdir/$f"
21669
 
         else
21670
 
           # /dev/null tree
21671
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21672
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21673
 
   { (exit 1); exit 1; }; }
21674
 
         fi;;
21675
 
      esac
21676
 
    done` || { (exit 1); exit 1; }
21677
 
  # Remove the trailing spaces.
21678
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21679
 
 
21680
 
_ACEOF
21681
 
 
21682
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21683
 
# `conftest.undefs', that substitutes the proper values into
21684
 
# config.h.in to produce config.h.  The first handles `#define'
21685
 
# templates, and the second `#undef' templates.
21686
 
# And first: Protect against being on the right side of a sed subst in
21687
 
# config.status.  Protect against being in an unquoted here document
21688
 
# in config.status.
21689
 
rm -f conftest.defines conftest.undefs
21690
 
# Using a here document instead of a string reduces the quoting nightmare.
21691
 
# Putting comments in sed scripts is not portable.
21692
 
#
21693
 
# `end' is used to avoid that the second main sed command (meant for
21694
 
# 0-ary CPP macros) applies to n-ary macro definitions.
21695
 
# See the Autoconf documentation for `clear'.
21696
 
cat >confdef2sed.sed <<\_ACEOF
21697
 
s/[\\&,]/\\&/g
21698
 
s,[\\$`],\\&,g
21699
 
t clear
21700
 
: clear
21701
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21702
 
t end
21703
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21704
 
: end
21705
 
_ACEOF
21706
 
# If some macros were called several times there might be several times
21707
 
# the same #defines, which is useless.  Nevertheless, we may not want to
21708
 
# sort them, since we want the *last* AC-DEFINE to be honored.
21709
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21710
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21711
 
rm -f confdef2sed.sed
21712
 
 
21713
 
# This sed command replaces #undef with comments.  This is necessary, for
 
22781
ac_dD=' ,'
 
22782
 
 
22783
uniq confdefs.h |
 
22784
  sed -n '
 
22785
        t rset
 
22786
        :rset
 
22787
        s/^[     ]*#[    ]*define[       ][      ]*//
 
22788
        t ok
 
22789
        d
 
22790
        :ok
 
22791
        s/[\\&,]/\\&/g
 
22792
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
22793
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
22794
  ' >>conftest.defines
 
22795
 
 
22796
# Remove the space that was appended to ease matching.
 
22797
# Then replace #undef with comments.  This is necessary, for
21714
22798
# example, in the case of _POSIX_SOURCE, which is predefined and required
21715
22799
# on some systems where configure will not decide to define it.
21716
 
cat >>conftest.undefs <<\_ACEOF
21717
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22800
# (The regexp can be short, since the line contains either #define or #undef.)
 
22801
echo 's/ $//
 
22802
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
22803
 
 
22804
# Break up conftest.defines:
 
22805
ac_max_sed_lines=50
 
22806
 
 
22807
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
22808
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
22809
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
22810
# et cetera.
 
22811
ac_in='$ac_file_inputs'
 
22812
ac_out='"$tmp/out1"'
 
22813
ac_nxt='"$tmp/out2"'
 
22814
 
 
22815
while :
 
22816
do
 
22817
  # Write a here document:
 
22818
    cat >>$CONFIG_STATUS <<_ACEOF
 
22819
    # First, check the format of the line:
 
22820
    cat >"\$tmp/defines.sed" <<\\CEOF
 
22821
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
22822
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
22823
b
 
22824
:def
21718
22825
_ACEOF
21719
 
 
21720
 
# Break up conftest.defines because some shells have a limit on the size
21721
 
# of here documents, and old seds have small limits too (100 cmds).
21722
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21723
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21724
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21725
 
echo '  :' >>$CONFIG_STATUS
21726
 
rm -f conftest.tail
21727
 
while grep . conftest.defines >/dev/null
21728
 
do
21729
 
  # Write a limited-size here document to $tmp/defines.sed.
21730
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21731
 
  # Speed up: don't consider the non `#define' lines.
21732
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21733
 
  # Work around the forget-to-reset-the-flag bug.
21734
 
  echo 't clr' >>$CONFIG_STATUS
21735
 
  echo ': clr' >>$CONFIG_STATUS
21736
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22826
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21737
22827
  echo 'CEOF
21738
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21739
 
  rm -f $tmp/in
21740
 
  mv $tmp/out $tmp/in
21741
 
' >>$CONFIG_STATUS
21742
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22828
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
22829
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
22830
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
22831
  grep . conftest.tail >/dev/null || break
21743
22832
  rm -f conftest.defines
21744
22833
  mv conftest.tail conftest.defines
21745
22834
done
21746
 
rm -f conftest.defines
21747
 
echo '  fi # grep' >>$CONFIG_STATUS
21748
 
echo >>$CONFIG_STATUS
21749
 
 
21750
 
# Break up conftest.undefs because some shells have a limit on the size
21751
 
# of here documents, and old seds have small limits too (100 cmds).
21752
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21753
 
rm -f conftest.tail
21754
 
while grep . conftest.undefs >/dev/null
21755
 
do
21756
 
  # Write a limited-size here document to $tmp/undefs.sed.
21757
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21758
 
  # Speed up: don't consider the non `#undef'
21759
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21760
 
  # Work around the forget-to-reset-the-flag bug.
21761
 
  echo 't clr' >>$CONFIG_STATUS
21762
 
  echo ': clr' >>$CONFIG_STATUS
21763
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21764
 
  echo 'CEOF
21765
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21766
 
  rm -f $tmp/in
21767
 
  mv $tmp/out $tmp/in
21768
 
' >>$CONFIG_STATUS
21769
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21770
 
  rm -f conftest.undefs
21771
 
  mv conftest.tail conftest.undefs
21772
 
done
21773
 
rm -f conftest.undefs
21774
 
 
 
22835
rm -f conftest.defines conftest.tail
 
22836
 
 
22837
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21775
22838
cat >>$CONFIG_STATUS <<\_ACEOF
21776
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21777
 
  # use $as_me), people would be surprised to read:
21778
 
  #    /* config.h.  Generated by config.status.  */
21779
 
  if test x"$ac_file" = x-; then
21780
 
    echo "/* Generated by configure.  */" >$tmp/config.h
21781
 
  else
21782
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21783
 
  fi
21784
 
  cat $tmp/in >>$tmp/config.h
21785
 
  rm -f $tmp/in
21786
22839
  if test x"$ac_file" != x-; then
21787
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
22840
    echo "/* $configure_input  */" >"$tmp/config.h"
 
22841
    cat "$ac_result" >>"$tmp/config.h"
 
22842
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21788
22843
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21789
22844
echo "$as_me: $ac_file is unchanged" >&6;}
21790
22845
    else
21791
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21792
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21793
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21794
 
         X"$ac_file" : 'X\(//\)$' \| \
21795
 
         X"$ac_file" : 'X\(/\)' \| \
21796
 
         .     : '\(.\)' 2>/dev/null ||
21797
 
echo X"$ac_file" |
21798
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21799
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21800
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21801
 
          /^X\(\/\).*/{ s//\1/; q; }
21802
 
          s/.*/./; q'`
21803
 
      { if $as_mkdir_p; then
21804
 
    mkdir -p "$ac_dir"
21805
 
  else
21806
 
    as_dir="$ac_dir"
21807
 
    as_dirs=
21808
 
    while test ! -d "$as_dir"; do
21809
 
      as_dirs="$as_dir $as_dirs"
21810
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21811
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21813
 
         X"$as_dir" : 'X\(//\)$' \| \
21814
 
         X"$as_dir" : 'X\(/\)' \| \
21815
 
         .     : '\(.\)' 2>/dev/null ||
21816
 
echo X"$as_dir" |
21817
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21818
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21819
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21820
 
          /^X\(\/\).*/{ s//\1/; q; }
21821
 
          s/.*/./; q'`
21822
 
    done
21823
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21824
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21825
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21826
 
   { (exit 1); exit 1; }; }; }
21827
 
 
21828
22846
      rm -f $ac_file
21829
 
      mv $tmp/config.h $ac_file
 
22847
      mv "$tmp/config.h" $ac_file
21830
22848
    fi
21831
22849
  else
21832
 
    cat $tmp/config.h
21833
 
    rm -f $tmp/config.h
 
22850
    echo "/* $configure_input  */"
 
22851
    cat "$ac_result"
21834
22852
  fi
21835
 
  # Run the commands associated with the file.
21836
 
  case $ac_file in
21837
 
    ortp-config.h ) # update the timestamp
21838
 
echo 'timestamp for ortp-config.h' >"./stamp-h1"
21839
 
 ;;
 
22853
  rm -f "$tmp/out12"
 
22854
# Compute $ac_file's index in $config_headers.
 
22855
_am_stamp_count=1
 
22856
for _am_header in $config_headers :; do
 
22857
  case $_am_header in
 
22858
    $ac_file | $ac_file:* )
 
22859
      break ;;
 
22860
    * )
 
22861
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21840
22862
  esac
21841
22863
done
21842
 
_ACEOF
21843
 
cat >>$CONFIG_STATUS <<\_ACEOF
21844
 
 
21845
 
#
21846
 
# CONFIG_COMMANDS section.
21847
 
#
21848
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21849
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21850
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21851
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21852
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21853
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
21854
 
         X"$ac_dest" : 'X\(//\)$' \| \
21855
 
         X"$ac_dest" : 'X\(/\)' \| \
21856
 
         .     : '\(.\)' 2>/dev/null ||
21857
 
echo X"$ac_dest" |
21858
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21859
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21860
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21861
 
          /^X\(\/\).*/{ s//\1/; q; }
21862
 
          s/.*/./; q'`
21863
 
  { if $as_mkdir_p; then
21864
 
    mkdir -p "$ac_dir"
21865
 
  else
21866
 
    as_dir="$ac_dir"
21867
 
    as_dirs=
21868
 
    while test ! -d "$as_dir"; do
21869
 
      as_dirs="$as_dir $as_dirs"
21870
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21871
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21872
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21873
 
         X"$as_dir" : 'X\(//\)$' \| \
21874
 
         X"$as_dir" : 'X\(/\)' \| \
21875
 
         .     : '\(.\)' 2>/dev/null ||
21876
 
echo X"$as_dir" |
21877
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21878
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21879
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21880
 
          /^X\(\/\).*/{ s//\1/; q; }
21881
 
          s/.*/./; q'`
21882
 
    done
21883
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21884
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21885
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21886
 
   { (exit 1); exit 1; }; }; }
21887
 
 
21888
 
  ac_builddir=.
21889
 
 
21890
 
if test "$ac_dir" != .; then
21891
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21892
 
  # A "../" for each directory in $ac_dir_suffix.
21893
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21894
 
else
21895
 
  ac_dir_suffix= ac_top_builddir=
21896
 
fi
21897
 
 
21898
 
case $srcdir in
21899
 
  .)  # No --srcdir option.  We are building in place.
21900
 
    ac_srcdir=.
21901
 
    if test -z "$ac_top_builddir"; then
21902
 
       ac_top_srcdir=.
21903
 
    else
21904
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21905
 
    fi ;;
21906
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21907
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21908
 
    ac_top_srcdir=$srcdir ;;
21909
 
  *) # Relative path.
21910
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21911
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21912
 
esac
21913
 
 
21914
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21915
 
# the directories may not exist.
21916
 
case `pwd` in
21917
 
.) ac_abs_builddir="$ac_dir";;
21918
 
*)
21919
 
  case "$ac_dir" in
21920
 
  .) ac_abs_builddir=`pwd`;;
21921
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21922
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21923
 
  esac;;
21924
 
esac
21925
 
case $ac_abs_builddir in
21926
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21927
 
*)
21928
 
  case ${ac_top_builddir}. in
21929
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21930
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21931
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21932
 
  esac;;
21933
 
esac
21934
 
case $ac_abs_builddir in
21935
 
.) ac_abs_srcdir=$ac_srcdir;;
21936
 
*)
21937
 
  case $ac_srcdir in
21938
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21939
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21940
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21941
 
  esac;;
21942
 
esac
21943
 
case $ac_abs_builddir in
21944
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21945
 
*)
21946
 
  case $ac_top_srcdir in
21947
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21948
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21949
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21950
 
  esac;;
21951
 
esac
21952
 
 
21953
 
 
21954
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21955
 
echo "$as_me: executing $ac_dest commands" >&6;}
21956
 
  case $ac_dest in
21957
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22864
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
22865
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22866
         X$ac_file : 'X\(//\)[^/]' \| \
 
22867
         X$ac_file : 'X\(//\)$' \| \
 
22868
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
22869
echo X$ac_file |
 
22870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22871
            s//\1/
 
22872
            q
 
22873
          }
 
22874
          /^X\(\/\/\)[^/].*/{
 
22875
            s//\1/
 
22876
            q
 
22877
          }
 
22878
          /^X\(\/\/\)$/{
 
22879
            s//\1/
 
22880
            q
 
22881
          }
 
22882
          /^X\(\/\).*/{
 
22883
            s//\1/
 
22884
            q
 
22885
          }
 
22886
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22887
 ;;
 
22888
 
 
22889
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
22890
echo "$as_me: executing $ac_file commands" >&6;}
 
22891
 ;;
 
22892
  esac
 
22893
 
 
22894
 
 
22895
  case $ac_file$ac_mode in
 
22896
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21958
22897
  # Strip MF so we end up with the name of the file.
21959
22898
  mf=`echo "$mf" | sed -e 's/:.*$//'`
21960
22899
  # Check whether this is an Automake generated Makefile or not.
21964
22903
  # each Makefile.in and add a new line on top of each file to say so.
21965
22904
  # So let's grep whole file.
21966
22905
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21967
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
22906
    dirpart=`$as_dirname -- "$mf" ||
21968
22907
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969
22908
         X"$mf" : 'X\(//\)[^/]' \| \
21970
22909
         X"$mf" : 'X\(//\)$' \| \
21971
 
         X"$mf" : 'X\(/\)' \| \
21972
 
         .     : '\(.\)' 2>/dev/null ||
 
22910
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21973
22911
echo X"$mf" |
21974
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21977
 
          /^X\(\/\).*/{ s//\1/; q; }
21978
 
          s/.*/./; q'`
 
22912
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22913
            s//\1/
 
22914
            q
 
22915
          }
 
22916
          /^X\(\/\/\)[^/].*/{
 
22917
            s//\1/
 
22918
            q
 
22919
          }
 
22920
          /^X\(\/\/\)$/{
 
22921
            s//\1/
 
22922
            q
 
22923
          }
 
22924
          /^X\(\/\).*/{
 
22925
            s//\1/
 
22926
            q
 
22927
          }
 
22928
          s/.*/./; q'`
21979
22929
  else
21980
22930
    continue
21981
22931
  fi
21982
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21983
 
  # Extract the definition of DEP_FILES from the Makefile without
21984
 
  # running `make'.
21985
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
22932
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22933
  # from the Makefile without running `make'.
 
22934
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21986
22935
  test -z "$DEPDIR" && continue
 
22936
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22937
  test -z "am__include" && continue
 
22938
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21987
22939
  # When using ansi2knr, U may be empty or an underscore; expand it
21988
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
21989
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21990
 
  # We invoke sed twice because it is the simplest approach to
21991
 
  # changing $(DEPDIR) to its actual value in the expansion.
21992
 
  for file in `sed -n -e '
21993
 
    /^DEP_FILES = .*\\\\$/ {
21994
 
      s/^DEP_FILES = //
21995
 
      :loop
21996
 
        s/\\\\$//
21997
 
        p
21998
 
        n
21999
 
        /\\\\$/ b loop
22000
 
      p
22001
 
    }
22002
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
22940
  U=`sed -n 's/^U = //p' < "$mf"`
 
22941
  # Find all dependency output files, they are included files with
 
22942
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22943
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22944
  # expansion.
 
22945
  for file in `sed -n "
 
22946
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22003
22947
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22004
22948
    # Make sure the directory exists.
22005
22949
    test -f "$dirpart/$file" && continue
22006
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
22950
    fdir=`$as_dirname -- "$file" ||
22007
22951
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22008
22952
         X"$file" : 'X\(//\)[^/]' \| \
22009
22953
         X"$file" : 'X\(//\)$' \| \
22010
 
         X"$file" : 'X\(/\)' \| \
22011
 
         .     : '\(.\)' 2>/dev/null ||
 
22954
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22012
22955
echo X"$file" |
22013
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22014
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22015
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22016
 
          /^X\(\/\).*/{ s//\1/; q; }
22017
 
          s/.*/./; q'`
22018
 
    { if $as_mkdir_p; then
22019
 
    mkdir -p $dirpart/$fdir
22020
 
  else
22021
 
    as_dir=$dirpart/$fdir
 
22956
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22957
            s//\1/
 
22958
            q
 
22959
          }
 
22960
          /^X\(\/\/\)[^/].*/{
 
22961
            s//\1/
 
22962
            q
 
22963
          }
 
22964
          /^X\(\/\/\)$/{
 
22965
            s//\1/
 
22966
            q
 
22967
          }
 
22968
          /^X\(\/\).*/{
 
22969
            s//\1/
 
22970
            q
 
22971
          }
 
22972
          s/.*/./; q'`
 
22973
    { as_dir=$dirpart/$fdir
 
22974
  case $as_dir in #(
 
22975
  -*) as_dir=./$as_dir;;
 
22976
  esac
 
22977
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22022
22978
    as_dirs=
22023
 
    while test ! -d "$as_dir"; do
22024
 
      as_dirs="$as_dir $as_dirs"
22025
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22979
    while :; do
 
22980
      case $as_dir in #(
 
22981
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22982
      *) as_qdir=$as_dir;;
 
22983
      esac
 
22984
      as_dirs="'$as_qdir' $as_dirs"
 
22985
      as_dir=`$as_dirname -- "$as_dir" ||
22026
22986
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22027
22987
         X"$as_dir" : 'X\(//\)[^/]' \| \
22028
22988
         X"$as_dir" : 'X\(//\)$' \| \
22029
 
         X"$as_dir" : 'X\(/\)' \| \
22030
 
         .     : '\(.\)' 2>/dev/null ||
 
22989
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22031
22990
echo X"$as_dir" |
22032
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22033
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22034
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22035
 
          /^X\(\/\).*/{ s//\1/; q; }
22036
 
          s/.*/./; q'`
 
22991
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22992
            s//\1/
 
22993
            q
 
22994
          }
 
22995
          /^X\(\/\/\)[^/].*/{
 
22996
            s//\1/
 
22997
            q
 
22998
          }
 
22999
          /^X\(\/\/\)$/{
 
23000
            s//\1/
 
23001
            q
 
23002
          }
 
23003
          /^X\(\/\).*/{
 
23004
            s//\1/
 
23005
            q
 
23006
          }
 
23007
          s/.*/./; q'`
 
23008
      test -d "$as_dir" && break
22037
23009
    done
22038
 
    test ! -n "$as_dirs" || mkdir $as_dirs
22039
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22040
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23010
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23011
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23012
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22041
23013
   { (exit 1); exit 1; }; }; }
22042
 
 
22043
23014
    # echo "creating $dirpart/$file"
22044
23015
    echo '# dummy' > "$dirpart/$file"
22045
23016
  done
22046
23017
done
22047
23018
 ;;
 
23019
 
22048
23020
  esac
22049
 
done
22050
 
_ACEOF
 
23021
done # for ac_tag
22051
23022
 
22052
 
cat >>$CONFIG_STATUS <<\_ACEOF
22053
23023
 
22054
23024
{ (exit 0); exit 0; }
22055
23025
_ACEOF